nus-yam/ex-repair huggingface dataset:
Program: 165390
Project: 165390
Buggy source:
byte[] read(InputStream is) throws IOException {
  int l=is.available();
  byte[] buffer=new byte[l + 1];
  int length=0;
  while ((l=is.read(buffer,length,buffer.length - length)) != -1) {
    length+=l;
    if (length == buffer.length) {
      byte[] b=new byte[buffer.length + 4096];
      System.arraycopy(buffer,0,b,0,length);
      buffer=b;
    }
  }
  return buffer;
}

Fixed version (ground truth):
byte[] read(InputStream is) throws IOException {
  int l=is.available();
  byte[] buffer=new byte[l + 1];
  int length=0;
  while ((l=is.read(buffer,length,buffer.length - length)) != -1) {
    length+=l;
    if (length == buffer.length) {
      byte[] b=new byte[buffer.length + 4096];
      System.arraycopy(buffer,0,b,0,length);
      buffer=b;
    }
  }
  if (length < buffer.length) {
    byte[] b=new byte[length];
    System.arraycopy(buffer,0,b,0,length);
    buffer=b;
  }
  return buffer;
}
Program: 165391
Project: 165391
Buggy source:
public static byte[] read(InputStream is) throws IOException {
  int l=is.available();
  byte[] buffer=new byte[l + 1];
  int length=0;
  while ((l=is.read(buffer,length,buffer.length - length)) != -1) {
    length+=l;
    if (length == buffer.length) {
      byte[] b=new byte[buffer.length + 4096];
      System.arraycopy(buffer,0,b,0,length);
      buffer=b;
    }
  }
  return buffer;
}

Fixed version (ground truth):
public static byte[] read(InputStream is) throws IOException {
  int l=is.available();
  byte[] buffer=new byte[l + 1];
  int length=0;
  while ((l=is.read(buffer,length,buffer.length - length)) != -1) {
    length+=l;
    if (length == buffer.length) {
      byte[] b=new byte[buffer.length + 4096];
      System.arraycopy(buffer,0,b,0,length);
      buffer=b;
    }
  }
  if (length < buffer.length) {
    byte[] b=new byte[length];
    System.arraycopy(buffer,0,b,0,length);
    buffer=b;
  }
  return buffer;
}
Program: 165392
Project: 165392
Buggy source:
native public void setPosition(int x,int y);

Fixed version (ground truth):
public void setPosition(int x,int y){
  if (!(parent instanceof Canvas)) {
    setPosition0(x,y);
    return;
  }
  Display display=((Canvas)parent).getCurrentDisplay();
  if (display == null) {
    setPosition0(x,y);
    return;
  }
  setPosition0(display.getDisplayableAnchorX() + x,display.getDisplayableAnchorY() + y);
}
Program: 165393
Project: 165393
Buggy source:
private String validateSpec(String spec){
  String fullPath;
  if (!spec.startsWith("String_Node_Str"))   throw new IllegalArgumentException("String_Node_Str" + spec);
  spec=spec.substring(2);
  if (separatorChar != '/') {
    if (spec.indexOf(separatorChar) != -1)     throw new IllegalArgumentException("String_Node_Str" + spec);
  }
  int idx=spec.indexOf("String_Node_Str");
  if (idx == -1)   throw new IllegalArgumentException(spec);
  if (idx == 0) {
    host="String_Node_Str";
    fullPath=spec.substring(1,spec.length());
  }
 else {
    int idx2=spec.indexOf("String_Node_Str");
    int idx3=spec.indexOf("String_Node_Str");
    if ((idx2 != -1 && idx2 < idx) || (idx3 != -1 && idx3 < idx))     throw new IllegalArgumentException(spec);
    fullPath=spec.substring(idx + 1,spec.length());
    host=spec.substring(0,idx);
  }
  int idx4=spec.indexOf("String_Node_Str");
  int idx5=spec.indexOf("String_Node_Str");
  int idx6=spec.indexOf("String_Node_Str");
  int idx7=spec.indexOf("String_Node_Str");
  int idx8=spec.indexOf("String_Node_Str");
  int idx9=spec.indexOf("String_Node_Str");
  if (idx4 != -1 || idx5 != -1 || idx6 == 0 || idx7 == 0 || (idx8 != -1 && idx8 == spec.length() - 3) || (idx9 != -1 && idx9 == spec.length() - 2))   throw new IllegalArgumentException("String_Node_Str" + spec);
  return fullPath;
}

