c64fb9aeaf3e78faded688f8fa1b3097dd70b470,nussl/deep/datasets/base_dataset.py,BaseDataset,populate_cache,#BaseDataset#Any#Any#,108

Before Change


        for j, o in enumerate(output):
            _filepart = f"{i:08d}.pth.part{j}"
            self.write_to_cache(o, _filepart)
        return output[0]

    def switch_to_cache(self):
        self.original_files = self.files
        self.files = [x for x in os.listdir(self.cache) if ".part" in x]

After Change


            }
        _filename = f"{filename}.cache"
        self.write_to_cache(output, _filename)
        return self.get_target_length(output, self.current_length)

    def switch_to_cache(self):
        self.original_files = self.files
        self.files = [x for x in os.listdir(self.cache) if ".cache" in x]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: c64fb9aeaf3e78faded688f8fa1b3097dd70b470
Time: 2019-07-07
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/base_dataset.py
Class Name: BaseDataset
Method Name: populate_cache


Project Name: facebookresearch/pytext
Commit Name: f5278f68882ebf89a013611c86eb20345e723df2
Time: 2020-04-15
Author: twild@fb.com
File Name: pytext/models/seq_models/seq2seq_model.py
Class Name: Seq2SeqModel
Method Name: forward


Project Name: interactiveaudiolab/nussl
Commit Name: c64fb9aeaf3e78faded688f8fa1b3097dd70b470
Time: 2019-07-07
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/base_dataset.py
Class Name: BaseDataset
Method Name: _get_item_helper


Project Name: interactiveaudiolab/nussl
Commit Name: c64fb9aeaf3e78faded688f8fa1b3097dd70b470
Time: 2019-07-07
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/base_dataset.py
Class Name: BaseDataset
Method Name: load_from_cache