Program: 168082
Project: 168082
Buggy source:
private void createCrawlInputParameters(final FormToolkit toolkit,final Composite parent){
  Section inputParamsSection=toolkit.createSection(parent,Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
  GridDataFactory.fillDefaults().grab(true,false).span(1,1).applyTo(inputParamsSection);
  GridLayoutFactory.fillDefaults().numColumns(2).applyTo(inputParamsSection);
  inputParamsSection.setText("String_Node_Str");
  ScrolledComposite sc=new ScrolledComposite(inputParamsSection,SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
  sc.setExpandHorizontal(true);
  sc.setExpandVertical(true);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(sc);
  Composite mainComposite=toolkit.createComposite(inputParamsSection);
  sc.setContent(mainComposite);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(sc);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(mainComposite);
  inputParamsSection.setClient(mainComposite);
  searchComposite=toolkit.createComposite(mainComposite);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchComposite);
  GridLayoutFactory.fillDefaults().equalWidth(true).applyTo(searchComposite);
  commonsearchComposite=toolkit.createComposite(searchComposite);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(commonsearchComposite);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(commonsearchComposite);
  TacitFormComposite.createEmptyRow(toolkit,searchComposite);
  Group filterResultsGroup=new Group(searchComposite,SWT.LEFT);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(filterResultsGroup);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(filterResultsGroup);
  filterResultsGroup.setText("String_Node_Str");
  TacitFormComposite.createEmptyRow(toolkit,filterResultsGroup);
  TacitFormComposite.createEmptyRow(toolkit,searchComposite);
  final Label searchLabel1=new Label(commonsearchComposite,SWT.NONE);
  searchLabel1.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(searchLabel1);
  searchText1=new Text(commonsearchComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchText1);
  searchText1.setMessage("String_Node_Str");
  Group operatorButtonComposite=new Group(commonsearchComposite,SWT.LEFT);
  GridDataFactory.fillDefaults().span(3,0).indent(0,10).applyTo(operatorButtonComposite);
  GridLayout operatorLayout=new GridLayout();
  operatorLayout.numColumns=3;
  operatorButtonComposite.setLayout(operatorLayout);
  andButton=new Button(operatorButtonComposite,SWT.RADIO);
  andButton.setText("String_Node_Str");
  andButton.setSelection(true);
  orButton=new Button(operatorButtonComposite,SWT.RADIO);
  orButton.setText("String_Node_Str");
  orButton.setSelection(false);
  notButton=new Button(operatorButtonComposite,SWT.RADIO);
  notButton.setText("String_Node_Str");
  notButton.setSelection(false);
  TacitFormComposite.createEmptyRow(toolkit,commonsearchComposite);
  final Label searchLabel2=new Label(commonsearchComposite,SWT.NONE);
  searchLabel2.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(searchLabel2);
  searchText2=new Text(commonsearchComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchText2);
  searchText2.setMessage("String_Node_Str");
  dateCheckSearch=new Button(filterResultsGroup,SWT.RADIO);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(10,0).applyTo(dateCheckSearch);
  dateCheckSearch.setText("String_Node_Str");
  dateCheckBrowse=new Button(filterResultsGroup,SWT.RADIO);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(dateCheckBrowse);
  dateCheckBrowse.setText("String_Node_Str");
  Composite dateComposite1=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(dateComposite1);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(0,10).applyTo(dateComposite1);
  final Label fromLabel=new Label(dateComposite1,SWT.NONE);
  fromLabel.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(fromLabel);
  fromDate=new DateTime(dateComposite1,SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(fromDate);
  fromLabel.setEnabled(false);
  fromDate.setEnabled(false);
  final Label toLabel=new Label(dateComposite1,SWT.NONE);
  toLabel.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(toLabel);
  toDate=new DateTime(dateComposite1,SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).indent(15,0).span(1,0).applyTo(toDate);
  toLabel.setEnabled(false);
  toDate.setEnabled(false);
  Composite dateComposite3=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(dateComposite3);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(0,10).applyTo(dateComposite3);
  final Composite dateHolder3=new Composite(dateComposite3,SWT.None);
  GridDataFactory.fillDefaults().grab(false,false).span(2,1).applyTo(dateHolder3);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(true).applyTo(dateHolder3);
  Composite comboComposite1=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(comboComposite1);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,10).span(1,0).applyTo(comboComposite1);
  Label selectPresidentSearchLabel=new Label(comboComposite1,SWT.NONE);
  selectPresidentSearchLabel.setText("String_Node_Str");
  selectPresidentSearch=new Combo(comboComposite1,SWT.FLAT | SWT.READ_ONLY);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,0).span(1,0).applyTo(selectPresidentSearch);
  selectPresidentSearch.setItems(presidentNames);
  selectPresidentSearch.select(0);
  dateCheckSearch.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (dateCheckSearch.getSelection()) {
        dateCheckBrowse.setSelection(false);
        fromDate.setEnabled(true);
        toDate.setEnabled(true);
        fromLabel.setEnabled(true);
        toLabel.setEnabled(true);
        dateHolder3.setEnabled(false);
        searchLabel1.setEnabled(true);
        searchLabel2.setEnabled(true);
        searchText1.setEnabled(true);
        searchText2.setEnabled(true);
        andButton.setEnabled(true);
        orButton.setEnabled(true);
        notButton.setEnabled(true);
      }
 else {
        fromDate.setEnabled(false);
        toDate.setEnabled(false);
        fromLabel.setEnabled(false);
        toLabel.setEnabled(false);
      }
    }
  }
);
  dateCheckBrowse.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (dateCheckBrowse.getSelection()) {
        browseDay.setEnabled(true);
        browseMonth.setEnabled(true);
        browseYear.setEnabled(true);
        dateCheckSearch.setSelection(false);
        fromDate.setEnabled(false);
        toDate.setEnabled(false);
        fromLabel.setEnabled(false);
        toLabel.setEnabled(false);
        dateHolder3.setEnabled(true);
        searchText1.setEnabled(false);
        searchText2.setEnabled(false);
        searchLabel1.setEnabled(false);
        searchLabel2.setEnabled(false);
        andButton.setEnabled(false);
        orButton.setEnabled(false);
        notButton.setEnabled(false);
      }
 else {
        browseDay.setEnabled(false);
        browseMonth.setEnabled(false);
        browseYear.setEnabled(false);
        dateHolder3.setEnabled(false);
        commonsearchComposite.setEnabled(true);
        searchText1.setEnabled(true);
        searchText2.setEnabled(true);
        searchLabel1.setEnabled(true);
        searchLabel2.setEnabled(true);
        andButton.setEnabled(true);
        orButton.setEnabled(true);
        notButton.setEnabled(true);
      }
    }
  }
);
  Composite comboComposite2=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(comboComposite2);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,10).span(1,0).applyTo(comboComposite2);
  Label documentCategory=new Label(comboComposite2,SWT.NONE);
  documentCategory.setText("String_Node_Str");
  selectDocumentSearch=new Combo(comboComposite2,SWT.FLAT | SWT.READ_ONLY);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(selectDocumentSearch);
  selectDocumentSearch.setItems(documentTypes);
  selectDocumentSearch.select(0);
  TacitFormComposite.createEmptyRow(toolkit,filterResultsGroup);
  browseMonth=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseMonth.setItems(months);
  browseMonth.select(0);
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(browseMonth);
  browseDay=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseDay.setItems(days);
  browseDay.select(0);
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(browseDay);
  browseYear=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseYear.setItems(years);
  browseYear.select(0);
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(browseYear);
  browseDay.setEnabled(false);
  browseMonth.setEnabled(false);
  browseYear.setEnabled(false);
}