Fixed version (ground truth):
private String validateSpec(String spec){
  String fullPath;
  if (!spec.startsWith("String_Node_Str"))   throw new IllegalArgumentException("String_Node_Str" + spec);
  spec=spec.substring(2);
  if (separatorChar != '/') {
    if (spec.indexOf(separatorChar) != -1)     throw new IllegalArgumentException("String_Node_Str" + spec);
  }
  int idx=spec.indexOf("String_Node_Str");
  if (idx == -1)   throw new IllegalArgumentException(spec);
  if (idx == 0) {
    host="String_Node_Str";
    fullPath=spec.substring(0,spec.length());
  }
 else {
    int idx2=spec.indexOf("String_Node_Str");
    int idx3=spec.indexOf("String_Node_Str");
    if ((idx2 != -1 && idx2 < idx) || (idx3 != -1 && idx3 < idx))     throw new IllegalArgumentException(spec);
    fullPath=spec.substring(idx,spec.length());
    host=spec.substring(0,idx);
  }
  int idx4=spec.indexOf("String_Node_Str");
  int idx5=spec.indexOf("String_Node_Str");
  int idx6=spec.indexOf("String_Node_Str");
  int idx7=spec.indexOf("String_Node_Str");
  int idx8=spec.indexOf("String_Node_Str");
  int idx9=spec.indexOf("String_Node_Str");
  if (idx4 != -1 || idx5 != -1 || idx6 == 0 || idx7 == 0 || (idx8 != -1 && idx8 == spec.length() - 3) || (idx9 != -1 && idx9 == spec.length() - 2))   throw new IllegalArgumentException("String_Node_Str" + spec);
  return fullPath;
}
Program: 165394
Project: 165394
Buggy source:
private String validateSpec(String spec){
  String fullPath;
  if (!spec.startsWith("String_Node_Str"))   throw new IllegalArgumentException("String_Node_Str" + spec);
  spec=spec.substring(2);
  if (separatorChar != '/') {
    if (spec.indexOf(separatorChar) != -1)     throw new IllegalArgumentException("String_Node_Str" + spec);
  }
  int idx=spec.indexOf("String_Node_Str");
  if (idx == -1)   throw new IllegalArgumentException(spec);
  if (idx == 0) {
    host="String_Node_Str";
    fullPath=spec.substring(1,spec.length());
  }
 else {
    int idx2=spec.indexOf("String_Node_Str");
    int idx3=spec.indexOf("String_Node_Str");
    if ((idx2 != -1 && idx2 < idx) || (idx3 != -1 && idx3 < idx))     throw new IllegalArgumentException(spec);
    fullPath=spec.substring(idx + 1,spec.length());
    host=spec.substring(0,idx);
  }
  int idx4=spec.indexOf("String_Node_Str");
  int idx5=spec.indexOf("String_Node_Str");
  int idx6=spec.indexOf("String_Node_Str");
  int idx7=spec.indexOf("String_Node_Str");
  int idx8=spec.indexOf("String_Node_Str");
  int idx9=spec.indexOf("String_Node_Str");
  if (idx4 != -1 || idx5 != -1 || idx6 == 0 || idx7 == 0 || (idx8 != -1 && idx8 == spec.length() - 3) || (idx9 != -1 && idx9 == spec.length() - 2))   throw new IllegalArgumentException("String_Node_Str" + spec);
  return fullPath;
}

Fixed version (ground truth):
private String validateSpec(String spec){
  String fullPath;
  if (!spec.startsWith("String_Node_Str"))   throw new IllegalArgumentException("String_Node_Str" + spec);
  spec=spec.substring(2);
  if (separatorChar != '/') {
    if (spec.indexOf(separatorChar) != -1)     throw new IllegalArgumentException("String_Node_Str" + spec);
  }
  int idx=spec.indexOf("String_Node_Str");
  if (idx == -1)   throw new IllegalArgumentException(spec);
  if (idx == 0) {
    host="String_Node_Str";
    fullPath=spec.substring(0,spec.length());
  }
 else {
    int idx2=spec.indexOf("String_Node_Str");
    int idx3=spec.indexOf("String_Node_Str");
    if ((idx2 != -1 && idx2 < idx) || (idx3 != -1 && idx3 < idx))     throw new IllegalArgumentException(spec);
    fullPath=spec.substring(idx,spec.length());
    host=spec.substring(0,idx);
  }
  int idx4=spec.indexOf("String_Node_Str");
  int idx5=spec.indexOf("String_Node_Str");
  int idx6=spec.indexOf("String_Node_Str");
  int idx7=spec.indexOf("String_Node_Str");
  int idx8=spec.indexOf("String_Node_Str");
  int idx9=spec.indexOf("String_Node_Str");
  if (idx4 != -1 || idx5 != -1 || idx6 == 0 || idx7 == 0 || (idx8 != -1 && idx8 == spec.length() - 3) || (idx9 != -1 && idx9 == spec.length() - 2))   throw new IllegalArgumentException("String_Node_Str" + spec);
  return fullPath;
}
Program: 165395
Project: 165395
Buggy source:
@Override public Date convert(String source){
  if (source == null) {
    return null;
  }
  Date date;
  try {
    Long milliSeconds=Long.valueOf(source);
    return new Date(milliSeconds);
  }
 catch (  NumberFormatException e) {
  }
  if (source.length() == 10) {
    try {
      date=date10.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source));
    }
  }
 else   if (source.length() == 19) {
    try {
      date=date19.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source));
    }
  }
 else {
    throw new IllegalArgumentException(String.format("String_Node_Str",source));
  }
  return date;
}

Fixed version (ground truth):
@Override public Date convert(String source){
  if (source == null) {
    return null;
  }
  Date date;
  try {
    Long milliSeconds=Long.valueOf(source);
    return new Date(milliSeconds);
  }
 catch (  NumberFormatException e) {
  }
  if (source.length() == 10) {
    try {
      date=date10.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source),e);
    }
  }
 else   if (source.length() == 19) {
    try {
      date=date19.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source),e);
    }
  }
 else {
    throw new IllegalArgumentException(String.format("String_Node_Str",source));
  }
  return date;
}
Program: 165396
Project: 165396
Buggy source:
public Long getIdFromUUID(String uuid){
  Long id=null;
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement getIdStatement=connection.prepareStatement("String_Node_Str");
    getIdStatement.setString(1,uuid);
    ResultSet resultSet=getIdStatement.executeQuery();
    if (resultSet.next()) {
      id=resultSet.getLong(1);
    }
    resultSet.close();
    getIdStatement.close();
  }
 catch (  SQLException e) {
  }
  return id;
}

Fixed version (ground truth):
public Long getIdFromUUID(String uuid){
  Long id=null;
  try (Connection connection=dataSource.getConnection();PreparedStatement getIdStatement=connection.prepareStatement("String_Node_Str")){
    getIdStatement.setString(1,uuid);
    ResultSet resultSet=getIdStatement.executeQuery();
    if (resultSet.next()) {
      id=resultSet.getLong(1);
    }
  }
 catch (  SQLException e) {
  }
  return id;
}
Program: 165397
Project: 165397
Buggy source:
public void deleteUUID(Long id){
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement deleteStatement=connection.prepareStatement("String_Node_Str");
    deleteStatement.setLong(1,id);
    deleteStatement.execute();
    deleteStatement.close();
  }
 catch (  SQLException e) {
  }
}

