Program: 140227
Project: 140227
Buggy source:
public Map<EIndicatorChartType,List<IndicatorUnit>> getIndicatorComposite(){
  List<IndicatorUnit> simpleList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> textList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> frequencyList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> summaryList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> patternList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> sqlPatternList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> modelIndicatorList=new ArrayList<IndicatorUnit>();
  for (  IndicatorUnit one : indicatorUnits) {
switch (one.getType()) {
case RowCountIndicatorEnum:
case NullCountIndicatorEnum:
case DistinctCountIndicatorEnum:
case UniqueIndicatorEnum:
case DuplicateCountIndicatorEnum:
case BlankCountIndicatorEnum:
      simpleList.add(one);
    break;
case MinLengthIndicatorEnum:
case MaxLengthIndicatorEnum:
case AverageLengthIndicatorEnum:
  textList.add(one);
break;
case FrequencyIndicatorEnum:
frequencyList.add(one);
break;
case MeanIndicatorEnum:
case MinValueIndicatorEnum:
case MaxValueIndicatorEnum:
case MedianIndicatorEnum:
case LowerQuartileIndicatorEnum:
case UpperQuartileIndicatorEnum:
summaryList.add(one);
break;
case RegexpMatchingIndicatorEnum:
patternList.add(one);
break;
case SqlPatternMatchingIndicatorEnum:
sqlPatternList.add(one);
break;
case ModeIndicatorEnum:
modelIndicatorList.add(one);
break;
default :
}
}
separatedMap.put(EIndicatorChartType.SIMPLE_STATISTICS,simpleList);
separatedMap.put(EIndicatorChartType.TEXT_STATISTICS,textList);
separatedMap.put(EIndicatorChartType.FREQUENCE_STATISTICS,frequencyList);
separatedMap.put(EIndicatorChartType.SUMMARY_STATISTICS,summaryList);
separatedMap.put(EIndicatorChartType.PATTERN_MATCHING,patternList);
separatedMap.put(EIndicatorChartType.SQL_PATTERN_MATCHING,sqlPatternList);
separatedMap.put(EIndicatorChartType.MODE_INDICATOR,modelIndicatorList);
return separatedMap;
}

Fixed version (ground truth):
public Map<EIndicatorChartType,List<IndicatorUnit>> getIndicatorComposite(){
  List<IndicatorUnit> simpleList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> textList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> frequencyList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> lowFrequencyList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> summaryList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> patternList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> sqlPatternList=new ArrayList<IndicatorUnit>();
  List<IndicatorUnit> modelIndicatorList=new ArrayList<IndicatorUnit>();
  for (  IndicatorUnit one : indicatorUnits) {
switch (one.getType()) {
case RowCountIndicatorEnum:
case NullCountIndicatorEnum:
case DistinctCountIndicatorEnum:
case UniqueIndicatorEnum:
case DuplicateCountIndicatorEnum:
case BlankCountIndicatorEnum:
      simpleList.add(one);
    break;
case MinLengthIndicatorEnum:
case MaxLengthIndicatorEnum:
case AverageLengthIndicatorEnum:
  textList.add(one);
break;
case FrequencyIndicatorEnum:
frequencyList.add(one);
break;
case LowFrequencyIndicatorEnum:
lowFrequencyList.add(one);
break;
case MeanIndicatorEnum:
case MinValueIndicatorEnum:
case MaxValueIndicatorEnum:
case MedianIndicatorEnum:
case LowerQuartileIndicatorEnum:
case UpperQuartileIndicatorEnum:
summaryList.add(one);
break;
case RegexpMatchingIndicatorEnum:
patternList.add(one);
break;
case SqlPatternMatchingIndicatorEnum:
sqlPatternList.add(one);
break;
case ModeIndicatorEnum:
modelIndicatorList.add(one);
break;
default :
}
}
separatedMap.put(EIndicatorChartType.SIMPLE_STATISTICS,simpleList);
separatedMap.put(EIndicatorChartType.TEXT_STATISTICS,textList);
separatedMap.put(EIndicatorChartType.FREQUENCE_STATISTICS,frequencyList);
separatedMap.put(EIndicatorChartType.LOW_FREQUENCE_STATISTICS,lowFrequencyList);
separatedMap.put(EIndicatorChartType.SUMMARY_STATISTICS,summaryList);
separatedMap.put(EIndicatorChartType.PATTERN_MATCHING,patternList);
separatedMap.put(EIndicatorChartType.SQL_PATTERN_MATCHING,sqlPatternList);
separatedMap.put(EIndicatorChartType.MODE_INDICATOR,modelIndicatorList);
return separatedMap;
}