Program: 168101
Project: 168101
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedJob()) {
        return;
      }
      final int noOfTopics=Integer.valueOf(topics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final String seedFilePath=seedFileText.getText();
      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);
          String topicModelDirPath=System.getProperty("String_Node_Str") + File.separator + "String_Node_Str"+ "String_Node_Str"+ String.valueOf(System.currentTimeMillis());
          Preprocessor ppObj=null;
          List<String> inFiles=null;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
          }
 catch (          IOException e1) {
            e1.printStackTrace();
          }
catch (          Exception e) {
            e.printStackTrace();
          }
          new File(topicModelDirPath).mkdir();
          for (          String filename : inFiles) {
            File srcFile=new File(filename);
            File destDir=new File(topicModelDirPath);
            try {
              FileUtils.copyFileToDirectory(srcFile,destDir,false);
            }
 catch (            IOException e) {
              e.printStackTrace();
              return Status.CANCEL_STATUS;
            }
          }
          long startTime=System.currentTimeMillis();
          Date dateObj=new Date();
          ZlabelTopicModelAnalysis zlda=new ZlabelTopicModelAnalysis(new SubProgressMonitor(monitor,70));
          monitor.subTask("String_Node_Str");
          try {
            zlda.invokeLDA(topicModelDirPath,seedFilePath,noOfTopics,outputPath,dateObj);
          }
 catch (          Exception e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
          if (monitor.isCanceled()) {
            return Status.CANCEL_STATUS;
          }
          System.out.println("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          ppObj.clean();
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedJob()) {
        job.schedule();
        job.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.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 (ZlabelLdaTopicModelViewImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      if (!canProceedJob()) {
        return;
      }
      final int noOfTopics=Integer.valueOf(topics.getText()).intValue();
      final boolean isPreprocess=preprocessEnabled.getSelection();
      final String outputPath=layoutData.getOutputLabel().getText();
      TacitUtil tacitHelper=new TacitUtil();
      final List<Object> selectedFiles=inputLayoutData.getSelectedFiles();
      tacitHelper.writeSummaryFile(outputPath);
      final String seedFilePath=seedFileText.getText();
      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);
          String topicModelDirPath=System.getProperty("String_Node_Str") + File.separator + "String_Node_Str"+ "String_Node_Str"+ String.valueOf(System.currentTimeMillis());
          Preprocessor ppObj=null;
          List<String> inFiles=null;
          try {
            ppObj=new Preprocessor("String_Node_Str",isPreprocess);
            inFiles=ppObj.processData("String_Node_Str",selectedFiles);
          }
 catch (          IOException e1) {
            e1.printStackTrace();
            return Status.CANCEL_STATUS;
          }
catch (          Exception e) {
            e.printStackTrace();
            return Status.CANCEL_STATUS;
          }
          new File(topicModelDirPath).mkdir();
          for (          String filename : inFiles) {
            File srcFile=new File(filename);
            File destDir=new File(topicModelDirPath);
            try {
              FileUtils.copyFileToDirectory(srcFile,destDir,false);
            }
 catch (            IOException e) {
              e.printStackTrace();
              return Status.CANCEL_STATUS;
            }
          }
          long startTime=System.currentTimeMillis();
          Date dateObj=new Date();
          ZlabelTopicModelAnalysis zlda=new ZlabelTopicModelAnalysis(new SubProgressMonitor(monitor,70));
          monitor.subTask("String_Node_Str");
          try {
            zlda.invokeLDA(topicModelDirPath,seedFilePath,noOfTopics,outputPath,dateObj);
          }
 catch (          Exception e) {
            e.printStackTrace();
            monitor.done();
            return Status.CANCEL_STATUS;
          }
          if (monitor.isCanceled()) {
            return Status.CANCEL_STATUS;
          }
          System.out.println("String_Node_Str" + (System.currentTimeMillis() - startTime) + "String_Node_Str");
          ppObj.clean();
          monitor.worked(10);
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      job.setUser(true);
      if (canProceedJob()) {
        job.schedule();
        job.addJobChangeListener(new JobChangeAdapter(){
          @Override public void done(          IJobChangeEvent event){
            if (!event.getResult().isOK()) {
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
              ConsoleView.printlInConsoleln("String_Node_Str");
            }
 else {
              TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
              TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
            }
          }
        }
);
      }
 else {
        TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.ERROR,form);
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (ZlabelLdaTopicModelViewImageRegistry.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);
}