f2ed4a9f5a587d8d21c57662cf8e4a5494cb38c0,art/classifiers/keras_unittest.py,TestKerasClassifier,setUpClass,#Any#,24

Before Change


        result = requests.get(url, stream=True)
        if result.status_code == 200:
            image = result.raw.read()
            open(os.path.join(cls.test_dir, "test.jpg"), "wb").write(image)

    @classmethod
    def tearDownClass(cls):
        k.clear_session()

After Change


        result = requests.get(url, stream=True)
        if result.status_code == 200:
            image = result.raw.read()
            f = open(os.path.join(cls.test_dir, "test.jpg"), "wb")
            f.write(image)
            f.close()

    @classmethod
    def tearDownClass(cls):
        k.clear_session()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f2ed4a9f5a587d8d21c57662cf8e4a5494cb38c0
Time: 2018-09-26
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/keras_unittest.py
Class Name: TestKerasClassifier
Method Name: setUpClass


Project Name: floodsung/Deep-Learning-Papers-Reading-Roadmap
Commit Name: a44ce12889cde5ed30dc5a9e3ff952cf97f99e36
Time: 2017-07-04
Author: shreyaspadhy@gmail.com
File Name: download.py
Class Name:
Method Name: download_pdf


Project Name: pantsbuild/pants
Commit Name: cf6f30685b1540ae99c8ab7dd23ee4e75e5d2275
Time: 2014-12-08
Author: benjyw@gmail.com
File Name: tests/python/pants_test/tasks/test_config.py
Class Name: ConfigTest
Method Name: setUp