Program: 140507
Project: 140507
Buggy source:
public Map<String,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>();
  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;
default :
}
}
separatedMap.put(SIMPLE_STATISTICS,simpleList);
separatedMap.put(TEXT_STATISTICS,textList);
separatedMap.put(FREQUENCE_STATISTICS,frequencyList);
separatedMap.put(SUMMARY_STATISTICS,summaryList);
separatedMap.put(PATTERN_MATCHING,patternList);
separatedMap.put(SQL_PATTERN_MATCHING,sqlPatternList);
return separatedMap;
}

Fixed version (ground truth):
public Map<String,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(SIMPLE_STATISTICS,simpleList);
separatedMap.put(TEXT_STATISTICS,textList);
separatedMap.put(FREQUENCE_STATISTICS,frequencyList);
separatedMap.put(SUMMARY_STATISTICS,summaryList);
separatedMap.put(PATTERN_MATCHING,patternList);
separatedMap.put(SQL_PATTERN_MATCHING,sqlPatternList);
separatedMap.put(MODE_INDICATOR,modelIndicatorList);
return separatedMap;
}