Program: 138731
Project: 138731
Buggy source:
public static IChartTypeStates getChartState(EIndicatorChartType type,List<IndicatorUnit> units){
switch (type) {
case SIMPLE_STATISTICS:
    return new SimpleStatisticsState(units);
case UDI_COUNT:
case UDI_REALVALUE:
  return new UDISimpleStatisticsState(units);
case TEXT_STATISTICS:
return new TextStatisticsState(units);
case MODE_INDICATOR:
return new ModeStatisticsState(units);
case FREQUENCE_STATISTICS:
return new FrequencyStatisticsState(units);
case UDI_FREQUENCY:
return new UDIFrequencyStatisticsState(units);
case LOW_FREQUENCE_STATISTICS:
return new LowFrequencyStatisticsState(units);
case BIN_FREQUENCE_STATISTICS:
return new FrequencyStatisticsState(units);
case BIN_LOW_FREQUENCE_STATISTICS:
return new LowFrequencyStatisticsState(units);
case PATTERN_FREQUENCE_STATISTICS:
return new PatternFrequencyStatisticsState(units);
case PATTERN_LOW_FREQUENCE_STATISTICS:
return new PatternLowFrequencyStatisticsState(units);
case DATE_PATTERN_FREQUENCE_STATISTICS:
return new DatePatternFrequencyStatisticsState(units);
case PATTERN_MATCHING:
return new REGEXPatternStatisticsState(units);
case UDI_MATCHING:
return new UDIMatchStatisticsState(units);
case SQL_PATTERN_MATCHING:
return new SQLPatternStatisticsState(units);
case SUMMARY_STATISTICS:
return new SummaryStatisticsState(units);
case SOUNDEX_FREQUENCY_TABLE:
return new SoundexFrequencyTableState(units);
case SOUNDEX_LOW_FREQUENCY_TABLE:
return new SoundexLowFrequencyTableState(units);
case DATE_FREQUENCE_STATISTICS:
case WEEK_FREQUENCE_STATISTICS:
case MONTH_FREQUENCE_STATISTICS:
case QUARTER_FREQUENCE_STATISTICS:
case YEAR_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units);
case DATE_LOW_FREQUENCE_STATISTICS:
case WEEK_LOW_FREQUENCE_STATISTICS:
case MONTH_LOW_FREQUENCE_STATISTICS:
case QUARTER_LOW_FREQUENCE_STATISTICS:
case YEAR_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units);
case SIMPLE_TEXT_STATISTICS:
return new SimpleTextStatisticsState(units);
default :
return null;
}
}

Fixed version (ground truth):
public static IChartTypeStates getChartState(EIndicatorChartType type,List<IndicatorUnit> units){
switch (type) {
case SIMPLE_STATISTICS:
    return new SimpleStatisticsState(units);
case UDI_COUNT:
case UDI_REALVALUE:
  return new UDISimpleStatisticsState(units);
case TEXT_STATISTICS:
return new TextStatisticsState(units);
case MODE_INDICATOR:
return new ModeStatisticsState(units);
case FREQUENCE_STATISTICS:
return new FrequencyStatisticsState(units);
case UDI_FREQUENCY:
return new UDIFrequencyStatisticsState(units);
case LOW_FREQUENCE_STATISTICS:
return new LowFrequencyStatisticsState(units);
case BIN_FREQUENCE_STATISTICS:
return new FrequencyStatisticsState(units);
case BIN_LOW_FREQUENCE_STATISTICS:
return new LowFrequencyStatisticsState(units);
case PATTERN_FREQUENCE_STATISTICS:
return new PatternFrequencyStatisticsState(units);
case PATTERN_LOW_FREQUENCE_STATISTICS:
return new PatternLowFrequencyStatisticsState(units);
case DATE_PATTERN_FREQUENCE_STATISTICS:
return new DatePatternFrequencyStatisticsState(units);
case PATTERN_MATCHING:
return new REGEXPatternStatisticsState(units);
case UDI_MATCHING:
return new UDIMatchStatisticsState(units);
case SQL_PATTERN_MATCHING:
return new SQLPatternStatisticsState(units);
case SUMMARY_STATISTICS:
return new SummaryStatisticsState(units);
case SOUNDEX_FREQUENCY_TABLE:
return new SoundexFrequencyTableState(units);
case SOUNDEX_LOW_FREQUENCY_TABLE:
return new SoundexLowFrequencyTableState(units);
case DATE_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units,EIndicatorChartType.DATE_FREQUENCE_STATISTICS);
case WEEK_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units,EIndicatorChartType.WEEK_FREQUENCE_STATISTICS);
case MONTH_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units,EIndicatorChartType.MONTH_FREQUENCE_STATISTICS);
case QUARTER_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units,EIndicatorChartType.QUARTER_FREQUENCE_STATISTICS);
case YEAR_FREQUENCE_STATISTICS:
return new DateFrequencyStatisticsState(units,EIndicatorChartType.YEAR_FREQUENCE_STATISTICS);
case DATE_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units,EIndicatorChartType.DATE_LOW_FREQUENCE_STATISTICS);
case WEEK_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units,EIndicatorChartType.WEEK_LOW_FREQUENCE_STATISTICS);
case MONTH_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units,EIndicatorChartType.MONTH_LOW_FREQUENCE_STATISTICS);
case QUARTER_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units,EIndicatorChartType.QUARTER_LOW_FREQUENCE_STATISTICS);
case YEAR_LOW_FREQUENCE_STATISTICS:
return new DateLowFrequencyStatisticsState(units,EIndicatorChartType.YEAR_LOW_FREQUENCE_STATISTICS);
case SIMPLE_TEXT_STATISTICS:
return new SimpleTextStatisticsState(units);
default :
return null;
}
}