Program: 31991
Project: 31991
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";
  if (modelConfig.isClassification()) {
    pigScript="String_Node_Str";
  }
  try {
    PigExecutor.getExecutor().submitJob(modelConfig,pathFinder.getAbsolutePath(pigScript),paramsMap,evalConfig.getDataSet().getSource());
  }
 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);
    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";
  if (modelConfig.isClassification()) {
    pigScript="String_Node_Str";
  }
  try {
    PigExecutor.getExecutor().submitJob(modelConfig,pathFinder.getAbsolutePath(pigScript),paramsMap,evalConfig.getDataSet().getSource(),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);
    break;
  }
}