Program: 131755
Project: 131755
Buggy source:
public void run(CommandLine cmd) throws ParseException, IOException {
  DepTreebank depTreebank;
  if (cmd.hasOption("String_Node_Str")) {
    log.info("String_Node_Str");
    String trainPath=cmd.getOptionValue("String_Node_Str");
    int maxSentenceLength=Command.getOptionValue(cmd,"String_Node_Str",Integer.MAX_VALUE);
    int maxNumSentences=Command.getOptionValue(cmd,"String_Node_Str",Integer.MAX_VALUE);
    depTreebank=new DepTreebank(maxSentenceLength,maxNumSentences);
    if (cmd.hasOption("String_Node_Str")) {
      depTreebank.setTreeFilter(new VerbTreeFilter());
    }
    depTreebank.loadPath(trainPath);
    String reduceTags=Command.getOptionValue(cmd,"String_Node_Str","String_Node_Str");
    if ("String_Node_Str".equals(reduceTags)) {
      log.info("String_Node_Str");
      (new Ptb45To17TagReducer()).reduceTags(depTreebank);
    }
 else     if (!"String_Node_Str".equals(reduceTags)) {
      log.info("String_Node_Str" + reduceTags);
      (new FileMapTagReducer(new File(reduceTags))).reduceTags(depTreebank);
    }
  }
 else   if (cmd.hasOption("String_Node_Str")) {
    DmvModel trueModel=SimpleStaticDmvModel.getTwoPosTagInstance();
    long syntheticSeed=123454321;
    if (cmd.hasOption("String_Node_Str")) {
      syntheticSeed=Long.parseLong(cmd.getOptionValue("String_Node_Str"));
    }
    DmvDepTreeGenerator generator=new DmvDepTreeGenerator(trueModel,syntheticSeed);
    int maxNumSentences=Command.getOptionValue(cmd,"String_Node_Str",100);
    depTreebank=generator.getTreebank(maxNumSentences);
  }
 else {
    throw new ParseException("String_Node_Str");
  }
  log.info("String_Node_Str" + depTreebank.size());
  log.info("String_Node_Str" + depTreebank.getNumTokens());
  log.info("String_Node_Str" + depTreebank.getNumTypes());
  SentenceCollection sentences=depTreebank.getSentences();
  printSentences(cmd,depTreebank,sentences);
  if (cmd.hasOption("String_Node_Str")) {
    DmvDantzigWolfeRelaxation dw=DmvDantzigWolfeRelaxationTest.getDw(sentences,100);
    DmvSolution initBoundsSol=updateBounds(cmd,sentences,dw);
    Stopwatch timer=new Stopwatch();
    timer.start();
    RelaxedDmvSolution relaxSol=dw.solveRelaxation();
    timer.stop();
    log.info("String_Node_Str" + Time.totMs(timer));
    log.info("String_Node_Str" + relaxSol.getScore());
    if (initBoundsSol != null) {
      log.info("String_Node_Str" + Math.abs(relaxSol.getScore() - initBoundsSol.getScore()) / Math.abs(initBoundsSol.getScore()));
    }
  }
 else {
    log.info("String_Node_Str");
    Trainer trainer=TrainerFactory.getTrainer(cmd);
    if (trainer instanceof BnBDmvTrainer) {
      BnBDmvTrainer bnb=(BnBDmvTrainer)trainer;
      bnb.init(sentences);
      updateBounds(cmd,sentences,bnb.getRootRelaxation());
      bnb.train();
    }
 else {
      trainer.train(sentences);
    }
    Model model=trainer.getModel();
    log.info("String_Node_Str");
    ViterbiParser parser=TrainerFactory.getEvalParser();
    Evaluator pwEval=new DependencyParserEvaluator(parser,depTreebank);
    pwEval.evaluate(model);
    pwEval.print();
    String printModel=Command.getOptionValue(cmd,"String_Node_Str",null);
    if (printModel != null) {
      BufferedWriter writer=new BufferedWriter(new FileWriter(printModel));
      writer.write("String_Node_Str");
      writer.write(model.toString());
      writer.close();
    }
  }
}

