Program: 31958
Project: 31958
Buggy source:
/** 
 * run pig mode scoring
 * @param evalConfig
 * @throws IOException
 */
@SuppressWarnings("String_Node_Str") private void runPigScore(EvalConfig evalConfig) throws IOException {
  SourceType sourceType=evalConfig.getDataSet().getSource();
  ShifuFileUtils.deleteFile(pathFinder.getEvalNormalizedPath(evalConfig),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getEvalScorePath(evalConfig),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getEvalPerformancePath(evalConfig),sourceType);
  Map<String,String> paramsMap=new HashMap<String,String>();
  paramsMap.put(Constants.SOURCE_TYPE,sourceType.toString());
  paramsMap.put("String_Node_Str",evalConfig.getDataSet().getDataPath());
  paramsMap.put("String_Node_Str",pathFinder.getEvalNormalizedPath(evalConfig));
  paramsMap.put("String_Node_Str",pathFinder.getEvalScorePath(evalConfig));
  paramsMap.put("String_Node_Str",pathFinder.getEvalPerformancePath(evalConfig));
  paramsMap.put("String_Node_Str",evalConfig.getName());
  paramsMap.put("String_Node_Str",evalConfig.getDataSet().getDataDelimiter());
  paramsMap.put("String_Node_Str",evalConfig.getPerformanceScoreSelector().trim());
  String pigScript="String_Node_Str";
  Map<String,String> confMap=new HashMap<String,String>();
  String maxMinScoreFolder=ShifuFileUtils.getFileSystemBySourceType(sourceType).makeQualified(new Path("String_Node_Str" + File.separator + "String_Node_Str"+ System.currentTimeMillis()+ "String_Node_Str"+ new Random().nextLong())).toString();
  confMap.put(Constants.SHIFU_EVAL_MAXMIN_SCORE_OUTPUT,maxMinScoreFolder);
  if (modelConfig.isClassification()) {
    pigScript="String_Node_Str";
  }
  try {
    PigExecutor.getExecutor().submitJob(modelConfig,pathFinder.getScriptPath(pigScript),paramsMap,evalConfig.getDataSet().getSource(),confMap,super.pathFinder);
  }
 catch (  IOException e) {
    throw new ShifuException(ShifuErrorCode.ERROR_RUNNING_PIG_JOB,e);
  }
catch (  Throwable e) {
    throw new RuntimeException(e);
  }
  Iterator<JobStats> iter=PigStats.get().getJobGraph().iterator();
  while (iter.hasNext()) {
    JobStats jobStats=iter.next();
    this.evalRecords=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_RECORDS);
    log.info("String_Node_Str" + evalRecords);
    if (this.evalRecords == 0L) {
      continue;
    }
    this.pigPosTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_POSTAGS);
    this.pigNegTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_NEGTAGS);
    this.pigPosWeightTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_WPOSTAGS) / (Constants.EVAL_COUNTER_WEIGHT_SCALE * 1.0d);
    this.pigNegWeightTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_WNEGTAGS) / (Constants.EVAL_COUNTER_WEIGHT_SCALE * 1.0d);
    if (modelConfig.isRegression()) {
      locateMaxMinScoreFromFile(sourceType,maxMinScoreFolder);
      ShifuFileUtils.deleteFile(maxMinScoreFolder,sourceType);
    }
    break;
  }
}

Fixed version (ground truth):
/** 
 * run pig mode scoring
 * @param evalConfig
 * @throws IOException
 */
@SuppressWarnings("String_Node_Str") private void runPigScore(EvalConfig evalConfig) throws IOException {
  SourceType sourceType=evalConfig.getDataSet().getSource();
  ShifuFileUtils.deleteFile(pathFinder.getEvalNormalizedPath(evalConfig),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getEvalScorePath(evalConfig),sourceType);
  ShifuFileUtils.deleteFile(pathFinder.getEvalPerformancePath(evalConfig),sourceType);
  Map<String,String> paramsMap=new HashMap<String,String>();
  paramsMap.put(Constants.SOURCE_TYPE,sourceType.toString());
  paramsMap.put("String_Node_Str",evalConfig.getDataSet().getDataPath());
  paramsMap.put("String_Node_Str",pathFinder.getEvalNormalizedPath(evalConfig));
  paramsMap.put("String_Node_Str",pathFinder.getEvalScorePath(evalConfig));
  paramsMap.put("String_Node_Str",pathFinder.getEvalPerformancePath(evalConfig));
  paramsMap.put("String_Node_Str",evalConfig.getName());
  paramsMap.put("String_Node_Str",evalConfig.getDataSet().getDataDelimiter());
  paramsMap.put("String_Node_Str",evalConfig.getPerformanceScoreSelector().trim());
  String pigScript="String_Node_Str";
  Map<String,String> confMap=new HashMap<String,String>();
  String maxMinScoreFolder=ShifuFileUtils.getFileSystemBySourceType(sourceType).makeQualified(new Path("String_Node_Str" + File.separator + "String_Node_Str"+ System.currentTimeMillis()+ "String_Node_Str"+ new Random().nextLong())).toString();
  confMap.put(Constants.SHIFU_EVAL_MAXMIN_SCORE_OUTPUT,maxMinScoreFolder);
  if (modelConfig.isClassification()) {
    pigScript="String_Node_Str";
  }
  try {
    PigExecutor.getExecutor().submitJob(modelConfig,pathFinder.getScriptPath(pigScript),paramsMap,evalConfig.getDataSet().getSource(),confMap,super.pathFinder);
  }
 catch (  IOException e) {
    throw new ShifuException(ShifuErrorCode.ERROR_RUNNING_PIG_JOB,e);
  }
catch (  Throwable e) {
    throw new RuntimeException(e);
  }
  Iterator<JobStats> iter=PigStats.get().getJobGraph().iterator();
  while (iter.hasNext()) {
    JobStats jobStats=iter.next();
    this.evalRecords=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_RECORDS);
    log.info("String_Node_Str",evalRecords);
    if (this.evalRecords == 0L) {
      continue;
    }
    this.pigPosTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_POSTAGS);
    this.pigNegTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_NEGTAGS);
    this.pigPosWeightTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_WPOSTAGS) / (Constants.EVAL_COUNTER_WEIGHT_SCALE * 1.0d);
    this.pigNegWeightTags=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.COUNTER_WNEGTAGS) / (Constants.EVAL_COUNTER_WEIGHT_SCALE * 1.0d);
    long totalRunTime=jobStats.getHadoopCounters().getGroup(Constants.SHIFU_GROUP_COUNTER).getCounter(Constants.TOTAL_MODEL_RUNTIME);
    log.info("String_Node_Str",totalRunTime / this.evalRecords);
    if (modelConfig.isRegression()) {
      locateMaxMinScoreFromFile(sourceType,maxMinScoreFolder);
      ShifuFileUtils.deleteFile(maxMinScoreFolder,sourceType);
    }
    break;
  }
}