Program: 10199
Project: 10199
Buggy source:
public void actionPerformed(ActionEvent e){
  if (e.getSource() instanceof DescriptionMenuItem) {
    actualDesc=((DescriptionMenuItem)e.getSource()).getDescription();
    System.out.println(e.getActionCommand());
    if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.removeClassAssertion(ind,actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      statsPanel.updatePanel("String_Node_Str",actualDesc);
      changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc,changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.addClassAssertion(ind,actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc,changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      Individual ind=new Individual(e.getActionCommand());
      List<OWLOntologyChange> changes=ore.modi.addObjectProperty(ind,(ObjectSomeRestriction)actualDesc,ind);
      System.out.println("String_Node_Str");
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + ((ObjectSomeRestriction)actualDesc).getRole() + "String_Node_Str"+ ind,changes,this));
    }
  }
 else   if (e.getSource() instanceof MoveMenuItem) {
    actualDesc=((MoveMenuItem)e.getSource()).getSource();
    newDesc=new NamedClass(e.getActionCommand());
    List<OWLOntologyChange> changes=ore.modi.moveIndividual(ind,actualDesc,newDesc);
    allChanges.addAll(changes);
    descPanel.updatePanel();
    statsPanel.updatePanel("String_Node_Str",actualDesc);
    changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc + "String_Node_Str"+ newDesc,changes,this));
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
    List<OWLOntologyChange> changes=ore.modi.deleteIndividual(ind);
    allChanges.addAll(changes);
    for (    OWLOntologyChange ol : changes)     System.out.println(((RemoveAxiom)ol).getAxiom());
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
    if (JOptionPane.showConfirmDialog(this,"String_Node_Str","String_Node_Str",JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
      ore.modi.undoChanges(allChanges);
      allChanges.clear();
      setVisible(false);
      dispose();
    }
  }
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent e){
  if (e.getSource() instanceof DescriptionMenuItem) {
    actualDesc=((DescriptionMenuItem)e.getSource()).getDescription();
    System.out.println(e.getActionCommand());
    if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.removeClassAssertion(ind,actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      statsPanel.updatePanel("String_Node_Str",actualDesc);
      changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc,changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.addClassAssertion(ind,actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc,changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      Individual ind=new Individual(e.getActionCommand());
      List<OWLOntologyChange> changes=ore.modi.addObjectProperty(ind,(ObjectSomeRestriction)actualDesc,ind);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + ((ObjectSomeRestriction)actualDesc).getRole() + "String_Node_Str"+ ind,changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.deleteObjectProperty(ind,(ObjectSomeRestriction)actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + ((ObjectSomeRestriction)actualDesc).getRole(),changes,this));
    }
 else     if (e.getActionCommand().startsWith("String_Node_Str")) {
      List<OWLOntologyChange> changes=ore.modi.deleteObjectPropertyAssertions(ind,(ObjectSomeRestriction)actualDesc);
      allChanges.addAll(changes);
      descPanel.updatePanel();
      changesPanel.add(new ChangePanel("String_Node_Str" + ((ObjectSomeRestriction)actualDesc).getRole() + "String_Node_Str"+ ind,changes,this));
    }
  }
 else   if (e.getSource() instanceof MoveMenuItem) {
    actualDesc=((MoveMenuItem)e.getSource()).getSource();
    newDesc=new NamedClass(e.getActionCommand());
    List<OWLOntologyChange> changes=ore.modi.moveIndividual(ind,actualDesc,newDesc);
    allChanges.addAll(changes);
    descPanel.updatePanel();
    statsPanel.updatePanel("String_Node_Str",actualDesc);
    changesPanel.add(new ChangePanel("String_Node_Str" + actualDesc + "String_Node_Str"+ newDesc,changes,this));
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
    List<OWLOntologyChange> changes=ore.modi.deleteIndividual(ind);
    allChanges.addAll(changes);
    for (    OWLOntologyChange ol : changes)     System.out.println(((RemoveAxiom)ol).getAxiom());
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
    setVisible(false);
    dispose();
  }
 else   if (e.getActionCommand().equals("String_Node_Str")) {
    if (JOptionPane.showConfirmDialog(this,"String_Node_Str","String_Node_Str",JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
      ore.modi.undoChanges(allChanges);
      allChanges.clear();
      setVisible(false);
      dispose();
    }
  }
}