def test(l, err=0.03):
    hll = HyperLogLog(err)
    for i in l:
        hll.add(str(i)+'ip')
    le = len(hll)
    print err*100.0, len(hll.M), len(l), le, (le-len(l)) * len(l) / 100.0
dataset/ETHPy150Open douban/dpark/dpark/hyperloglog.py/test/swapped operands of `/`