Fixed version (ground truth):
private void createCrawlInputParameters(final FormToolkit toolkit,final Composite parent){
  Section inputParamsSection=toolkit.createSection(parent,Section.TITLE_BAR | Section.EXPANDED | Section.DESCRIPTION);
  GridDataFactory.fillDefaults().grab(true,false).span(1,1).applyTo(inputParamsSection);
  GridLayoutFactory.fillDefaults().numColumns(2).applyTo(inputParamsSection);
  inputParamsSection.setText("String_Node_Str");
  ScrolledComposite sc=new ScrolledComposite(inputParamsSection,SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
  sc.setExpandHorizontal(true);
  sc.setExpandVertical(true);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(sc);
  Composite mainComposite=toolkit.createComposite(inputParamsSection);
  sc.setContent(mainComposite);
  GridDataFactory.fillDefaults().grab(true,true).applyTo(sc);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(mainComposite);
  inputParamsSection.setClient(mainComposite);
  searchComposite=toolkit.createComposite(mainComposite);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchComposite);
  GridLayoutFactory.fillDefaults().equalWidth(true).applyTo(searchComposite);
  commonsearchComposite=toolkit.createComposite(searchComposite);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(commonsearchComposite);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(commonsearchComposite);
  TacitFormComposite.createEmptyRow(toolkit,searchComposite);
  Group filterResultsGroup=new Group(searchComposite,SWT.LEFT);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(filterResultsGroup);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(filterResultsGroup);
  filterResultsGroup.setText("String_Node_Str");
  TacitFormComposite.createEmptyRow(toolkit,filterResultsGroup);
  TacitFormComposite.createEmptyRow(toolkit,searchComposite);
  final Label searchLabel1=new Label(commonsearchComposite,SWT.NONE);
  searchLabel1.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(searchLabel1);
  searchText1=new Text(commonsearchComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchText1);
  searchText1.setMessage("String_Node_Str");
  Group operatorButtonComposite=new Group(commonsearchComposite,SWT.LEFT);
  GridDataFactory.fillDefaults().span(3,0).indent(0,10).applyTo(operatorButtonComposite);
  GridLayout operatorLayout=new GridLayout();
  operatorLayout.numColumns=3;
  operatorButtonComposite.setLayout(operatorLayout);
  andButton=new Button(operatorButtonComposite,SWT.RADIO);
  andButton.setText("String_Node_Str");
  andButton.setSelection(true);
  orButton=new Button(operatorButtonComposite,SWT.RADIO);
  orButton.setText("String_Node_Str");
  orButton.setSelection(false);
  notButton=new Button(operatorButtonComposite,SWT.RADIO);
  notButton.setText("String_Node_Str");
  notButton.setSelection(false);
  TacitFormComposite.createEmptyRow(toolkit,commonsearchComposite);
  final Label searchLabel2=new Label(commonsearchComposite,SWT.NONE);
  searchLabel2.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(searchLabel2);
  searchText2=new Text(commonsearchComposite,SWT.BORDER);
  GridDataFactory.fillDefaults().grab(true,false).span(2,0).applyTo(searchText2);
  searchText2.setMessage("String_Node_Str");
  dateCheckSearch=new Button(filterResultsGroup,SWT.CHECK);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(10,0).applyTo(dateCheckSearch);
  dateCheckSearch.setText("String_Node_Str");
  dateCheckBrowse=new Button(filterResultsGroup,SWT.CHECK);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(dateCheckBrowse);
  dateCheckBrowse.setText("String_Node_Str");
  Composite dateComposite1=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(dateComposite1);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(0,10).applyTo(dateComposite1);
  final Label fromLabel=new Label(dateComposite1,SWT.NONE);
  fromLabel.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(fromLabel);
  fromDate=new DateTime(dateComposite1,SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(fromDate);
  fromLabel.setEnabled(false);
  fromDate.setEnabled(false);
  final Label toLabel=new Label(dateComposite1,SWT.NONE);
  toLabel.setText("String_Node_Str");
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(toLabel);
  toDate=new DateTime(dateComposite1,SWT.DATE | SWT.DROP_DOWN | SWT.BORDER);
  GridDataFactory.fillDefaults().grab(false,false).indent(15,0).span(1,0).applyTo(toDate);
  toLabel.setEnabled(false);
  toDate.setEnabled(false);
  Composite dateComposite3=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(dateComposite3);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).indent(0,10).applyTo(dateComposite3);
  final Composite dateHolder3=new Composite(dateComposite3,SWT.None);
  GridDataFactory.fillDefaults().grab(false,false).span(2,1).applyTo(dateHolder3);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(true).applyTo(dateHolder3);
  Composite comboComposite1=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(comboComposite1);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,10).span(1,0).applyTo(comboComposite1);
  Label selectPresidentSearchLabel=new Label(comboComposite1,SWT.NONE);
  selectPresidentSearchLabel.setText("String_Node_Str");
  selectPresidentSearch=new Combo(comboComposite1,SWT.FLAT | SWT.READ_ONLY);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,0).span(1,0).applyTo(selectPresidentSearch);
  selectPresidentSearch.setItems(presidentNames);
  selectPresidentSearch.select(0);
  dateCheckSearch.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (dateCheckSearch.getSelection()) {
        dateCheckBrowse.setSelection(false);
        fromDate.setEnabled(true);
        toDate.setEnabled(true);
        fromLabel.setEnabled(true);
        toLabel.setEnabled(true);
        dateHolder3.setEnabled(false);
        searchLabel1.setEnabled(true);
        searchLabel2.setEnabled(true);
        searchText1.setEnabled(true);
        searchText2.setEnabled(true);
        andButton.setEnabled(true);
        orButton.setEnabled(true);
        notButton.setEnabled(true);
      }
 else {
        fromDate.setEnabled(false);
        toDate.setEnabled(false);
        fromLabel.setEnabled(false);
        toLabel.setEnabled(false);
      }
    }
  }
);
  dateCheckBrowse.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (dateCheckBrowse.getSelection()) {
        browseDay.setEnabled(true);
        browseMonth.setEnabled(true);
        browseYear.setEnabled(true);
        dateCheckSearch.setSelection(false);
        fromDate.setEnabled(false);
        toDate.setEnabled(false);
        fromLabel.setEnabled(false);
        toLabel.setEnabled(false);
        dateHolder3.setEnabled(true);
        searchText1.setEnabled(false);
        searchText2.setEnabled(false);
        searchLabel1.setEnabled(false);
        searchLabel2.setEnabled(false);
        andButton.setEnabled(false);
        orButton.setEnabled(false);
        notButton.setEnabled(false);
      }
 else {
        browseDay.setEnabled(false);
        browseMonth.setEnabled(false);
        browseYear.setEnabled(false);
        dateHolder3.setEnabled(false);
        commonsearchComposite.setEnabled(true);
        searchText1.setEnabled(true);
        searchText2.setEnabled(true);
        searchLabel1.setEnabled(true);
        searchLabel2.setEnabled(true);
        andButton.setEnabled(true);
        orButton.setEnabled(true);
        notButton.setEnabled(true);
      }
    }
  }
);
  Composite comboComposite2=new Composite(filterResultsGroup,SWT.NONE);
  GridLayoutFactory.fillDefaults().numColumns(4).equalWidth(false).applyTo(comboComposite2);
  GridDataFactory.fillDefaults().grab(true,false).indent(10,10).span(1,0).applyTo(comboComposite2);
  Label documentCategory=new Label(comboComposite2,SWT.NONE);
  documentCategory.setText("String_Node_Str");
  selectDocumentSearch=new Combo(comboComposite2,SWT.FLAT | SWT.READ_ONLY);
  GridDataFactory.fillDefaults().grab(true,false).span(1,0).applyTo(selectDocumentSearch);
  selectDocumentSearch.setItems(documentTypes);
  selectDocumentSearch.select(0);
  TacitFormComposite.createEmptyRow(toolkit,filterResultsGroup);
  browseMonth=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseMonth.setItems(months);
  browseMonth.select(0);
  GridDataFactory.fillDefaults().grab(false,false).span(1,0).applyTo(browseMonth);
  browseDay=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseDay.setItems(days);
  browseDay.select(0);
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(browseDay);
  browseYear=new Combo(dateHolder3,SWT.FLAT | SWT.READ_ONLY);
  browseYear.setItems(years);
  browseYear.select(0);
  GridDataFactory.fillDefaults().grab(false,false).indent(10,0).span(1,0).applyTo(browseYear);
  browseDay.setEnabled(false);
  browseMonth.setEnabled(false);
  browseYear.setEnabled(false);
}