Program: 166747
Project: 166747
Buggy source:
public NARControls(final NAR nar){
  super(new BorderLayout());
  this.nar=nar;
  memory=nar.memory;
  senses=new MultiSense(memory.logic,memory.resource);
  senses.setActive(true);
  senses.update(memory);
  experienceWriter=new TextOutput(nar);
  logger=new InferenceLogger(nar);
  logger.setActive(false);
  JMenuBar menuBar=new JMenuBar();
  JMenu m=new JMenu("String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addSeparator();
  addJMenuItem(m,"String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addActionListener(this);
  menuBar.add(m);
  m=new JMenu("String_Node_Str");
{
    JMenuItem mv3=new JMenuItem("String_Node_Str");
    mv3.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        TextInputPanel inputPanel=new TextInputPanel(nar);
        NWindow inputWindow=new NWindow("String_Node_Str",inputPanel);
        inputWindow.setSize(800,200);
        inputWindow.setVisible(true);
      }
    }
);
    m.add(mv3);
    JMenuItem cct4=new JMenuItem("String_Node_Str");
    cct4.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NWindow w=new NWindow("String_Node_Str",new SketchPointCloudPanel(nar));
        w.setSize(500,500);
        w.setVisible(true);
      }
    }
);
    m.add(cct4);
    m.addSeparator();
    JMenuItem ml=new JMenuItem("String_Node_Str");
    ml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this)).show(500,300);
      }
    }
);
    m.add(ml);
    JMenuItem pml=new JMenuItem("String_Node_Str");
    pml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this,Executive.class,Execution.class,GraphExecutive.ParticlePath.class,GraphExecutive.ParticlePlan.class)).show(500,300);
      }
    }
);
    m.add(pml);
    JMenuItem gml=new JMenuItem("String_Node_Str");
    gml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this,Events.ConceptForget.class)).show(500,300);
      }
    }
);
    m.add(gml);
    JMenuItem al=new JMenuItem("String_Node_Str");
    al.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new MultiOutputPanel(NARControls.this)).show(500,300);
      }
    }
);
    m.add(al);
    JMenuItem tlp=new JMenuItem("String_Node_Str");
    tlp.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NWindow outputWindow=new NWindow("String_Node_Str",new TimelinePanel(nar));
        outputWindow.show(900,700);
      }
    }
);
    m.add(tlp);
    JMenuItem mv=new JMenuItem("String_Node_Str");
    mv.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new ConceptGraphPanel(nar,new ConceptGraphCanvas(nar))).show(800,500);
      }
    }
);
    m.add(mv);
    JMenuItem mv2=new JMenuItem("String_Node_Str");
    mv2.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new ProcessingGraphPanel(nar,new ConceptGraphCanvas2(nar))).show(500,500);
      }
    }
);
    m.add(mv2);
    JMenuItem imv=new JMenuItem("String_Node_Str");
    imv.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new ProcessingGraphPanel(nar,new ImplicationGraphCanvas(nar.memory.executive.graph))).show(500,500);
      }
    }
);
    m.add(imv);
    JMenuItem sg=new JMenuItem("String_Node_Str");
    sg.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new ProcessingGraphPanel(nar,new SentenceGraphCanvas(new InheritanceGraph(nar)))).show(500,500);
      }
    }
);
    m.add(sg);
    JMenuItem tt=new JMenuItem("String_Node_Str");
    tt.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        TaskTree p=new TaskTree(nar);
        NWindow w=new NWindow("String_Node_Str",p);
        w.setSize(200,500);
        w.setVisible(true);
      }
    }
);
    m.add(tt);
    JMenuItem st=new JMenuItem("String_Node_Str");
    st.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        SentenceTablePanel p=new SentenceTablePanel(nar);
        NWindow w=new NWindow("String_Node_Str",p);
        w.setSize(500,300);
        w.setVisible(true);
      }
    }
);
    m.add(st);
    JMenuItem fc=new JMenuItem("String_Node_Str");
    fc.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        BubbleChart bc=new BubbleChart(nar);
        NWindow wbc=new NWindow("String_Node_Str",bc);
        wbc.setSize(250,250);
        wbc.setVisible(true);
      }
    }
);
    m.add(fc);
    JMenuItem hf=new JMenuItem("String_Node_Str");
    hf.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NARFacePanel f=new NARFacePanel(nar);
        NWindow w=new NWindow("String_Node_Str",f);
        w.setSize(250,400);
        w.setVisible(true);
      }
    }
);
    m.add(hf);
  }
  menuBar.add(m);
  m=new JMenu("String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addActionListener(this);
  menuBar.add(m);
  add(menuBar,BorderLayout.NORTH);
  JComponent jp=newParameterPanel();
  add(jp,BorderLayout.CENTER);
  init();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param nar
 * @param title
 */
public NARControls(final NAR nar){
  super(new BorderLayout());
  this.nar=nar;
  memory=nar.memory;
  experienceWriter=new TextOutput(nar);
  logger=new InferenceLogger(nar);
  logger.setActive(false);
  JMenuBar menuBar=new JMenuBar();
  JMenu m=new JMenu("String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addSeparator();
  addJMenuItem(m,"String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addActionListener(this);
  menuBar.add(m);
  m=new JMenu("String_Node_Str");
{
    JMenuItem mv3=new JMenuItem("String_Node_Str");
    mv3.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        TextInputPanel inputPanel=new TextInputPanel(nar);
        NWindow inputWindow=new NWindow("String_Node_Str",inputPanel);
        inputWindow.setSize(800,200);
        inputWindow.setVisible(true);
      }
    }
);
    m.add(mv3);
    JMenuItem cct4=new JMenuItem("String_Node_Str");
    cct4.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NWindow w=new NWindow("String_Node_Str",new SketchPointCloudPanel(nar));
        w.setSize(500,500);
        w.setVisible(true);
      }
    }
);
    m.add(cct4);
    m.addSeparator();
    JMenuItem ml=new JMenuItem("String_Node_Str");
    ml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this)).show(500,300);
      }
    }
);
    m.add(ml);
    JMenuItem pml=new JMenuItem("String_Node_Str");
    pml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this,Executive.class,Execution.class,GraphExecutive.ParticlePath.class,GraphExecutive.ParticlePlan.class)).show(500,300);
      }
    }
);
    m.add(pml);
    JMenuItem gml=new JMenuItem("String_Node_Str");
    gml.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new SwingLogPanel(NARControls.this,Events.ConceptForget.class)).show(500,300);
      }
    }
);
    m.add(gml);
    JMenuItem al=new JMenuItem("String_Node_Str");
    al.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new MultiOutputPanel(NARControls.this)).show(500,300);
      }
    }
);
    m.add(al);
    JMenuItem tlp=new JMenuItem("String_Node_Str");
    tlp.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NWindow outputWindow=new NWindow("String_Node_Str",new TimelinePanel(nar));
        outputWindow.show(900,700);
      }
    }
);
    m.add(tlp);
    JMenuItem mv=new JMenuItem("String_Node_Str");
    mv.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        new NWindow("String_Node_Str",new ConceptGraphPanel(nar,new ConceptGraphCanvas(nar))).show(800,500);
      }
    }
);
    m.add(mv);
    JMenuItem tt=new JMenuItem("String_Node_Str");
    tt.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        TaskTree p=new TaskTree(nar);
        NWindow w=new NWindow("String_Node_Str",p);
        w.setSize(200,500);
        w.setVisible(true);
      }
    }
);
    m.add(tt);
    JMenuItem st=new JMenuItem("String_Node_Str");
    st.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        SentenceTablePanel p=new SentenceTablePanel(nar);
        NWindow w=new NWindow("String_Node_Str",p);
        w.setSize(500,300);
        w.setVisible(true);
      }
    }
);
    m.add(st);
    JMenuItem fc=new JMenuItem("String_Node_Str");
    fc.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        BubbleChart bc=new BubbleChart(nar);
        NWindow wbc=new NWindow("String_Node_Str",bc);
        wbc.setSize(250,250);
        wbc.setVisible(true);
      }
    }
);
    m.add(fc);
    JMenuItem hf=new JMenuItem("String_Node_Str");
    hf.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        NARFacePanel f=new NARFacePanel(nar);
        NWindow w=new NWindow("String_Node_Str",f);
        w.setSize(250,400);
        w.setVisible(true);
      }
    }
);
    m.add(hf);
  }
  menuBar.add(m);
  m=new JMenu("String_Node_Str");
  addJMenuItem(m,"String_Node_Str");
  m.addActionListener(this);
  menuBar.add(m);
  add(menuBar,BorderLayout.NORTH);
  JComponent jp=newParameterPanel();
  add(jp,BorderLayout.CENTER);
  init();
}