Program: 61539
Project: 61539
Buggy source:
/** 
 * Generates and runs evosuite test cases 
 */
public ProgramVariantValidationResult runTestFromEvoSuite(ProgramVariant currentVariant,ProjectRepairFacade projectFacade,boolean runOverOriginal) throws Exception {
  log.info("String_Node_Str" + currentVariant.currentMutatorIdentifier());
  log.debug("String_Node_Str" + ((runOverOriginal) ? "String_Node_Str" : "String_Node_Str"));
  String sufix=(runOverOriginal) ? "String_Node_Str" : ("String_Node_Str" + currentVariant.getId());
  EvoSuiteFacade fev=new EvoSuiteFacade();
  String testEScodepath=projectFacade.getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str") + File.separator + sufix);
  File esPath=new File(testEScodepath);
  log.info("String_Node_Str" + esPath);
  String classpathForCompile="String_Node_Str";
  classpathForCompile=projectFacade.getProperties().getDependenciesString() + File.pathSeparator + projectFacade.getOutDirWithPrefix(currentVariant.currentMutatorIdentifier())+ File.pathSeparator+ new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ projectFacade.getOutDirWithPrefix(currentVariant.DEFAULT_ORIGINAL_VARIANT);
  String outPutTest=projectFacade.getOutDirWithPrefix("String_Node_Str" + sufix);
  List<String> testGeneratedToRun=new ArrayList<String>();
  if (!runOverOriginal || generatedTestCache.isEmpty()) {
    log.debug("String_Node_Str");
    boolean executed=fev.runEvosuite(currentVariant,projectFacade,testEScodepath,runOverOriginal);
    Collection<File> files=FileUtils.listFiles(esPath,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
    for (    File file : files) {
      testGeneratedToRun.add(file.getAbsolutePath());
    }
    log.info("String_Node_Str" + classpathForCompile);
    String javaPath=ConfigurationProperties.getProperty("String_Node_Str");
    List<String> command=new ArrayList<String>();
    command.add(javaPath + File.separator + "String_Node_Str");
    command.add("String_Node_Str");
    command.add(classpathForCompile);
    command.add("String_Node_Str");
    File fout=new File(outPutTest);
    fout.mkdirs();
    command.add(outPutTest);
    for (    String testPath : testGeneratedToRun) {
      command.add(testPath);
    }
    fev.runProcess(command.toArray(new String[command.size()]));
    if (overOriginal) {
      generatedTestCache.addAll(testGeneratedToRun);
    }
  }
 else {
    log.debug("String_Node_Str" + generatedTestCache);
    testGeneratedToRun.addAll(generatedTestCache);
  }
  List<String> changed=currentVariant.computeAffectedClassesByOperatos().stream().map(e -> e.getQualifiedName()).collect(Collectors.toList());
  log.debug("String_Node_Str" + testGeneratedToRun);
  log.debug("String_Node_Str" + changed);
  List<String> testToExecute=new ArrayList<>();
  for (  String f : testGeneratedToRun) {
    String qualifiedTestName=f.replace("String_Node_Str","String_Node_Str").replace(esPath.toString(),"String_Node_Str").replace("String_Node_Str","String_Node_Str").replace(File.separator,"String_Node_Str");
    if (!qualifiedTestName.endsWith(EvoSuiteFacade.EVOSUITE_scaffolding_SUFFIX) && changed.contains(qualifiedTestName.replace(EvoSuiteFacade.EVOSUITE_SUFFIX,"String_Node_Str"))) {
      testToExecute.add(qualifiedTestName);
    }
  }
  String classpathForRunTest=classpathForCompile + (File.pathSeparator) + outPutTest;
  log.info("String_Node_Str" + classpathForRunTest);
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  ProgramVariantValidationResult evoResult=evoProcess.executeRegressionTesting(Converters.toURLArray(classpathForRunTest.split(File.pathSeparator)),testToExecute);
  return evoResult;
}

Fixed version (ground truth):
/** 
 * Generates and runs evosuite test cases 
 */
public ProgramVariantValidationResult runTestFromEvoSuite(ProgramVariant currentVariant,ProjectRepairFacade projectFacade,boolean runOverOriginal) throws Exception {
  log.info("String_Node_Str" + currentVariant.currentMutatorIdentifier());
  log.debug("String_Node_Str" + ((runOverOriginal) ? "String_Node_Str" : "String_Node_Str"));
  String sufix=(runOverOriginal) ? "String_Node_Str" : ("String_Node_Str" + currentVariant.getId());
  EvoSuiteFacade fev=new EvoSuiteFacade();
  String testEScodepath=projectFacade.getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str") + File.separator + sufix);
  File esPath=new File(testEScodepath);
  log.info("String_Node_Str" + esPath);
  String classpathForCompile="String_Node_Str";
  classpathForCompile=projectFacade.getProperties().getDependenciesString() + File.pathSeparator + projectFacade.getOutDirWithPrefix(currentVariant.currentMutatorIdentifier())+ File.pathSeparator+ new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ projectFacade.getOutDirWithPrefix(currentVariant.DEFAULT_ORIGINAL_VARIANT);
  String outPutTest=projectFacade.getOutDirWithPrefix("String_Node_Str" + sufix);
  List<String> testGeneratedToRun=new ArrayList<String>();
  if (!runOverOriginal || generatedTestCache.isEmpty()) {
    log.debug("String_Node_Str");
    boolean executed=fev.runEvosuite(currentVariant,projectFacade,testEScodepath,runOverOriginal);
    Collection<File> files=FileUtils.listFiles(esPath,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
    for (    File file : files) {
      testGeneratedToRun.add(file.getAbsolutePath());
    }
    log.info("String_Node_Str" + classpathForCompile);
    String javaPath=ConfigurationProperties.getProperty("String_Node_Str");
    List<String> command=new ArrayList<String>();
    command.add(javaPath + File.separator + "String_Node_Str");
    command.add("String_Node_Str");
    command.add(classpathForCompile);
    command.add("String_Node_Str");
    File fout=new File(outPutTest);
    fout.mkdirs();
    command.add(outPutTest);
    for (    String testPath : testGeneratedToRun) {
      command.add(testPath);
    }
    fev.runProcess(command.toArray(new String[command.size()]));
    if (runOverOriginal) {
      generatedTestCache.addAll(testGeneratedToRun);
    }
  }
 else {
    log.debug("String_Node_Str" + generatedTestCache);
    testGeneratedToRun.addAll(generatedTestCache);
  }
  List<String> changed=currentVariant.computeAffectedClassesByOperatos().stream().map(e -> e.getQualifiedName()).collect(Collectors.toList());
  log.debug("String_Node_Str" + testGeneratedToRun);
  log.debug("String_Node_Str" + changed);
  List<String> testToExecute=new ArrayList<>();
  for (  String f : testGeneratedToRun) {
    String qualifiedTestName=f.replace("String_Node_Str","String_Node_Str").replace(esPath.toString(),"String_Node_Str").replace("String_Node_Str","String_Node_Str").replace(File.separator,"String_Node_Str");
    if (!qualifiedTestName.endsWith(EvoSuiteFacade.EVOSUITE_scaffolding_SUFFIX) && changed.contains(qualifiedTestName.replace(EvoSuiteFacade.EVOSUITE_SUFFIX,"String_Node_Str"))) {
      testToExecute.add(qualifiedTestName);
    }
  }
  String classpathForRunTest=classpathForCompile + (File.pathSeparator) + outPutTest;
  log.info("String_Node_Str" + classpathForRunTest);
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  ProgramVariantValidationResult evoResult=evoProcess.executeRegressionTesting(Converters.toURLArray(classpathForRunTest.split(File.pathSeparator)),testToExecute);
  return evoResult;
}