c2cd89598fb34a389a9e18f7ded8f7047b884354,datasketch/lsh.py,MinHashLSH,remove,#MinHashLSH#Any#,160

Before Change


        for H, hashtable in zip(self.keys[key], self.hashtables):
            hashtable[H].remove(key)
            if not hashtable[H]:
                del hashtable[H]
        self.keys.pop(key)

    def is_empty(self):
        """

After Change



        """
        if self.prepickle:
            key = pickle.dumps(key)
        if key not in self.keys:
            raise ValueError("The given key does not exist")
        for H, hashtable in zip(self.keys[key], self.hashtables):
            hashtable.remove_val(H, key)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ekzhu/datasketch
Commit Name: c2cd89598fb34a389a9e18f7ded8f7047b884354
Time: 2017-09-08
Author: ae-foster@users.noreply.github.com
File Name: datasketch/lsh.py
Class Name: MinHashLSH
Method Name: remove


Project Name: pymc-devs/pymc3
Commit Name: f026fb8382789879f450c8c57093bfef566730d5
Time: 2018-02-26
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/tests/test_variational_inference.py
Class Name:
Method Name: test_clear_cache


Project Name: regel/loudml
Commit Name: 1f9b13ec98b3b0f2443caf549f69790a52cc0a70
Time: 2020-04-13
Author: sebastien.regel@gmail.com
File Name: loudml/opentsdb.py
Class Name: OpenTSDBClient
Method Name: put