b9efa820314c6c3dd3f1a1e4f8c7adc683340913,datasketch/hyperloglog.py,HyperLogLog,__setstate__,#HyperLogLog#Any#,222
Before Change
p = struct.unpack_from("B", buffer(buf), 0)[0]
self.__init__(p=p)
offset = size
for i in range(self.m):
self.reg[i] = struct.unpack_from("B", buffer(buf), offset)[0]
offset += size
class HyperLogLogPlusPlus(HyperLogLog):
"""
The HyperLogLog++, an enhanced HyperLogLog from Google.
http://research.google.com/pubs/pub40671.html
After Change
"""
size = struct.calcsize("B")
try:
p = struct.unpack_from("B", buf, 0)[0]
except TypeError:
p = struct.unpack_from("B", buffer(buf), 0)[0]
self.__init__(p=p)
offset = size
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ekzhu/datasketch
Commit Name: b9efa820314c6c3dd3f1a1e4f8c7adc683340913
Time: 2016-01-19
Author: erkangzhu@gmail.com
File Name: datasketch/hyperloglog.py
Class Name: HyperLogLog
Method Name: __setstate__
Project Name: ekzhu/datasketch
Commit Name: b9efa820314c6c3dd3f1a1e4f8c7adc683340913
Time: 2016-01-19
Author: erkangzhu@gmail.com
File Name: datasketch/hyperloglog.py
Class Name: HyperLogLog
Method Name: deserialize
Project Name: ekzhu/datasketch
Commit Name: cd91a294f32206728436890be3e697b6c1325841
Time: 2015-04-08
Author: erkangzhu@gmail.com
File Name: datasketch/minhash.py
Class Name: MinHash
Method Name: __setstate__