Program: 90389
Project: 90389
Buggy source:
/** 
 * Generating N sets of nbInts integers uzing Zipfian distribution
 * @param N number of generated sets of integers
 * @param repeat number of repetitions
 */
public static void ZipfianTests(int N,int repeat,String path,int distribution){
  DecimalFormat df=new DecimalFormat("String_Node_Str");
  System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  ZipfianDistribution zpf=new ZipfianDistribution();
  uniform=new UniformDataGenerator();
  String Chartdirs=distribution == distUniform ? path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str" : path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
  String Benchmarkdirs=distribution == distUniform ? path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str" : path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
  try {
    boolean success=(new File(Chartdirs).mkdirs());
    boolean success2=(new File(Benchmarkdirs).mkdirs());
    if (success)     System.out.println("String_Node_Str");
  }
 catch (  Exception e) {
    e.getMessage();
  }
  try {
    File file=new File(Benchmarkdirs + "String_Node_Str");
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    FileWriter fw=new FileWriter(file.getAbsoluteFile());
    bw=new BufferedWriter(fw);
    bw.write("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  for (double k=0.0001; k < 0.001; k*=10) {
    SizeGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    OrGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    AndGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    XorGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    for (int i=0; i < nbTechnique; i++) {
      SizeGraphCoordinates.add(new Vector<LineChartPoint>());
      OrGraphCoordinates.add(new Vector<LineChartPoint>());
      AndGraphCoordinates.add(new Vector<LineChartPoint>());
      XorGraphCoordinates.add(new Vector<LineChartPoint>());
    }
    for (double density=k; density < k * 10.0; density+=density) {
      if (density >= 0.7)       density=0.6;
      int max=10000000;
      int SetSize=(int)(max * density);
      int data[][]=new int[N][];
      int data2[][]=new int[N][];
      System.out.println("String_Node_Str" + density);
      System.out.println("String_Node_Str");
      try {
        bw.write("String_Node_Str" + density + "String_Node_Str");
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
      for (int i=0; i < nbTechnique; i++) {
        SizeGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        OrGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        AndGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        XorGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
      }
      for (int i=0; i < N; i++) {
        data[i]=distribution == distUniform ? uniform.generateUniform(SetSize,max) : zpf.GenartingInts(SetSize,max);
        data2[i]=distribution == distUniform ? uniform.generateUniform(SetSize,max) : zpf.GenartingInts(SetSize,max);
        Arrays.sort(data[i]);
        Arrays.sort(data2[i]);
      }
      System.out.println("String_Node_Str");
      System.out.println("String_Node_Str" + density + "String_Node_Str"+ SetSize);
      try {
        bw.write("String_Node_Str" + "String_Node_Str" + density + "String_Node_Str"+ SetSize);
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
      testRoaringBitmap(data,data2,repeat,df);
      testWAH32(data,data2,repeat,df);
      testConciseSet(data,data2,repeat,df);
      testSparseBitmap(data,data2,repeat,df);
      testEWAH64(data,data2,repeat,df);
      testEWAH32(data,data2,repeat,df);
      System.out.println();
    }
    if (path != null) {
      path+=distribution == distUniform ? "String_Node_Str" : "String_Node_Str";
      path+="String_Node_Str";
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),SizeGraphCoordinates,path);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),OrGraphCoordinates,path);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),AndGraphCoordinates,path);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),XorGraphCoordinates,path);
    }
  }
  try {
    bw.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Generating N sets of nbInts integers uzing Zipfian distribution
 * @param N number of generated sets of integers
 * @param repeat number of repetitions
 */
public static void ZipfianTests(int N,int repeat,String path,int distribution){
  DecimalFormat df=new DecimalFormat("String_Node_Str");
  System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  ZipfianDistribution zpf=new ZipfianDistribution();
  uniform=new UniformDataGenerator();
  String Chartdirs=distribution == distUniform ? path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str" : path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
  String Benchmarkdirs=distribution == distUniform ? path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str" : path + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
  try {
    boolean success=(new File(Chartdirs).mkdirs());
    boolean success2=(new File(Benchmarkdirs).mkdirs());
    if (success)     System.out.println("String_Node_Str");
  }
 catch (  Exception e) {
    e.getMessage();
  }
  try {
    File file=new File(Benchmarkdirs + "String_Node_Str");
    if (!file.exists()) {
      file.createNewFile();
    }
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    FileWriter fw=new FileWriter(file.getAbsoluteFile());
    bw=new BufferedWriter(fw);
    bw.write("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  for (double k=0.0001; k < 1.0; k*=10) {
    SizeGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    OrGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    AndGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    XorGraphCoordinates=new ArrayList<Vector<LineChartPoint>>();
    for (int i=0; i < nbTechnique; i++) {
      SizeGraphCoordinates.add(new Vector<LineChartPoint>());
      OrGraphCoordinates.add(new Vector<LineChartPoint>());
      AndGraphCoordinates.add(new Vector<LineChartPoint>());
      XorGraphCoordinates.add(new Vector<LineChartPoint>());
    }
    for (double density=k; density < k * 10.0; density+=density) {
      if (density >= 0.7)       density=0.6;
      int max=10000000;
      int SetSize=(int)(max * density);
      int data[][]=new int[N][];
      int data2[][]=new int[N][];
      System.out.println("String_Node_Str" + density);
      System.out.println("String_Node_Str");
      try {
        bw.write("String_Node_Str" + density + "String_Node_Str");
      }
 catch (      IOException e1) {
        e1.printStackTrace();
      }
      for (int i=0; i < nbTechnique; i++) {
        SizeGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        OrGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        AndGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
        XorGraphCoordinates.get(i).add(new LineChartPoint(0.0,String.valueOf(density),null));
      }
      for (int i=0; i < N; i++) {
        data[i]=distribution == distUniform ? uniform.generateUniform(SetSize,max) : zpf.GenartingInts(SetSize,max);
        data2[i]=distribution == distUniform ? uniform.generateUniform(SetSize,max) : zpf.GenartingInts(SetSize,max);
        Arrays.sort(data[i]);
        Arrays.sort(data2[i]);
      }
      System.out.println("String_Node_Str");
      System.out.println("String_Node_Str" + density + "String_Node_Str"+ SetSize);
      try {
        bw.write("String_Node_Str" + "String_Node_Str" + density + "String_Node_Str"+ SetSize);
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
      testRoaringBitmap(data,data2,repeat,df);
      testWAH32(data,data2,repeat,df);
      testConciseSet(data,data2,repeat,df);
      testSparseBitmap(data,data2,repeat,df);
      testEWAH64(data,data2,repeat,df);
      testEWAH32(data,data2,repeat,df);
      System.out.println();
    }
    if (path != null) {
      String p=distribution == distUniform ? path + "String_Node_Str" : path + "String_Node_Str";
      p+="String_Node_Str";
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),SizeGraphCoordinates,p);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),OrGraphCoordinates,p);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),AndGraphCoordinates,p);
      new LineChartDemo1("String_Node_Str" + k + "String_Node_Str"+ (k * 10),XorGraphCoordinates,p);
    }
  }
  try {
    bw.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}