Program: 11964
Project: 11964
Buggy source:
public static void main(String[] args) throws Exception {
  initializeConfiguration(config);
  config.junitVersion=JUnitVersion.version3;
  boolean hasFirstArg=(args != null && args.length > 0 && args[0] != null);
  String dirOrFile=hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode;
  List<File> javaFiles=findTargets(config,dirOrFile);
  for (  File javaFile : javaFiles) {
    Stdout.p("String_Node_Str" + javaFile.getAbsolutePath());
  }
  if (confirmToExecute() > 0) {
    return;
  }
  TestCaseGenerator testCaseGenerator=TestCaseGeneratorFactory.create(config);
  FileReader fileReader=FileReaderFactory.create();
  for (  File javaFile : javaFiles) {
    File testFile=null;
    String currentTestCaseSourceCode=null;
    try {
      String testFilePath=javaFile.getAbsolutePath().replaceAll("String_Node_Str","String_Node_Str").replaceFirst(getDirectoryPathOfProductSourceCode(config),getDirectoryPathOfTestSourceCode(config)).replaceFirst("String_Node_Str","String_Node_Str");
      testFile=new File(testFilePath);
      currentTestCaseSourceCode=fileReader.readAsString(testFile);
    }
 catch (    Exception e) {
    }
    String targetSourceCodeString=fileReader.readAsString(javaFile);
    testCaseGenerator.initialize(targetSourceCodeString);
    String testCodeString=null;
    if (currentTestCaseSourceCode != null) {
      testCodeString=testCaseGenerator.getUnifiedVersionTestCaseSourceCode(testCaseGenerator.getTestCaseSourceCodeWithLackingTestMethod(currentTestCaseSourceCode),JUnitVersion.version3);
    }
 else {
      testCodeString=testCaseGenerator.getNewTestCaseSourceCode();
    }
    FileWriterFactory.create(testFile).writeText(testCodeString);
    Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
  }
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  config=getUpdatedConfig(config);
  config.junitVersion=JUnitVersion.version3;
  boolean hasFirstArg=(args != null && args.length > 0 && args[0] != null);
  String dirOrFile=hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode;
  List<File> javaFiles=findTargets(config,dirOrFile);
  for (  File javaFile : javaFiles) {
    Stdout.p("String_Node_Str" + javaFile.getAbsolutePath());
  }
  if (confirmToExecute() > 0) {
    return;
  }
  FileReader fileReader=FileReaderFactory.create();
  for (  File javaFile : javaFiles) {
    File testFile=null;
    String currentTestCaseSourceCode=null;
    try {
      String testFilePath=javaFile.getAbsolutePath().replaceAll("String_Node_Str","String_Node_Str").replaceFirst(getDirectoryPathOfProductSourceCode(config),getDirectoryPathOfTestSourceCode(config)).replaceFirst("String_Node_Str","String_Node_Str");
      testFile=new File(testFilePath);
      currentTestCaseSourceCode=fileReader.readAsString(testFile);
    }
 catch (    Exception e) {
    }
    CurrentLineBreak currentLineBreak=CurrentLineBreakDetector.detect(currentTestCaseSourceCode);
    LineBreakProvider lineBreakProvider=new LineBreakProvider(config,currentLineBreak);
    TestCaseGenerator testCaseGenerator=TestCaseGeneratorFactory.create(config,lineBreakProvider);
    String targetSourceCodeString=fileReader.readAsString(javaFile);
    testCaseGenerator.initialize(targetSourceCodeString);
    String testCodeString=null;
    if (currentTestCaseSourceCode != null) {
      testCodeString=testCaseGenerator.getUnifiedVersionTestCaseSourceCode(testCaseGenerator.getTestCaseSourceCodeWithLackingTestMethod(currentTestCaseSourceCode),JUnitVersion.version3);
    }
 else {
      testCodeString=testCaseGenerator.getNewTestCaseSourceCode();
    }
    testCodeString=standardizeLineBreak(config,testCodeString);
    FileWriterFactory.create(testFile).writeText(testCodeString);
    Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
  }
}