Program: 61626
Project: 61626
Buggy source:
public List<SuspiciousCode> searchGZoltar(String location,List<String> testsToExecute,List<String> toInstrument,HashSet<String> cp) throws FileNotFoundException, IOException {
  candidates.clear();
  failingTestCases.clear();
  Double thr=ConfigurationProperties.getPropertyDouble("String_Node_Str");
  logger.info("String_Node_Str" + thr);
  logger.info(new File(location).getAbsolutePath());
  GZoltar gz=new GZoltar(new File(location).getAbsolutePath());
  for (  String to : toInstrument) {
    gz.addPackageToInstrument(to);
  }
  if (cp != null || !cp.isEmpty()) {
    logger.info("String_Node_Str" + System.getProperty("String_Node_Str"));
    logger.info("String_Node_Str" + cp);
    gz.getClasspaths().addAll(cp);
  }
  for (  String test : testsToExecute) {
    gz.addTestToExecute(test);
  }
  gz.run();
  int[] sum=new int[2];
  for (  TestResult tr : gz.getTestResults()) {
    sum[0]++;
    logger.debug("String_Node_Str" + tr.getName() + "String_Node_Str"+ tr.wasSuccessful());
    sum[1]+=tr.wasSuccessful() ? 0 : 1;
    if (!tr.wasSuccessful()) {
      logger.info("String_Node_Str" + tr.getName());
      failingTestCases.add(tr.getName().split("String_Node_Str")[0]);
    }
    if (tr.getTrace() != null) {
    }
  }
  logger.info("String_Node_Str" + sum[0] + "String_Node_Str"+ sum[1]+ "String_Node_Str"+ gz.getSuspiciousStatements().size());
  DecimalFormat df=new DecimalFormat("String_Node_Str");
  for (  Statement s : gz.getSuspiciousStatements()) {
    String compName=s.getMethod().getParent().getLabel();
    String[] seg=compName.split("String_Node_Str");
    String name=seg[seg.length - 1];
    if (s.getSuspiciousness() > thr && !compName.toLowerCase().endsWith("String_Node_Str") && !name.toLowerCase().startsWith("String_Node_Str") && !name.toLowerCase().startsWith("String_Node_Str")) {
      logger.debug("String_Node_Str" + compName + "String_Node_Str"+ s.getLineNumber()+ "String_Node_Str"+ df.format(s.getSuspiciousness()));
      SuspiciousCode c=new SuspiciousCode(compName,s.getMethod().toString(),s.getLineNumber(),s.getSuspiciousness());
      candidates.add(c);
    }
  }
  Collections.sort(candidates,new ComparatorCandidates());
  return candidates;
}

Fixed version (ground truth):
public List<SuspiciousCode> searchGZoltar(String location,List<String> testsToExecute,List<String> toInstrument,HashSet<String> cp,String srcFolder) throws FileNotFoundException, IOException {
  candidates.clear();
  failingTestCases.clear();
  Double thr=ConfigurationProperties.getPropertyDouble("String_Node_Str");
  logger.info("String_Node_Str" + thr);
  logger.info(new File(location).getAbsolutePath());
  GZoltar gz=new GZoltar(new File(location).getAbsolutePath());
  for (  String to : toInstrument) {
    gz.addPackageToInstrument(to);
  }
  if (cp != null || !cp.isEmpty()) {
    logger.info("String_Node_Str" + System.getProperty("String_Node_Str"));
    logger.info("String_Node_Str" + cp);
    gz.getClasspaths().addAll(cp);
  }
  for (  String test : testsToExecute) {
    gz.addTestToExecute(test);
  }
  gz.run();
  int[] sum=new int[2];
  for (  TestResult tr : gz.getTestResults()) {
    sum[0]++;
    logger.debug("String_Node_Str" + tr.getName() + "String_Node_Str"+ tr.wasSuccessful());
    sum[1]+=tr.wasSuccessful() ? 0 : 1;
    if (!tr.wasSuccessful()) {
      logger.info("String_Node_Str" + tr.getName());
      failingTestCases.add(tr.getName().split("String_Node_Str")[0]);
    }
    if (tr.getTrace() != null) {
    }
  }
  logger.info("String_Node_Str" + sum[0] + "String_Node_Str"+ sum[1]+ "String_Node_Str"+ gz.getSuspiciousStatements().size());
  DecimalFormat df=new DecimalFormat("String_Node_Str");
  for (  Statement s : gz.getSuspiciousStatements()) {
    String compName=s.getMethod().getParent().getLabel();
    if (s.getSuspiciousness() > thr && isSource(compName,srcFolder)) {
      logger.debug("String_Node_Str" + compName + "String_Node_Str"+ s.getLineNumber()+ "String_Node_Str"+ df.format(s.getSuspiciousness()));
      SuspiciousCode c=new SuspiciousCode(compName,s.getMethod().toString(),s.getLineNumber(),s.getSuspiciousness());
      candidates.add(c);
    }
  }
  Collections.sort(candidates,new ComparatorCandidates());
  return candidates;
}