Program: 31969
Project: 31969
Buggy source:
public EvalScoreUDF(String source,String pathModelConfig,String pathColumnConfig,String evalSetName) throws IOException {
  super(source,pathModelConfig,pathColumnConfig);
  evalConfig=modelConfig.getEvalConfigByName(evalSetName);
  if (evalConfig.getModelsPath() != null) {
    this.columnConfigList=ShifuFileUtils.searchColumnConfig(evalConfig,columnConfigList);
  }
  if (StringUtils.isNotBlank(evalConfig.getDataSet().getHeaderPath())) {
    this.headers=CommonUtils.getHeaders(evalConfig.getDataSet().getHeaderPath(),evalConfig.getDataSet().getHeaderDelimiter(),evalConfig.getDataSet().getSource());
  }
 else {
    String delimiter=StringUtils.isBlank(evalConfig.getDataSet().getHeaderDelimiter()) ? evalConfig.getDataSet().getDataDelimiter() : evalConfig.getDataSet().getHeaderDelimiter();
    String[] fields=CommonUtils.takeFirstLine(evalConfig.getDataSet().getDataPath(),delimiter,evalConfig.getDataSet().getSource());
    if (StringUtils.join(fields,"String_Node_Str").contains(modelConfig.getTargetColumnName())) {
      this.headers=fields;
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
    }
 else {
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
      this.headers=new String[fields.length];
      for (int i=0; i < fields.length; i++) {
        this.headers[i]=i + "String_Node_Str";
      }
    }
  }
  this.modelCnt=CommonUtils.getBasicModelsCnt(modelConfig,this.columnConfigList,evalConfig,evalConfig.getDataSet().getSource());
}

Fixed version (ground truth):
public EvalScoreUDF(String source,String pathModelConfig,String pathColumnConfig,String evalSetName) throws IOException {
  super(source,pathModelConfig,pathColumnConfig);
  evalConfig=modelConfig.getEvalConfigByName(evalSetName);
  if (evalConfig.getModelsPath() != null) {
    this.columnConfigList=ShifuFileUtils.searchColumnConfig(evalConfig,columnConfigList);
  }
  if (StringUtils.isNotBlank(evalConfig.getDataSet().getHeaderPath())) {
    this.headers=CommonUtils.getHeaders(evalConfig.getDataSet().getHeaderPath(),evalConfig.getDataSet().getHeaderDelimiter(),evalConfig.getDataSet().getSource());
  }
 else {
    String delimiter=StringUtils.isBlank(evalConfig.getDataSet().getHeaderDelimiter()) ? evalConfig.getDataSet().getDataDelimiter() : evalConfig.getDataSet().getHeaderDelimiter();
    String[] fields=CommonUtils.takeFirstLine(evalConfig.getDataSet().getDataPath(),delimiter,evalConfig.getDataSet().getSource());
    if (StringUtils.join(fields,"String_Node_Str").contains(modelConfig.getTargetColumnName())) {
      this.headers=new String[fields.length];
      for (int i=0; i < fields.length; i++) {
        this.headers[i]=CommonUtils.getRelativePigHeaderColumnName(fields[i]);
      }
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
    }
 else {
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
      log.warn("String_Node_Str");
      this.headers=new String[fields.length];
      for (int i=0; i < fields.length; i++) {
        this.headers[i]=i + "String_Node_Str";
      }
    }
  }
  this.modelCnt=CommonUtils.getBasicModelsCnt(modelConfig,this.columnConfigList,evalConfig,evalConfig.getDataSet().getSource());
}