869ab9da1386db9ece86be733e319ad0ad56ff53,art/attacks/carlini_unittest.py,TestCarliniL2,setUpClass,#Any#,43

Before Change


    def setUpClass(cls):
        // Get MNIST
        (x_train, y_train), (x_test, y_test), _, _ = load_mnist()
        x_train, y_train = x_train[:NB_TRAIN], y_train[:NB_TRAIN]
        x_test, y_test = x_test[:NB_TEST], y_test[:NB_TEST]
        cls.mnist = (x_train, y_train), (x_test, y_test)

After Change


    @classmethod
    def setUpClass(cls):
        // Get MNIST
        (x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")
        x_test, y_test = x_test[:NB_TEST], y_test[:NB_TEST]
        cls.mnist = (x_train, y_train), (x_test, y_test)

    def setUp(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/carlini_unittest.py
Class Name: TestCarliniL2
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/zoo_unittest.py
Class Name: TestZooAttack
Method Name: setUpClass


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 33013f2982401305675dce7dc08503596e1c6f03
Time: 2016-08-11
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/pipeline.py
Class Name:
Method Name: test_full


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/carlini_unittest.py
Class Name: TestCarliniL2
Method Name: setUpClass