Program: 11966
Project: 11966
Buggy source:
public static void main(String[] args) throws Exception {
  initializeConfiguration(config);
  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) {
    if (isNeedToExclude(javaFile)) {
      continue;
    }
    Stdout.p("String_Node_Str" + javaFile.getAbsolutePath());
  }
  if (confirmToExecute() > 0) {
    return;
  }
  FileReader fileReader=FileReaderFactory.create();
  TestCaseGenerator testCaseGenerator=TestCaseGeneratorFactory.create(config);
  for (  File javaFile : javaFiles) {
    if (isNeedToExclude(javaFile)) {
      continue;
    }
    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.getTestCaseSourceCodeWithLackingTestMethod(currentTestCaseSourceCode);
      if (!testCodeString.equals(currentTestCaseSourceCode)) {
        Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
        FileWriterFactory.create(testFile).writeText(testCodeString);
      }
    }
 else {
      testCodeString=testCaseGenerator.getNewTestCaseSourceCode();
      Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
      FileWriterFactory.create(testFile).writeText(testCodeString);
    }
  }
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  config=getUpdatedConfig(config);
  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) {
    if (isNeedToExclude(javaFile)) {
      continue;
    }
    Stdout.p("String_Node_Str" + javaFile.getAbsolutePath());
  }
  if (confirmToExecute() > 0) {
    return;
  }
  FileReader fileReader=FileReaderFactory.create();
  for (  File javaFile : javaFiles) {
    if (isNeedToExclude(javaFile)) {
      continue;
    }
    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.getTestCaseSourceCodeWithLackingTestMethod(currentTestCaseSourceCode);
      if (!testCodeString.equals(currentTestCaseSourceCode)) {
        testCodeString=standardizeLineBreak(config,testCodeString);
        FileWriterFactory.create(testFile).writeText(testCodeString);
        Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
      }
    }
 else {
      testCodeString=testCaseGenerator.getNewTestCaseSourceCode();
      FileWriterFactory.create(testFile).writeText(testCodeString);
      Stdout.p("String_Node_Str" + testFile.getAbsolutePath());
    }
  }
}