Program: 180056
Project: 180056
Buggy source:
public MonFrame(){
  Toolkit.getDefaultToolkit().setDynamicLayout(false);
  MRJApplicationUtils.registerQuitHandler(this);
  RService.init();
  Font SF=new Font("String_Node_Str",Font.BOLD,12);
  this.setFont(SF);
  this.setTitle("String_Node_Str");
  num_windows++;
  menubar=new JMenuBar();
  JMenu file=menubar.add(new JMenu("String_Node_Str"));
  file.add(new JMenuItem(new OpenDataSetAction(controller)));
  file.add(new JMenuItem(new LoadRDataFrameAction(controller)));
  file.add(new JMenuItem(new CreateDBDataSetAction(controller)));
  saveAction=new SaveDataSetAction("String_Node_Str",false,controller);
  file.add(new JMenuItem(saveAction));
  saveDataSetAction=new SaveDataSetAction("String_Node_Str",true,controller);
  file.add(new JMenuItem(saveDataSetAction));
  file.add(closeDataSetMenuItem=new JMenuItem(new CloseDataSetAction(controller)));
  JMenuItem q=new JMenuItem("String_Node_Str");
  if (((System.getProperty("String_Node_Str")).toLowerCase()).indexOf("String_Node_Str") == -1) {
    file.addSeparator();
    file.add(q);
    q.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    q.addActionListener(new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        try {
          RConnection c=new RConnection();
          c.shutdown();
        }
 catch (        RserveException ignored) {
        }
        System.exit(0);
      }
    }
);
  }
  menubar.add(file);
  plotMenu=new JMenu("String_Node_Str");
  menubar.add(plotMenu);
  transformMenu=TransformAction.createTrafoMenu(this);
  menubar.add(transformMenu);
  JMenu options=new JMenu("String_Node_Str");
  JMenuItem sa;
  options.add(sa=new JMenuItem("String_Node_Str"));
  sa.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenuItem ts;
  options.add(ts=new JMenuItem("String_Node_Str"));
  ts.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenu sam=new JMenu("String_Node_Str");
  options.add(sam=new JMenu("String_Node_Str"));
  sam.add(orSelectionCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str"));
  sam.add(andSelectionCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str"));
  andSelectionCheckMenuItem.setSelected(true);
  options.addSeparator();
  JMenuItem cc;
  options.add(cc=new JMenuItem("String_Node_Str"));
  cc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B,Event.ALT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  options.add(selSeqCheckItem=new JCheckBoxMenuItem("String_Node_Str",selseq));
  selSeqCheckItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenuItem cs;
  options.add(cs=new JMenuItem("String_Node_Str"));
  cs.setAccelerator(KeyStroke.getKeyStroke(Event.BACK_SPACE,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  options.add(alphaOnHighlightCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str",alphaHi));
  alphaOnHighlightCheckMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  JMenuItem vm;
  options.add(vm=new JMenuItem("String_Node_Str"));
  vm.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.add(deriveVarMenu=new JMenu("String_Node_Str"));
  deriveVarMenu.add(selectionMenuItem=new JMenuItem("String_Node_Str"));
  selectionMenuItem.setEnabled(false);
  deriveVarMenu.add(colorsMenuItem=new JMenuItem("String_Node_Str"));
  colorsMenuItem.setEnabled(false);
  options.addSeparator();
  options.add(modelNavigatorButton=new JMenuItem("String_Node_Str",KeyEvent.VK_J));
  modelNavigatorButton.setEnabled(false);
  options.addSeparator();
  JMenuItem pr;
  options.add(pr=new JMenuItem("String_Node_Str",KeyEvent.VK_K));
  pr.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_COMMA,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  menubar.add(options);
  windowMenu=menubar.add(new JMenu("String_Node_Str"));
  windowMenu.add(closeAllMenuItem=new JMenuItem("String_Node_Str"));
  closeAllMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,Event.SHIFT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  closeAllMenuItem.setEnabled(false);
  windowMenu.addSeparator();
  windowMenu.add(me=new JMenuItem(this.getTitle()));
  helpMenu=menubar.add(new JMenu("String_Node_Str"));
  JMenuItem rc;
  helpMenu.add(rc=new JMenuItem("String_Node_Str"));
  rc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  rc.setEnabled(true);
  JCheckBoxMenuItem ih;
  helpMenu.add(ih=new JCheckBoxMenuItem("String_Node_Str"));
  ih.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Event.SHIFT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  ih.setEnabled(false);
  JMenuItem oh;
  helpMenu.add(oh=new JMenuItem("String_Node_Str"));
  oh.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Event.SHIFT_MASK | Event.ALT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  oh.setEnabled(true);
  this.setJMenuBar(menubar);
  Icon MondrianIcon=new ImageIcon(Utils.readGif("String_Node_Str"));
  JLabel MondrianLabel=new JLabel(MondrianIcon);
  JScrollPane scrollPane=new JScrollPane(MondrianLabel,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  getContentPane().add("String_Node_Str",scrollPane);
  selSeqCheckItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      switchSelection();
    }
  }
);
  selectionMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      deriveVariable(false);
    }
  }
);
  colorsMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      deriveVariable(true);
    }
  }
);
  orSelectionCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      setExtSelMode(true);
    }
  }
);
  andSelectionCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      setExtSelMode(false);
    }
  }
);
  sa.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      selectAll();
    }
  }
);
  ts.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      toggleSelection();
    }
  }
);
  cc.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      clearColors();
    }
  }
);
  alphaOnHighlightCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      switchAlpha();
    }
  }
);
  modelNavigatorButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      showModeNavigator();
    }
  }
);
  pr.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      preferenceFrame();
    }
  }
);
  cs.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
    }
  }
);
  vm.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.getCurrent().getSelector().switchVariableMode();
    }
  }
);
  closeAllMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.closeAll();
    }
  }
);
  closeDataSetMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.close(controller.getCurrent());
    }
  }
);
  me.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      toFront();
    }
  }
);
  rc.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      Utils.showRefCard();
    }
  }
);
  oh.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      try {
        Desktop.getDesktop().browse(new URL("String_Node_Str").toURI());
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
catch (      URISyntaxException e11) {
        e11.printStackTrace();
      }
    }
  }
);
  setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      controller.closeAll();
    }
  }
);
  this.addWindowListener(new WindowAdapter(){
    public void windowActivated(    WindowEvent e){
    }
  }
);
  this.setResizable(false);
  this.setSize(295,320);
  this.show();
  Graphics g=this.getGraphics();
  g.setFont(new Font("String_Node_Str",0,11));
  g.drawString("String_Node_Str",260,285);
}

