Program: 140781
Project: 140781
Buggy source:
public static List<ImageDescriptor> createChart(ColumnIndicator column,boolean isCreate){
  CompositeIndicator compositeIndicator=new CompositeIndicator(column);
  Map<String,List<IndicatorUnit>> separatedMap=compositeIndicator.getIndicatorComposite();
  List<ImageDescriptor> returnFiles=new ArrayList<ImageDescriptor>();
  if (separatedMap.get(CompositeIndicator.SIMPLE_STATISTICS).size() != 0) {
    CategoryDataset dataset=createSimpleDataset(separatedMap.get(CompositeIndicator.SIMPLE_STATISTICS),isCreate);
    returnFiles.add(create3DBarChart(CompositeIndicator.SIMPLE_STATISTICS,dataset,true));
  }
  if (separatedMap.get(CompositeIndicator.TEXT_STATISTICS).size() != 0) {
    CategoryDataset dataset=createTextedDataset(separatedMap.get(CompositeIndicator.TEXT_STATISTICS),isCreate);
    returnFiles.add(create3DBarChart(CompositeIndicator.TEXT_STATISTICS,dataset,true));
  }
  if (separatedMap.get(CompositeIndicator.FREQUENCE_STATISTICS).size() != 0) {
    CategoryDataset dataset=createFrequenceDataset(separatedMap.get(CompositeIndicator.FREQUENCE_STATISTICS),isCreate);
    returnFiles.add(createBarChart(CompositeIndicator.FREQUENCE_STATISTICS,dataset));
  }
  if (separatedMap.get(CompositeIndicator.SUMMARY_STATISTICS).size() != 0) {
    CategoryDataset dataset=createSummaryDataset(separatedMap.get(CompositeIndicator.SUMMARY_STATISTICS),isCreate);
    if (dataset instanceof BoxAndWhiskerCategoryDataset) {
      returnFiles.add(createBoxAndWhiskerChart(CompositeIndicator.SUMMARY_STATISTICS,(BoxAndWhiskerCategoryDataset)dataset));
    }
 else {
      returnFiles.add(create3DBarChart(CompositeIndicator.SUMMARY_STATISTICS,dataset,false));
    }
  }
  if (separatedMap.get(CompositeIndicator.PATTERN_MATCHING).size() != 0) {
    CategoryDataset dataset=createPatternMatchDataset(separatedMap.get(CompositeIndicator.PATTERN_MATCHING),isCreate);
    returnFiles.add(createStackedBarChart(CompositeIndicator.PATTERN_MATCHING,dataset));
  }
  return returnFiles;
}

Fixed version (ground truth):
public static List<ImageDescriptor> createChart(ColumnIndicator column,boolean isCreate){
  CompositeIndicator compositeIndicator=new CompositeIndicator(column);
  Map<String,List<IndicatorUnit>> separatedMap=compositeIndicator.getIndicatorComposite();
  List<ImageDescriptor> returnFiles=new ArrayList<ImageDescriptor>();
  if (separatedMap.get(CompositeIndicator.SIMPLE_STATISTICS).size() != 0) {
    CategoryDataset dataset=createSimpleDataset(separatedMap.get(CompositeIndicator.SIMPLE_STATISTICS),isCreate);
    returnFiles.add(create3DBarChart(CompositeIndicator.SIMPLE_STATISTICS,dataset,true));
  }
  if (separatedMap.get(CompositeIndicator.TEXT_STATISTICS).size() != 0) {
    CategoryDataset dataset=createTextedDataset(separatedMap.get(CompositeIndicator.TEXT_STATISTICS),isCreate);
    returnFiles.add(create3DBarChart(CompositeIndicator.TEXT_STATISTICS,dataset,true));
  }
  if (separatedMap.get(CompositeIndicator.FREQUENCE_STATISTICS).size() != 0) {
    CategoryDataset dataset=createFrequenceDataset(separatedMap.get(CompositeIndicator.FREQUENCE_STATISTICS),isCreate);
    returnFiles.add(createBarChart(CompositeIndicator.FREQUENCE_STATISTICS,dataset));
  }
  if (separatedMap.get(CompositeIndicator.SUMMARY_STATISTICS).size() != 0) {
    CategoryDataset dataset=createSummaryDataset(separatedMap.get(CompositeIndicator.SUMMARY_STATISTICS),isCreate);
    if (dataset instanceof BoxAndWhiskerCategoryDataset) {
      returnFiles.add(createBoxAndWhiskerChart(CompositeIndicator.SUMMARY_STATISTICS,(BoxAndWhiskerCategoryDataset)dataset));
    }
 else {
      returnFiles.add(create3DBarChart(CompositeIndicator.SUMMARY_STATISTICS,dataset,false));
    }
  }
  if (separatedMap.get(CompositeIndicator.PATTERN_MATCHING).size() != 0) {
    CategoryDataset dataset=createPatternMatchDataset(separatedMap.get(CompositeIndicator.PATTERN_MATCHING),isCreate);
    returnFiles.add(createStacked3DBarChart(CompositeIndicator.PATTERN_MATCHING,dataset));
  }
  return returnFiles;
}