Program: 32049
Project: 32049
Buggy source:
@Override public void load(GuaguaWritableAdapter<LongWritable> currentKey,GuaguaWritableAdapter<Tuple> currentValue,WorkerContext<NNParams,NNParams> workerContext){
  this.initFieldList();
  super.count+=1;
  if ((super.count) % 100000 == 0) {
    LOG.info("String_Node_Str",super.count);
  }
  double baggingSampleRate=super.modelConfig.getBaggingSampleRate();
  if (!super.modelConfig.isFixInitialInput() && Double.compare(Math.random(),baggingSampleRate) >= 0) {
    return;
  }
  float[] inputs=new float[super.inputNodeCount];
  float[] ideal=new float[super.outputNodeCount];
  if (super.isDry) {
    addDataPairToDataSet(0,new BasicFloatMLDataPair(new BasicFloatMLData(inputs),new BasicFloatMLData(ideal)));
    return;
  }
  long hashcode=0;
  float significance=1f;
  int index=0, inputsIndex=0, outputIndex=0;
  Tuple tuple=currentValue.getWritable();
  for (int i=0; i < tuple.size(); i++) {
    Object element=null;
    try {
      element=tuple.get(i);
    }
 catch (    ExecException e) {
      throw new GuaguaRuntimeException(e);
    }
    float floatValue=0f;
    if (element != null) {
      if (element instanceof Double) {
        floatValue=(Float)element;
      }
 else {
        floatValue=NumberFormatUtils.getFloat(element.toString().trim(),0f);
      }
    }
    if (Double.isNaN(floatValue)) {
      floatValue=0f;
    }
    if (index == (super.inputNodeCount + super.outputNodeCount)) {
      if (element != null && element instanceof Float) {
        significance=(Float)element;
      }
 else {
        significance=NumberFormatUtils.getFloat(element.toString().trim(),1f);
        ;
      }
      break;
    }
 else {
      int columnIndex=requiredFieldList.getFields().get(index).getIndex();
      if (columnIndex >= super.columnConfigList.size()) {
        if (element != null && element instanceof Float) {
          significance=(Float)element;
        }
 else {
          significance=NumberFormatUtils.getFloat(element.toString().trim(),1f);
          ;
        }
        break;
      }
 else {
        ColumnConfig columnConfig=super.columnConfigList.get(columnIndex);
        if (columnConfig != null && columnConfig.isTarget()) {
          ideal[outputIndex++]=floatValue;
        }
 else {
          if (super.inputNodeCount == super.candidateCount) {
            if (columnConfig != null && !columnConfig.isMeta() && !columnConfig.isTarget() && CommonUtils.isGoodCandidate(columnConfig)) {
              inputs[inputsIndex++]=floatValue;
              hashcode=hashcode * 31 + Double.valueOf(floatValue).hashCode();
            }
          }
 else {
            if (columnConfig != null && !columnConfig.isMeta() && !columnConfig.isTarget() && columnConfig.isFinalSelect()) {
              inputs[inputsIndex++]=floatValue;
              hashcode=hashcode * 31 + Double.valueOf(floatValue).hashCode();
            }
          }
        }
      }
    }
    index+=1;
  }
  long longBaggingSampleRate=Double.valueOf(baggingSampleRate * 100).longValue();
  if (super.modelConfig.isFixInitialInput() && hashcode % 100 >= longBaggingSampleRate) {
    return;
  }
  super.sampleCount+=1;
  FloatMLDataPair pair=new BasicFloatMLDataPair(new BasicFloatMLData(inputs),new BasicFloatMLData(ideal));
  if (modelConfig.isBinaryClassification() && isUpSampleEnabled() && Double.compare(ideal[0],1d) == 0) {
    pair.setSignificance(significance * (super.upSampleRng.sample() + 1));
  }
 else {
    pair.setSignificance(significance);
  }
  addDataPairToDataSet(hashcode,pair);
}

Fixed version (ground truth):
@Override public void load(GuaguaWritableAdapter<LongWritable> currentKey,GuaguaWritableAdapter<Tuple> currentValue,WorkerContext<NNParams,NNParams> workerContext){
}