Program: 24947
Project: 24947
Buggy source:
private static void trueMain(String[] argv) throws IOException {
  if (argv.length != 1) {
    usage();
    System.exit(1);
  }
  final Parameters params=Parameters.loadSerifStyle(new File(argv[0]));
  final KBP2015Scorer scorer=new KBP2015Scorer();
  final AnnotationStore goldAnswerStore=AssessmentSpecFormats.openAnnotationStore(params.getExistingDirectory("String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
  final Set<Symbol> docsToScore=loadDocumentsToScore(params);
  final LinkingStore referenceLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(params.getExistingDirectory("String_Node_Str"));
  checkArgument(params.isPresent(SYSTEM_OUTPUT_PARAM) != params.isPresent(SYSTEM_OUTPUTS_DIR_PARAM),"String_Node_Str");
  if (params.isPresent(SYSTEM_OUTPUT_PARAM)) {
    final File systemOutputDir=params.getExistingDirectory(SYSTEM_OUTPUT_PARAM);
    log.info("String_Node_Str",systemOutputDir);
    final SystemOutputStore systemOutputStore=AssessmentSpecFormats.openSystemOutputStore(new File(systemOutputDir,"String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
    final LinkingStore systemLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(new File(systemOutputDir,"String_Node_Str"));
    scorer.score(goldAnswerStore,referenceLinkingStore,systemOutputStore,systemLinkingStore,docsToScore,systemOutputDir);
  }
 else {
    final File systemOutputsDir=params.getExistingDirectory("String_Node_Str");
    final File scoringOutputRoot=params.getCreatableDirectory("String_Node_Str");
    log.info("String_Node_Str",systemOutputsDir);
    for (    File subDir : systemOutputsDir.listFiles()) {
      if (subDir.isDirectory()) {
        log.info("String_Node_Str",subDir);
        final File outputDir=new File(scoringOutputRoot,subDir.getName());
        outputDir.mkdirs();
        final SystemOutputStore systemOutputStore=AssessmentSpecFormats.openSystemOutputStore(new File(subDir,"String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
        final LinkingStore systemLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(new File(subDir,"String_Node_Str"));
        scorer.score(goldAnswerStore,referenceLinkingStore,systemOutputStore,systemLinkingStore,docsToScore,outputDir);
      }
    }
  }
}

Fixed version (ground truth):
private static void trueMain(String[] argv) throws IOException {
  if (argv.length != 1) {
    usage();
    System.exit(1);
  }
  final Parameters params=Parameters.loadSerifStyle(new File(argv[0]));
  final KBP2015Scorer scorer=new KBP2015Scorer();
  final AnnotationStore goldAnswerStore=AssessmentSpecFormats.openAnnotationStore(params.getExistingDirectory("String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
  final Set<Symbol> docsToScore=loadDocumentsToScore(params);
  final LinkingStore referenceLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(params.getExistingDirectory("String_Node_Str"));
  checkArgument(params.isPresent(SYSTEM_OUTPUT_PARAM) != params.isPresent(SYSTEM_OUTPUTS_DIR_PARAM),"String_Node_Str");
  if (params.isPresent(SYSTEM_OUTPUT_PARAM)) {
    final File scoringOutputDir=params.getCreatableDirectory("String_Node_Str");
    final File systemOutputDir=params.getExistingDirectory(SYSTEM_OUTPUT_PARAM);
    log.info("String_Node_Str",systemOutputDir);
    final SystemOutputStore systemOutputStore=AssessmentSpecFormats.openSystemOutputStore(new File(systemOutputDir,"String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
    final LinkingStore systemLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(new File(systemOutputDir,"String_Node_Str"));
    scorer.score(goldAnswerStore,referenceLinkingStore,systemOutputStore,systemLinkingStore,docsToScore,scoringOutputDir);
  }
 else {
    final File systemOutputsDir=params.getExistingDirectory("String_Node_Str");
    final File scoringOutputRoot=params.getCreatableDirectory("String_Node_Str");
    log.info("String_Node_Str",systemOutputsDir);
    for (    File subDir : systemOutputsDir.listFiles()) {
      if (subDir.isDirectory()) {
        log.info("String_Node_Str",subDir);
        final File outputDir=new File(scoringOutputRoot,subDir.getName());
        outputDir.mkdirs();
        final SystemOutputStore systemOutputStore=AssessmentSpecFormats.openSystemOutputStore(new File(subDir,"String_Node_Str"),AssessmentSpecFormats.Format.KBP2015);
        final LinkingStore systemLinkingStore=LinkingSpecFormats.openOrCreateLinkingStore(new File(subDir,"String_Node_Str"));
        scorer.score(goldAnswerStore,referenceLinkingStore,systemOutputStore,systemLinkingStore,docsToScore,outputDir);
      }
    }
  }
}