Program: 168237
Project: 168237
Buggy source:
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  parent.setLayout(new GridLayout(3,false));
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  Label lblInputFile=new Label(parent,SWT.NONE);
  lblInputFile.setText("String_Node_Str");
  txtInput=new Text(parent,SWT.BORDER);
  GridData gd_txtInput=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtInput.widthHint=335;
  txtInput.setLayoutData(gd_txtInput);
  Button button=new Button(parent,SWT.NONE);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      txtInput.setText("String_Node_Str");
      FileDialog fd=new FileDialog(shell,SWT.MULTI);
      fd.open();
      String[] iFiles=fd.getFileNames();
      String dir=fd.getFilterPath();
      int i=0;
      inputFiles=new String[iFiles.length];
      for (      String file : iFiles) {
        txtInput.append(dir + System.getProperty("String_Node_Str") + file+ "String_Node_Str");
        inputFiles[i++]=dir + System.getProperty("String_Node_Str") + file;
      }
    }
  }
);
  button.setText("String_Node_Str");
  Label lblStopWords=new Label(parent,SWT.NONE);
  lblStopWords.setText("String_Node_Str");
  txtStopWords=new Text(parent,SWT.BORDER);
  txtStopWords.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  Button button_2=new Button(parent,SWT.NONE);
  button_2.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      FileDialog sfd=new FileDialog(shell,SWT.OPEN);
      sfd.open();
      stopwordsFile=sfd.getFilterPath() + System.getProperty("String_Node_Str") + sfd.getFileName();
      if (stopwordsFile.length() < 2) {
        stopwordsFile="String_Node_Str";
      }
 else {
        System.out.println(stopwordsFile);
      }
      txtStopWords.setText(stopwordsFile);
    }
  }
);
  button_2.setText("String_Node_Str");
  Label lblOutputFile=new Label(parent,SWT.NONE);
  lblOutputFile.setText("String_Node_Str");
  txtOutput=new Text(parent,SWT.BORDER);
  GridData gd_txtOutput=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtOutput.widthHint=335;
  txtOutput.setLayoutData(gd_txtOutput);
  Button button_1=new Button(parent,SWT.NONE);
  button_1.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog od=new DirectoryDialog(shell);
      od.open();
      String oDirectory=od.getFilterPath();
      txtOutput.setText(oDirectory);
      outputDirectory=oDirectory;
    }
  }
);
  button_1.setText("String_Node_Str");
  Label lblSuffix=new Label(parent,SWT.NONE);
  lblSuffix.setText("String_Node_Str");
  txtSuffix=new Text(parent,SWT.BORDER);
  txtSuffix.setText("String_Node_Str");
  GridData gd_txtSuffix=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtSuffix.widthHint=335;
  txtSuffix.setLayoutData(gd_txtSuffix);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  Group grpPreprocessing=new Group(parent,SWT.NONE);
  GridData gd_grpPreprocessing=new GridData(SWT.LEFT,SWT.CENTER,false,false,3,1);
  gd_grpPreprocessing.heightHint=118;
  gd_grpPreprocessing.widthHint=429;
  grpPreprocessing.setLayoutData(gd_grpPreprocessing);
  grpPreprocessing.setText("String_Node_Str");
  Label lblNewLabel=new Label(grpPreprocessing,SWT.NONE);
  lblNewLabel.setBounds(10,32,55,15);
  lblNewLabel.setText("String_Node_Str");
  txtDelimiters=new Text(grpPreprocessing,SWT.BORDER);
  txtDelimiters.setText("String_Node_Str");
  txtDelimiters.setBounds(176,26,249,21);
  final Combo cmbStemLang=new Combo(grpPreprocessing,SWT.NONE);
  cmbStemLang.setEnabled(false);
  cmbStemLang.setItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
  cmbStemLang.setBounds(275,63,150,23);
  cmbStemLang.setText("String_Node_Str");
  final Button btnStemming=new Button(grpPreprocessing,SWT.CHECK);
  btnStemming.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnStemming.getSelection())       cmbStemLang.setEnabled(true);
 else       cmbStemLang.setEnabled(false);
    }
  }
);
  btnStemming.setText("String_Node_Str");
  btnStemming.setBounds(176,65,93,16);
  final Button btnDoLowercase=new Button(grpPreprocessing,SWT.CHECK);
  btnDoLowercase.setBounds(10,65,143,16);
  btnDoLowercase.setText("String_Node_Str");
  Button btnPreprocess=new Button(grpPreprocessing,SWT.NONE);
  btnPreprocess.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      Preprocess pp=new Preprocess(inputFiles,stopwordsFile,outputDirectory,txtSuffix.getText(),txtDelimiters.getText(),btnDoLowercase.getSelection(),btnStemming.getSelection(),cmbStemLang.getText());
      IEclipseContext iEclipseContext=context;
      ContextInjectionFactory.inject(pp,iEclipseContext);
      try {
        long startTime=System.currentTimeMillis();
        int result=pp.doPreprocess();
        if (result == -1 || result == -2 || result == -3)         appendLog("String_Node_Str");
 else         appendLog("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
      }
 catch (      Exception ioe) {
        ioe.printStackTrace();
      }
    }
  }
);
  btnPreprocess.setBounds(10,101,75,25);
  btnPreprocess.setText("String_Node_Str");
}