Fixed version (ground truth):
public void run(CommandLine cmd) throws ParseException, IOException {
  DepTreebank depTreebank;
  if (cmd.hasOption("String_Node_Str")) {
    log.info("String_Node_Str");
    String trainPath=cmd.getOptionValue("String_Node_Str");
    int maxSentenceLength=Command.getOptionValue(cmd,"String_Node_Str",Integer.MAX_VALUE);
    int maxNumSentences=Command.getOptionValue(cmd,"String_Node_Str",Integer.MAX_VALUE);
    depTreebank=new DepTreebank(maxSentenceLength,maxNumSentences);
    if (cmd.hasOption("String_Node_Str")) {
      depTreebank.setTreeFilter(new VerbTreeFilter());
    }
    depTreebank.loadPath(trainPath);
    String reduceTags=Command.getOptionValue(cmd,"String_Node_Str","String_Node_Str");
    if ("String_Node_Str".equals(reduceTags)) {
      log.info("String_Node_Str");
      (new Ptb45To17TagReducer()).reduceTags(depTreebank);
    }
 else     if (!"String_Node_Str".equals(reduceTags)) {
      log.info("String_Node_Str" + reduceTags);
      (new FileMapTagReducer(new File(reduceTags))).reduceTags(depTreebank);
    }
  }
 else   if (cmd.hasOption("String_Node_Str")) {
    DmvModel trueModel=SimpleStaticDmvModel.getTwoPosTagInstance();
    long syntheticSeed=123454321;
    if (cmd.hasOption("String_Node_Str")) {
      syntheticSeed=Long.parseLong(cmd.getOptionValue("String_Node_Str"));
    }
    DmvDepTreeGenerator generator=new DmvDepTreeGenerator(trueModel,syntheticSeed);
    int maxNumSentences=Command.getOptionValue(cmd,"String_Node_Str",100);
    depTreebank=generator.getTreebank(maxNumSentences);
  }
 else {
    throw new ParseException("String_Node_Str");
  }
  log.info("String_Node_Str" + depTreebank.size());
  log.info("String_Node_Str" + depTreebank.getNumTokens());
  log.info("String_Node_Str" + depTreebank.getNumTypes());
  SentenceCollection sentences=depTreebank.getSentences();
  printSentences(cmd,depTreebank,sentences);
  if (cmd.hasOption("String_Node_Str")) {
    DmvRelaxation dw=(DmvRelaxation)TrainerFactory.getTrainer(cmd);
    DmvSolution initBoundsSol=updateBounds(cmd,sentences,dw);
    Stopwatch timer=new Stopwatch();
    timer.start();
    RelaxedDmvSolution relaxSol=dw.solveRelaxation();
    timer.stop();
    log.info("String_Node_Str" + Time.totMs(timer));
    log.info("String_Node_Str" + relaxSol.getScore());
    if (initBoundsSol != null) {
      log.info("String_Node_Str" + Math.abs(relaxSol.getScore() - initBoundsSol.getScore()) / Math.abs(initBoundsSol.getScore()));
    }
  }
 else {
    log.info("String_Node_Str");
    Trainer trainer=(Trainer)TrainerFactory.getTrainer(cmd);
    if (trainer instanceof BnBDmvTrainer) {
      BnBDmvTrainer bnb=(BnBDmvTrainer)trainer;
      bnb.init(sentences);
      updateBounds(cmd,sentences,bnb.getRootRelaxation());
      bnb.train();
    }
 else {
      trainer.train(sentences);
    }
    Model model=trainer.getModel();
    log.info("String_Node_Str");
    ViterbiParser parser=TrainerFactory.getEvalParser();
    Evaluator pwEval=new DependencyParserEvaluator(parser,depTreebank);
    pwEval.evaluate(model);
    pwEval.print();
    String printModel=Command.getOptionValue(cmd,"String_Node_Str",null);
    if (printModel != null) {
      BufferedWriter writer=new BufferedWriter(new FileWriter(printModel));
      writer.write("String_Node_Str");
      writer.write(model.toString());
      writer.close();
    }
  }
}