Program: 168181
Project: 168181
Buggy source:
private void addButtonsToToolBar(){
  IToolBarManager mgr=form.getToolBarManager();
  mgr.add(new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final String stopWordPath=CommonUiActivator.getDefault().getPreferenceStore().getString(IPreprocessorSettingsConstant.STOP_PATH);
      final String outputPath=layoutData.getOutputLabel().getText();
      String fileName="String_Node_Str";
      DateFormat df=new SimpleDateFormat("String_Node_Str");
      final Date dateobj=new Date();
      if (weightedWordCountButton.getSelection()) {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
 else {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
      final File oFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final File sFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final List<String> inputFiles=inputLayoutData.getSelectedFiles();
      final List<String> dictionaryFiles=dictLayoutData.getSelectedFiles();
      final boolean isLiwcStemming=liwcStemming.getSelection();
      final boolean isSnowBall=snowballStemming.getSelection();
      final boolean isSpss=spssRawFile.getSelection();
      final boolean isWdist=wordDistributionFile.getSelection();
      final boolean isStemDic=stemEnabled.getSelection();
      final boolean isPreprocess=stopWordPathEnabled.getSelection();
      wordCountJob=new Job("String_Node_Str"){
        private Preprocess preprocessTask;
        private String dirPath;
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          List<File> selectedFiles=new ArrayList<File>();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",inputFiles.size() + 20);
          try {
            Display.getDefault().syncExec(new Runnable(){
              @Override public void run(){
                if (weightedWordCountButton.getSelection()) {
                  wordCountController=new WordCountApi(true);
                }
 else {
                  wordCountController=new WordCountApi(false);
                }
              }
            }
);
            if (isPreprocess) {
              monitor.subTask("String_Node_Str");
              preprocessTask=new Preprocess("String_Node_Str");
              try {
                dirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
                File[] inputFile=new File(dirPath).listFiles();
                for (                File iFile : inputFile) {
                  selectedFiles.add(iFile);
                }
              }
 catch (              IOException e) {
                e.printStackTrace();
              }
            }
 else {
              for (              String filepath : inputFiles) {
                if ((new File(filepath).isDirectory())) {
                  continue;
                }
                selectedFiles.add(new File(filepath));
              }
            }
            wordCountController.wordCount(monitor,selectedFiles,dictionaryFiles,stopWordPath,outputPath,"String_Node_Str",true,isLiwcStemming,isSnowBall,isSpss,isWdist,isStemDic,oFile,sFile,dateobj);
          }
 catch (          IOException ioe) {
            ioe.printStackTrace();
          }
          TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          monitor.subTask("String_Node_Str");
          if (isPreprocess)           preprocessTask.clean();
          TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      wordCountJob.setUser(true);
      if (canProceed()) {
        wordCountJob.schedule();
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.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 (WeightedWordCountImageRegistry.getImageIconFactory().getImageDescriptor(IMAGE_LRUN_OBJ));
    }
    @Override public String getToolTipText(){
      return "String_Node_Str";
    }
    @Override public void run(){
      TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
      final String stopWordPath=CommonUiActivator.getDefault().getPreferenceStore().getString(IPreprocessorSettingsConstant.STOP_PATH);
      final String outputPath=layoutData.getOutputLabel().getText();
      String fileName="String_Node_Str";
      DateFormat df=new SimpleDateFormat("String_Node_Str");
      final Date dateobj=new Date();
      if (weightedWordCountButton.getSelection()) {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
 else {
        fileName="String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateobj);
      }
      final File oFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final File sFile=new File(outputPath + File.separator + fileName+ "String_Node_Str");
      final List<String> inputFiles=inputLayoutData.getSelectedFiles();
      final List<String> dictionaryFiles=dictLayoutData.getSelectedFiles();
      final boolean isLiwcStemming=liwcStemming.getSelection();
      final boolean isSnowBall=snowballStemming.getSelection();
      final boolean isSpss=spssRawFile.getSelection();
      final boolean isWdist=wordDistributionFile.getSelection();
      final boolean isStemDic=stemEnabled.getSelection();
      final boolean isPreprocess=stopWordPathEnabled.getSelection();
      wordCountJob=new Job("String_Node_Str"){
        private Preprocess preprocessTask;
        private String dirPath;
        @Override protected IStatus run(        IProgressMonitor monitor){
          TacitFormComposite.setConsoleViewInFocus();
          List<File> selectedFiles=new ArrayList<File>();
          TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
          monitor.beginTask("String_Node_Str",inputFiles.size() + 20);
          try {
            Display.getDefault().syncExec(new Runnable(){
              @Override public void run(){
                if (weightedWordCountButton.getSelection()) {
                  wordCountController=new WordCountApi(true);
                }
 else {
                  wordCountController=new WordCountApi(false);
                }
              }
            }
);
            if (isPreprocess) {
              monitor.subTask("String_Node_Str");
              preprocessTask=new Preprocess("String_Node_Str");
              try {
                dirPath=preprocessTask.doPreprocessing(inputFiles,"String_Node_Str");
                File[] inputFile=new File(dirPath).listFiles();
                for (                File iFile : inputFile) {
                  selectedFiles.add(iFile);
                }
              }
 catch (              IOException e) {
                e.printStackTrace();
              }
            }
 else {
              for (              String filepath : inputFiles) {
                if ((new File(filepath).isDirectory())) {
                  continue;
                }
                selectedFiles.add(new File(filepath));
              }
            }
            wordCountController.wordCount(monitor,selectedFiles,dictionaryFiles,isPreprocess ? stopWordPath : "String_Node_Str",outputPath,"String_Node_Str",true,isLiwcStemming,isSnowBall,isSpss,isWdist,isStemDic,oFile,sFile,dateobj);
          }
 catch (          IOException ioe) {
            ioe.printStackTrace();
          }
          TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
          monitor.subTask("String_Node_Str");
          if (isPreprocess)           preprocessTask.clean();
          TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
          monitor.done();
          return Status.OK_STATUS;
        }
      }
;
      wordCountJob.setUser(true);
      if (canProceed()) {
        wordCountJob.schedule();
      }
    }
  }
);
  Action helpAction=new Action(){
    @Override public ImageDescriptor getImageDescriptor(){
      return (WeightedWordCountImageRegistry.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);
}