Program: 140846
Project: 140846
Buggy source:
@Override public Configuration getSubConfiguration(String taskID){
  Configuration conf=new CompositeConfiguration();
  List<String> workersConstr=new LinkedList<String>();
  int i=0;
  for (  SPARQLWorkerConfig config : sparqlWorkers) {
    workersConstr.add("String_Node_Str" + i);
    conf.addProperty("String_Node_Str" + i,config.asConstructorArgs());
    i++;
  }
  i=0;
  for (  UPDATEWorkerConfig config : updateWorkers) {
    workersConstr.add("String_Node_Str" + i);
    conf.addProperty("String_Node_Str" + i,config.asConstructorArgs());
    i++;
  }
  String[] constructor=new String[7];
  if (type) {
    conf.addProperty(taskID + "String_Node_Str",typeValue);
    constructor[0]=taskID + "String_Node_Str";
  }
 else {
    conf.addProperty(taskID + "String_Node_Str",typeValue);
    constructor[1]=taskID + "String_Node_Str";
  }
  List<String> qhConstructorTmp=new LinkedList<String>();
  qhConstructorTmp.add(0,qhClassName);
  if (qhConstructor != null)   qhConstructorTmp.addAll(qhConstructor);
  conf.addProperty(taskID + "String_Node_Str",qhConstructorTmp.toArray(new String[]{}));
  qhConstructorTmp.clear();
  constructor[2]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",workersConstr.toArray());
  constructor[3]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupTime);
  constructor[4]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupQueries);
  constructor[5]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupUpdates);
  constructor[6]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",constructor);
  return conf;
}

Fixed version (ground truth):
@Override public Configuration getSubConfiguration(String taskID){
  Configuration conf=new CompositeConfiguration();
  List<String> workersConstr=new LinkedList<String>();
  int i=0;
  for (  SPARQLWorkerConfig config : sparqlWorkers) {
    workersConstr.add("String_Node_Str" + i);
    conf.addProperty("String_Node_Str" + i,config.asConstructorArgs());
    i++;
  }
  i=0;
  for (  UPDATEWorkerConfig config : updateWorkers) {
    workersConstr.add("String_Node_Str" + i);
    conf.addProperty("String_Node_Str" + i,config.asConstructorArgs());
    i++;
  }
  String[] constructor=new String[7];
  if (type) {
    conf.addProperty(taskID + "String_Node_Str",typeValue);
    constructor[0]=taskID + "String_Node_Str";
  }
 else {
    conf.addProperty(taskID + "String_Node_Str",typeValue);
    constructor[1]=taskID + "String_Node_Str";
  }
  conf.addProperty(taskID + "String_Node_Str",getQHConstructor());
  qhConstructorTmp.clear();
  constructor[2]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",workersConstr.toArray());
  constructor[3]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupTime);
  constructor[4]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupQueries);
  constructor[5]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",warmupUpdates);
  constructor[6]=taskID + "String_Node_Str";
  conf.addProperty(taskID + "String_Node_Str",constructor);
  return conf;
}