b875fb7b5e4feb85b9f1f1bf4e78f64c75595664,baselines/common/tests/envs/mnist_env.py,MnistEnv,__init__,#MnistEnv#Any#Any#Any#,10

Before Change


        // we could use temporary directory for this with a context manager and
        // TemporaryDirecotry, but then each test that uses mnist would re-download the data
        // this way the data is not cleaned up, but we only download it once per machine
        mnist_path = osp.join(tempfile.gettempdir(), "MNIST_data")
        with filelock.FileLock(mnist_path + ".lock"):
           self.mnist = input_data.read_data_sets(mnist_path)

        self.np_random = np.random.RandomState()

After Change


        // we could use temporary directory for this with a context manager and
        // TemporaryDirecotry, but then each test that uses mnist would re-download the data
        // this way the data is not cleaned up, but we only download it once per machine
        mnist_path = osp.join(tempfile.gettempdir(), "MNIST_data")
        with filelock.FileLock(mnist_path + ".lock"):
           self.mnist = input_data.read_data_sets(mnist_path)

        self.np_random = np.random.RandomState()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: openai/baselines
Commit Name: b875fb7b5e4feb85b9f1f1bf4e78f64c75595664
Time: 2019-02-27
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tests/envs/mnist_env.py
Class Name: MnistEnv
Method Name: __init__


Project Name: RaRe-Technologies/gensim
Commit Name: 72613496a44888ac680811942ae865141cff89f8
Time: 2012-03-08
Author: radimrehurek@seznam.cz
File Name: gensim/models/hdpmodel.py
Class Name: HdpModel
Method Name: __init__


Project Name: ray-project/ray
Commit Name: 06fac785b89239dde039c310db2ee171f44aa776
Time: 2021-01-27
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_failure.py
Class Name:
Method Name: test_worker_replica_failure