Program: 9871
Project: 9871
Buggy source:
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws MalformedURLException {
  String exampleClass="String_Node_Str";
  String exampleClassKBString="String_Node_Str" + exampleClass + "String_Node_Str";
  ComponentManager cm=ComponentManager.getInstance();
  SparqlEndpoint endPoint=SparqlEndpoint.getEndpointDBpedia();
  String queryString="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  SPARQLTasks task=new SPARQLTasks(endPoint);
  System.out.println(task.queryAsSet(queryString,"String_Node_Str"));
  AutomaticPositiveExampleFinderSPARQL pos=new AutomaticPositiveExampleFinderSPARQL(task);
  pos.makePositiveExamplesFromConcept(exampleClassKBString);
  SortedSet<String> allPosExamples=pos.getPosExamples();
  SortedSet<String> posExamples=SetManipulation.stableShrink(allPosExamples,20);
  System.out.println(posExamples.size());
  System.out.println(posExamples);
  SortedSet<String> instances=new TreeSet<String>(posExamples);
  try {
    SparqlKnowledgeSource ks=cm.knowledgeSource(SparqlKnowledgeSource.class);
    cm.applyConfigEntry(ks,"String_Node_Str","String_Node_Str");
    ks.getConfigurator().setInstances(instances);
    ks.getConfigurator().setPredefinedFilter("String_Node_Str");
    ks.init();
    ReasonerComponent reasoner=cm.reasoner(FastInstanceChecker.class,ks);
    reasoner.init();
    ClassLearningProblem lp=cm.learningProblem(ClassLearningProblem.class,reasoner);
    lp.getConfigurator().setClassToDescribe(new URL(exampleClass));
    lp.init();
    LearningAlgorithm la=cm.learningAlgorithm(CELOE.class,lp,reasoner);
    la.init();
    la.start();
  }
 catch (  ComponentInitException e) {
    e.printStackTrace();
  }
catch (  LearningProblemUnsupportedException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws MalformedURLException {
  String exampleClass="String_Node_Str";
  String exampleClassKBString="String_Node_Str" + exampleClass + "String_Node_Str";
  ComponentManager cm=ComponentManager.getInstance();
  SparqlEndpoint endPoint=SparqlEndpoint.getEndpointDBpedia();
  String queryString="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  SPARQLTasks task=new SPARQLTasks(endPoint);
  System.out.println(task.queryAsSet(queryString,"String_Node_Str"));
  AutomaticPositiveExampleFinderSPARQL pos=new AutomaticPositiveExampleFinderSPARQL(task);
  pos.makePositiveExamplesFromConcept(exampleClassKBString);
  SortedSet<String> allPosExamples=pos.getPosExamples();
  SortedSet<String> posExamples=SetManipulation.stableShrink(allPosExamples,20);
  System.out.println(posExamples.size());
  System.out.println(posExamples);
  SortedSet<String> instances=new TreeSet<String>(posExamples);
  try {
    SparqlKnowledgeSource ks=cm.knowledgeSource(SparqlKnowledgeSource.class);
    cm.applyConfigEntry(ks,"String_Node_Str","String_Node_Str");
    ks.getConfigurator().setInstances(instances);
    ks.init();
    ReasonerComponent reasoner=cm.reasoner(FastInstanceChecker.class,ks);
    reasoner.init();
    ClassLearningProblem lp=cm.learningProblem(ClassLearningProblem.class,reasoner);
    lp.getConfigurator().setClassToDescribe(new URL(exampleClass));
    lp.init();
    LearningAlgorithm la=cm.learningAlgorithm(CELOE.class,lp,reasoner);
    la.init();
    la.start();
  }
 catch (  ComponentInitException e) {
    e.printStackTrace();
  }
catch (  LearningProblemUnsupportedException e) {
    e.printStackTrace();
  }
}