Program: 168214
Project: 168214
Buggy source:
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  Composite composite=new Composite(parent,SWT.NONE);
  composite.setSize(588,300);
  composite.setLocation(0,0);
  Label header=new Label(composite,SWT.NONE);
  header.setImage(ImageDescriptor.createFromURL(FileLocator.find(FrameworkUtil.getBundle(this.getClass()),new Path("String_Node_Str"),null)).createImage());
  header.setBounds(10,0,161,40);
  Label lblSenator=new Label(composite,SWT.NONE);
  lblSenator.setBounds(10,66,60,20);
  lblSenator.setText("String_Node_Str");
  final DateTime dateTime=new DateTime(composite,SWT.BORDER);
  dateTime.setEnabled(false);
  dateTime.setBounds(89,167,101,24);
  final DateTime dateTime_1=new DateTime(composite,SWT.BORDER);
  dateTime_1.setEnabled(false);
  dateTime_1.setBounds(288,167,101,24);
  Label lblToDate=new Label(composite,SWT.NONE);
  lblToDate.setBounds(245,167,21,20);
  lblToDate.setText("String_Node_Str");
  txtMaxDocs=new Text(composite,SWT.BORDER);
  txtMaxDocs.setToolTipText("String_Node_Str");
  txtMaxDocs.setEnabled(false);
  txtMaxDocs.setBounds(189,219,40,21);
  Label lblFrom=new Label(composite,SWT.NONE);
  lblFrom.setBounds(26,167,35,20);
  lblFrom.setText("String_Node_Str");
  final Combo cmbSenator=new Combo(composite,SWT.NONE);
  cmbSenator.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
  cmbSenator.setBounds(89,100,300,23);
  String[] loading={"String_Node_Str"};
  cmbSenator.setItems(loading);
  cmbSenator.select(0);
  final Combo cmbCongress=new Combo(composite,SWT.NONE);
  cmbCongress.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
  cmbCongress.setBounds(89,66,101,20);
  cmbCongress.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        String selectedCongress=cmbCongress.getText().trim();
        if (selectedCongress.equals("String_Node_Str")) {
          cmbSenator.setItems(allSenators);
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
        }
 else {
          cmbSenator.setItems(AvailableRecords.getSenators(selectedCongress));
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
          String congress=cmbCongress.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
          int cNum=-1;
          if (!congress.equals("String_Node_Str")) {
            cNum=Integer.parseInt(congress);
            cNum=2 * (cNum - 101);
            dateTime.setYear(1989 + cNum);
            dateTime.setDay(3);
            dateTime.setMonth(0);
            dateTime_1.setYear(1990 + cNum);
            dateTime_1.setDay(3);
            dateTime_1.setMonth(0);
          }
        }
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
      cmbSenator.select(0);
    }
  }
);
  cmbCongress.setItems(loading);
  cmbCongress.select(0);
  Label lblSenator_1=new Label(composite,SWT.NONE);
  lblSenator_1.setBounds(10,100,55,20);
  lblSenator_1.setText("String_Node_Str");
  final Button btnDateRange=new Button(composite,SWT.CHECK);
  btnDateRange.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnDateRange.getSelection()) {
        dateTime.setEnabled(true);
        dateTime_1.setEnabled(true);
      }
 else {
        dateTime.setEnabled(false);
        dateTime_1.setEnabled(false);
      }
    }
  }
);
  btnDateRange.setBounds(9,142,93,16);
  btnDateRange.setText("String_Node_Str");
  Button btnExtract=new Button(composite,SWT.NONE);
  btnExtract.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      if (btnExtract.getText().equals("String_Node_Str"))       senateCrawler=new SenateCrawler();
      if (btnExtract.getText().equals("String_Node_Str")) {
        System.out.println("String_Node_Str");
        appendLog("String_Node_Str");
        senateCrawler.terminate();
        btnExtract.setText("String_Node_Str");
        return;
      }
      int maxDocs=-1;
      if (!txtMaxDocs.getText().equals("String_Node_Str"))       maxDocs=Integer.parseInt(txtMaxDocs.getText().trim());
      IEclipseContext iEclipseContext=context;
      ContextInjectionFactory.inject(senateCrawler,iEclipseContext);
      String dateFrom="String_Node_Str";
      String dateTo="String_Node_Str";
      if (btnDateRange.getSelection()) {
        dateFrom=(dateTime.getMonth() + 1) + "String_Node_Str" + dateTime.getDay()+ "String_Node_Str"+ dateTime.getYear();
        dateTo=(dateTime_1.getMonth() + 1) + "String_Node_Str" + dateTime_1.getDay()+ "String_Node_Str"+ dateTime_1.getYear();
      }
      String senator=cmbSenator.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
      String congress=cmbCongress.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
      int cNum=-1;
      if (!congress.equals("String_Node_Str"))       cNum=Integer.parseInt(congress);
      senateCrawler.initialize(maxDocs,cNum,senator,dateFrom,dateTo,txtOutput.getText());
      Job job=new Job("String_Node_Str"){
        protected IStatus run(        IProgressMonitor monitor){
          long startTime=System.currentTimeMillis();
          appendLog("String_Node_Str");
          Thread crawlerThread=new Thread(senateCrawler);
          try {
            crawlerThread.start();
            crawlerThread.join();
          }
 catch (          InterruptedException e) {
            e.printStackTrace();
          }
          appendLog("String_Node_Str" + (System.currentTimeMillis() - startTime) / (float)1000 + "String_Node_Str");
          appendLog("String_Node_Str");
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              btnExtract.setText("String_Node_Str");
            }
          }
);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      job.schedule();
      btnExtract.setText("String_Node_Str");
    }
  }
);
  btnExtract.setBounds(10,320,75,25);
  btnExtract.setText("String_Node_Str");
  shell.setDefaultButton(btnExtract);
  Label lblOutput=new Label(composite,SWT.NONE);
  lblOutput.setBounds(10,261,80,20);
  lblOutput.setText("String_Node_Str");
  txtOutput=new Text(composite,SWT.BORDER);
  txtOutput.setBounds(100,261,258,21);
  Button button=new Button(composite,SWT.NONE);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog od=new DirectoryDialog(shell);
      od.open();
      String oDirectory=od.getFilterPath();
      txtOutput.setText(oDirectory);
    }
  }
);
  button.setBounds(358,261,40,25);
  button.setText("String_Node_Str");
  final Button btnLimitRecords=new Button(composite,SWT.CHECK);
  btnLimitRecords.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnLimitRecords.getSelection())       txtMaxDocs.setEnabled(true);
 else       txtMaxDocs.setEnabled(false);
    }
  }
);
  btnLimitRecords.setBounds(10,219,175,20);
  btnLimitRecords.setText("String_Node_Str");
  Label lblNewLabel=new Label(composite,SWT.BORDER | SWT.SHADOW_NONE);
  lblNewLabel.setBounds(433,24,175,320);
  lblNewLabel.setText("String_Node_Str");
  Job job2=new Job("String_Node_Str"){
    protected IStatus run(    IProgressMonitor monitor){
      appendLog("String_Node_Str");
      String[] cgrss=null;
      try {
        cgrss=AvailableRecords.getAllCongresses();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
      congresses=cgrss;
      Display.getDefault().asyncExec(new Runnable(){
        @Override public void run(){
          cmbCongress.setItems(congresses);
          cmbCongress.select(0);
          cmbCongress.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
        }
      }
);
      appendLog("String_Node_Str");
      String[] senatorsArray=null;
      try {
        senatorsArray=AvailableRecords.getAllSenators(congresses);
      }
 catch (      IOException e2) {
        e2.printStackTrace();
      }
      allSenators=senatorsArray;
      Display.getDefault().asyncExec(new Runnable(){
        @Override public void run(){
          cmbSenator.setItems(allSenators);
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
          cmbSenator.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
        }
      }
);
      appendLog("String_Node_Str");
      return Status.OK_STATUS;
    }
  }
;
  job2.setUser(true);
  job2.schedule();
}

