Program: 24278
Project: 24278
Buggy source:
public static void main(String[] args) throws Exception {
  OptionsParser op=new OptionsParser(Opts.class);
  op.doParse(args);
  if (Opts.ace)   Opts.debug=true;
  if (Opts.propertiesFile != null)   ARKref.loadProperties(Opts.propertiesFile);
  if (!Opts.stdin && (Opts.input == null || Opts.input.length == 0)) {
    System.err.println("String_Node_Str" + "String_Node_Str");
    System.exit(-1);
  }
  U.pl("String_Node_Str" + op.doGetOptionPairs());
  if (Opts.stdin) {
    File tmpFile=File.createTempFile("String_Node_Str","String_Node_Str");
    tmpFile.deleteOnExit();
    String tmpPath=tmpFile.getAbsolutePath();
    String tmpPrefix=tmpPath.substring(0,tmpPath.lastIndexOf("String_Node_Str"));
    File tmpParseFile=new File(tmpPrefix + "String_Node_Str");
    tmpParseFile.deleteOnExit();
    File tmpSSTFile=new File(tmpPrefix + "String_Node_Str");
    tmpSSTFile.deleteOnExit();
    File tmpSentFile=new File(tmpPrefix + "String_Node_Str");
    tmpSentFile.deleteOnExit();
    PrintWriter pw=new PrintWriter(new FileOutputStream(tmpFile));
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    String buf;
    while ((buf=br.readLine()) != null) {
      pw.println(buf);
    }
    pw.close();
    Opts.input=new String[1];
    Opts.input[0]=tmpFile.getAbsolutePath();
  }
 else {
  }
  boolean dots=Opts.input.length > 1;
  for (  String path : Opts.input) {
    path=Preprocess.shortPath(path);
    if (dots)     System.err.print("String_Node_Str");
    U.pl("String_Node_Str" + path + "String_Node_Str");
    Document d;
    if (Opts.ace) {
      if (Opts.forcePre || !Preprocess.alreadyPreprocessed(path)) {
        AcePreprocess.go(path);
        Preprocess.go(path);
      }
      d=Document.loadFiles(path);
      AceDocument aceDoc=AceDocument.load(path);
      d.ensureSurfaceSentenceLoad(path);
      FindAceMentions.go(d,aceDoc);
      Resolve.go(d);
      RefsToEntities.go(d);
      Eval.pairwise(aceDoc,d.entGraph());
    }
 else {
      if (Opts.forcePre || !Preprocess.alreadyPreprocessed(path)) {
        Preprocess.go(path);
      }
      d=Document.loadFiles(path);
      FindMentions.go(d);
      Resolve.go(d);
      RefsToEntities.go(d);
    }
    if (!Opts.debug) {
      PrintWriter pw=null;
      if (Opts.stdin) {
        pw=new PrintWriter(System.out);
      }
 else {
        String filename=path + "String_Node_Str";
        File file=new File(filename);
        pw=new PrintWriter(new FileOutputStream(file));
        U.pl("String_Node_Str" + filename);
      }
      WriteEntityXml.writeTaggedDocument(d,pw);
    }
  }
  if (dots)   System.err.println("String_Node_Str");
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  OptionsParser op=new OptionsParser(Opts.class);
  op.doParse(args);
  if (Opts.ace)   Opts.debug=true;
  if (Opts.propertiesFile != null) {
    ARKref.setPropertiesPath(Opts.propertiesFile);
    ARKref.loadProperties(Opts.propertiesFile);
  }
  if (!Opts.stdin && (Opts.input == null || Opts.input.length == 0)) {
    System.err.println("String_Node_Str" + "String_Node_Str");
    System.exit(-1);
  }
  U.pl("String_Node_Str" + op.doGetOptionPairs());
  if (Opts.stdin) {
    File tmpFile=File.createTempFile("String_Node_Str","String_Node_Str");
    tmpFile.deleteOnExit();
    String tmpPath=tmpFile.getAbsolutePath();
    String tmpPrefix=tmpPath.substring(0,tmpPath.lastIndexOf("String_Node_Str"));
    File tmpParseFile=new File(tmpPrefix + "String_Node_Str");
    tmpParseFile.deleteOnExit();
    File tmpSSTFile=new File(tmpPrefix + "String_Node_Str");
    tmpSSTFile.deleteOnExit();
    File tmpSentFile=new File(tmpPrefix + "String_Node_Str");
    tmpSentFile.deleteOnExit();
    PrintWriter pw=new PrintWriter(new FileOutputStream(tmpFile));
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    String buf;
    while ((buf=br.readLine()) != null) {
      pw.println(buf);
    }
    pw.close();
    Opts.input=new String[1];
    Opts.input[0]=tmpFile.getAbsolutePath();
  }
 else {
  }
  boolean dots=Opts.input.length > 1;
  for (  String path : Opts.input) {
    path=Preprocess.shortPath(path);
    if (dots)     System.err.print("String_Node_Str");
    U.pl("String_Node_Str" + path + "String_Node_Str");
    Document d;
    if (Opts.ace) {
      if (Opts.forcePre || !Preprocess.alreadyPreprocessed(path)) {
        AcePreprocess.go(path);
        Preprocess.go(path);
      }
      d=Document.loadFiles(path);
      AceDocument aceDoc=AceDocument.load(path);
      d.ensureSurfaceSentenceLoad(path);
      FindAceMentions.go(d,aceDoc);
      Resolve.go(d);
      RefsToEntities.go(d);
      Eval.pairwise(aceDoc,d.entGraph());
    }
 else {
      if (Opts.forcePre || !Preprocess.alreadyPreprocessed(path)) {
        Preprocess.go(path);
      }
      d=Document.loadFiles(path);
      FindMentions.go(d);
      Resolve.go(d);
      RefsToEntities.go(d);
    }
    if (!Opts.debug) {
      PrintWriter pw=null;
      if (Opts.stdin) {
        pw=new PrintWriter(System.out);
      }
 else {
        String filename=path + "String_Node_Str";
        File file=new File(filename);
        pw=new PrintWriter(new FileOutputStream(file));
        U.pl("String_Node_Str" + filename);
      }
      WriteEntityXml.writeTaggedDocument(d,pw);
    }
  }
  if (dots)   System.err.println("String_Node_Str");
}