Program: 9830
Project: 9830
Buggy source:
private void makeSingleStat(){
  int candidatesAboveThresholdCount=0;
  int missesCount=0;
  int foundDescriptionCount=0;
  int noSensibleDescriptionCount=0;
  int inconsistencyDetected=0;
  int moreInstancesCount=0;
  int nonPerfectCount=0;
  Stat moreInstancesCountStat=new Stat();
  Stat accStat=new Stat();
  Stat accSelectedStat=new Stat();
  Stat accAboveThresholdStat=new Stat();
  Stat positionStat=new Stat();
  int candidatesAboveThresholdCountSC=0;
  int missesCountSC=0;
  int foundDescriptionCountSC=0;
  int noSensibleDescriptionCountSC=0;
  int inconsistencyDetectedSC=0;
  int moreInstancesCountSC=0;
  int nonPerfectCountSC=0;
  Stat moreInstancesCountStatSC=new Stat();
  Stat accStatSC=new Stat();
  Stat accSelectedStatSC=new Stat();
  Stat accAboveThresholdStatSC=new Stat();
  Stat positionStatSC=new Stat();
  for (  Entry<NamedClass,String> e : equivalentInput.entrySet()) {
    NamedClass currentClass=e.getKey();
    String input=e.getValue();
    if (input.equals("String_Node_Str")) {
      missesCount++;
    }
 else     if (input.equals("String_Node_Str")) {
      noSensibleDescriptionCount++;
    }
 else {
      int selectedIndex=Integer.parseInt(input);
      EvaluatedDescriptionClass selectedExpression=equivalentSuggestions.get(currentClass).get(selectedIndex);
      double bestAcc=equivalentSuggestions.get(currentClass).get(0).getAccuracy();
      int selectedNr=selectedIndex + 1;
      boolean isConsistent=selectedExpression.isConsistent();
      Set<Individual> addInst=selectedExpression.getAdditionalInstances();
      int additionalInstances=addInst.size();
      accSelectedStat.addNumber(selectedExpression.getAccuracy());
      positionStat.addNumber(selectedNr);
      foundDescriptionCount++;
      if (!isConsistent) {
        inconsistencyDetected++;
      }
      if (additionalInstances > 0) {
        moreInstancesCount++;
        moreInstancesCountStat.addNumber(additionalInstances);
      }
      if (bestAcc < 0.9999) {
        nonPerfectCount++;
      }
    }
  }
  acceptedStat.addNumber(foundDescriptionCount);
  rejectedStat.addNumber(noSensibleDescriptionCount);
  failedStat.addNumber(missesCount);
  moreInstancesCountStats.add(moreInstancesCountStat);
  accStats.add(accStat);
  accSelectedStats.add(accSelectedStat);
  accAboveThresholdStats.add(accSelectedStat);
  positionStats.add(positionStat);
  for (  Entry<NamedClass,String> e : superInput.entrySet()) {
    NamedClass currentClass=e.getKey();
    if (e.getValue().equals("String_Node_Str")) {
      missesCountSC++;
    }
 else     if (e.getValue().equals("String_Node_Str")) {
      noSensibleDescriptionCountSC++;
    }
 else {
      int selectedIndex=Integer.parseInt(e.getValue());
      EvaluatedDescriptionClass selectedExpression=superSuggestions.get(currentClass).get(selectedIndex);
      double bestAcc=superSuggestions.get(currentClass).get(0).getAccuracy();
      int selectedNr=selectedIndex + 1;
      boolean isConsistent=selectedExpression.isConsistent();
      Set<Individual> addInst=selectedExpression.getAdditionalInstances();
      int additionalInstances=addInst.size();
      accSelectedStatSC.addNumber(selectedExpression.getAccuracy());
      positionStatSC.addNumber(selectedNr);
      foundDescriptionCountSC++;
      if (!isConsistent) {
        inconsistencyDetectedSC++;
      }
      if (additionalInstances > 0) {
        moreInstancesCountSC++;
        moreInstancesCountStatSC.addNumber(additionalInstances);
      }
      if (bestAcc < 0.9999) {
        nonPerfectCountSC++;
      }
    }
  }
  acceptedStatSC.addNumber(foundDescriptionCountSC);
  rejectedStatSC.addNumber(noSensibleDescriptionCountSC);
  failedStatSC.addNumber(missesCountSC);
  moreInstancesCountStatsSC.add(moreInstancesCountStatSC);
  accStatsSC.add(accStatSC);
  accSelectedStatsSC.add(accSelectedStatSC);
  accAboveThresholdStatsSC.add(accSelectedStatSC);
  positionStatsSC.add(positionStatSC);
  acceptedGlobalStat.addNumber(foundDescriptionCount + foundDescriptionCountSC);
  rejectedGlobalStat.addNumber(noSensibleDescriptionCountSC + noSensibleDescriptionCount);
  failedGlobalStat.addNumber(missesCountSC + missesCount);
  System.out.println("String_Node_Str" + ont.getURI());
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + candidatesAboveThresholdCount);
  System.out.println("String_Node_Str" + foundDescriptionCount);
  System.out.println("String_Node_Str" + missesCount);
  System.out.println("String_Node_Str" + noSensibleDescriptionCount);
  System.out.println("String_Node_Str" + inconsistencyDetected);
  System.out.println("String_Node_Str" + moreInstancesCountStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accSelectedStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accAboveThresholdStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + nonPerfectCount);
  System.out.println("String_Node_Str" + positionStat.prettyPrint("String_Node_Str"));
  System.out.println();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + candidatesAboveThresholdCountSC);
  System.out.println("String_Node_Str" + foundDescriptionCountSC);
  System.out.println("String_Node_Str" + missesCountSC);
  System.out.println("String_Node_Str" + noSensibleDescriptionCountSC);
  System.out.println("String_Node_Str" + inconsistencyDetectedSC);
  System.out.println("String_Node_Str" + moreInstancesCountStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accSelectedStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accAboveThresholdStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + nonPerfectCountSC);
  System.out.println("String_Node_Str" + positionStatSC.prettyPrint("String_Node_Str"));
  System.out.println();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + (candidatesAboveThresholdCount + candidatesAboveThresholdCountSC));
  System.out.println("String_Node_Str" + (foundDescriptionCount + foundDescriptionCountSC));
  System.out.println("String_Node_Str" + (missesCount + missesCountSC));
  System.out.println("String_Node_Str" + (noSensibleDescriptionCount + noSensibleDescriptionCountSC));
  System.out.println("String_Node_Str" + (inconsistencyDetected + inconsistencyDetectedSC));
  System.out.println("String_Node_Str" + new Stat(moreInstancesCountStat,moreInstancesCountStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accStat,accStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accSelectedStat,accSelectedStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accAboveThresholdStat,accAboveThresholdStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + (nonPerfectCount + nonPerfectCountSC));
  System.out.println("String_Node_Str" + new Stat(positionStat,positionStatSC).prettyPrint("String_Node_Str"));
  System.out.println();
}

