Program: 49832
Project: 49832
Buggy source:
private static void generateArffFiles(String set) throws FileNotFoundException {
  List<String> languages=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str");
  String trainDirectory=Defacto.DEFACTO_CONFIG.getStringSetting("String_Node_Str","String_Node_Str") + Defacto.DEFACTO_CONFIG.getStringSetting("String_Node_Str","String_Node_Str");
  List<DefactoModel> models=new ArrayList<>();
  models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",true,languages));
  if (!set.equals("String_Node_Str"))   models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str" + set,false,languages));
 else {
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
  }
  Collections.shuffle(models);
  LOGGER.info("String_Node_Str" + models.size() + "String_Node_Str"+ set);
  for (int i=0; i < models.size(); i++) {
    LOGGER.info("String_Node_Str" + (i + 1) + "String_Node_Str"+ models.get(i));
    System.out.println(String.format("String_Node_Str",set,i + 1,models.size()));
    Evidence evidence=Defacto.checkFact(models.get(i),TIME_DISTRIBUTION_ONLY.NO);
    Defacto.writeEvidenceTrainingFiles("String_Node_Str" + set + "String_Node_Str");
  }
}

Fixed version (ground truth):
private static void generateArffFiles(String set) throws FileNotFoundException {
  List<String> languages=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str");
  String trainDirectory=Defacto.DEFACTO_CONFIG.getStringSetting("String_Node_Str","String_Node_Str") + Defacto.DEFACTO_CONFIG.getStringSetting("String_Node_Str","String_Node_Str");
  List<DefactoModel> models=new ArrayList<>();
  models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",true,languages));
  if (!set.equals("String_Node_Str"))   models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str" + set,false,languages));
 else {
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
    models.addAll(DefactoModelReader.readModels(trainDirectory + "String_Node_Str",false,languages));
  }
  Collections.shuffle(models);
  LOGGER.info("String_Node_Str" + models.size() + "String_Node_Str"+ set);
  for (int i=0; i < models.size(); i++) {
    LOGGER.info("String_Node_Str" + (i + 1) + "String_Node_Str"+ models.get(i));
    System.out.println(String.format("String_Node_Str",set,i + 1,models.size()));
    Evidence evidence=Defacto.checkFact(models.get(i),TIME_DISTRIBUTION_ONLY.NO);
    Defacto.writeEvidenceTrainingFiles("String_Node_Str" + set + "String_Node_Str");
  }
  AbstractEvidenceFeature.createInstances();
}