Program: 180588
Project: 180588
Buggy source:
/** 
 * Sets up the given template with the benchmark config settings
 * @param template a map to be filled with the template config
 */
@Override protected void fill(Map<ConfigKey<?>,Object> template){
  super.fill(template);
  template.put(Population.SIZE,100);
  List<TerminationCriteria> criteria=new ArrayList<TerminationCriteria>();
  criteria.add(new TerminationFitness(new DoubleFitness.Minimise(0.0)));
  criteria.add(new MaximumGenerations());
  template.put(EvolutionaryStrategy.TERMINATION_CRITERIA,criteria);
  template.put(MaximumGenerations.MAXIMUM_GENERATIONS,50);
  template.put(GEIndividual.MAXIMUM_DEPTH,17);
  template.put(Breeder.SELECTOR,new TournamentSelector());
  template.put(TournamentSelector.TOURNAMENT_SIZE,7);
  List<Operator> operators=new ArrayList<Operator>();
  operators.add(new OnePointCrossover());
  operators.add(new PointMutation());
  template.put(Breeder.OPERATORS,operators);
  template.put(OnePointCrossover.PROBABILITY,0.0);
  template.put(PointMutation.PROBABILITY,1.0);
  template.put(Initialiser.METHOD,new Grow());
  RandomSequence randomSequence=new MersenneTwisterFast();
  template.put(RandomSequence.RANDOM_SEQUENCE,randomSequence);
  String grammarStr="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  AntLandscape landscape=new AntLandscape(LANDSCAPE_SIZE,null);
  Ant ant=new Ant(MAXIMUM_TIMESTEPS,landscape);
  template.put(Grammar.GRAMMAR,new Grammar(grammarStr));
  template.put(CodonFactory.CODON_FACTORY,new IntegerCodonFactory());
  template.put(CFGFitnessFunction.INTERPRETER,new EpoxInterpreter<GEIndividual>(new GESourceGenerator()));
  template.put(MappingComponent.MAPPER,new DepthFirstMapper());
  template.put(FitnessEvaluator.FUNCTION,new FoodLocationCount(ant,landscape));
  template.put(FoodLocationCount.FOOD_LOCATIONS,FOOD_LOCATIONS);
  template.put(FoodLocationCount.MAXIMUM_TIMESTEPS,MAXIMUM_TIMESTEPS);
}

Fixed version (ground truth):
/** 
 * Sets up the given template with the benchmark config settings
 * @param template a map to be filled with the template config
 */
@Override protected void fill(Map<ConfigKey<?>,Object> template){
  super.fill(template);
  template.put(Population.SIZE,100);
  List<TerminationCriteria> criteria=new ArrayList<TerminationCriteria>();
  criteria.add(new TerminationFitness(new DoubleFitness.Minimise(0.0)));
  criteria.add(new MaximumGenerations());
  template.put(EvolutionaryStrategy.TERMINATION_CRITERIA,criteria);
  template.put(MaximumGenerations.MAXIMUM_GENERATIONS,50);
  template.put(CFGIndividual.MAXIMUM_DEPTH,17);
  template.put(Breeder.SELECTOR,new TournamentSelector());
  template.put(TournamentSelector.TOURNAMENT_SIZE,7);
  List<Operator> operators=new ArrayList<Operator>();
  operators.add(new SubtreeCrossover());
  operators.add(new SubtreeMutation());
  template.put(Breeder.OPERATORS,operators);
  template.put(SubtreeCrossover.PROBABILITY,0.0);
  template.put(SubtreeMutation.PROBABILITY,1.0);
  template.put(Initialiser.METHOD,new Grow());
  RandomSequence randomSequence=new MersenneTwisterFast();
  template.put(RandomSequence.RANDOM_SEQUENCE,randomSequence);
  String grammarStr="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  AntLandscape landscape=new AntLandscape(LANDSCAPE_SIZE,null);
  Ant ant=new Ant(MAXIMUM_TIMESTEPS,landscape);
  template.put(Grammar.GRAMMAR,new Grammar(grammarStr));
  template.put(CFGFitnessFunction.INTERPRETER,new EpoxInterpreter<CFGIndividual>(new CFGSourceGenerator()));
  template.put(FitnessEvaluator.FUNCTION,new FoodLocationCount(ant,landscape));
  template.put(FoodLocationCount.FOOD_LOCATIONS,FOOD_LOCATIONS);
  template.put(FoodLocationCount.MAXIMUM_TIMESTEPS,MAXIMUM_TIMESTEPS);
}