Fixed version (ground truth):
public void deleteUUID(Long id){
  try (Connection connection=dataSource.getConnection();PreparedStatement deleteStatement=connection.prepareStatement("String_Node_Str")){
    deleteStatement.setLong(1,id);
    deleteStatement.execute();
  }
 catch (  SQLException e) {
  }
}
Program: 165398
Project: 165398
Buggy source:
public UUID createUUID(Long id){
  UUID uuid=UUID.randomUUID();
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement insertStatement=connection.prepareStatement("String_Node_Str");
    insertStatement.setLong(1,id);
    insertStatement.setString(2,uuid.toString());
    insertStatement.execute();
  }
 catch (  SQLException e) {
    return null;
  }
  return uuid;
}

Fixed version (ground truth):
public UUID createUUID(Long id){
  UUID uuid=UUID.randomUUID();
  try (Connection connection=dataSource.getConnection();PreparedStatement insertStatement=connection.prepareStatement("String_Node_Str")){
    insertStatement.setLong(1,id);
    insertStatement.setString(2,uuid.toString());
    insertStatement.execute();
  }
 catch (  SQLException e) {
    return null;
  }
  return uuid;
}
Program: 165399
Project: 165399
Buggy source:
public Company findByCompanyId(@Param("String_Node_Str") Long companyId);

Fixed version (ground truth):
Company findByCompanyId(@Param("String_Node_Str") Long companyId);
Program: 165400
Project: 165400
Buggy source:
public List<Company> findByNameLikeIgnoreCaseOrderByNameAsc(@Param("String_Node_Str") String name);

Fixed version (ground truth):
List<Company> findByNameLikeIgnoreCaseOrderByNameAsc(@Param("String_Node_Str") String name);
Program: 165401
Project: 165401
Buggy source:
public boolean canEdit(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canEdit(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165402
Project: 165402
Buggy source:
public boolean canDelete(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canDelete(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165403
Project: 165403
Buggy source:
public boolean canCreate(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canCreate(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165404
Project: 165404
Buggy source:
@Override public Date convert(String source){
  if (source == null) {
    return null;
  }
  Date date;
  try {
    Long milliSeconds=Long.valueOf(source);
    return new Date(milliSeconds);
  }
 catch (  NumberFormatException e) {
  }
  if (source.length() == 10) {
    try {
      date=date10.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source));
    }
  }
 else   if (source.length() == 19) {
    try {
      date=date19.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source));
    }
  }
 else {
    throw new IllegalArgumentException(String.format("String_Node_Str",source));
  }
  return date;
}

Fixed version (ground truth):
@Override public Date convert(String source){
  if (source == null) {
    return null;
  }
  Date date;
  try {
    Long milliSeconds=Long.valueOf(source);
    return new Date(milliSeconds);
  }
 catch (  NumberFormatException e) {
  }
  if (source.length() == 10) {
    try {
      date=date10.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source),e);
    }
  }
 else   if (source.length() == 19) {
    try {
      date=date19.parse(source);
    }
 catch (    ParseException e) {
      throw new IllegalArgumentException(String.format("String_Node_Str",source),e);
    }
  }
 else {
    throw new IllegalArgumentException(String.format("String_Node_Str",source));
  }
  return date;
}
Program: 165405
Project: 165405
Buggy source:
public Long getIdFromUUID(String uuid){
  Long id=null;
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement getIdStatement=connection.prepareStatement("String_Node_Str");
    getIdStatement.setString(1,uuid);
    ResultSet resultSet=getIdStatement.executeQuery();
    if (resultSet.next()) {
      id=resultSet.getLong(1);
    }
    resultSet.close();
    getIdStatement.close();
  }
 catch (  SQLException e) {
  }
  return id;
}

Fixed version (ground truth):
public Long getIdFromUUID(String uuid){
  Long id=null;
  try (Connection connection=dataSource.getConnection();PreparedStatement getIdStatement=connection.prepareStatement("String_Node_Str")){
    getIdStatement.setString(1,uuid);
    ResultSet resultSet=getIdStatement.executeQuery();
    if (resultSet.next()) {
      id=resultSet.getLong(1);
    }
  }
 catch (  SQLException e) {
  }
  return id;
}
Program: 165406
Project: 165406
Buggy source:
public void deleteUUID(Long id){
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement deleteStatement=connection.prepareStatement("String_Node_Str");
    deleteStatement.setLong(1,id);
    deleteStatement.execute();
    deleteStatement.close();
  }
 catch (  SQLException e) {
  }
}

Fixed version (ground truth):
public void deleteUUID(Long id){
  try (Connection connection=dataSource.getConnection();PreparedStatement deleteStatement=connection.prepareStatement("String_Node_Str")){
    deleteStatement.setLong(1,id);
    deleteStatement.execute();
  }
 catch (  SQLException e) {
  }
}
Program: 165407
Project: 165407
Buggy source:
public UUID createUUID(Long id){
  UUID uuid=UUID.randomUUID();
  try (Connection connection=dataSource.getConnection()){
    PreparedStatement insertStatement=connection.prepareStatement("String_Node_Str");
    insertStatement.setLong(1,id);
    insertStatement.setString(2,uuid.toString());
    insertStatement.execute();
  }
 catch (  SQLException e) {
    return null;
  }
  return uuid;
}

