Program: 32214
Project: 32214
Buggy source:
/** 
 * @param alg
 * @param modelSetPath
 * @param description
 * @return
 * @throws IOException
 */
public static ModelConfig createInitModelConfig(String modelName,ALGORITHM alg,String description) throws IOException {
  ModelConfig modelConfig=new ModelConfig();
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  ModelBasicConf basic=new ModelBasicConf();
  basic.setName(modelName);
  basic.setAuthor(Environment.getProperty(Environment.SYSTEM_USER));
  basic.setDescription("String_Node_Str" + df.format(new Date()));
  modelConfig.setBasic(basic);
  ModelSourceDataConf dataSet=new ModelSourceDataConf();
  dataSet.setSource(SourceType.LOCAL);
  dataSet.setDataDelimiter("String_Node_Str");
  dataSet.setDataPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  dataSet.setHeaderPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  dataSet.setTargetColumnName("String_Node_Str");
  List<String> posTags=new ArrayList<String>();
  posTags.add("String_Node_Str");
  List<String> negTags=new ArrayList<String>();
  negTags.add("String_Node_Str");
  dataSet.setPosTags(posTags);
  dataSet.setNegTags(negTags);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_META_COLUMN_FILE).toString(),SourceType.LOCAL);
  dataSet.setMetaColumnNameFile(Constants.DEFAULT_META_COLUMN_FILE);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_CATEGORICAL_COLUMN_FILE).toString(),SourceType.LOCAL);
  dataSet.setCategoricalColumnNameFile(Constants.DEFAULT_CATEGORICAL_COLUMN_FILE);
  modelConfig.setDataSet(dataSet);
  modelConfig.setStats(new ModelStatsConf());
  ModelVarSelectConf varselect=new ModelVarSelectConf();
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_FORCESELECT_COLUMN_FILE).toString(),SourceType.LOCAL);
  varselect.setForceSelectColumnNameFile(Constants.DEFAULT_FORCESELECT_COLUMN_FILE);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_FORCEREMOVE_COLUMN_FILE).toString(),SourceType.LOCAL);
  varselect.setForceRemoveColumnNameFile(Constants.DEFAULT_FORCEREMOVE_COLUMN_FILE);
  modelConfig.setVarSelect(varselect);
  modelConfig.setNormalize(new ModelNormalizeConf());
  ModelTrainConf trainConf=new ModelTrainConf();
  trainConf.setAlgorithm(alg.name());
  trainConf.setNumTrainEpochs(100);
  trainConf.setParams(ModelTrainConf.createParamsByAlg(alg));
  modelConfig.setTrain(trainConf);
  EvalConfig evalConfig=new EvalConfig();
  evalConfig.setName("String_Node_Str");
  RawSourceData evalSet=modelConfig.getDataSet().cloneRawSourceData();
  evalSet.setSource(SourceType.LOCAL);
  evalSet.setDataDelimiter("String_Node_Str");
  evalSet.setDataPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  evalSet.setHeaderPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  evalConfig.setDataSet(evalSet);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,evalConfig.getName() + Constants.DEFAULT_EVALSCORE_META_COLUMN_FILE).toString(),SourceType.LOCAL);
  evalConfig.setScoreMetaColumnNameFile(evalConfig.getName() + Constants.DEFAULT_EVALSCORE_META_COLUMN_FILE);
  modelConfig.getEvals().add(evalConfig);
  return modelConfig;
}

Fixed version (ground truth):
/** 
 * @param alg
 * @param modelSetPath
 * @param description
 * @return
 * @throws IOException
 */
public static ModelConfig createInitModelConfig(String modelName,ALGORITHM alg,String description) throws IOException {
  ModelConfig modelConfig=new ModelConfig();
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  ModelBasicConf basic=new ModelBasicConf();
  basic.setName(modelName);
  basic.setAuthor(Environment.getProperty(Environment.SYSTEM_USER));
  basic.setDescription("String_Node_Str" + df.format(new Date()));
  modelConfig.setBasic(basic);
  ModelSourceDataConf dataSet=new ModelSourceDataConf();
  dataSet.setSource(SourceType.LOCAL);
  dataSet.setDataDelimiter("String_Node_Str");
  dataSet.setDataPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  dataSet.setHeaderPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  dataSet.setTargetColumnName("String_Node_Str");
  List<String> posTags=new ArrayList<String>();
  posTags.add("String_Node_Str");
  List<String> negTags=new ArrayList<String>();
  negTags.add("String_Node_Str");
  dataSet.setPosTags(posTags);
  dataSet.setNegTags(negTags);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_META_COLUMN_FILE).toString(),SourceType.LOCAL);
  dataSet.setMetaColumnNameFile(Constants.DEFAULT_META_COLUMN_FILE);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_CATEGORICAL_COLUMN_FILE).toString(),SourceType.LOCAL);
  dataSet.setCategoricalColumnNameFile(Constants.DEFAULT_CATEGORICAL_COLUMN_FILE);
  modelConfig.setDataSet(dataSet);
  modelConfig.setStats(new ModelStatsConf());
  modelConfig.setBinningAlgorithm(BinningAlgorithm.SPDT);
  ModelVarSelectConf varselect=new ModelVarSelectConf();
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_FORCESELECT_COLUMN_FILE).toString(),SourceType.LOCAL);
  varselect.setForceSelectColumnNameFile(Constants.DEFAULT_FORCESELECT_COLUMN_FILE);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,Constants.DEFAULT_FORCEREMOVE_COLUMN_FILE).toString(),SourceType.LOCAL);
  varselect.setForceRemoveColumnNameFile(Constants.DEFAULT_FORCEREMOVE_COLUMN_FILE);
  modelConfig.setVarSelect(varselect);
  modelConfig.setNormalize(new ModelNormalizeConf());
  ModelTrainConf trainConf=new ModelTrainConf();
  trainConf.setAlgorithm(alg.name());
  trainConf.setNumTrainEpochs(100);
  trainConf.setParams(ModelTrainConf.createParamsByAlg(alg));
  modelConfig.setTrain(trainConf);
  EvalConfig evalConfig=new EvalConfig();
  evalConfig.setName("String_Node_Str");
  RawSourceData evalSet=modelConfig.getDataSet().cloneRawSourceData();
  evalSet.setSource(SourceType.LOCAL);
  evalSet.setDataDelimiter("String_Node_Str");
  evalSet.setDataPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  evalSet.setHeaderPath(new File(Environment.getProperty(Environment.SHIFU_HOME),File.separator + "String_Node_Str" + File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ "String_Node_Str").toString());
  evalConfig.setDataSet(evalSet);
  ShifuFileUtils.createFileIfNotExists(new Path(modelName,evalConfig.getName() + Constants.DEFAULT_EVALSCORE_META_COLUMN_FILE).toString(),SourceType.LOCAL);
  evalConfig.setScoreMetaColumnNameFile(evalConfig.getName() + Constants.DEFAULT_EVALSCORE_META_COLUMN_FILE);
  modelConfig.getEvals().add(evalConfig);
  return modelConfig;
}