Program: 140720
Project: 140720
Buggy source:
public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  container.setLayout(new FillLayout());
  tabFolder=new TabFolder(container,SWT.FLAT);
  tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
  DataminingType dataminingType=MetadataHelper.getDataminingType(parentColumn.getTdColumn());
  if (dataminingType == null) {
    dataminingType=MetadataHelper.getDefaultDataminingType(parentColumn.getTdColumn().getJavaType());
  }
  if (indicator != null) {
    int sqlType=parentColumn.getTdColumn().getJavaType();
switch (indicator.getType()) {
case DistinctCountIndicatorEnum:
case UniqueIndicatorEnum:
case DuplicateCountIndicatorEnum:
      if (Java2SqlType.isTextInSQL(sqlType)) {
        setControl(createView(new TextParametersForm(tabFolder,SWT.NONE)));
      }
    break;
case MinLengthIndicatorEnum:
case MaxLengthIndicatorEnum:
case AverageLengthIndicatorEnum:
  setControl(createView(new TextLengthForm(tabFolder,SWT.NONE)));
break;
case FrequencyIndicatorEnum:
if (dataminingType == DataminingType.INTERVAL) {
if (Java2SqlType.isNumbericInSQL(sqlType)) {
  setControl(createView(new FrequBinsDesignerForm(tabFolder,SWT.NONE)));
}
if (Java2SqlType.isDateInSQL(sqlType)) {
  setControl(createView(new FrequTimeSliceForm(tabFolder,SWT.NONE)));
}
}
 else if (Java2SqlType.isTextInSQL(sqlType)) {
setControl(createView(new FrequTextParametersForm(tabFolder,SWT.NONE)));
}
break;
case ModeIndicatorEnum:
if (dataminingType == DataminingType.INTERVAL) {
if (Java2SqlType.isNumbericInSQL(sqlType)) {
setControl(createView(new BinsDesignerForm(tabFolder,SWT.NONE)));
}
}
 else if (Java2SqlType.isTextInSQL(sqlType)) {
setControl(createView(new TextParametersForm(tabFolder,SWT.NONE)));
}
break;
case BoxIIndicatorEnum:
setControl(createView(new DataThresholdsForm(tabFolder,SWT.NONE)));
break;
default :
}
}
if (getControl() != null) {
try {
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),HelpPlugin.PLUGIN_ID + HelpPlugin.INDICATOR_OPTION_HELP_ID);
}
 catch (Exception e) {
e.printStackTrace();
}
}
}

Fixed version (ground truth):
public void createControl(Composite parent){
  Composite container=new Composite(parent,SWT.NONE);
  container.setLayout(new FillLayout());
  tabFolder=new TabFolder(container,SWT.FLAT);
  tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH));
  DataminingType dataminingType=MetadataHelper.getDataminingType(parentColumn.getTdColumn());
  if (dataminingType == null) {
    dataminingType=MetadataHelper.getDefaultDataminingType(parentColumn.getTdColumn().getJavaType());
  }
  if (indicator != null) {
    int sqlType=parentColumn.getTdColumn().getJavaType();
switch (indicator.getType()) {
case DistinctCountIndicatorEnum:
case UniqueIndicatorEnum:
case DuplicateCountIndicatorEnum:
      if (Java2SqlType.isTextInSQL(sqlType)) {
        setControl(createView(new TextParametersForm(tabFolder,SWT.NONE)));
      }
    break;
case MinLengthIndicatorEnum:
case MaxLengthIndicatorEnum:
case AverageLengthIndicatorEnum:
  setControl(createView(new TextLengthForm(tabFolder,SWT.NONE)));
break;
case FrequencyIndicatorEnum:
if (dataminingType == DataminingType.INTERVAL) {
if (Java2SqlType.isNumbericInSQL(sqlType)) {
  setControl(createView(new FreqBinsDesignerForm(tabFolder,SWT.NONE)));
}
if (Java2SqlType.isDateInSQL(sqlType)) {
  setControl(createView(new FreqTimeSliceForm(tabFolder,SWT.NONE)));
}
}
 else if (Java2SqlType.isTextInSQL(sqlType)) {
setControl(createView(new FreqTextParametersForm(tabFolder,SWT.NONE)));
}
break;
case ModeIndicatorEnum:
if (dataminingType == DataminingType.INTERVAL) {
if (Java2SqlType.isNumbericInSQL(sqlType)) {
setControl(createView(new BinsDesignerForm(tabFolder,SWT.NONE)));
}
}
 else if (Java2SqlType.isTextInSQL(sqlType)) {
setControl(createView(new TextParametersForm(tabFolder,SWT.NONE)));
}
break;
case BoxIIndicatorEnum:
setControl(createView(new DataThresholdsForm(tabFolder,SWT.NONE)));
break;
default :
}
}
if (getControl() != null) {
try {
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),HelpPlugin.PLUGIN_ID + HelpPlugin.INDICATOR_OPTION_HELP_ID);
}
 catch (Exception e) {
e.printStackTrace();
}
}
}