Program: 58372
Project: 58372
Buggy source:
private void calulateReduction(){
  if (setsWithPerformedStatistics == null || setsWithPerformedStatistics.size() == 0)   return;
  reducedVA=new ContentVirtualArray();
  for (int contentIndex=0; contentIndex < setsWithPerformedStatistics.get(0).getContentVA(ContentVAType.CONTENT).size(); contentIndex++) {
    boolean resultValid=true;
    for (    ISet set : setsWithPerformedStatistics) {
      for (      ISet foldChangeCompareSet : set.getStatisticsResult().getAllFoldChangeResults().keySet()) {
        Pair<double[],FoldChangeSettings> foldChangeResult=set.getStatisticsResult().getFoldChangeResult(foldChangeCompareSet);
        FoldChangeSettings foldChangeSettings=foldChangeResult.getSecond();
        if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.GREATER) {
          if (foldChangeResult.getFirst()[contentIndex] < foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
 else         if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.LESS) {
          if (foldChangeResult.getFirst()[contentIndex] > foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
 else         if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.SAME) {
          if (Math.abs(foldChangeResult.getFirst()[contentIndex]) < foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
      }
      for (      ISet twoSidedCompareSet : set.getStatisticsResult().getAllTwoSidedTTestResults().keySet()) {
        ArrayList<Double> twoSidedTTestResult=set.getStatisticsResult().getTwoSidedTTestResult(twoSidedCompareSet);
        if (twoSidedTTestResult != null && twoSidedTTestResult.get(contentIndex) > pValueCutOff)         resultValid=false;
      }
      double[] tTestResult=set.getStatisticsResult().getOneSidedTTestResult();
      if (tTestResult != null && tTestResult[contentIndex] > pValueCutOff)       resultValid=false;
      if (!resultValid)       continue;
    }
    if (resultValid)     reducedVA.appendUnique(setsWithPerformedStatistics.get(0).getContentVA(ContentVAType.CONTENT).get(contentIndex));
  }
}

Fixed version (ground truth):
private void calulateReduction(){
  if (setsWithPerformedStatistics == null || setsWithPerformedStatistics.size() == 0)   return;
  reducedVA=new ContentVirtualArray();
  for (int contentIndex=0; contentIndex < setsWithPerformedStatistics.get(0).getContentVA(ContentVAType.CONTENT).size(); contentIndex++) {
    boolean resultValid=true;
    for (    ISet set : setsWithPerformedStatistics) {
      for (      ISet foldChangeCompareSet : set.getStatisticsResult().getAllFoldChangeResults().keySet()) {
        Pair<double[],FoldChangeSettings> foldChangeResult=set.getStatisticsResult().getFoldChangeResult(foldChangeCompareSet);
        FoldChangeSettings foldChangeSettings=foldChangeResult.getSecond();
        if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.GREATER) {
          if (foldChangeResult.getFirst()[contentIndex] < foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
 else         if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.LESS) {
          if (foldChangeResult.getFirst()[contentIndex] > foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
 else         if (foldChangeSettings.getEvaluator() == FoldChangeEvaluator.SAME) {
          if (Math.abs(foldChangeResult.getFirst()[contentIndex]) < foldChangeSettings.getRatio()) {
            resultValid=false;
            continue;
          }
        }
      }
      for (      ISet twoSidedCompareSet : set.getStatisticsResult().getAllTwoSidedTTestResults().keySet()) {
        ArrayList<Double> twoSidedTTestResult=set.getStatisticsResult().getTwoSidedTTestResult(twoSidedCompareSet);
        if (twoSidedTTestResult != null && twoSidedTTestResult.get(contentIndex) > pValueCutOff)         resultValid=false;
      }
      double[] tTestResult=set.getStatisticsResult().getOneSidedTTestResult();
      if (tTestResult != null && tTestResult[contentIndex] > pValueCutOff)       resultValid=false;
      if (!resultValid)       continue;
    }
    if (resultValid)     reducedVA.appendUnique(setsWithPerformedStatistics.get(0).getContentVA(ContentVAType.CONTENT).get(contentIndex));
  }
  if (reducedVA != null) {
    reducedNumberLabel.setText("String_Node_Str" + reducedVA.size());
    composite.layout();
  }
}