code: public static float compare(final int numOfBits, final byte[] data1,
              final byte[] data2) {
          if (data1.length != data2.length) {
              return 0;
          }
          final int count = countSameBits(data1, data2);
          return (float) count / (float) numOfBits;
      }
docs: Compare bytes for MinHash.
  
  @param numOfBits The number of MinHash bits
  @param data1 MinHash bytes
  @param data2 MinHash bytes
  @return similarity (0 to 1.0f)