Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(10)  |  Derive(0)  |  Import(3)

src/h/u/hustle-HEAD/hustle/cardinality.py   hustle(Download)
    def _inner_deault():
        from maxhash import MaxHash
        return MaxHash()
 
    def _inner_hll_accumulate(a, v):
        from maxhash import MaxHash

src/h/u/hustle-HEAD/deps/maxhash/test/maxhash_test.py   hustle(Download)
import unittest
from maxhash import MinHeap, MaxHash
 
 
class TestMinHeap(unittest.TestCase):
    def test_add(self):
        m = MaxHash(8192)
        m.add(str(1))
        m.add(str(2))
        m.add(str(3))
    def test_merge(self):
        r1 = range(10000)
        m1 = MaxHash(8192)
        r2 = range(2000, 12000)
        m2 = MaxHash(8192)
        r3 = range(15000)
        m3 = MaxHash(8192)