Program: 32922
Project: 32922
Buggy source:
static MultiLabelClfDataSet loadData(Config config,MultiLabelIndex index,FeatureList featureList,IdTranslator idTranslator,int totalDim,LabelTranslator labelTranslator,String docFilter) throws Exception {
  File metaDataFolder=new File(config.getString("String_Node_Str"),"String_Node_Str");
  Config savedConfig=new Config(new File(metaDataFolder,"String_Node_Str"));
  int numDataPoints=idTranslator.numData();
  int numClasses=labelTranslator.getNumClasses();
  MultiLabelClfDataSet dataSet=MLClfDataSetBuilder.getBuilder().numDataPoints(numDataPoints).numFeatures(totalDim).numClasses(numClasses).dense(false).missingValue(savedConfig.getBoolean("String_Node_Str")).build();
  for (int i=0; i < numDataPoints; i++) {
    String dataIndexId=idTranslator.toExtId(i);
    List<String> extMultiLabel=index.getExtMultiLabel(dataIndexId);
    if (savedConfig.getBoolean("String_Node_Str")) {
      String prefix=savedConfig.getString("String_Node_Str");
      extMultiLabel=extMultiLabel.stream().filter(extLabel -> extLabel.startsWith(prefix)).collect(Collectors.toList());
    }
    for (    String extLabel : extMultiLabel) {
      int intLabel=labelTranslator.toIntLabel(extLabel);
      dataSet.addLabel(i,intLabel);
    }
  }
  String matchScoreTypeString=savedConfig.getString("String_Node_Str");
  FeatureLoader.MatchScoreType matchScoreType;
switch (matchScoreTypeString) {
case "String_Node_Str":
    matchScoreType=FeatureLoader.MatchScoreType.ES_ORIGINAL;
  break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.BINARY;
break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.FREQUENCY;
break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.TFIFL;
break;
default :
throw new IllegalArgumentException("String_Node_Str");
}
FeatureLoader.loadFeatures(index,dataSet,featureList,idTranslator,matchScoreType,docFilter);
dataSet.setIdTranslator(idTranslator);
dataSet.setLabelTranslator(labelTranslator);
return dataSet;
}

Fixed version (ground truth):
static MultiLabelClfDataSet loadData(Config config,MultiLabelIndex index,FeatureList featureList,IdTranslator idTranslator,int totalDim,LabelTranslator labelTranslator,String docFilter) throws Exception {
  File metaDataFolder=new File(config.getString("String_Node_Str"),"String_Node_Str");
  Config savedConfig=new Config(new File(metaDataFolder,"String_Node_Str"));
  int numDataPoints=idTranslator.numData();
  int numClasses=labelTranslator.getNumClasses();
  MultiLabelClfDataSet dataSet=MLClfDataSetBuilder.getBuilder().numDataPoints(numDataPoints).numFeatures(totalDim).numClasses(numClasses).density(Density.SPARSE_RANDOM).missingValue(savedConfig.getBoolean("String_Node_Str")).build();
  for (int i=0; i < numDataPoints; i++) {
    String dataIndexId=idTranslator.toExtId(i);
    List<String> extMultiLabel=index.getExtMultiLabel(dataIndexId);
    if (savedConfig.getBoolean("String_Node_Str")) {
      String prefix=savedConfig.getString("String_Node_Str");
      extMultiLabel=extMultiLabel.stream().filter(extLabel -> extLabel.startsWith(prefix)).collect(Collectors.toList());
    }
    for (    String extLabel : extMultiLabel) {
      int intLabel=labelTranslator.toIntLabel(extLabel);
      dataSet.addLabel(i,intLabel);
    }
  }
  String matchScoreTypeString=savedConfig.getString("String_Node_Str");
  FeatureLoader.MatchScoreType matchScoreType;
switch (matchScoreTypeString) {
case "String_Node_Str":
    matchScoreType=FeatureLoader.MatchScoreType.ES_ORIGINAL;
  break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.BINARY;
break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.FREQUENCY;
break;
case "String_Node_Str":
matchScoreType=FeatureLoader.MatchScoreType.TFIFL;
break;
default :
throw new IllegalArgumentException("String_Node_Str");
}
FeatureLoader.loadFeatures(index,dataSet,featureList,idTranslator,matchScoreType,docFilter);
dataSet.setIdTranslator(idTranslator);
dataSet.setLabelTranslator(labelTranslator);
return dataSet;
}