Program: 33330
Project: 33330
Buggy source:
public static void runDirectComprarison() throws GerbilException {
  ExperimentType experimentType=ExperimentType.A2W;
  WikipediaApiInterface wikiAPI=SingletonWikipediaApi.getInstance();
  DBPediaApi dbpApi=new DBPediaApi();
  A2WDataset dataset=(A2WDataset)(new KnownNIFFileDatasetConfig(NIFDatasets.KORE50)).getDataset(experimentType);
  A2WSystem spotlight=(A2WSystem)(new SpotlightAnnotatorConfig(wikiAPI,dbpApi)).getAnnotator(experimentType);
  A2WSystem nifWS=(A2WSystem)(new NIFWebserviceAnnotatorConfiguration(ANNOTATOR_URL,ANNOTATOR_NAME,false,wikiAPI,dbpApi,experimentType)).getAnnotator(experimentType);
  HashSet<Annotation> spotlightResult=null, nifWSResult=null;
  boolean foundError=false;
  for (  String document : dataset.getTextInstanceList()) {
    spotlightResult=spotlight.solveA2W(document);
    nifWSResult=nifWS.solveA2W(document);
    foundError=(spotlightResult.size() != nifWSResult.size());
    if (!foundError) {
      for (      Annotation annotation : spotlightResult) {
        if (!nifWSResult.contains(annotation)) {
          foundError=true;
          break;
        }
      }
    }
    if (foundError) {
      break;
    }
  }
  if (foundError) {
    StringBuilder errorMsg=new StringBuilder();
    errorMsg.append("String_Node_Str");
    boolean first=true;
    for (    Annotation annotation : spotlightResult) {
      if (first) {
        first=false;
      }
 else {
        errorMsg.append(',');
      }
      errorMsg.append('(');
      errorMsg.append(annotation.getPosition());
      errorMsg.append(',');
      errorMsg.append(annotation.getLength());
      errorMsg.append(',');
      errorMsg.append(annotation.getConcept());
      errorMsg.append(')');
    }
    errorMsg.append("String_Node_Str");
    first=true;
    for (    Annotation annotation : nifWSResult) {
      if (first) {
        first=false;
      }
 else {
        errorMsg.append(',');
      }
      errorMsg.append('(');
      errorMsg.append(annotation.getPosition());
      errorMsg.append(',');
      errorMsg.append(annotation.getLength());
      errorMsg.append(',');
      errorMsg.append(annotation.getConcept());
      errorMsg.append(')');
    }
    errorMsg.append(']');
    System.out.println(errorMsg.toString());
  }
}

Fixed version (ground truth):
public static void runDirectComprarison() throws GerbilException {
  ExperimentType experimentType=ExperimentType.A2W;
  WikipediaApiInterface wikiAPI=SingletonWikipediaApi.getInstance();
  DBPediaApi dbpApi=new DBPediaApi();
  A2WDataset dataset=(A2WDataset)(new KnownNIFFileDatasetConfig(SingletonWikipediaApi.getInstance(),new DBPediaApi(),NIFDatasets.KORE50)).getDataset(experimentType);
  A2WSystem spotlight=(A2WSystem)(new SpotlightAnnotatorConfig(wikiAPI,dbpApi)).getAnnotator(experimentType);
  A2WSystem nifWS=(A2WSystem)(new NIFWebserviceAnnotatorConfiguration(ANNOTATOR_URL,ANNOTATOR_NAME,false,wikiAPI,dbpApi,experimentType)).getAnnotator(experimentType);
  HashSet<Annotation> spotlightResult=null, nifWSResult=null;
  boolean foundError=false;
  for (  String document : dataset.getTextInstanceList()) {
    spotlightResult=spotlight.solveA2W(document);
    nifWSResult=nifWS.solveA2W(document);
    foundError=(spotlightResult.size() != nifWSResult.size());
    if (!foundError) {
      for (      Annotation annotation : spotlightResult) {
        if (!nifWSResult.contains(annotation)) {
          foundError=true;
          break;
        }
      }
    }
    if (foundError) {
      break;
    }
  }
  if (foundError) {
    StringBuilder errorMsg=new StringBuilder();
    errorMsg.append("String_Node_Str");
    boolean first=true;
    for (    Annotation annotation : spotlightResult) {
      if (first) {
        first=false;
      }
 else {
        errorMsg.append(',');
      }
      errorMsg.append('(');
      errorMsg.append(annotation.getPosition());
      errorMsg.append(',');
      errorMsg.append(annotation.getLength());
      errorMsg.append(',');
      errorMsg.append(annotation.getConcept());
      errorMsg.append(')');
    }
    errorMsg.append("String_Node_Str");
    first=true;
    for (    Annotation annotation : nifWSResult) {
      if (first) {
        first=false;
      }
 else {
        errorMsg.append(',');
      }
      errorMsg.append('(');
      errorMsg.append(annotation.getPosition());
      errorMsg.append(',');
      errorMsg.append(annotation.getLength());
      errorMsg.append(',');
      errorMsg.append(annotation.getConcept());
      errorMsg.append(')');
    }
    errorMsg.append(']');
    System.out.println(errorMsg.toString());
  }
}