Fixed version (ground truth):
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  parent.setLayout(new GridLayout(3,false));
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  Label lblInputFile=new Label(parent,SWT.NONE);
  lblInputFile.setText("String_Node_Str");
  txtInput=new Text(parent,SWT.BORDER);
  GridData gd_txtInput=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtInput.widthHint=335;
  txtInput.setLayoutData(gd_txtInput);
  Button button=new Button(parent,SWT.NONE);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      txtInput.setText("String_Node_Str");
      FileDialog fd=new FileDialog(shell,SWT.MULTI);
      fd.open();
      String[] iFiles=fd.getFileNames();
      String dir=fd.getFilterPath();
      int i=0;
      inputFiles=new String[iFiles.length];
      for (      String file : iFiles) {
        txtInput.append(dir + System.getProperty("String_Node_Str") + file+ "String_Node_Str");
        inputFiles[i++]=dir + System.getProperty("String_Node_Str") + file;
      }
    }
  }
);
  button.setText("String_Node_Str");
  Label lblStopWords=new Label(parent,SWT.NONE);
  lblStopWords.setText("String_Node_Str");
  txtStopWords=new Text(parent,SWT.BORDER);
  txtStopWords.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  Button button_2=new Button(parent,SWT.NONE);
  button_2.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      FileDialog sfd=new FileDialog(shell,SWT.OPEN);
      sfd.open();
      stopwordsFile=sfd.getFilterPath() + System.getProperty("String_Node_Str") + sfd.getFileName();
      if (stopwordsFile.length() < 2) {
        stopwordsFile="String_Node_Str";
      }
 else {
        System.out.println(stopwordsFile);
      }
      txtStopWords.setText(stopwordsFile);
    }
  }
);
  button_2.setText("String_Node_Str");
  Label lblOutputFile=new Label(parent,SWT.NONE);
  lblOutputFile.setText("String_Node_Str");
  txtOutput=new Text(parent,SWT.BORDER);
  GridData gd_txtOutput=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtOutput.widthHint=335;
  txtOutput.setLayoutData(gd_txtOutput);
  Button button_1=new Button(parent,SWT.NONE);
  button_1.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog od=new DirectoryDialog(shell);
      od.open();
      String oDirectory=od.getFilterPath();
      txtOutput.setText(oDirectory);
      outputDirectory=oDirectory;
    }
  }
);
  button_1.setText("String_Node_Str");
  Label lblSuffix=new Label(parent,SWT.NONE);
  lblSuffix.setText("String_Node_Str");
  txtSuffix=new Text(parent,SWT.BORDER);
  txtSuffix.setText("String_Node_Str");
  GridData gd_txtSuffix=new GridData(SWT.FILL,SWT.CENTER,true,false,1,1);
  gd_txtSuffix.widthHint=335;
  txtSuffix.setLayoutData(gd_txtSuffix);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  new Label(parent,SWT.NONE);
  Group grpPreprocessing=new Group(parent,SWT.NONE);
  GridData gd_grpPreprocessing=new GridData(SWT.LEFT,SWT.CENTER,false,false,3,1);
  gd_grpPreprocessing.heightHint=118;
  gd_grpPreprocessing.widthHint=429;
  grpPreprocessing.setLayoutData(gd_grpPreprocessing);
  grpPreprocessing.setText("String_Node_Str");
  Label lblNewLabel=new Label(grpPreprocessing,SWT.NONE);
  lblNewLabel.setBounds(10,32,55,15);
  lblNewLabel.setText("String_Node_Str");
  txtDelimiters=new Text(grpPreprocessing,SWT.BORDER);
  txtDelimiters.setText("String_Node_Str");
  txtDelimiters.setBounds(176,26,249,21);
  final Combo cmbStemLang=new Combo(grpPreprocessing,SWT.NONE);
  cmbStemLang.setEnabled(false);
  cmbStemLang.setItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
  cmbStemLang.setBounds(275,63,150,23);
  cmbStemLang.setText("String_Node_Str");
  final Button btnStemming=new Button(grpPreprocessing,SWT.CHECK);
  btnStemming.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnStemming.getSelection())       cmbStemLang.setEnabled(true);
 else       cmbStemLang.setEnabled(false);
    }
  }
);
  btnStemming.setText("String_Node_Str");
  btnStemming.setBounds(176,65,93,16);
  final Button btnDoLowercase=new Button(grpPreprocessing,SWT.CHECK);
  btnDoLowercase.setBounds(10,65,143,16);
  btnDoLowercase.setText("String_Node_Str");
  Button btnPreprocess=new Button(grpPreprocessing,SWT.NONE);
  btnPreprocess.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      Preprocess pp=new Preprocess(inputFiles,txtStopWords.getText(),txtOutput.getText(),txtSuffix.getText(),txtDelimiters.getText(),btnDoLowercase.getSelection(),btnStemming.getSelection(),cmbStemLang.getText());
      IEclipseContext iEclipseContext=context;
      ContextInjectionFactory.inject(pp,iEclipseContext);
      try {
        long startTime=System.currentTimeMillis();
        int result=pp.doPreprocess();
        if (result == -1 || result == -2 || result == -3)         appendLog("String_Node_Str");
 else         appendLog("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
      }
 catch (      Exception ioe) {
        ioe.printStackTrace();
      }
    }
  }
);
  btnPreprocess.setBounds(10,101,75,25);
  btnPreprocess.setText("String_Node_Str");
}