Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
parasoltree committed Apr 2, 2019
1 parent 30d320f commit b04da32
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions server/src/main/java/org/weiboad/ragnar/server/util/SimHash.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,4 @@ public int hammingDistance(SimHash other) {
}
return tot;
}
/*public static void main(String[] args) {
String s = "This is a test string for testing";
SimHash hash1 = new SimHash(s, 128);
System.out.println(hash1.strSimHash + " " + hash1.strSimHash.bitLength());
s = "This is a test string for testing also";
SimHash hash2 = new SimHash(s, 128);
System.out.println(hash2.strSimHash+ " " + hash2.strSimHash.bitCount());
s = "This is a test string for testing als";
SimHash hash3 = new SimHash(s, 128);
System.out.println(hash3.strSimHash+ " " + hash3.strSimHash.bitCount());
System.out.println("============================");
System.out.println(hash1.hammingDistance(hash2));
System.out.println(hash1.hammingDistance(hash3));
}*/
}

0 comments on commit b04da32

Please sign in to comment.