Program: 31986
Project: 31986
Buggy source:
/** 
 * running pig normalize process
 * @throws IOException
 */
private void runPigNormalize() throws IOException {
  SourceType sourceType=modelConfig.getDataSet().getSource();
  ShifuFileUtils.deleteFile(pathFinder.getNormalizedDataPath(),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getNormalizedValidationDataPath(),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getSelectedRawDataPath(),sourceType);
  Map<String,String> paramsMap=new HashMap<String,String>();
  paramsMap.put("String_Node_Str",modelConfig.getNormalizeSampleRate().toString());
  paramsMap.put("String_Node_Str",((Boolean)modelConfig.isNormalizeSampleNegOnly()).toString());
  paramsMap.put("String_Node_Str",CommonUtils.escapePigString(modelConfig.getDataSetDelimiter()));
  try {
    String normPigPath=null;
    if (modelConfig.getNormalize().getIsParquet()) {
      if (modelConfig.getBasic().getPostTrainOn()) {
        normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
      }
 else {
        log.info("String_Node_Str");
        normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
      }
    }
 else {
      if (modelConfig.getBasic().getPostTrainOn()) {
      }
      normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
    }
    paramsMap.put(Constants.IS_COMPRESS,"String_Node_Str");
    PigExecutor.getExecutor().submitJob(modelConfig,normPigPath,paramsMap);
    if (StringUtils.isNotBlank(modelConfig.getValidationDataSetRawPath())) {
      paramsMap.put(Constants.IS_COMPRESS,"String_Node_Str");
      paramsMap.put(Constants.PATH_RAW_DATA,modelConfig.getValidationDataSetRawPath());
      paramsMap.put(Constants.PATH_NORMALIZED_DATA,pathFinder.getNormalizedValidationDataPath());
      PigExecutor.getExecutor().submitJob(modelConfig,normPigPath,paramsMap);
    }
  }
 catch (  IOException e) {
    throw new ShifuException(ShifuErrorCode.ERROR_RUNNING_PIG_JOB,e);
  }
catch (  Throwable e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
/** 
 * running pig normalize process
 * @throws IOException
 */
private void runPigNormalize() throws IOException {
  SourceType sourceType=modelConfig.getDataSet().getSource();
  ShifuFileUtils.deleteFile(pathFinder.getNormalizedDataPath(),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getNormalizedValidationDataPath(),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getSelectedRawDataPath(),sourceType);
  Map<String,String> paramsMap=new HashMap<String,String>();
  paramsMap.put("String_Node_Str",modelConfig.getNormalizeSampleRate().toString());
  paramsMap.put("String_Node_Str",((Boolean)modelConfig.isNormalizeSampleNegOnly()).toString());
  paramsMap.put("String_Node_Str",CommonUtils.escapePigString(modelConfig.getDataSetDelimiter()));
  try {
    String normPigPath=null;
    if (modelConfig.getNormalize().getIsParquet()) {
      if (modelConfig.getBasic().getPostTrainOn()) {
        normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
      }
 else {
        log.info("String_Node_Str");
        normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
      }
    }
 else {
      if (modelConfig.getBasic().getPostTrainOn()) {
      }
      normPigPath=pathFinder.getAbsolutePath("String_Node_Str");
    }
    paramsMap.put(Constants.IS_COMPRESS,"String_Node_Str");
    paramsMap.put(Constants.IS_NORM_FOR_CLEAN,"String_Node_Str");
    PigExecutor.getExecutor().submitJob(modelConfig,normPigPath,paramsMap);
    if (StringUtils.isNotBlank(modelConfig.getValidationDataSetRawPath())) {
      paramsMap.put(Constants.IS_COMPRESS,"String_Node_Str");
      paramsMap.put(Constants.PATH_RAW_DATA,modelConfig.getValidationDataSetRawPath());
      paramsMap.put(Constants.PATH_NORMALIZED_DATA,pathFinder.getNormalizedValidationDataPath());
      PigExecutor.getExecutor().submitJob(modelConfig,normPigPath,paramsMap);
    }
  }
 catch (  IOException e) {
    throw new ShifuException(ShifuErrorCode.ERROR_RUNNING_PIG_JOB,e);
  }
catch (  Throwable e) {
    throw new RuntimeException(e);
  }
}