c97f94ae4c61dbfa2125ada2905aab61cfe711e5,datasketch/minhash.py,MinHash,digest,#MinHash#Any#,59

Before Change


        and has size at least 4 bytes.
        """
        // Digest the hash object to get the hash value
        hv = int(hashobj.hexdigest()[:8], 16)
        for i, (a, b) in enumerate(self.permutations):
            phv = _permutation_func(hv, a, b)
            if phv < self.hashvalues[i]:
                self.hashvalues[i] = phv

After Change


        and has size at least 4 bytes.
        """
        // Digest the hash object to get the hash value
        hv = struct.unpack("<I", hashobj.digest()[:4])[0]
        for i, (a, b) in enumerate(self.permutations):
            phv = _permutation_func(hv, a, b)
            if phv < self.hashvalues[i]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ekzhu/datasketch
Commit Name: c97f94ae4c61dbfa2125ada2905aab61cfe711e5
Time: 2015-04-15
Author: erkangzhu@gmail.com
File Name: datasketch/minhash.py
Class Name: MinHash
Method Name: digest


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 8aa5c1ae7cd087cd0ca54cf2b643dbb0158d8916
Time: 2018-03-20
Author: jk7@tigergpu.princeton.edu
File Name: plasma/models/builder.py
Class Name: ModelBuilder
Method Name: get_unique_id


Project Name: data61/python-paillier
Commit Name: a1d0d8dd82ee9ce2a57ecdc47b217780ac01b6a9
Time: 2017-07-04
Author: brian@thorne.link
File Name: phe/paillier.py
Class Name: PaillierPublicKey
Method Name: __repr__