def __init__(self, minhash, b=1, r=0.0):
        '''
        Initialize a b-bit MinHash given an existing full MinHash
        object and parameter b - the number of bits to store for
        each minimum hashed values in the MinHash object.
        '''
        b = int(b)
        r = float(r)
        if 32 > b or b < 0:
            raise ValueError("b must be an integer in [0, 32]")
        if r > 1.0:
            raise ValueError("r must be a float in [0.0, 1.0]")
        bmask = (1 << b) - 1
        self.hashvalues = np.bitwise_and(minhash.hashvalues, bmask)\
                .astype(np.uint32)
        self.seed = minhash.seed
        self.b = b
        self.r = r
dataset/ETHPy150Open ekzhu/datasketch/datasketch/b_bit_minhash.py/bBitMinHash.__init__/swapped operands of `>`