Program: 61201
Project: 61201
Buggy source:
@Override public int run(String[] args) throws Exception {
  addInputOption();
  addOutputOption();
  addOption(addOption(DefaultOptionCreator.overwriteOption().create()));
  addOption("String_Node_Str","String_Node_Str","String_Node_Str",true);
  addOption(buildOption("String_Node_Str","String_Node_Str","String_Node_Str",false,false,String.valueOf(false)));
  addOption("String_Node_Str","String_Node_Str","String_Node_Str",true);
  Map<String,List<String>> parsedArgs=parseArguments(args);
  if (parsedArgs == null) {
    return -1;
  }
  if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION)) {
    HadoopUtil.delete(getConf(),getOutputPath());
  }
  Path model=new Path(getOption("String_Node_Str"));
  HadoopUtil.cacheFiles(model,getConf());
  Job testJob=prepareJob(getInputPath(),getOutputPath(),SequenceFileInputFormat.class,BayesTestMapper.class,Text.class,VectorWritable.class,SequenceFileOutputFormat.class);
  boolean complementary=parsedArgs.containsKey("String_Node_Str");
  testJob.getConfiguration().set(COMPLEMENTARY,String.valueOf(complementary));
  boolean succeeded=testJob.waitForCompletion(true);
  if (!succeeded) {
    return -1;
  }
  Map<Integer,String> labelMap=BayesUtils.readLabelIndex(getConf(),new Path(getOption("String_Node_Str")));
  SequenceFileDirIterable<Text,VectorWritable> dirIterable=new SequenceFileDirIterable<Text,VectorWritable>(getOutputPath(),PathType.LIST,PathFilters.partFilter(),getConf());
  ResultAnalyzer analyzer=new ResultAnalyzer(labelMap.values(),"String_Node_Str");
  analyzeResults(labelMap,dirIterable,analyzer);
  log.info("String_Node_Str",complementary ? "String_Node_Str" : "String_Node_Str",analyzer);
  return 0;
}

Fixed version (ground truth):
@Override public int run(String[] args) throws Exception {
  addInputOption();
  addOutputOption();
  addOption(addOption(DefaultOptionCreator.overwriteOption().create()));
  addOption("String_Node_Str","String_Node_Str","String_Node_Str",true);
  addOption(buildOption("String_Node_Str","String_Node_Str","String_Node_Str",false,false,String.valueOf(false)));
  addOption(buildOption("String_Node_Str","String_Node_Str","String_Node_Str",true,false,String.valueOf(false)));
  addOption("String_Node_Str","String_Node_Str","String_Node_Str",true);
  Map<String,List<String>> parsedArgs=parseArguments(args);
  if (parsedArgs == null) {
    return -1;
  }
  if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION)) {
    HadoopUtil.delete(getConf(),getOutputPath());
  }
  boolean complementary=parsedArgs.containsKey("String_Node_Str");
  boolean sequential=Boolean.parseBoolean(getOption("String_Node_Str"));
  if (sequential) {
    FileSystem fs=FileSystem.get(getConf());
    NaiveBayesModel model=NaiveBayesModel.materialize(new Path(getOption("String_Node_Str")),getConf());
    AbstractNaiveBayesClassifier classifier;
    if (complementary) {
      classifier=new ComplementaryNaiveBayesClassifier(model);
    }
 else {
      classifier=new StandardNaiveBayesClassifier(model);
    }
    SequenceFile.Writer writer=new SequenceFile.Writer(fs,getConf(),getOutputPath(),Text.class,VectorWritable.class);
    SequenceFile.Reader reader=new Reader(fs,getInputPath(),getConf());
    Text key=new Text();
    VectorWritable vw=new VectorWritable();
    while (reader.next(key,vw)) {
      writer.append(key,new VectorWritable(classifier.classifyFull(vw.get())));
    }
    writer.close();
    reader.close();
  }
 else {
    boolean succeeded=runMapReduce(parsedArgs);
    if (!succeeded) {
      return -1;
    }
  }
  Map<Integer,String> labelMap=BayesUtils.readLabelIndex(getConf(),new Path(getOption("String_Node_Str")));
  SequenceFileDirIterable<Text,VectorWritable> dirIterable=new SequenceFileDirIterable<Text,VectorWritable>(getOutputPath(),PathType.LIST,PathFilters.partFilter(),getConf());
  ResultAnalyzer analyzer=new ResultAnalyzer(labelMap.values(),"String_Node_Str");
  analyzeResults(labelMap,dirIterable,analyzer);
  log.info("String_Node_Str",complementary ? "String_Node_Str" : "String_Node_Str",analyzer);
  return 0;
}