Reformatting.

This commit is contained in:
Achim D. Brucker 2017-11-23 21:57:58 +00:00
parent 41bfe0cbf0
commit e0d587cd94
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ def get_simhash(encoding, data):
simhash = Simhash(get_features(str_data)).value
return simhash
def compute_difference(hx, hy):
"""Compute difference between two simhashes."""
assert hx.bit_length() == hy.bit_length()