Fixed version (ground truth):
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  Composite composite=new Composite(parent,SWT.NONE);
  composite.setSize(588,300);
  composite.setLocation(0,0);
  Label header=new Label(composite,SWT.NONE);
  header.setImage(ImageDescriptor.createFromURL(FileLocator.find(FrameworkUtil.getBundle(this.getClass()),new Path("String_Node_Str"),null)).createImage());
  header.setBounds(10,0,161,40);
  Label lblSenator=new Label(composite,SWT.NONE);
  lblSenator.setBounds(10,66,60,20);
  lblSenator.setText("String_Node_Str");
  final DateTime dateTime=new DateTime(composite,SWT.BORDER);
  dateTime.setEnabled(false);
  dateTime.setBounds(89,167,101,24);
  final DateTime dateTime_1=new DateTime(composite,SWT.BORDER);
  dateTime_1.setEnabled(false);
  dateTime_1.setBounds(288,167,101,24);
  Label lblToDate=new Label(composite,SWT.NONE);
  lblToDate.setBounds(245,167,21,20);
  lblToDate.setText("String_Node_Str");
  txtMaxDocs=new Text(composite,SWT.BORDER);
  txtMaxDocs.setToolTipText("String_Node_Str");
  txtMaxDocs.setEnabled(false);
  txtMaxDocs.setBounds(189,219,40,21);
  Label lblFrom=new Label(composite,SWT.NONE);
  lblFrom.setBounds(26,167,35,20);
  lblFrom.setText("String_Node_Str");
  final Combo cmbSenator=new Combo(composite,SWT.NONE);
  cmbSenator.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
  cmbSenator.setBounds(89,100,300,23);
  String[] loading={"String_Node_Str"};
  cmbSenator.setItems(loading);
  cmbSenator.select(0);
  final Combo cmbCongress=new Combo(composite,SWT.NONE);
  cmbCongress.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));
  cmbCongress.setBounds(89,66,101,20);
  cmbCongress.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        String selectedCongress=cmbCongress.getText().trim();
        if (selectedCongress.equals("String_Node_Str")) {
          cmbSenator.setItems(allSenators);
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
        }
 else {
          cmbSenator.setItems(AvailableRecords.getSenators(selectedCongress));
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
          String congress=cmbCongress.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
          int cNum=-1;
          if (!congress.equals("String_Node_Str")) {
            cNum=Integer.parseInt(congress);
            cNum=2 * (cNum - 101);
            dateTime.setYear(1989 + cNum);
            dateTime.setDay(3);
            dateTime.setMonth(0);
            dateTime_1.setYear(1990 + cNum);
            dateTime_1.setDay(3);
            dateTime_1.setMonth(0);
          }
        }
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
      cmbSenator.select(0);
    }
  }
);
  cmbCongress.setItems(loading);
  cmbCongress.select(0);
  Label lblSenator_1=new Label(composite,SWT.NONE);
  lblSenator_1.setBounds(10,100,55,20);
  lblSenator_1.setText("String_Node_Str");
  final Button btnDateRange=new Button(composite,SWT.CHECK);
  btnDateRange.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnDateRange.getSelection()) {
        dateTime.setEnabled(true);
        dateTime_1.setEnabled(true);
      }
 else {
        dateTime.setEnabled(false);
        dateTime_1.setEnabled(false);
      }
    }
  }
);
  btnDateRange.setBounds(9,142,93,16);
  btnDateRange.setText("String_Node_Str");
  final Button btnExtract=new Button(composite,SWT.NONE);
  btnExtract.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      if (btnExtract.getText().equals("String_Node_Str"))       senateCrawler=new SenateCrawler();
      if (btnExtract.getText().equals("String_Node_Str")) {
        System.out.println("String_Node_Str");
        appendLog("String_Node_Str");
        senateCrawler.terminate();
        btnExtract.setText("String_Node_Str");
        return;
      }
      int maxDocs=-1;
      if (!txtMaxDocs.getText().equals("String_Node_Str"))       maxDocs=Integer.parseInt(txtMaxDocs.getText().trim());
      IEclipseContext iEclipseContext=context;
      ContextInjectionFactory.inject(senateCrawler,iEclipseContext);
      String dateFrom="String_Node_Str";
      String dateTo="String_Node_Str";
      if (btnDateRange.getSelection()) {
        dateFrom=(dateTime.getMonth() + 1) + "String_Node_Str" + dateTime.getDay()+ "String_Node_Str"+ dateTime.getYear();
        dateTo=(dateTime_1.getMonth() + 1) + "String_Node_Str" + dateTime_1.getDay()+ "String_Node_Str"+ dateTime_1.getYear();
      }
      String senator=cmbSenator.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
      String congress=cmbCongress.getText().replaceAll("String_Node_Str","String_Node_Str").trim();
      int cNum=-1;
      if (!congress.equals("String_Node_Str"))       cNum=Integer.parseInt(congress);
      senateCrawler.initialize(maxDocs,cNum,senator,dateFrom,dateTo,txtOutput.getText());
      Job job=new Job("String_Node_Str"){
        protected IStatus run(        IProgressMonitor monitor){
          long startTime=System.currentTimeMillis();
          appendLog("String_Node_Str");
          Thread crawlerThread=new Thread(senateCrawler);
          try {
            crawlerThread.start();
            crawlerThread.join();
          }
 catch (          InterruptedException e) {
            e.printStackTrace();
          }
          appendLog("String_Node_Str" + (System.currentTimeMillis() - startTime) / (float)1000 + "String_Node_Str");
          appendLog("String_Node_Str");
          Display.getDefault().asyncExec(new Runnable(){
            public void run(){
              btnExtract.setText("String_Node_Str");
            }
          }
);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      job.schedule();
      btnExtract.setText("String_Node_Str");
    }
  }
);
  btnExtract.setBounds(10,320,75,25);
  btnExtract.setText("String_Node_Str");
  shell.setDefaultButton(btnExtract);
  Label lblOutput=new Label(composite,SWT.NONE);
  lblOutput.setBounds(10,261,80,20);
  lblOutput.setText("String_Node_Str");
  txtOutput=new Text(composite,SWT.BORDER);
  txtOutput.setBounds(100,261,258,21);
  Button button=new Button(composite,SWT.NONE);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog od=new DirectoryDialog(shell);
      od.open();
      String oDirectory=od.getFilterPath();
      txtOutput.setText(oDirectory);
    }
  }
);
  button.setBounds(358,261,40,25);
  button.setText("String_Node_Str");
  final Button btnLimitRecords=new Button(composite,SWT.CHECK);
  btnLimitRecords.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnLimitRecords.getSelection())       txtMaxDocs.setEnabled(true);
 else       txtMaxDocs.setEnabled(false);
    }
  }
);
  btnLimitRecords.setBounds(10,219,175,20);
  btnLimitRecords.setText("String_Node_Str");
  Label lblNewLabel=new Label(composite,SWT.BORDER | SWT.SHADOW_NONE);
  lblNewLabel.setBounds(433,24,175,320);
  lblNewLabel.setText("String_Node_Str");
  Job job2=new Job("String_Node_Str"){
    protected IStatus run(    IProgressMonitor monitor){
      appendLog("String_Node_Str");
      String[] cgrss=null;
      try {
        cgrss=AvailableRecords.getAllCongresses();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
      congresses=cgrss;
      Display.getDefault().asyncExec(new Runnable(){
        @Override public void run(){
          cmbCongress.setItems(congresses);
          cmbCongress.select(0);
          cmbCongress.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
        }
      }
);
      appendLog("String_Node_Str");
      String[] senatorsArray=null;
      try {
        senatorsArray=AvailableRecords.getAllSenators(congresses);
      }
 catch (      IOException e2) {
        e2.printStackTrace();
      }
      allSenators=senatorsArray;
      Display.getDefault().asyncExec(new Runnable(){
        @Override public void run(){
          cmbSenator.setItems(allSenators);
          cmbSenator.add("String_Node_Str",0);
          cmbSenator.add("String_Node_Str",1);
          cmbSenator.add("String_Node_Str",2);
          cmbSenator.add("String_Node_Str",3);
          cmbSenator.select(0);
          cmbSenator.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
        }
      }
);
      appendLog("String_Node_Str");
      return Status.OK_STATUS;
    }
  }
;
  job2.setUser(true);
  job2.schedule();
}