Program: 168187
Project: 168187
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final int noOfTopics=Integer.valueOf(numberOfTopics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String inputPath=inputLayoutData.getOutputLabel().getText();
      final String outputPath=layoutData.getOutputLabel().getText();
      final String preFix=prefixTxt.getText();
      final boolean wordWeightFile=wordWeights.getSelection();
      NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          NlputilsFormComposite.setConsoleViewInFocus();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          List<String> inputFiles=new ArrayList<String>();
          String topicModelDirPath=inputPath;
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            Preprocess preprocessTask=new Preprocess("String_Node_Str");
            try {
              File[] inputFile=new File(inputPath).listFiles();
              for (              File iFile : inputFile) {
                if (iFile.getAbsolutePath().contains("String_Node_Str"))                 continue;
                inputFiles.add(iFile.toString());
              }
              topicModelDirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
            }
 catch (            IOException e) {
              e.printStackTrace();
            }
            monitor.worked(10);
          }
          lda.initialize(topicModelDirPath,noOfTopics,outputPath,preFix,wordWeightFile);
          long startTime=System.currentTimeMillis();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor);
          }
 catch (          FileNotFoundException e) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            monitor.done();
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          monitor.worked(20);
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          if (monitor.isCanceled()) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          monitor.worked(10);
          monitor.done();
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
      }
 else {
        NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
    }
  }
);
  form.getToolBarManager().update(true);
}

Fixed version (ground truth):
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
      final int noOfTopics=Integer.valueOf(numberOfTopics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String inputPath=inputLayoutData.getOutputLabel().getText();
      final String outputPath=layoutData.getOutputLabel().getText();
      final String preFix=prefixTxt.getText();
      final boolean wordWeightFile=wordWeights.getSelection();
      NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          NlputilsFormComposite.setConsoleViewInFocus();
          NlputilsFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",100);
          List<String> inputFiles=new ArrayList<String>();
          String topicModelDirPath=inputPath;
          Preprocess preprocessTask=new Preprocess("String_Node_Str");
          if (isPreprocess) {
            monitor.subTask("String_Node_Str");
            try {
              File[] inputFile=new File(inputPath).listFiles();
              for (              File iFile : inputFile) {
                if (iFile.getAbsolutePath().contains("String_Node_Str"))                 continue;
                inputFiles.add(iFile.toString());
              }
              topicModelDirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
            }
 catch (            IOException e) {
              e.printStackTrace();
            }
            monitor.worked(10);
          }
          lda.initialize(topicModelDirPath,noOfTopics,outputPath,preFix,wordWeightFile);
          long startTime=System.currentTimeMillis();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor);
          }
 catch (          FileNotFoundException e) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            monitor.done();
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          monitor.worked(20);
          ConsoleView.printlInConsoleln("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          if (monitor.isCanceled()) {
            NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          if (isPreprocess)           preprocessTask.clean();
          monitor.worked(10);
          monitor.done();
          NlputilsFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
      }
 else {
        NlputilsFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    public void run(){
    }
  }
);
  form.getToolBarManager().update(true);
}