/**
 * Calculates suspiciousness and confidence values according to the Op2 fault localization
 * technique.
 */
public class Op2 {
}

@@ -108,27 +108,759 @@
 .%0A *
-/%0Apublic class Op2 %7B
+ The usage mode is to create a coverage matrix that specifies which program%0A * elements are executed by which test cases. In terms of this implementation, each program element called%0A * a statement. coverage matrix is encoded as a two dimensional array where the first dimension is indexed by%0A * the test case number and the second dimension is indexed by the statement number.%0A */%0Apublic class Op2 %7B%0A  private boolean%5B%5D%5B%5D coverageMatrix; // coverage matrix -- %5Btest%5D%5Bstatement%5D%0A%0A  private int numberOfTests; // number of test cases%0A  private int numberOfStatements;%0A%0A  public Op2(boolean%5B%5D%5B%5D coverageMatrix) %7B%0A    this.coverageMatrix = coverageMatrix;%0A    numberOfTests = coverageMatrix.length;%0A    numberOfStatements = coverageMatrix%5B0%5D.length;%0A%0A  %7D%0A
 %0A%7D%0A

Create two dimensional coverage matrix where the first dimension is indexed by the test case number and the second dimension is indexed by the statement number