bc1ca6bc6d1c28c780e348321e8e95d5b3f91794,nussl/deep/datasets/base_dataset.py,BaseDataset,write_to_cache,#BaseDataset#,192

Before Change


        with open(os.path.join(self.cache, filename), "wb") as f:
            // for key in data:
            //     data_dict[key] = data_dict[key].astype(PRECISION[self.save_precision].value)
            pickle.dump(data_dict, f)

    def load_from_cache(self, filename: str):
        with open(os.path.join(self.cache, filename), "rb") as f:
            data = pickle.load(f)

After Change


        self.cache_populated = True

    def write_to_cache(self, data_dict, i):
        self.cache_dataset[i] = data_dict

    def load_from_cache(self, i):
        data = self.cache_dataset[i]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: scipy-lectures/scipy-lecture-notes
Commit Name: 890244b04eafb8313be6d49d8a34a134801f7a0c
Time: 2017-09-28
Author: gael.varoquaux@normalesup.org
File Name: advanced/mathematical_optimization/examples/helper/compare_optimizers.py
Class Name:
Method Name:


Project Name: scipy-lectures/scipy-lecture-notes
Commit Name: 54478492154195895518b5624f1a081ca9d572f4
Time: 2017-09-06
Author: gael.varoquaux@normalesup.org
File Name: advanced/mathematical_optimization/examples/helper/compare_optimizers.py
Class Name:
Method Name: