Program: 168227
Project: 168227
Buggy source:
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  parent.setLayout(new GridLayout(7,false));
  Group grpInputSettings=new Group(parent,SWT.NONE);
  grpInputSettings.setText("String_Node_Str");
  GridData gd_grpInputSettings=new GridData(SWT.LEFT,SWT.CENTER,false,false,7,1);
  gd_grpInputSettings.heightHint=259;
  gd_grpInputSettings.widthHint=529;
  grpInputSettings.setLayoutData(gd_grpInputSettings);
  Composite composite=new Composite(grpInputSettings,SWT.NONE);
  composite.setBounds(10,20,515,95);
  Label lblLabel_1=new Label(composite,SWT.NONE);
  lblLabel_1.setBounds(0,35,36,15);
  lblLabel_1.setText("String_Node_Str");
  Label lblLabel=new Label(composite,SWT.NONE);
  lblLabel.setBounds(0,5,36,15);
  lblLabel.setText("String_Node_Str");
  txtLabel1=new Text(composite,SWT.BORDER);
  txtLabel1.setText("String_Node_Str");
  txtLabel1.setBounds(66,2,157,21);
  txtLabel2=new Text(composite,SWT.BORDER);
  txtLabel2.setText("String_Node_Str");
  txtLabel2.setBounds(66,32,157,21);
  Label lblFolder=new Label(composite,SWT.NONE);
  lblFolder.setBounds(237,6,24,15);
  lblFolder.setText("String_Node_Str");
  Label lblFolder_1=new Label(composite,SWT.NONE);
  lblFolder_1.setBounds(237,36,24,15);
  lblFolder_1.setText("String_Node_Str");
  txtFolderPath1=new Text(composite,SWT.BORDER);
  txtFolderPath1.setBounds(266,3,212,21);
  txtFolderPath2=new Text(composite,SWT.BORDER);
  txtFolderPath2.setBounds(266,33,212,21);
  Button button=new Button(composite,SWT.NONE);
  button.setBounds(474,2,35,25);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog fd1=new DirectoryDialog(shell);
      fd1.open();
      String fp1Directory=fd1.getFilterPath();
      txtFolderPath1.setText(fp1Directory);
    }
  }
);
  button.setText("String_Node_Str");
  Button button_1=new Button(composite,SWT.NONE);
  button_1.setBounds(474,32,35,25);
  button_1.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog fd2=new DirectoryDialog(shell);
      fd2.open();
      String fp2Directory=fd2.getFilterPath();
      txtFolderPath2.setText(fp2Directory);
    }
  }
);
  button_1.setText("String_Node_Str");
  Button btnPreprocess=new Button(composite,SWT.CHECK);
  btnPreprocess.setBounds(0,67,94,18);
  btnPreprocess.setText("String_Node_Str");
  final Button btnWeights=new Button(grpInputSettings,SWT.CHECK);
  btnWeights.setSelection(true);
  btnWeights.setBounds(10,132,174,16);
  btnWeights.setText("String_Node_Str");
  Label lblKfoldCrossValidation=new Label(grpInputSettings,SWT.NONE);
  lblKfoldCrossValidation.setBounds(13,163,149,15);
  lblKfoldCrossValidation.setText("String_Node_Str");
  txtkVal=new Text(grpInputSettings,SWT.BORDER);
  txtkVal.setBounds(170,160,46,21);
  Label lblOutputPath=new Label(grpInputSettings,SWT.NONE);
  lblOutputPath.setBounds(13,195,70,15);
  lblOutputPath.setText("String_Node_Str");
  txtOutputFile=new Text(grpInputSettings,SWT.BORDER);
  txtOutputFile.setBounds(170,192,316,21);
  Button btnTrain=new Button(grpInputSettings,SWT.NONE);
  btnTrain.setBounds(10,223,52,25);
  btnTrain.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      long currentTime=System.currentTimeMillis();
      String ppDir1=txtFolderPath1.getText();
      String ppDir2=txtFolderPath2.getText();
      if (ppDir1.equals("String_Node_Str") || ppDir2.equals("String_Node_Str") || txtOutputFile.getText().equals("String_Node_Str")) {
        showError(shell);
        return;
      }
      if (btnPreprocess.getSelection()) {
        ppService=GlobalPresserSettings.ppService;
        if (ppService.options == null) {
          System.out.println("String_Node_Str");
          appendLog("String_Node_Str");
          GlobalPresserSettings.ppService.setOptions(shell);
        }
        IEclipseContext iEclipseContext=context;
        ContextInjectionFactory.inject(ppService,iEclipseContext);
        appendLog("String_Node_Str");
        System.out.println("String_Node_Str");
        try {
          ppDir1=ppService.doPreprocessing(txtFolderPath1.getText());
          ppDir2=ppService.doPreprocessing(txtFolderPath2.getText());
        }
 catch (        IOException e1) {
          e1.printStackTrace();
        }
      }
      try {
        SvmClassifier svm=new SvmClassifier(txtLabel1.getText(),txtLabel2.getText(),txtOutputFile.getText());
        IEclipseContext iEclipseContext=context;
        ContextInjectionFactory.inject(svm,iEclipseContext);
        appendLog("String_Node_Str");
        if (true) {
          CrossValidator cv=new CrossValidator();
          ContextInjectionFactory.inject(cv,iEclipseContext);
          cv.doCross(svm,txtLabel1.getText(),ppDir1,txtLabel2.getText(),ppDir2,Integer.parseInt(txtkVal.getText()),btnWeights.getSelection());
        }
        System.out.println("String_Node_Str" + ((System.currentTimeMillis() - currentTime) / (double)1000) + "String_Node_Str");
        appendLog("String_Node_Str" + ((System.currentTimeMillis() - currentTime) / (double)1000) + "String_Node_Str");
        if (btnPreprocess.getSelection() && ppService.doCleanUp()) {
          ppService.clean(ppDir1);
          System.out.println("String_Node_Str" + ppDir1);
          appendLog("String_Node_Str" + ppDir1);
          ppService.clean(ppDir2);
          System.out.println("String_Node_Str" + ppDir2);
          appendLog("String_Node_Str" + ppDir2);
        }
        appendLog("String_Node_Str");
      }
 catch (      IOException ie) {
        ie.printStackTrace();
      }
    }
  }
);
  btnTrain.setText("String_Node_Str");
  Button button_2=new Button(grpInputSettings,SWT.NONE);
  button_2.setBounds(482,191,36,25);
  button_2.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      txtOutputFile.setText("String_Node_Str");
      DirectoryDialog fd1=new DirectoryDialog(shell);
      fd1.open();
      String fp1Directory=fd1.getFilterPath();
      txtOutputFile.setText(fp1Directory);
    }
  }
);
  button_2.setText("String_Node_Str");
}

Fixed version (ground truth):
@PostConstruct public void postConstruct(Composite parent){
  final Shell shell=parent.getShell();
  parent.setLayout(new GridLayout(7,false));
  Group grpInputSettings=new Group(parent,SWT.NONE);
  grpInputSettings.setText("String_Node_Str");
  GridData gd_grpInputSettings=new GridData(SWT.LEFT,SWT.CENTER,false,false,7,1);
  gd_grpInputSettings.heightHint=259;
  gd_grpInputSettings.widthHint=529;
  grpInputSettings.setLayoutData(gd_grpInputSettings);
  Composite composite=new Composite(grpInputSettings,SWT.NONE);
  composite.setBounds(10,20,515,95);
  Label lblLabel_1=new Label(composite,SWT.NONE);
  lblLabel_1.setBounds(0,35,36,15);
  lblLabel_1.setText("String_Node_Str");
  Label lblLabel=new Label(composite,SWT.NONE);
  lblLabel.setBounds(0,5,36,15);
  lblLabel.setText("String_Node_Str");
  txtLabel1=new Text(composite,SWT.BORDER);
  txtLabel1.setText("String_Node_Str");
  txtLabel1.setBounds(66,2,157,21);
  txtLabel2=new Text(composite,SWT.BORDER);
  txtLabel2.setText("String_Node_Str");
  txtLabel2.setBounds(66,32,157,21);
  Label lblFolder=new Label(composite,SWT.NONE);
  lblFolder.setBounds(237,6,24,15);
  lblFolder.setText("String_Node_Str");
  Label lblFolder_1=new Label(composite,SWT.NONE);
  lblFolder_1.setBounds(237,36,24,15);
  lblFolder_1.setText("String_Node_Str");
  txtFolderPath1=new Text(composite,SWT.BORDER);
  txtFolderPath1.setBounds(266,3,212,21);
  txtFolderPath2=new Text(composite,SWT.BORDER);
  txtFolderPath2.setBounds(266,33,212,21);
  Button button=new Button(composite,SWT.NONE);
  button.setBounds(474,2,35,25);
  button.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog fd1=new DirectoryDialog(shell);
      fd1.open();
      String fp1Directory=fd1.getFilterPath();
      txtFolderPath1.setText(fp1Directory);
    }
  }
);
  button.setText("String_Node_Str");
  Button button_1=new Button(composite,SWT.NONE);
  button_1.setBounds(474,32,35,25);
  button_1.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      DirectoryDialog fd2=new DirectoryDialog(shell);
      fd2.open();
      String fp2Directory=fd2.getFilterPath();
      txtFolderPath2.setText(fp2Directory);
    }
  }
);
  button_1.setText("String_Node_Str");
  final Button btnPreprocess=new Button(composite,SWT.CHECK);
  btnPreprocess.setBounds(0,67,94,18);
  btnPreprocess.setText("String_Node_Str");
  final Button btnWeights=new Button(grpInputSettings,SWT.CHECK);
  btnWeights.setSelection(true);
  btnWeights.setBounds(10,132,174,16);
  btnWeights.setText("String_Node_Str");
  Label lblKfoldCrossValidation=new Label(grpInputSettings,SWT.NONE);
  lblKfoldCrossValidation.setBounds(13,163,149,15);
  lblKfoldCrossValidation.setText("String_Node_Str");
  txtkVal=new Text(grpInputSettings,SWT.BORDER);
  txtkVal.setBounds(170,160,46,21);
  Label lblOutputPath=new Label(grpInputSettings,SWT.NONE);
  lblOutputPath.setBounds(13,195,70,15);
  lblOutputPath.setText("String_Node_Str");
  txtOutputFile=new Text(grpInputSettings,SWT.BORDER);
  txtOutputFile.setBounds(170,192,316,21);
  Button btnTrain=new Button(grpInputSettings,SWT.NONE);
  btnTrain.setBounds(10,223,52,25);
  btnTrain.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      long currentTime=System.currentTimeMillis();
      String ppDir1=txtFolderPath1.getText();
      String ppDir2=txtFolderPath2.getText();
      if (ppDir1.equals("String_Node_Str") || ppDir2.equals("String_Node_Str") || txtOutputFile.getText().equals("String_Node_Str")) {
        showError(shell);
        return;
      }
      if (btnPreprocess.getSelection()) {
        ppService=GlobalPresserSettings.ppService;
        if (ppService.options == null) {
          System.out.println("String_Node_Str");
          appendLog("String_Node_Str");
          GlobalPresserSettings.ppService.setOptions(shell);
        }
        IEclipseContext iEclipseContext=context;
        ContextInjectionFactory.inject(ppService,iEclipseContext);
        appendLog("String_Node_Str");
        System.out.println("String_Node_Str");
        try {
          ppDir1=ppService.doPreprocessing(txtFolderPath1.getText());
          ppDir2=ppService.doPreprocessing(txtFolderPath2.getText());
        }
 catch (        IOException e1) {
          e1.printStackTrace();
        }
      }
      try {
        SvmClassifier svm=new SvmClassifier(txtLabel1.getText(),txtLabel2.getText(),txtOutputFile.getText());
        IEclipseContext iEclipseContext=context;
        ContextInjectionFactory.inject(svm,iEclipseContext);
        appendLog("String_Node_Str");
        if (true) {
          CrossValidator cv=new CrossValidator();
          ContextInjectionFactory.inject(cv,iEclipseContext);
          cv.doCross(svm,txtLabel1.getText(),ppDir1,txtLabel2.getText(),ppDir2,Integer.parseInt(txtkVal.getText()),btnWeights.getSelection());
        }
        System.out.println("String_Node_Str" + ((System.currentTimeMillis() - currentTime) / (double)1000) + "String_Node_Str");
        appendLog("String_Node_Str" + ((System.currentTimeMillis() - currentTime) / (double)1000) + "String_Node_Str");
        if (btnPreprocess.getSelection() && ppService.doCleanUp()) {
          ppService.clean(ppDir1);
          System.out.println("String_Node_Str" + ppDir1);
          appendLog("String_Node_Str" + ppDir1);
          ppService.clean(ppDir2);
          System.out.println("String_Node_Str" + ppDir2);
          appendLog("String_Node_Str" + ppDir2);
        }
        appendLog("String_Node_Str");
      }
 catch (      IOException ie) {
        ie.printStackTrace();
      }
    }
  }
);
  btnTrain.setText("String_Node_Str");
  Button button_2=new Button(grpInputSettings,SWT.NONE);
  button_2.setBounds(482,191,36,25);
  button_2.addMouseListener(new MouseAdapter(){
    @Override public void mouseUp(    MouseEvent e){
      txtOutputFile.setText("String_Node_Str");
      DirectoryDialog fd1=new DirectoryDialog(shell);
      fd1.open();
      String fp1Directory=fd1.getFilterPath();
      txtOutputFile.setText(fp1Directory);
    }
  }
);
  button_2.setText("String_Node_Str");
}