Fixed version (ground truth):
public UUID createUUID(Long id){
  UUID uuid=UUID.randomUUID();
  try (Connection connection=dataSource.getConnection();PreparedStatement insertStatement=connection.prepareStatement("String_Node_Str")){
    insertStatement.setLong(1,id);
    insertStatement.setString(2,uuid.toString());
    insertStatement.execute();
  }
 catch (  SQLException e) {
    return null;
  }
  return uuid;
}
Program: 165408
Project: 165408
Buggy source:
public Company findByCompanyId(@Param("String_Node_Str") Long companyId);

Fixed version (ground truth):
Company findByCompanyId(@Param("String_Node_Str") Long companyId);
Program: 165409
Project: 165409
Buggy source:
public List<Company> findByNameLikeIgnoreCaseOrderByNameAsc(@Param("String_Node_Str") String name);

Fixed version (ground truth):
List<Company> findByNameLikeIgnoreCaseOrderByNameAsc(@Param("String_Node_Str") String name);
Program: 165410
Project: 165410
Buggy source:
public boolean canEdit(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canEdit(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165411
Project: 165411
Buggy source:
public boolean canDelete(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canDelete(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165412
Project: 165412
Buggy source:
public boolean canCreate(String email,TravelExpense travelExpense){
  return email != null && travelExpense.getReport().getEmployee().getEmail().equals(email) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}

Fixed version (ground truth):
public boolean canCreate(String email,TravelExpense travelExpense){
  return email != null && email.equals(travelExpense.getReport().getEmployee().getEmail()) && travelExpense.getReport().getStatus() != Report.Status.APPROVED && travelExpense.getReport().getStatus() != Report.Status.SUBMITTED;
}
Program: 165413
Project: 165413
Buggy source:
@RequestMapping("String_Node_Str") public ModelAndView confirmAccess(Map<String,Object> model,Principal principal){
  model.put("String_Node_Str",proxyPath);
  return new ModelAndView("String_Node_Str",model);
}

Fixed version (ground truth):
@RequestMapping("String_Node_Str") public ModelAndView confirmAccess(Map<String,Object> model,Principal principal){
  if (proxyPath != null && proxyPath.startsWith("String_Node_Str")) {
    model.put("String_Node_Str",proxyPath);
  }
 else {
    model.put("String_Node_Str","String_Node_Str" + proxyPath);
  }
  return new ModelAndView("String_Node_Str",model);
}
Program: 165414
Project: 165414
Buggy source:
@Override public MimeMessage createMimeMessage(InputStream contentStream) throws MailException {
  log.debug("String_Node_Str");
  return null;
}

Fixed version (ground truth):
@Override public MimeMessage createMimeMessage(InputStream contentStream){
  log.debug("String_Node_Str");
  return null;
}
Program: 165415
Project: 165415
Buggy source:
@Override public void send(SimpleMailMessage[] simpleMessages) throws MailException {
  log.debug("String_Node_Str");
}

Fixed version (ground truth):
@Override public void send(SimpleMailMessage[] simpleMessages){
  log.debug("String_Node_Str");
}
Program: 165416
Project: 165416
Buggy source:
@PreAuthorize("String_Node_Str") public Page<Invoice> findByInvoiceState(@Param("String_Node_Str") InvoiceState state,Pageable pageable);

Fixed version (ground truth):
@PreAuthorize("String_Node_Str") Page<Invoice> findByInvoiceState(@Param("String_Node_Str") InvoiceState state,Pageable pageable);
Program: 165417
Project: 165417
Buggy source:
@PreAuthorize("String_Node_Str") public Page<Invoice> findByIdentifierLikeIgnoreCaseAndInvoiceState(@Param("String_Node_Str") String identifier,@Param("String_Node_Str") InvoiceState state,Pageable pageable);

Fixed version (ground truth):
@PreAuthorize("String_Node_Str") Page<Invoice> findByIdentifierLikeIgnoreCaseAndInvoiceState(@Param("String_Node_Str") String identifier,@Param("String_Node_Str") InvoiceState state,Pageable pageable);
Program: 165418
Project: 165418
Buggy source:
@RestResource(exported=false) public List<Invoice> findByDueDateBeforeAndInvoiceState(Date date,InvoiceState invoiceState);

Fixed version (ground truth):
@RestResource(exported=false) List<Invoice> findByDueDateBeforeAndInvoiceState(Date date,InvoiceState invoiceState);
Program: 165419
Project: 165419
Buggy source:
/** 
 * Writes the information in the exception as a JSON object like this: { "employee.salary": { "defaultMessage": "Cannot construct float from this value"}} to a writer.
 * @param ex           The exception thrown by Jackson
 * @param writer The output writer to write to.
 */
protected void writeExceptionAsJsonToOutput(InvalidFormatException ex,Writer writer){
  JsonGenerator jsonGenerator=jsonGeneratorFactory.createGenerator(writer);
  jsonGenerator.writeStartObject().writeStartArray("String_Node_Str").writeStartObject().write("String_Node_Str",getFieldPath(ex)).write("String_Node_Str",ex.getOriginalMessage()).writeEnd().writeEnd().writeEnd().close();
}

Fixed version (ground truth):
/** 
 * Writes the information in the exception as a JSON object like this: { "employee.salary": { "defaultMessage": "Cannot construct float from this value"}} to a writer.
 * @param ex     The exception thrown by Jackson
 * @param writer The output writer to write to.
 */
protected void writeExceptionAsJsonToOutput(InvalidFormatException ex,Writer writer){
  JsonGenerator jsonGenerator=jsonGeneratorFactory.createGenerator(writer);
  jsonGenerator.writeStartObject().writeStartArray("String_Node_Str").writeStartObject().write("String_Node_Str",getFieldPath(ex)).write("String_Node_Str",ex.getOriginalMessage()).writeEnd().writeEnd().writeEnd().close();
}
Program: 165420
Project: 165420
Buggy source:
@Override public ModelAndView resolveException(HttpServletRequest request,HttpServletResponse response,Object handler,Exception ex){
  if (HttpMessageNotReadableException.class.isAssignableFrom(ex.getClass())) {
    if (ex.getCause() != null && InvalidFormatException.class.isAssignableFrom(ex.getCause().getClass())) {
      Writer outputWriter;
      try {
        outputWriter=response.getWriter();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str",e);
      }
      response.setStatus(HttpStatus.BAD_REQUEST.value());
      response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
      writeExceptionAsJsonToOutput((InvalidFormatException)ex.getCause(),outputWriter);
      try {
        outputWriter.flush();
        outputWriter.close();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str",e);
      }
      return new ModelAndView();
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public ModelAndView resolveException(HttpServletRequest request,HttpServletResponse response,Object handler,Exception ex){
  if (HttpMessageNotReadableException.class.isAssignableFrom(ex.getClass()) && ex.getCause() != null && InvalidFormatException.class.isAssignableFrom(ex.getCause().getClass())) {
    Writer outputWriter;
    try {
      outputWriter=response.getWriter();
    }
 catch (    IOException e) {
      throw new IllegalStateException("String_Node_Str",e);
    }
    response.setStatus(HttpStatus.BAD_REQUEST.value());
    response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
    writeExceptionAsJsonToOutput((InvalidFormatException)ex.getCause(),outputWriter);
    try {
      outputWriter.flush();
      outputWriter.close();
    }
 catch (    IOException e) {
      throw new IllegalStateException("String_Node_Str",e);
    }
    return new ModelAndView();
  }
  return null;
}
Program: 165421
Project: 165421
Buggy source:
@RestResource(exported=false) @PreAuthorize("String_Node_Str") List<Employee> findByLeaveDateAndCredential_Enabled(Date leaveDate,Boolean credential_Enabled);

Fixed version (ground truth):
@RestResource(exported=false) @PreAuthorize("String_Node_Str") List<Employee> findByLeaveDateAndCredential_Enabled(Date leaveDate,Boolean credentialEnabled);
Program: 165422
Project: 165422
Buggy source:
/** 
 * If no user is found but the e-mail ends with techdev.de, a new but deactivated user is created in the database.
 * @param token The open id token obtained from the login
 * @return User details if found.
 * @throws UsernameNotFoundException
 */
@Override @Transactional(noRollbackFor=UsernameNotFoundException.class) public UserDetails loadUserDetails(OpenIDAuthenticationToken token) throws UsernameNotFoundException {
  Map<String,String> attributes=convertOpenIdAttributesToMap(token);
  String email=attributes.get("String_Node_Str");
  log.debug("String_Node_Str",email);
  Credential credential=credentialRepository.findByEmail(email);
  if (credential == null) {
    String errorMessage=handleNullCredential(attributes);
    throw new UsernameNotFoundException(errorMessage);
  }
  if (!credential.getEnabled()) {
    log.debug("String_Node_Str",email);
    throw new UsernameNotFoundException("String_Node_Str" + email + "String_Node_Str");
  }
  return new TrackrUser(credential.getEmail(),credential.getEnabled(),credential.getAuthorities(),credential.getId(),Locale.forLanguageTag(credential.getLocale()));
}

Fixed version (ground truth):
/** 
 * If no user is found but the e-mail ends with techdev.de, a new but deactivated user is created in the database.
 * @param token The open id token obtained from the login
 * @return User details if found.
 * @throws UsernameNotFoundException
 */
@Override @Transactional(noRollbackFor=UsernameNotFoundException.class) public UserDetails loadUserDetails(OpenIDAuthenticationToken token){
  Map<String,String> attributes=convertOpenIdAttributesToMap(token);
  String email=attributes.get("String_Node_Str");
  log.debug("String_Node_Str",email);
  Credential credential=credentialRepository.findByEmail(email);
  if (credential == null) {
    String errorMessage=handleNullCredential(attributes);
    throw new UsernameNotFoundException(errorMessage);
  }
  if (!credential.getEnabled()) {
    log.debug("String_Node_Str",email);
    throw new UsernameNotFoundException("String_Node_Str" + email + "String_Node_Str");
  }
  return new TrackrUser(credential.getEmail(),credential.getEnabled(),credential.getAuthorities(),credential.getId(),Locale.forLanguageTag(credential.getLocale()));
}
Program: 165423
Project: 165423
Buggy source:
@Override public void sendMail(SimpleMailMessage mailMessage){
}

Fixed version (ground truth):
@Override public void sendMail(SimpleMailMessage mailMessage){
  mailSender.send(mailMessage);
}
Program: 165424
Project: 165424
Buggy source:
@Override public boolean equals(Object o){
  if (this == o)   return true;
  if (o == null || getClass() != o.getClass())   return false;
  CustomWorkTime that=(CustomWorkTime)o;
  if (date != null ? !date.equals(that.date) : that.date != null)   return false;
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  CustomWorkTime that=(CustomWorkTime)o;
  return !(date != null ? !date.equals(that.date) : that.date != null);
}
Program: 165425
Project: 165425
Buggy source:
@Bean public Properties mailProperties(){
  PropertiesFactoryBean propertiesFactoryBean=new PropertiesFactoryBean();
  propertiesFactoryBean.setLocation(mailPropertiesResource);
  try {
    propertiesFactoryBean.afterPropertiesSet();
    return propertiesFactoryBean.getObject();
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
@Bean public Properties mailProperties(){
  PropertiesFactoryBean propertiesFactoryBean=new PropertiesFactoryBean();
  propertiesFactoryBean.setLocation(mailPropertiesResource);
  try {
    propertiesFactoryBean.afterPropertiesSet();
    return propertiesFactoryBean.getObject();
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
}
Program: 165426
Project: 165426
Buggy source:
@Override public ModelAndView resolveException(HttpServletRequest request,HttpServletResponse response,Object handler,Exception ex){
  if (HttpMessageNotReadableException.class.isAssignableFrom(ex.getClass())) {
    if (ex.getCause() != null && InvalidFormatException.class.isAssignableFrom(ex.getCause().getClass())) {
      Writer outputWriter;
      try {
        outputWriter=response.getWriter();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str");
      }
      response.setStatus(HttpStatus.BAD_REQUEST.value());
      response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
      writeExceptionAsJsonToOutput((InvalidFormatException)ex.getCause(),outputWriter);
      try {
        outputWriter.flush();
        outputWriter.close();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str");
      }
      return new ModelAndView();
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public ModelAndView resolveException(HttpServletRequest request,HttpServletResponse response,Object handler,Exception ex){
  if (HttpMessageNotReadableException.class.isAssignableFrom(ex.getClass())) {
    if (ex.getCause() != null && InvalidFormatException.class.isAssignableFrom(ex.getCause().getClass())) {
      Writer outputWriter;
      try {
        outputWriter=response.getWriter();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str",e);
      }
      response.setStatus(HttpStatus.BAD_REQUEST.value());
      response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
      writeExceptionAsJsonToOutput((InvalidFormatException)ex.getCause(),outputWriter);
      try {
        outputWriter.flush();
        outputWriter.close();
      }
 catch (      IOException e) {
        throw new IllegalStateException("String_Node_Str",e);
      }
      return new ModelAndView();
    }
  }
  return null;
}
Program: 165427
Project: 165427
Buggy source:
@RequestMapping(method=RequestMethod.GET) public void getTranslations(Locale locale,HttpServletResponse response){
  ClassPathResource translationFile=new ClassPathResource("String_Node_Str" + locale.toLanguageTag() + "String_Node_Str");
  response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
  response.setCharacterEncoding("String_Node_Str");
  try {
    IOUtils.copy(translationFile.getInputStream(),response.getWriter(),"String_Node_Str");
    response.setStatus(200);
    response.getWriter().close();
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
@RequestMapping(method=RequestMethod.GET) public void getTranslations(Locale locale,HttpServletResponse response){
  ClassPathResource translationFile=new ClassPathResource("String_Node_Str" + locale.toLanguageTag() + "String_Node_Str");
  response.setHeader("String_Node_Str",MediaType.APPLICATION_JSON_VALUE);
  response.setCharacterEncoding("String_Node_Str");
  try {
    IOUtils.copy(translationFile.getInputStream(),response.getWriter(),"String_Node_Str");
    response.setStatus(200);
    response.getWriter().close();
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
}
Program: 165428
Project: 165428
Buggy source:
/** 
 * @return An executor that has admin rights.
 */
@Bean public Executor taskExecutor(){
  ScheduledExecutorService delegateExecutor=Executors.newSingleThreadScheduledExecutor();
  SecurityContext schedulerContext=createSchedulerSecurityContext();
  return new DelegatingSecurityContextScheduledExecutorService(delegateExecutor,schedulerContext);
}

Fixed version (ground truth):
/** 
 * @return An executor that has admin rights.
 */
@Bean(destroyMethod="String_Node_Str") public Executor taskExecutor(){
  ScheduledExecutorService delegateExecutor=Executors.newSingleThreadScheduledExecutor();
  SecurityContext schedulerContext=createSchedulerSecurityContext();
  return new DelegatingSecurityContextScheduledExecutorService(delegateExecutor,schedulerContext);
}
Program: 165429
Project: 165429
Buggy source:
public Company findByCompanyId(@Param("String_Node_Str") String companyId);

Fixed version (ground truth):
public Company findByCompanyId(@Param("String_Node_Str") Long companyId);
Program: 165430
Project: 165430
Buggy source:
public String next(){
  while (!transitionsPath.isEmpty()) {
    TransitionLevel currentLevel=transitionsPath.peek();
    State state=currentLevel.getState();
    if (!state.isAccept()) {
      addNextTransitionLevel(currentLevel);
      continue;
    }
 else {
      currentValue="String_Node_Str";
      for (int i=0; i < transitionsPath.size() - 1; ++i) {
        TransitionLevel transitionLevel=transitionsPath.get(i);
        currentValue+=transitionLevel.getCurrentChar();
      }
      jumpToNextPath();
      break;
    }
  }
  return currentValue;
}

Fixed version (ground truth):
public String next(){
  while (!transitionsPath.isEmpty()) {
    TransitionLevel currentLevel=transitionsPath.peek();
    State state=currentLevel.getState();
    if (!state.isAccept()) {
      addNextTransitionLevel(currentLevel);
      ignoreLastChar=true;
      continue;
    }
 else {
      currentValue="String_Node_Str";
      for (int i=0; i < transitionsPath.size() - 1; ++i) {
        TransitionLevel transitionLevel=transitionsPath.get(i);
        currentValue+=transitionLevel.getCurrentChar();
      }
      TransitionLevel transitionLevel=transitionsPath.lastElement();
      char nextChar=transitionLevel.getCurrentChar();
      if (nextChar != 0) {
        if (ignoreLastChar) {
          ignoreLastChar=false;
        }
 else {
          currentValue+=nextChar;
        }
      }
      jumpToNextPath();
      break;
    }
  }
  return currentValue;
}
Program: 165431
Project: 165431
Buggy source:
@Override public void onItemClick(AdapterView<?> parent,View view,int position,long id){
  Repository.selectedCommit=((CommitsAdapter)listView.getAdapter()).getItem(position);
  startActivity(new Intent(getActivity(),DiffActivity.class));
}

Fixed version (ground truth):
@Override public void onItemClick(AdapterView<?> parent,View view,int position,long id){
  Repository.selectedCommit=((CommitsAdapter)((HeaderViewListAdapter)listView.getAdapter()).getWrappedAdapter()).getItem(position - 1);
  startActivity(new Intent(getActivity(),DiffActivity.class));
}
Program: 165432
Project: 165432
Buggy source:
@Override public boolean onTouchEvent(MotionEvent event){
  Rect bounds;
  if (event.getAction() == MotionEvent.ACTION_DOWN) {
    actionX=(int)event.getX();
    actionY=(int)event.getY();
    if (drawableBottom != null && drawableBottom.getBounds().contains(actionX,actionY)) {
      playSoundEffect(android.view.SoundEffectConstants.CLICK);
      clickListener.onClick(DrawableClickListener.DrawablePosition.BOTTOM);
      return super.onTouchEvent(event);
    }
    if (drawableTop != null && drawableTop.getBounds().contains(actionX,actionY)) {
      playSoundEffect(android.view.SoundEffectConstants.CLICK);
      clickListener.onClick(DrawableClickListener.DrawablePosition.TOP);
      return super.onTouchEvent(event);
    }
    if (drawableLeft != null) {
      bounds=null;
      bounds=drawableLeft.getBounds();
      int x, y;
      int extraTapArea=(int)(13 * getResources().getDisplayMetrics().density + 0.5);
      x=actionX;
      y=actionY;
      if (!bounds.contains(actionX,actionY)) {
        x=(int)(actionX - extraTapArea);
        y=(int)(actionY - extraTapArea);
        if (x <= 0)         x=actionX;
        if (y <= 0)         y=actionY;
        if (x < y)         y=x;
      }
      if (bounds.contains(x,y) && clickListener != null) {
        playSoundEffect(android.view.SoundEffectConstants.CLICK);
        clickListener.onClick(DrawableClickListener.DrawablePosition.LEFT);
        event.setAction(MotionEvent.ACTION_CANCEL);
        return false;
      }
    }
    if (drawableRight != null) {
      bounds=null;
      bounds=drawableRight.getBounds();
      int x, y;
      int extraTapArea=13;
      x=(int)(actionX + extraTapArea);
      y=(int)(actionY - extraTapArea);
      x=getWidth() - x;
      if (x <= 0)       x+=extraTapArea;
      if (y <= 0)       y=actionY;
      if (bounds.contains(x,y) && clickListener != null) {
        playSoundEffect(android.view.SoundEffectConstants.CLICK);
        clickListener.onClick(DrawableClickListener.DrawablePosition.RIGHT);
        event.setAction(MotionEvent.ACTION_CANCEL);
        return false;
      }
      return super.onTouchEvent(event);
    }
  }
  return super.onTouchEvent(event);
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(MotionEvent event){
  Rect bounds;
  if (event.getAction() == MotionEvent.ACTION_DOWN) {
    actionX=(int)event.getX();
    actionY=(int)event.getY();
    if (getText().length() > 0) {
      bounds=this.getCompoundDrawables()[2].getBounds();
      int x, y;
      int extraTapArea=13;
      x=(int)(actionX + extraTapArea);
      y=(int)(actionY - extraTapArea);
      x=getWidth() - x;
      if (x <= 0)       x+=extraTapArea;
      if (y <= 0)       y=actionY;
      if (bounds.contains(x,y) && clickListener != null) {
        playSoundEffect(android.view.SoundEffectConstants.CLICK);
        clickListener.onClick(DrawableClickListener.DrawablePosition.RIGHT);
        event.setAction(MotionEvent.ACTION_CANCEL);
        return false;
      }
      return super.onTouchEvent(event);
    }
  }
  return super.onTouchEvent(event);
}
Program: 165433
Project: 165433
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_commits,container,false);
  ButterKnife.inject(this,view);
  listView.setOnItemClickListener(this);
  swipeLayout.setOnRefreshListener(this);
  swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright,android.R.color.holo_green_light,android.R.color.holo_orange_light,android.R.color.holo_red_light);
  if (Repository.selectedProject != null)   loadData();
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.fragment_commits,container,false);
  ButterKnife.inject(this,view);
  listView.setOnItemClickListener(this);
  repoUrl=new EditText(getActivity());
  repoUrl.setClickable(true);
  repoUrl.setCursorVisible(false);
  repoUrl.setCompoundDrawablesWithIntrinsicBounds(0,0,R.drawable.ic_action_copy,0);
  repoUrl.setFocusable(false);
  repoUrl.setFocusableInTouchMode(false);
  repoUrl.setInputType(InputType.TYPE_TEXT_VARIATION_URI);
  repoUrl.setMaxLines(1);
  repoUrl.setOnClickListener(this);
  listView.addHeaderView(repoUrl);
  swipeLayout.setOnRefreshListener(this);
  swipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright,android.R.color.holo_green_light,android.R.color.holo_orange_light,android.R.color.holo_red_light);
  if (Repository.selectedProject != null)   loadData();
  return view;
}
Program: 165435
Project: 165435
Buggy source:
@Override public Thumb[] scrapeFanart(){
  if (!hasRunScrapeExtraFanart && scrapedExtraFanart == null) {
    scrapeExtraFanart();
  }
  Element posterElement=document.select("String_Node_Str").first();
  if (posterElement != null) {
    Thumb[] posterThumbs=new Thumb[1];
    try {
      posterThumbs[0]=new Thumb(fixIPAddressOfData18(posterElement.attr("String_Node_Str")));
      return ArrayUtils.addAll(scrapedExtraFanart,posterThumbs);
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
      if (scrapedExtraFanart != null)       return scrapedExtraFanart;
 else       return new Thumb[0];
    }
  }
  if (scrapedExtraFanart != null)   return scrapedExtraFanart;
 else   return new Thumb[0];
}

Fixed version (ground truth):
@Override public Thumb[] scrapeFanart(){
  if (!hasRunScrapeExtraFanart && scrapedExtraFanart == null) {
    scrapeExtraFanart();
  }
  Element posterElement=document.select("String_Node_Str").first();
  if (posterElement != null) {
    Thumb[] posterThumbs=new Thumb[1];
    try {
      posterThumbs[0]=new Thumb(fixIPAddressOfData18(posterElement.attr("String_Node_Str")));
      posterThumbs[0].setViewerURL(new URL("String_Node_Str"));
      return ArrayUtils.addAll(scrapedExtraFanart,posterThumbs);
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
      if (scrapedExtraFanart != null)       return scrapedExtraFanart;
 else       return new Thumb[0];
    }
  }
  if (scrapedExtraFanart != null)   return scrapedExtraFanart;
 else   return new Thumb[0];
}
Program: 165437
Project: 165437
Buggy source:
@Override public ArrayList<Actor> scrapeActors(){
  Elements actorElements=document.select("String_Node_Str");
  ArrayList<Actor> actorList=new ArrayList<>();
  if (actorElements != null) {
    for (    Element currentActorElement : actorElements) {
      String actorName=currentActorElement.attr("String_Node_Str");
      String actorThumbnail=currentActorElement.attr("String_Node_Str");
      if (actorThumbnail != null && !actorThumbnail.equals("String_Node_Str")) {
        try {
          actorThumbnail=actorThumbnail.replaceFirst(Pattern.quote("String_Node_Str"),"String_Node_Str");
          actorList.add(new Actor(actorName,null,new Thumb(actorThumbnail)));
        }
 catch (        MalformedURLException e) {
          actorList.add(new Actor(actorName,null,null));
          e.printStackTrace();
        }
      }
 else {
        actorList.add(new Actor(actorName,null,null));
      }
    }
  }
  Elements otherActors=document.select("String_Node_Str");
  if (otherActors != null) {
    for (    Element element : otherActors) {
      String actorName=element.attr("String_Node_Str");
      actorName=element.childNode(0).toString();
      actorList.add(new Actor(actorName,null,null));
    }
  }
  return actorList;
}

Fixed version (ground truth):
@Override public ArrayList<Actor> scrapeActors(){
  Elements actorElements=document.select("String_Node_Str");
  ArrayList<Actor> actorList=new ArrayList<>();
  if (actorElements != null) {
    for (    Element currentActorElement : actorElements) {
      String actorName=currentActorElement.attr("String_Node_Str");
      String actorThumbnailURL=currentActorElement.attr("String_Node_Str");
      if (actorThumbnailURL != null && !actorThumbnailURL.equals("String_Node_Str")) {
        try {
          actorThumbnailURL=actorThumbnailURL.replaceFirst(Pattern.quote("String_Node_Str"),"String_Node_Str");
          Thumb actorThumbnail=new Thumb(actorThumbnailURL);
          actorThumbnail.setViewerURL(new URL("String_Node_Str"));
          actorList.add(new Actor(actorName,null,actorThumbnail));
        }
 catch (        MalformedURLException e) {
          actorList.add(new Actor(actorName,null,null));
          e.printStackTrace();
        }
      }
 else {
        actorList.add(new Actor(actorName,null,null));
      }
    }
  }
  Elements otherActors=document.select("String_Node_Str");
  if (otherActors != null) {
    for (    Element element : otherActors) {
      String actorName=element.attr("String_Node_Str");
      actorName=element.childNode(0).toString();
      actorList.add(new Actor(actorName,null,null));
    }
  }
  return actorList;
}
Program: 165438
Project: 165438
Buggy source:
@Override public Runtime scrapeRuntime(){
  Element lengthElement=document.select("String_Node_Str").first();
  String lengthText=lengthElement.text();
  if (lengthText.length() > 0) {
    return new moviescraper.doctord.model.dataitem.Runtime(lengthText);
  }
 else   return new moviescraper.doctord.model.dataitem.Runtime("String_Node_Str");
}

Fixed version (ground truth):
@Override public Runtime scrapeRuntime(){
  Element lengthElement=document.select("String_Node_Str").first();
  String lengthText=lengthElement.text();
  if (lengthText.length() > 0) {
    return new Runtime(lengthText);
  }
 else   return new Runtime("String_Node_Str");
}
Program: 165439
Project: 165439
Buggy source:
public boolean isStringValueEmpty(){
  String toStringValue=this.toString();
  toStringValue.replace("String_Node_Str","String_Node_Str");
  if (toStringValue.contains("String_Node_Str"))   return false;
 else   return true;
}

Fixed version (ground truth):
public boolean isStringValueEmpty(){
  String toStringValue=this.toString();
  if (toStringValue.contains("String_Node_Str"))   return false;
 else   return true;
}
Program: 165440
Project: 165440
Buggy source:
SwingWorker<Void,Void> getWorkerByScraperName(SiteParsingProfile scraper){
  SwingWorker<Void,Void> worker=runningWorkers.get(scraper.getDataItemSourceName());
  return worker;
}

Fixed version (ground truth):
private SwingWorker<Void,Void> getWorkerByScraperName(SiteParsingProfile scraper){
  SwingWorker<Void,Void> worker=runningWorkers.get(scraper.getDataItemSourceName());
  return worker;
}
Program: 165441
Project: 165441
Buggy source:
private SwingWorker<Void,Void> getWorkerByScraperName(SiteParsingProfile scraper){
  SwingWorker<Void,Void> worker=runningWorkers.get(scraper.getDataItemSourceName());
  return worker;
}

Fixed version (ground truth):
SwingWorker<Void,Void> getWorkerByScraperName(SiteParsingProfile scraper){
  SwingWorker<Void,Void> worker=runningWorkers.get(scraper.getDataItemSourceName());
  return worker;
}