Program: 168140
Project: 168140
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();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.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();
          Date dateObj=new Date();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor,dateObj);
          }
 catch (          FileNotFoundException e) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            monitor.done();
            TacitFormComposite.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()) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          if (isPreprocess)           preprocessTask.clean();
          monitor.worked(10);
          monitor.done();
          TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      PlatformUI.getWorkbench().getHelpSystem().displayHelp("String_Node_Str");
    }
  }
;
  mgr.add(helpAction);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(helpAction,"String_Node_Str");
  PlatformUI.getWorkbench().getHelpSystem().setHelp(form,"String_Node_Str");
  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";
    }
    @Override 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();
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      job=new Job("String_Node_Str"){
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          TacitFormComposite.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();
          Date dateObj=new Date();
          monitor.subTask("String_Node_Str");
          try {
            lda.doLDA(monitor,dateObj);
          }
 catch (          FileNotFoundException e) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          IOException e) {
            monitor.done();
            TacitFormComposite.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()) {
            TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            return Status.CANCEL_STATUS;
          }
          if (isPreprocess)           preprocessTask.clean();
          monitor.worked(10);
          monitor.done();
          TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedCluster()) {
        job.schedule();
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (LdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_HELP_CO));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      PlatformUI.getWorkbench().getHelpSystem().displayHelp("String_Node_Str");
    }
  }
;
  mgr.add(helpAction);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(helpAction,"String_Node_Str");
  PlatformUI.getWorkbench().getHelpSystem().setHelp(form,"String_Node_Str");
  form.getToolBarManager().update(true);
}