Fixed version (ground truth):
private void makeSingleStat(){
  int candidatesAboveThresholdCount=0;
  int missesCount=0;
  int foundDescriptionCount=0;
  int noSensibleDescriptionCount=0;
  int inconsistencyDetected=0;
  int moreInstancesCount=0;
  int nonPerfectCount=0;
  Stat moreInstancesCountStat=new Stat();
  Stat accStat=new Stat();
  Stat accSelectedStat=new Stat();
  Stat accAboveThresholdStat=new Stat();
  Stat positionStat=new Stat();
  int candidatesAboveThresholdCountSC=0;
  int missesCountSC=0;
  int foundDescriptionCountSC=0;
  int noSensibleDescriptionCountSC=0;
  int inconsistencyDetectedSC=0;
  int moreInstancesCountSC=0;
  int nonPerfectCountSC=0;
  Stat moreInstancesCountStatSC=new Stat();
  Stat accStatSC=new Stat();
  Stat accSelectedStatSC=new Stat();
  Stat accAboveThresholdStatSC=new Stat();
  Stat positionStatSC=new Stat();
  for (  Entry<NamedClass,String> e : equivalentInput.entrySet()) {
    NamedClass currentClass=e.getKey();
    String input=e.getValue();
    if (input.equals("String_Node_Str")) {
      input="String_Node_Str";
    }
    if (input.equals("String_Node_Str")) {
      missesCount++;
      mat[equivalentLists.indexOf(currentClass)][2]++;
    }
 else     if (input.equals("String_Node_Str")) {
      noSensibleDescriptionCount++;
      mat[equivalentLists.indexOf(currentClass)][1]++;
    }
 else {
      mat[equivalentLists.indexOf(currentClass)][0]++;
      int selectedIndex=Integer.parseInt(input);
      EvaluatedDescriptionClass selectedExpression=equivalentSuggestions.get(currentClass).get(selectedIndex);
      double bestAcc=equivalentSuggestions.get(currentClass).get(0).getAccuracy();
      int selectedNr=selectedIndex + 1;
      boolean isConsistent=selectedExpression.isConsistent();
      Set<Individual> addInst=selectedExpression.getAdditionalInstances();
      int additionalInstances=addInst.size();
      accSelectedStat.addNumber(selectedExpression.getAccuracy());
      positionStat.addNumber(selectedNr);
      foundDescriptionCount++;
      if (!isConsistent) {
        inconsistencyDetected++;
      }
      if (additionalInstances > 0) {
        moreInstancesCount++;
        moreInstancesCountStat.addNumber(additionalInstances);
      }
      if (bestAcc < 0.9999) {
        nonPerfectCount++;
      }
    }
  }
  acceptedStat.addNumber(foundDescriptionCount);
  rejectedStat.addNumber(noSensibleDescriptionCount);
  failedStat.addNumber(missesCount);
  moreInstancesCountStats.add(moreInstancesCountStat);
  accStats.add(accStat);
  accSelectedStats.add(accSelectedStat);
  accAboveThresholdStats.add(accSelectedStat);
  positionStats.add(positionStat);
  for (  Entry<NamedClass,String> e : superInput.entrySet()) {
    NamedClass currentClass=e.getKey();
    if (e.getValue().equals("String_Node_Str")) {
      missesCountSC++;
      mat[superLists.indexOf(currentClass) + equivalentLists.size()][2]++;
    }
 else     if (e.getValue().equals("String_Node_Str")) {
      noSensibleDescriptionCountSC++;
      mat[superLists.indexOf(currentClass) + equivalentLists.size()][1]++;
    }
 else {
      mat[superLists.indexOf(currentClass) + equivalentLists.size()][0]++;
      int selectedIndex=Integer.parseInt(e.getValue());
      EvaluatedDescriptionClass selectedExpression=superSuggestions.get(currentClass).get(selectedIndex);
      double bestAcc=superSuggestions.get(currentClass).get(0).getAccuracy();
      int selectedNr=selectedIndex + 1;
      boolean isConsistent=selectedExpression.isConsistent();
      Set<Individual> addInst=selectedExpression.getAdditionalInstances();
      int additionalInstances=addInst.size();
      accSelectedStatSC.addNumber(selectedExpression.getAccuracy());
      positionStatSC.addNumber(selectedNr);
      foundDescriptionCountSC++;
      if (!isConsistent) {
        inconsistencyDetectedSC++;
      }
      if (additionalInstances > 0) {
        moreInstancesCountSC++;
        moreInstancesCountStatSC.addNumber(additionalInstances);
      }
      if (bestAcc < 0.9999) {
        nonPerfectCountSC++;
      }
    }
  }
  acceptedStatSC.addNumber(foundDescriptionCountSC);
  rejectedStatSC.addNumber(noSensibleDescriptionCountSC);
  failedStatSC.addNumber(missesCountSC);
  moreInstancesCountStatsSC.add(moreInstancesCountStatSC);
  accStatsSC.add(accStatSC);
  accSelectedStatsSC.add(accSelectedStatSC);
  accAboveThresholdStatsSC.add(accSelectedStatSC);
  positionStatsSC.add(positionStatSC);
  acceptedGlobalStat.addNumber(foundDescriptionCount + foundDescriptionCountSC);
  rejectedGlobalStat.addNumber(noSensibleDescriptionCountSC + noSensibleDescriptionCount);
  failedGlobalStat.addNumber(missesCountSC + missesCount);
  System.out.println("String_Node_Str" + ont.getURI());
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + candidatesAboveThresholdCount);
  System.out.println("String_Node_Str" + foundDescriptionCount);
  System.out.println("String_Node_Str" + missesCount);
  System.out.println("String_Node_Str" + noSensibleDescriptionCount);
  System.out.println("String_Node_Str" + inconsistencyDetected);
  System.out.println("String_Node_Str" + moreInstancesCountStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accSelectedStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accAboveThresholdStat.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + nonPerfectCount);
  System.out.println("String_Node_Str" + positionStat.prettyPrint("String_Node_Str"));
  System.out.println();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + candidatesAboveThresholdCountSC);
  System.out.println("String_Node_Str" + foundDescriptionCountSC);
  System.out.println("String_Node_Str" + missesCountSC);
  System.out.println("String_Node_Str" + noSensibleDescriptionCountSC);
  System.out.println("String_Node_Str" + inconsistencyDetectedSC);
  System.out.println("String_Node_Str" + moreInstancesCountStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accSelectedStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + accAboveThresholdStatSC.prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + nonPerfectCountSC);
  System.out.println("String_Node_Str" + positionStatSC.prettyPrint("String_Node_Str"));
  System.out.println();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + (candidatesAboveThresholdCount + candidatesAboveThresholdCountSC));
  System.out.println("String_Node_Str" + (foundDescriptionCount + foundDescriptionCountSC));
  System.out.println("String_Node_Str" + (missesCount + missesCountSC));
  System.out.println("String_Node_Str" + (noSensibleDescriptionCount + noSensibleDescriptionCountSC));
  System.out.println("String_Node_Str" + (inconsistencyDetected + inconsistencyDetectedSC));
  System.out.println("String_Node_Str" + new Stat(moreInstancesCountStat,moreInstancesCountStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accStat,accStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accSelectedStat,accSelectedStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + new Stat(accAboveThresholdStat,accAboveThresholdStatSC).prettyPrint("String_Node_Str"));
  System.out.println("String_Node_Str" + (nonPerfectCount + nonPerfectCountSC));
  System.out.println("String_Node_Str" + new Stat(positionStat,positionStatSC).prettyPrint("String_Node_Str"));
  System.out.println();
}