Program: 10141
Project: 10141
Buggy source:
@Override public void toOWLOntology(OWLAPIOntologyCollector owlAPIOntologyCollector){
  OWLDataFactory factory=owlAPIOntologyCollector.getFactory();
  OWLIndividual me=factory.getOWLIndividual(getURI());
  for (  ClassNode one : classes) {
    OWLClass c=factory.getOWLClass(one.getURI());
    owlAPIOntologyCollector.addAxiom(factory.getOWLClassAssertionAxiom(me,c));
    one.toOWLOntology(owlAPIOntologyCollector);
  }
  for (  ObjectPropertyNode one : objectProperties) {
    OWLIndividual o=factory.getOWLIndividual(one.getBPart().getURI());
    OWLObjectProperty p=factory.getOWLObjectProperty(one.getURI());
    factory.getOWLObjectPropertyAssertionAxiom(me,p,o);
    one.toOWLOntology(owlAPIOntologyCollector);
    one.getBPart().toOWLOntology(owlAPIOntologyCollector);
  }
  for (  DatatypePropertyNode one : datatypeProperties) {
    OWLDataProperty p=factory.getOWLDataProperty(one.getURI());
    Literal ln=one.getBPart().getLiteral();
    try {
      if (one.getBPart().isString()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getString()));
      }
 else       if (one.getBPart().isDouble()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getDouble()));
      }
 else       if (one.getBPart().isFloat()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getFloat()));
      }
 else       if (one.getBPart().isInt()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getInt()));
      }
 else       if (one.getBPart().isBoolean()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getBoolean()));
      }
 else {
        tail(getURIString() + "String_Node_Str" + one.getURIString());
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
      System.exit(0);
    }
  }
}

Fixed version (ground truth):
@Override public void toOWLOntology(OWLAPIOntologyCollector owlAPIOntologyCollector){
  OWLDataFactory factory=owlAPIOntologyCollector.getFactory();
  OWLIndividual me=factory.getOWLIndividual(getURI());
  for (  ClassNode one : classes) {
    OWLClass c=factory.getOWLClass(one.getURI());
    OWLAxiom ax=factory.getOWLClassAssertionAxiom(me,c);
    owlAPIOntologyCollector.addAxiom(ax);
    one.toOWLOntology(owlAPIOntologyCollector);
  }
  for (  ObjectPropertyNode one : objectProperties) {
    OWLIndividual o=factory.getOWLIndividual(one.getBPart().getURI());
    OWLObjectProperty p=factory.getOWLObjectProperty(one.getURI());
    OWLAxiom ax=factory.getOWLObjectPropertyAssertionAxiom(me,p,o);
    owlAPIOntologyCollector.addAxiom(ax);
    one.toOWLOntology(owlAPIOntologyCollector);
    one.getBPart().toOWLOntology(owlAPIOntologyCollector);
  }
  for (  DatatypePropertyNode one : datatypeProperties) {
    OWLDataProperty p=factory.getOWLDataProperty(one.getURI());
    Literal ln=one.getBPart().getLiteral();
    try {
      if (one.getBPart().isString()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getString()));
      }
 else       if (one.getBPart().isDouble()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getDouble()));
      }
 else       if (one.getBPart().isFloat()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getFloat()));
      }
 else       if (one.getBPart().isInt()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getInt()));
      }
 else       if (one.getBPart().isBoolean()) {
        owlAPIOntologyCollector.addAxiom(factory.getOWLDataPropertyAssertionAxiom(me,p,ln.getBoolean()));
      }
 else {
        tail(getURIString() + "String_Node_Str" + one.getURIString());
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
      System.exit(0);
    }
  }
}