Program: 24876
Project: 24876
Buggy source:
private static void argScoringSetup(final InspectorTreeNode<EvalPair<ImmutableSet<DocLevelEventArg>,ImmutableSet<DocLevelEventArg>>> inputAsSetsOfScoringTuples,final Iterable<? extends ScoringEventObserver<DocLevelEventArg,DocLevelEventArg>> scoringEventObservers,final File outputDir){
  final InspectorTreeNode<ProvenancedAlignment<DocLevelEventArg,DocLevelEventArg,DocLevelEventArg,DocLevelEventArg>> alignmentNode=transformed(inputAsSetsOfScoringTuples,EXACT_MATCH_ALIGNER);
  final AggregateBinaryFScoresInspector<DocLevelEventArg,DocLevelEventArg> scoreAndWriteOverallFScore=AggregateBinaryFScoresInspector.createWithScoringObservers("String_Node_Str",outputDir,scoringEventObservers);
  inspect(alignmentNode).with(scoreAndWriteOverallFScore);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> perEventBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(HasEventType.ExtractFunction.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByEventTypeWithBootstrapping=BootstrapInspector.forStrategy(perEventBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByEventTypeWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<DocLevelEventArg> typeRoleBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(DocLevelEventArg.TypeRoleFunction.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByEventTypeRoleWithBootstrapping=BootstrapInspector.forStrategy(typeRoleBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByEventTypeRoleWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<DocLevelEventArg> mentionTypeBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(ExtractMentionType.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByMentionTypeWithBootstrapping=BootstrapInspector.forStrategy(mentionTypeBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByMentionTypeWithBootstrapping);
  final ArgumentScoringInspector argScorer=ArgumentScoringInspector.createOutputtingTo(outputDir);
  inspect(alignmentNode).with(argScorer);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> argScoreBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(Functions.constant("String_Node_Str"),ImmutableSet.of(new BrokenDownLinearScoreAggregator.Builder().name("String_Node_Str").outputDir(new File(outputDir,"String_Node_Str")).alpha(0.25).build()));
  final BootstrapInspector argScoreWithBootstrapping=BootstrapInspector.forStrategy(argScoreBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(argScoreWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> argScoreByTypeGroupBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(By2016TypeGroup.INSTANCE,ImmutableSet.of(new BrokenDownLinearScoreAggregator.Builder().name("String_Node_Str").outputDir(new File(outputDir,"String_Node_Str")).alpha(0.25).build()));
  final BootstrapInspector argScoreByTypeWithBootstrapping=BootstrapInspector.forStrategy(argScoreByTypeGroupBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(argScoreByTypeWithBootstrapping);
  final BinaryErrorLogger<HasDocID,HasDocID> logWrongAnswers=BinaryErrorLogger.forStringifierAndOutputDir(Functions.<HasDocID>toStringFunction(),outputDir);
  inspect(alignmentNode).with(logWrongAnswers);
}

Fixed version (ground truth):
private static void argScoringSetup(final InspectorTreeNode<EvalPair<ImmutableSet<DocLevelEventArg>,ImmutableSet<DocLevelEventArg>>> inputAsSetsOfScoringTuples,final Iterable<? extends ScoringEventObserver<DocLevelEventArg,DocLevelEventArg>> scoringEventObservers,final File outputDir){
  final InspectorTreeNode<ProvenancedAlignment<DocLevelEventArg,DocLevelEventArg,DocLevelEventArg,DocLevelEventArg>> alignmentNode=transformed(inputAsSetsOfScoringTuples,EXACT_MATCH_ALIGNER);
  final AggregateBinaryFScoresInspector<DocLevelEventArg,DocLevelEventArg> scoreAndWriteOverallFScore=AggregateBinaryFScoresInspector.createWithScoringObservers("String_Node_Str",outputDir,scoringEventObservers);
  inspect(alignmentNode).with(scoreAndWriteOverallFScore);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> perEventBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(HasEventType.ExtractFunction.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByEventTypeWithBootstrapping=BootstrapInspector.forStrategy(perEventBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByEventTypeWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<DocLevelEventArg> typeRoleBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(DocLevelEventArg.TypeRoleFunction.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByEventTypeRoleWithBootstrapping=BootstrapInspector.forStrategy(typeRoleBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByEventTypeRoleWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<DocLevelEventArg> mentionTypeBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(ExtractMentionType.INSTANCE,ImmutableSet.of(BrokenDownFMeasureAggregator.create("String_Node_Str",new File(outputDir,"String_Node_Str"))));
  final BootstrapInspector breakdownScoresByMentionTypeWithBootstrapping=BootstrapInspector.forStrategy(mentionTypeBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(breakdownScoresByMentionTypeWithBootstrapping);
  final ArgumentScoringInspector argScorer=ArgumentScoringInspector.createOutputtingTo(outputDir);
  inspect(alignmentNode).with(argScorer);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> argScoreBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(Functions.constant("String_Node_Str"),ImmutableSet.of(new BrokenDownLinearScoreAggregator.Builder().name("String_Node_Str").outputDir(new File(outputDir,"String_Node_Str")).alpha(0.25).build()));
  final BootstrapInspector argScoreWithBootstrapping=BootstrapInspector.forStrategy(argScoreBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(argScoreWithBootstrapping);
  final BinaryConfusionMatrixBootstrapStrategy<HasEventType> argScoreByTypeGroupBootstrapStrategy=BinaryConfusionMatrixBootstrapStrategy.create(By2016TypeGroup.INSTANCE,ImmutableSet.of(new BrokenDownLinearScoreAggregator.Builder().name("String_Node_Str").outputDir(new File(outputDir,"String_Node_Str")).alpha(0.25).build()));
  final BootstrapInspector argScoreByTypeWithBootstrapping=BootstrapInspector.forStrategy(argScoreByTypeGroupBootstrapStrategy,1000,new Random(0));
  inspect(alignmentNode).with(argScoreByTypeWithBootstrapping);
  final BinaryErrorLogger<HasDocID,HasDocID> logWrongAnswers=BinaryErrorLogger.forStringifierAndOutputDir(Functions.toStringFunction(),outputDir);
  inspect(alignmentNode).with(logWrongAnswers);
}