Program: 84356
Project: 84356
Buggy source:
public void actionPerformed(final ActionEvent evt){
  final String action=evt.getActionCommand();
  String menu, option;
  final int z=action.indexOf('.');
  if (z == -1) {
    menu=action;
    option="String_Node_Str";
  }
 else {
    menu=action.substring(0,z);
    option=action.substring(z + 1);
  }
  if (menu.equals("String_Node_Str")) {
    if (confirmRemoveBot()) {
      final int idx=Integer.parseInt(option);
      removeBot(bots.get(idx - botsIndex));
    }
  }
 else   if (menu.equals(Messages.FILE)) {
    if (option.equals(Messages.NEWBOT)) {
      addBot();
    }
 else     if (option.equals(Messages.CLOSEBOT)) {
      if (confirmRemoveBot()) {
        removeBot(getCurrentBot());
      }
    }
 else     if (option.equals(Messages.ADDSCRIPT)) {
      final String pretext="String_Node_Str";
      final String key=(String)JOptionPane.showInputDialog(this,"String_Node_Str",option,JOptionPane.QUESTION_MESSAGE,null,null,pretext);
      if (!(key == null || key.trim().isEmpty())) {
        ScriptDownloader.save(key);
      }
    }
 else     if (option.equals(Messages.RUNSCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        showScriptSelector(current);
      }
    }
 else     if (option.equals(Messages.SERVICEKEY)) {
      serviceKeyQuery(option);
    }
 else     if (option.equals(Messages.STOPSCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        showStopScript(current);
      }
    }
 else     if (option.equals(Messages.PAUSESCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        pauseScript(current);
      }
    }
 else     if (option.equals(Messages.SAVESCREENSHOT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        ScreenshotUtil.saveScreenshot(current,current.getMethodContext().game.isLoggedIn());
      }
    }
 else     if (option.equals("String_Node_Str")) {
      try {
        TrayManager.Hide();
      }
 catch (      AWTException ignored) {
        log.warning("String_Node_Str");
      }
    }
 else     if (option.equals("String_Node_Str")) {
      cleanExit();
    }
  }
 else   if (menu.equals(Messages.EDIT)) {
    if (option.equals("String_Node_Str")) {
      AccountManager.getInstance().showGUI();
    }
 else     if (option.equals("String_Node_Str")) {
      showAds=!((JCheckBoxMenuItem)evt.getSource()).isSelected();
    }
 else     if (option.equals("String_Node_Str")) {
      Monitoring.setEnabled(!((JCheckBoxMenuItem)evt.getSource()).isSelected());
      if (!Monitoring.isEnabled()) {
        log.info("String_Node_Str");
      }
    }
 else     if (option.equals("String_Node_Str")) {
      disableConfirmations=((JCheckBoxMenuItem)evt.getSource()).isSelected();
    }
 else {
      final Bot current=getCurrentBot();
      if (current != null) {
        if (option.equals("String_Node_Str")) {
          final boolean selected=((JCheckBoxMenuItem)evt.getSource()).isSelected();
          current.overrideInput=selected;
          toolBar.setOverrideInput(selected);
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableRendering=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableCanvas=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableRandoms=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableAutoLogin=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
      }
    }
  }
 else   if (menu.equals(Messages.VIEW)) {
    final Bot current=getCurrentBot();
    final boolean selected=((JCheckBoxMenuItem)evt.getSource()).isSelected();
    if (option.equals("String_Node_Str")) {
      toggleViewState(toolBar,selected);
    }
 else     if (option.equals("String_Node_Str")) {
      toggleViewState(textScroll,selected);
    }
 else     if (current != null) {
      if (option.equals("String_Node_Str")) {
        for (        final String key : BotMenuBar.DEBUG_MAP.keySet()) {
          final Class<?> el=BotMenuBar.DEBUG_MAP.get(key);
          final boolean wasSelected=menuBar.getCheckBox(key).isSelected();
          menuBar.getCheckBox(key).setSelected(selected);
          if (selected) {
            if (!wasSelected) {
              current.addListener(el);
            }
          }
 else {
            if (wasSelected) {
              current.removeListener(el);
            }
          }
        }
      }
 else {
        final Class<?> el=BotMenuBar.DEBUG_MAP.get(option);
        menuBar.getCheckBox(option).setSelected(selected);
        if (selected) {
          current.addListener(el);
        }
 else {
          menuBar.getCheckBox("String_Node_Str").setSelected(false);
          current.removeListener(el);
        }
      }
    }
  }
 else   if (menu.equals(Messages.HELP)) {
    if (option.equals("String_Node_Str")) {
      openURL(GlobalConfiguration.Paths.URLs.SITE);
    }
 else     if (option.equals("String_Node_Str")) {
      openURL(GlobalConfiguration.Paths.URLs.PROJECT);
    }
 else     if (option.equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(this,new String[]{"String_Node_Str","String_Node_Str" + GlobalConfiguration.Paths.URLs.SITE + "String_Node_Str"},"String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot curr=getCurrentBot();
    menuBar.setBot(curr);
    panel.setBot(curr);
    panel.repaint();
    toolBar.setHome(curr == null);
    if (curr == null) {
      setTitle(null);
      toolBar.setScriptButton(BotToolBar.RUN_SCRIPT);
      toolBar.setOverrideInput(false);
      toolBar.setInputState(Environment.INPUT_KEYBOARD | Environment.INPUT_MOUSE);
      toolBar.updateInputButton();
    }
 else {
      setTitle(curr.getAccountName());
      final Map<Integer,Script> scriptMap=curr.getScriptHandler().getRunningScripts();
      if (scriptMap.size() > 0) {
        if (scriptMap.values().iterator().next().isPaused()) {
          toolBar.setScriptButton(BotToolBar.RESUME_SCRIPT);
        }
 else {
          toolBar.setScriptButton(BotToolBar.PAUSE_SCRIPT);
        }
      }
 else {
        toolBar.setScriptButton(BotToolBar.RUN_SCRIPT);
      }
      toolBar.setOverrideInput(curr.overrideInput);
      toolBar.setInputState(curr.inputFlags);
      toolBar.updateInputButton();
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    menuBar.doClick(Messages.SAVESCREENSHOT);
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      showScriptSelector(current);
    }
  }
 else   if (menu.equals("String_Node_Str") || menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      pauseScript(current);
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      final boolean override=!current.overrideInput;
      current.overrideInput=override;
      menuBar.setOverrideInput(override);
      toolBar.setOverrideInput(override);
      toolBar.updateInputButton();
    }
  }
}

Fixed version (ground truth):
public void actionPerformed(final ActionEvent evt){
  final String action=evt.getActionCommand();
  String menu, option;
  final int z=action.indexOf('.');
  if (z == -1) {
    menu=action;
    option="String_Node_Str";
  }
 else {
    menu=action.substring(0,z);
    option=action.substring(z + 1);
  }
  if (menu.equals("String_Node_Str")) {
    if (confirmRemoveBot()) {
      final int idx=Integer.parseInt(option);
      removeBot(bots.get(idx - botsIndex));
    }
  }
 else   if (menu.equals(Messages.FILE)) {
    if (option.equals(Messages.NEWBOT)) {
      addBot();
    }
 else     if (option.equals(Messages.CLOSEBOT)) {
      if (confirmRemoveBot()) {
        removeBot(getCurrentBot());
      }
    }
 else     if (option.equals(Messages.ADDSCRIPT)) {
      final String pretext="String_Node_Str";
      final String key=(String)JOptionPane.showInputDialog(this,"String_Node_Str",option,JOptionPane.QUESTION_MESSAGE,null,null,pretext);
      if (!(key == null || key.trim().isEmpty())) {
        ScriptDownloader.save(key);
      }
    }
 else     if (option.equals(Messages.RUNSCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        showScriptSelector(current);
      }
    }
 else     if (option.equals(Messages.SERVICEKEY)) {
      serviceKeyQuery(option);
    }
 else     if (option.equals(Messages.STOPSCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        showStopScript(current);
      }
    }
 else     if (option.equals(Messages.PAUSESCRIPT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        pauseScript(current);
      }
    }
 else     if (option.equals(Messages.SAVESCREENSHOT)) {
      final Bot current=getCurrentBot();
      if (current != null) {
        ScreenshotUtil.saveScreenshot(current,current.getMethodContext().game.isLoggedIn());
      }
    }
 else     if (option.equals(Messages.HIDEBOT)) {
      try {
        TrayManager.Hide();
      }
 catch (      AWTException ignored) {
        log.warning("String_Node_Str");
      }
    }
 else     if (option.equals(Messages.EXIT)) {
      cleanExit();
    }
  }
 else   if (menu.equals(Messages.EDIT)) {
    if (option.equals("String_Node_Str")) {
      AccountManager.getInstance().showGUI();
    }
 else     if (option.equals("String_Node_Str")) {
      showAds=!((JCheckBoxMenuItem)evt.getSource()).isSelected();
    }
 else     if (option.equals("String_Node_Str")) {
      Monitoring.setEnabled(!((JCheckBoxMenuItem)evt.getSource()).isSelected());
      if (!Monitoring.isEnabled()) {
        log.info("String_Node_Str");
      }
    }
 else     if (option.equals("String_Node_Str")) {
      disableConfirmations=((JCheckBoxMenuItem)evt.getSource()).isSelected();
    }
 else {
      final Bot current=getCurrentBot();
      if (current != null) {
        if (option.equals("String_Node_Str")) {
          final boolean selected=((JCheckBoxMenuItem)evt.getSource()).isSelected();
          current.overrideInput=selected;
          toolBar.setOverrideInput(selected);
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableRendering=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableCanvas=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableRandoms=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
 else         if (option.equals("String_Node_Str")) {
          current.disableAutoLogin=((JCheckBoxMenuItem)evt.getSource()).isSelected();
        }
      }
    }
  }
 else   if (menu.equals(Messages.VIEW)) {
    final Bot current=getCurrentBot();
    final boolean selected=((JCheckBoxMenuItem)evt.getSource()).isSelected();
    if (option.equals("String_Node_Str")) {
      toggleViewState(toolBar,selected);
    }
 else     if (option.equals("String_Node_Str")) {
      toggleViewState(textScroll,selected);
    }
 else     if (current != null) {
      if (option.equals("String_Node_Str")) {
        for (        final String key : BotMenuBar.DEBUG_MAP.keySet()) {
          final Class<?> el=BotMenuBar.DEBUG_MAP.get(key);
          final boolean wasSelected=menuBar.getCheckBox(key).isSelected();
          menuBar.getCheckBox(key).setSelected(selected);
          if (selected) {
            if (!wasSelected) {
              current.addListener(el);
            }
          }
 else {
            if (wasSelected) {
              current.removeListener(el);
            }
          }
        }
      }
 else {
        final Class<?> el=BotMenuBar.DEBUG_MAP.get(option);
        menuBar.getCheckBox(option).setSelected(selected);
        if (selected) {
          current.addListener(el);
        }
 else {
          menuBar.getCheckBox("String_Node_Str").setSelected(false);
          current.removeListener(el);
        }
      }
    }
  }
 else   if (menu.equals(Messages.HELP)) {
    if (option.equals("String_Node_Str")) {
      openURL(GlobalConfiguration.Paths.URLs.SITE);
    }
 else     if (option.equals("String_Node_Str")) {
      openURL(GlobalConfiguration.Paths.URLs.PROJECT);
    }
 else     if (option.equals("String_Node_Str")) {
      JOptionPane.showMessageDialog(this,new String[]{"String_Node_Str","String_Node_Str" + GlobalConfiguration.Paths.URLs.SITE + "String_Node_Str"},"String_Node_Str",JOptionPane.INFORMATION_MESSAGE);
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot curr=getCurrentBot();
    menuBar.setBot(curr);
    panel.setBot(curr);
    panel.repaint();
    toolBar.setHome(curr == null);
    if (curr == null) {
      setTitle(null);
      toolBar.setScriptButton(BotToolBar.RUN_SCRIPT);
      toolBar.setOverrideInput(false);
      toolBar.setInputState(Environment.INPUT_KEYBOARD | Environment.INPUT_MOUSE);
      toolBar.updateInputButton();
    }
 else {
      setTitle(curr.getAccountName());
      final Map<Integer,Script> scriptMap=curr.getScriptHandler().getRunningScripts();
      if (scriptMap.size() > 0) {
        if (scriptMap.values().iterator().next().isPaused()) {
          toolBar.setScriptButton(BotToolBar.RESUME_SCRIPT);
        }
 else {
          toolBar.setScriptButton(BotToolBar.PAUSE_SCRIPT);
        }
      }
 else {
        toolBar.setScriptButton(BotToolBar.RUN_SCRIPT);
      }
      toolBar.setOverrideInput(curr.overrideInput);
      toolBar.setInputState(curr.inputFlags);
      toolBar.updateInputButton();
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    menuBar.doClick(Messages.SAVESCREENSHOT);
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      showScriptSelector(current);
    }
  }
 else   if (menu.equals("String_Node_Str") || menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      pauseScript(current);
    }
  }
 else   if (menu.equals("String_Node_Str")) {
    final Bot current=getCurrentBot();
    if (current != null) {
      final boolean override=!current.overrideInput;
      current.overrideInput=override;
      menuBar.setOverrideInput(override);
      toolBar.setOverrideInput(override);
      toolBar.updateInputButton();
    }
  }
}