Program: 24896
Project: 24896
Buggy source:
private static void trueMain(String[] argv) throws IOException {
  final Parameters params=Parameters.loadSerifStyle(new File(argv[0]));
  final File queryFile=params.getExistingFile("String_Node_Str");
  final ImmutableMap<Symbol,File> ereMap=FileUtils.loadSymbolToFileMap(params.getExistingFile("String_Node_Str"));
  final CorpusQuerySet2016 queries=ERECorpusQueryLoader.create(ERELoader.builder().prefixDocIDToAllIDs(false).build(),ereMap).loadQueries(Files.asCharSource(queryFile,Charsets.UTF_8));
  final ImmutableMap<String,SystemOutputStore2016> outputStores=loadStores(params.getExistingDirectory("String_Node_Str"),params.getStringList("String_Node_Str"));
  final File outputFile=params.getCreatableFile("String_Node_Str");
  final CorpusQueryAssessments.Builder corpusQueryAssessmentsB=CorpusQueryAssessments.builder();
  final SingleFileQueryStoreWriter queryStoreWriter=SingleFileQueryStoreWriter.builder().build();
  final CorpusQueryExecutor2016 queryExecutor=DefaultCorpusQueryExecutor.createDefaultFor2016();
  for (  final Map.Entry<String,SystemOutputStore2016> store : outputStores.entrySet()) {
    for (    final CorpusQuery2016 query : queries.queries()) {
      final ImmutableSet<DocEventFrameReference> docEventFrameReferences=queryExecutor.queryEventFrames(store.getValue(),query);
      for (      final DocEventFrameReference docEventFrameReference : docEventFrameReferences) {
        final Optional<ImmutableBiMap<String,ResponseSet>> responseSetMap=store.getValue().read(docEventFrameReference.docID()).linking().responseSetIds();
        checkState(responseSetMap.isPresent());
        final ImmutableSet<Response> responses=responseSetMap.get().get(docEventFrameReference.eventFrameID()).asSet();
        final ImmutableSet<CharOffsetSpan> spans=FluentIterable.from(responses).transform(ResponseFunctions.baseFiller()).toSet();
        final QueryResponse2016 queryResponse2016=QueryResponse2016.builder().docID(docEventFrameReference.docID()).queryID(query.id()).addAllPredicateJustifications(spans).build();
        corpusQueryAssessmentsB.putAllQueryResponsesToSystemIDs(queryResponse2016,ImmutableList.of(Symbol.from(store.getKey())));
        corpusQueryAssessmentsB.addQueryReponses(queryResponse2016);
        corpusQueryAssessmentsB.putAssessments(queryResponse2016,QueryAssessment2016.UNASSASSED);
      }
    }
  }
  queryStoreWriter.saveTo(corpusQueryAssessmentsB.build(),Files.asCharSink(outputFile,Charsets.UTF_8));
}

Fixed version (ground truth):
private static void trueMain(String[] argv) throws IOException {
  final Parameters params=Parameters.loadSerifStyle(new File(argv[0]));
  final File queryFile=params.getExistingFile("String_Node_Str");
  final ImmutableMap<Symbol,File> ereMap=FileUtils.loadSymbolToFileMap(params.getExistingFile("String_Node_Str"));
  final CorpusQuerySet2016 queries=ERECorpusQueryLoader.create(ERELoader.builder().prefixDocIDToAllIDs(false).build(),ereMap).loadQueries(Files.asCharSource(queryFile,Charsets.UTF_8));
  final ImmutableMap<String,SystemOutputStore2016> outputStores=loadStores(params.getExistingDirectory("String_Node_Str"),params.getStringList("String_Node_Str"));
  final File outputFile=params.getCreatableFile("String_Node_Str");
  final CorpusQueryAssessments.Builder corpusQueryAssessmentsB=CorpusQueryAssessments.builder();
  final SingleFileQueryStoreWriter queryStoreWriter=SingleFileQueryStoreWriter.builder().build();
  final CorpusQueryExecutor2016 queryExecutor=DefaultCorpusQueryExecutor.createDefaultFor2016();
  final LaxImmutableMapBuilder<QueryResponse2016,QueryAssessment2016> assessmentsB=MapUtils.immutableMapBuilderAllowingSameEntryTwice();
  for (  final Map.Entry<String,SystemOutputStore2016> store : outputStores.entrySet()) {
    for (    final CorpusQuery2016 query : queries.queries()) {
      final ImmutableSet<DocEventFrameReference> docEventFrameReferences=queryExecutor.queryEventFrames(store.getValue(),query);
      for (      final DocEventFrameReference docEventFrameReference : docEventFrameReferences) {
        final Optional<ImmutableBiMap<String,ResponseSet>> responseSetMap=store.getValue().read(docEventFrameReference.docID()).linking().responseSetIds();
        checkState(responseSetMap.isPresent());
        final ImmutableSet<Response> responses=responseSetMap.get().get(docEventFrameReference.eventFrameID()).asSet();
        final ImmutableSet<CharOffsetSpan> spans=FluentIterable.from(responses).transform(ResponseFunctions.baseFiller()).toSet();
        final QueryResponse2016 queryResponse2016=QueryResponse2016.builder().docID(docEventFrameReference.docID()).queryID(query.id()).addAllPredicateJustifications(spans).build();
        corpusQueryAssessmentsB.putAllQueryResponsesToSystemIDs(queryResponse2016,ImmutableList.of(Symbol.from(store.getKey())));
        corpusQueryAssessmentsB.addQueryReponses(queryResponse2016);
        assessmentsB.put(queryResponse2016,QueryAssessment2016.UNASSASSED);
      }
    }
  }
  corpusQueryAssessmentsB.assessments(assessmentsB.build());
  queryStoreWriter.saveTo(corpusQueryAssessmentsB.build(),Files.asCharSink(outputFile,Charsets.UTF_8));
}