Program: 39289
Project: 39289
Buggy source:
/** 
 * constructor for a task where the predators are evolved while the prey are kept static sends false to the parent constructor, indicating that the predator is the agent evolving Includes all of the fitness scores that the user wants from the command line parameters
 */
public TorusEvolvedPredatorsVsStaticPreyTask(){
  super(false);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorMinimizeGameTimeObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorEatEachPreyQuicklyObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorMinimizeDistanceFromPreyObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorRawalRajagopalanMiikkulainenObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchCloseObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchCloseQuickObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   for (int i=0; i < Parameters.parameters.integerParameter("String_Node_Str"); i++)   addObjective(new PredatorMinimizeDistanceFromIndividualPreyObjective<T>(i),objectives);
}

Fixed version (ground truth):
/** 
 * constructor for a task where the predators are evolved while the prey are kept static sends false to the parent constructor, indicating that the predator is the agent evolving Includes all of the fitness scores that the user wants from the command line parameters
 */
public TorusEvolvedPredatorsVsStaticPreyTask(){
  super(false);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorMinimizeGameTimeObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorEatEachPreyQuicklyObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorMinimizeDistanceFromPreyObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorRawalRajagopalanMiikkulainenObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchCloseObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   addObjective(new PredatorCatchCloseQuickObjective<T>(),objectives);
  if (Parameters.parameters.booleanParameter("String_Node_Str"))   for (int i=0; i < Parameters.parameters.integerParameter("String_Node_Str"); i++)   addObjective(new PredatorMinimizeDistanceFromIndividualPreyObjective<T>(i),objectives);
  addObjective(new PredatorMinimizeGameTimeObjective<T>(),otherScores,false);
  addObjective(new PredatorEatEachPreyQuicklyObjective<T>(),otherScores,false);
  addObjective(new PredatorMinimizeDistanceFromPreyObjective<T>(),otherScores,false);
  if (Parameters.parameters.integerParameter("String_Node_Str") == 2)   addObjective(new PredatorRawalRajagopalanMiikkulainenObjective<T>(),otherScores,false);
  addObjective(new PredatorCatchCloseObjective<T>(),otherScores,false);
  addObjective(new PredatorCatchObjective<T>(),otherScores,false);
  addObjective(new PredatorCatchCloseQuickObjective<T>(),otherScores,false);
  for (int i=0; i < Parameters.parameters.integerParameter("String_Node_Str"); i++)   addObjective(new PredatorMinimizeDistanceFromIndividualPreyObjective<T>(i),otherScores,false);
}