Program: 64398
Project: 64398
Buggy source:
/** 
 * Construct the mean and standard deviation Previews for one specific  parameter value.
 * @param numEntriesPerPreview
 * @param numParamValues
 * @param paramValue
 */
private void constructMeanStdPreviewsForParam(int numEntriesPerPreview,int numParamValues,int paramValue){
  List<double[]> meanParamMeasurements=calculateMeanMeasurementsForParam(numEntriesPerPreview,numParamValues,paramValue);
  List<double[]> stdParamMeasurements=calculateStdMeasurementsForParam(numEntriesPerPreview,numParamValues,paramValue,meanParamMeasurements);
  String[] meanMeasurementNames=this.origMultiRunPreviews.getMeasurementNames();
  meanMeasurementNames=Arrays.copyOfRange(meanMeasurementNames,4,meanMeasurementNames.length);
  String[] stdMeasurementNames=new String[meanMeasurementNames.length];
  for (int m=0; m < meanMeasurementNames.length; m++) {
    stdMeasurementNames[m]="String_Node_Str" + meanMeasurementNames[m + 4];
  }
  LearningCurve meanLearningCurve=new LearningCurve("String_Node_Str");
  meanLearningCurve.setData(Arrays.asList(meanMeasurementNames),meanParamMeasurements);
  LearningCurve stdLearningCurve=new LearningCurve("String_Node_Str");
  stdLearningCurve.setData(Arrays.asList(stdMeasurementNames),stdParamMeasurements);
  Preview meanParamValuePreview=new PreviewCollectionLearningCurveWrapper(meanLearningCurve,this.origMultiRunPreviews.taskClass);
  Preview stdParamValuePreview=new PreviewCollectionLearningCurveWrapper(stdLearningCurve,this.origMultiRunPreviews.taskClass);
  this.meanPreviews.setPreview(paramValue,meanParamValuePreview);
  this.stdPreviews.setPreview(paramValue,stdParamValuePreview);
}

Fixed version (ground truth):
/** 
 * Construct the mean and standard deviation Previews for one specific  parameter value.
 * @param numEntriesPerPreview
 * @param numParamValues
 * @param paramValue
 */
private void constructMeanStdPreviewsForParam(int numEntriesPerPreview,int numParamValues,int paramValue){
  List<double[]> meanParamMeasurements=calculateMeanMeasurementsForParam(numEntriesPerPreview,numParamValues,paramValue);
  List<double[]> stdParamMeasurements=calculateStdMeasurementsForParam(numEntriesPerPreview,numParamValues,paramValue,meanParamMeasurements);
  String[] meanMeasurementNames=this.origMultiRunPreviews.getMeasurementNames();
  meanMeasurementNames=Arrays.copyOfRange(meanMeasurementNames,4,meanMeasurementNames.length);
  String[] stdMeasurementNames=new String[meanMeasurementNames.length];
  for (int m=0; m < meanMeasurementNames.length; m++) {
    stdMeasurementNames[m]="String_Node_Str" + meanMeasurementNames[m];
  }
  LearningCurve meanLearningCurve=new LearningCurve("String_Node_Str");
  meanLearningCurve.setData(Arrays.asList(meanMeasurementNames),meanParamMeasurements);
  LearningCurve stdLearningCurve=new LearningCurve("String_Node_Str");
  stdLearningCurve.setData(Arrays.asList(stdMeasurementNames),stdParamMeasurements);
  Preview meanParamValuePreview=new PreviewCollectionLearningCurveWrapper(meanLearningCurve,this.origMultiRunPreviews.taskClass);
  Preview stdParamValuePreview=new PreviewCollectionLearningCurveWrapper(stdLearningCurve,this.origMultiRunPreviews.taskClass);
  this.meanPreviews.setPreview(paramValue,meanParamValuePreview);
  this.stdPreviews.setPreview(paramValue,stdParamValuePreview);
}