Program: 9875
Project: 9875
Buggy source:
@Override public Void doInBackground(){
  ComponentManager cm=ComponentManager.getInstance();
  URL endpointURL=null;
  try {
    endpointURL=new URL(comboBox.getSelectedItem().toString());
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  List<String> defaultGraphURIS=new ArrayList<String>(1);
  defaultGraphURIS.add(defaultGraphField.getText());
  SparqlEndpoint endpoint=new SparqlEndpoint(endpointURL,defaultGraphURIS,Collections.<String>emptyList());
  task=new SPARQLTasks(endpoint);
  String classKBString;
  if (asLabelButton.isSelected()) {
    classKBString="String_Node_Str" + getClassFromLabel() + "String_Node_Str";
  }
 else {
    classKBString="String_Node_Str" + classField.getText() + "String_Node_Str";
  }
  AutomaticPositiveExampleFinderSPARQL pos=new AutomaticPositiveExampleFinderSPARQL(task);
  pos.makePositiveExamplesFromConcept(classKBString);
  SortedSet<String> allPosExamples=pos.getPosExamples();
  SortedSet<String> posExamples=SetManipulation.stableShrink(allPosExamples,20);
  SortedSet<String> instances=new TreeSet<String>(posExamples);
  ks=cm.knowledgeSource(SparqlKnowledgeSource.class);
  ks.getConfigurator().setUrl(SparqlEndpoint.getEndpointDBpedia().getURL());
  ks.getConfigurator().setInstances(instances);
  ks.getConfigurator().setPredefinedFilter("String_Node_Str");
  ks.getConfigurator().setBreakSuperClassRetrievalAfter(optionsPanel.getBreakSuperClassRetrievalAfterValue());
  ks.getConfigurator().setRecursionDepth(optionsPanel.getRecursionDepthValue());
  ks.getConfigurator().setUseCache(optionsPanel.isUseCache());
  ks.getConfigurator().setGetAllSuperClasses(optionsPanel.isGetAllSuperClasses());
  ks.getConfigurator().setDissolveBlankNodes(optionsPanel.isDissolveBlankNodes());
  ks.getConfigurator().setUseImprovedSparqlTupelAquisitor(optionsPanel.isUseImprovedSparqlTupelAquisitor());
  ks.getConfigurator().setUseLits(optionsPanel.isUseLiterals());
  ks.getConfigurator().setGetPropertyInformation(optionsPanel.isGetPropertyInformation());
  ks.getConfigurator().setCloseAfterRecursion(optionsPanel.isCloseAfterRecursion());
  ks.addProgressMonitor(mon);
  ks.init();
  return null;
}

Fixed version (ground truth):
@Override public Void doInBackground(){
  if (urlIsConnectable()) {
    message.setText("String_Node_Str");
  }
 else {
    message.setText("String_Node_Str");
    cancel(true);
  }
  ComponentManager cm=ComponentManager.getInstance();
  URL endpointURL=null;
  try {
    endpointURL=new URL(comboBox.getSelectedItem().toString());
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  List<String> defaultGraphURIS=new ArrayList<String>(1);
  defaultGraphURIS.add(defaultGraphField.getText());
  SparqlEndpoint endpoint=new SparqlEndpoint(endpointURL,defaultGraphURIS,Collections.<String>emptyList());
  task=new SPARQLTasks(endpoint);
  String concept;
  if (asLabelButton.isSelected()) {
    concept=getClassFromLabel();
  }
 else {
    concept=classField.getText();
  }
  SortedSet<String> allPosExamples=getPosExamples(concept);
  SortedSet<String> posExamples=SetManipulation.stableShrink(allPosExamples,20);
  System.out.println(posExamples);
  SortedSet<String> instances=new TreeSet<String>(posExamples);
  ks=cm.knowledgeSource(SparqlKnowledgeSource.class);
  ks.getConfigurator().setUrl(endpoint.getURL());
  ks.getConfigurator().setInstances(instances);
  ks.getConfigurator().setBreakSuperClassRetrievalAfter(optionsPanel.getBreakSuperClassRetrievalAfterValue());
  ks.getConfigurator().setRecursionDepth(optionsPanel.getRecursionDepthValue());
  ks.getConfigurator().setUseCache(optionsPanel.isUseCache());
  ks.getConfigurator().setGetAllSuperClasses(optionsPanel.isGetAllSuperClasses());
  ks.getConfigurator().setDissolveBlankNodes(optionsPanel.isDissolveBlankNodes());
  ks.getConfigurator().setUseImprovedSparqlTupelAquisitor(optionsPanel.isUseImprovedSparqlTupelAquisitor());
  ks.getConfigurator().setUseLits(optionsPanel.isUseLiterals());
  ks.getConfigurator().setGetPropertyInformation(optionsPanel.isGetPropertyInformation());
  ks.getConfigurator().setCloseAfterRecursion(optionsPanel.isCloseAfterRecursion());
  ks.addProgressMonitor(mon);
  ks.getConfigurator().setSaveExtractedFragment(true);
  ks.init();
  return null;
}