Fixed version (ground truth):
public MonFrame(){
  controller=new MonController(this);
  Toolkit.getDefaultToolkit().setDynamicLayout(false);
  MRJApplicationUtils.registerQuitHandler(this);
  RService.init();
  Font SF=new Font("String_Node_Str",Font.BOLD,12);
  this.setFont(SF);
  this.setTitle("String_Node_Str");
  num_windows++;
  menubar=new JMenuBar();
  JMenu file=menubar.add(new JMenu("String_Node_Str"));
  file.add(new JMenuItem(new OpenDataSetAction(controller)));
  file.add(new JMenuItem(new LoadRDataFrameAction(controller)));
  file.add(new JMenuItem(new CreateDBDataSetAction(controller)));
  saveAction=new SaveDataSetAction("String_Node_Str",false,controller);
  file.add(new JMenuItem(saveAction));
  saveSelectionAction=new SaveDataSetAction("String_Node_Str",true,controller);
  file.add(new JMenuItem(saveSelectionAction));
  file.add(closeDataSetMenuItem=new JMenuItem(new CloseDataSetAction(controller)));
  JMenuItem q=new JMenuItem("String_Node_Str");
  if (((System.getProperty("String_Node_Str")).toLowerCase()).indexOf("String_Node_Str") == -1) {
    file.addSeparator();
    file.add(q);
    q.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    q.addActionListener(new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        try {
          RConnection c=new RConnection();
          c.shutdown();
        }
 catch (        RserveException ignored) {
        }
        System.exit(0);
      }
    }
);
  }
  menubar.add(file);
  plotMenu=new JMenu("String_Node_Str");
  menubar.add(plotMenu);
  transformMenu=TransformAction.createTrafoMenu(this);
  menubar.add(transformMenu);
  JMenu options=new JMenu("String_Node_Str");
  JMenuItem sa;
  options.add(sa=new JMenuItem("String_Node_Str"));
  sa.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenuItem ts;
  options.add(ts=new JMenuItem("String_Node_Str"));
  ts.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenu sam=new JMenu("String_Node_Str");
  options.add(sam);
  sam.add(orSelectionCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str"));
  sam.add(andSelectionCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str"));
  andSelectionCheckMenuItem.setSelected(true);
  options.addSeparator();
  JMenuItem cc;
  options.add(cc=new JMenuItem("String_Node_Str"));
  cc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B,Event.ALT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  options.add(selSeqCheckItem=new JCheckBoxMenuItem("String_Node_Str",selseq));
  selSeqCheckItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  JMenuItem cs;
  options.add(cs=new JMenuItem("String_Node_Str"));
  cs.setAccelerator(KeyStroke.getKeyStroke(Event.BACK_SPACE,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  options.add(alphaOnHighlightCheckMenuItem=new JCheckBoxMenuItem("String_Node_Str",alphaHi));
  alphaOnHighlightCheckMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.addSeparator();
  JMenuItem vm;
  options.add(vm=new JMenuItem("String_Node_Str"));
  vm.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  options.add(deriveVarMenu=new JMenu("String_Node_Str"));
  deriveVarMenu.add(selectionMenuItem=new JMenuItem("String_Node_Str"));
  selectionMenuItem.setEnabled(false);
  deriveVarMenu.add(colorsMenuItem=new JMenuItem("String_Node_Str"));
  colorsMenuItem.setEnabled(false);
  options.addSeparator();
  options.add(modelNavigatorButton=new JMenuItem("String_Node_Str",KeyEvent.VK_J));
  modelNavigatorButton.setEnabled(false);
  options.addSeparator();
  JMenuItem pr;
  options.add(pr=new JMenuItem("String_Node_Str",KeyEvent.VK_K));
  pr.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_COMMA,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  menubar.add(options);
  windowMenu=menubar.add(new JMenu("String_Node_Str"));
  windowMenu.add(closeAllMenuItem=new JMenuItem("String_Node_Str"));
  closeAllMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,Event.SHIFT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  closeAllMenuItem.setEnabled(false);
  windowMenu.addSeparator();
  windowMenu.add(me=new JMenuItem(this.getTitle()));
  helpMenu=menubar.add(new JMenu("String_Node_Str"));
  JMenuItem rc;
  helpMenu.add(rc=new JMenuItem("String_Node_Str"));
  rc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  rc.setEnabled(true);
  JCheckBoxMenuItem ih;
  helpMenu.add(ih=new JCheckBoxMenuItem("String_Node_Str"));
  ih.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Event.SHIFT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  ih.setEnabled(false);
  JMenuItem oh;
  helpMenu.add(oh=new JMenuItem("String_Node_Str"));
  oh.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP,Event.SHIFT_MASK | Event.ALT_MASK | Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  oh.setEnabled(true);
  this.setJMenuBar(menubar);
  Icon MondrianIcon=new ImageIcon(Utils.readGif("String_Node_Str"));
  JLabel MondrianLabel=new JLabel(MondrianIcon);
  JScrollPane scrollPane=new JScrollPane(MondrianLabel,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  getContentPane().add("String_Node_Str",scrollPane);
  selSeqCheckItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      switchSelection();
    }
  }
);
  selectionMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      deriveVariable(false);
    }
  }
);
  colorsMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      deriveVariable(true);
    }
  }
);
  orSelectionCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      setExtSelMode(true);
    }
  }
);
  andSelectionCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      setExtSelMode(false);
    }
  }
);
  sa.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      selectAll();
    }
  }
);
  ts.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      toggleSelection();
    }
  }
);
  cc.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      clearColors();
    }
  }
);
  alphaOnHighlightCheckMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      switchAlpha();
    }
  }
);
  modelNavigatorButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      showModeNavigator();
    }
  }
);
  pr.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      preferenceFrame();
    }
  }
);
  cs.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
    }
  }
);
  vm.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.getCurrent().getSelector().switchVariableMode();
    }
  }
);
  closeAllMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.closeAll();
    }
  }
);
  closeDataSetMenuItem.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      controller.close(controller.getCurrent());
    }
  }
);
  me.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      toFront();
    }
  }
);
  rc.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      Utils.showRefCard();
    }
  }
);
  oh.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      try {
        Desktop.getDesktop().browse(new URL("String_Node_Str").toURI());
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
catch (      URISyntaxException e11) {
        e11.printStackTrace();
      }
    }
  }
);
  setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
  this.addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      controller.closeAll();
    }
  }
);
  this.addWindowListener(new WindowAdapter(){
    public void windowActivated(    WindowEvent e){
    }
  }
);
  this.setResizable(false);
  this.setSize(295,320);
  this.show();
  Graphics g=this.getGraphics();
  g.setFont(new Font("String_Node_Str",0,11));
  g.drawString("String_Node_Str",260,285);
  registerCommonPlots();
}