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: dask/distributed
Commit Name: 1dba1622049dd957dfce138618e4ee4180222b4a
Time: 2020-07-21
Author: jakirkham@gmail.com
File Name: distributed/protocol/utils.py
Class Name:
Method Name: unpack_frames