66c20cc2157d7f18530c742ce6d71685f8699020,tests/classifiers/test_keras_tf.py,TestKerasClassifierTF,setUpClass,#Any#,58

Before Change



    @classmethod
    def setUpClass(cls):
        (x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")

        cls.x_train = x_train[:NB_TRAIN]
        cls.y_train = y_train[:NB_TRAIN]
        cls.x_test = x_test[:NB_TEST]

After Change



    @classmethod
    def setUpClass(cls):
        super().setUpClass()

        // Load small Keras model
        cls.functional_model = cls.functional_model()
        cls.functional_model.fit([cls.x_train_mnist, cls.x_train_mnist], [cls.y_train_mnist, cls.y_train_mnist],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 20

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_keras_tf.py
Class Name: TestKerasClassifierTF
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_hclu.py
Class Name: TestHCLU
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_tensorflow.py
Class Name: TestTensorFlowClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierBoosterSoftprob
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 67c6996fef4d18a4b271a2f02494663b07c35fb6
Time: 2020-02-26
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_input_filter.py
Class Name: TestInputFilter
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c7585e649aca88cf9e21eb754469630748bb1cfc
Time: 2020-01-27
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_knockoff_nets.py
Class Name: TestKnockoffNetsVectors
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_GPy.py
Class Name: TestGPyGaussianProcessClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_keras.py
Class Name: TestKerasClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_functionally_equivalent_extraction.py
Class Name: TestFastGradientMethodImages
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_ensemble.py
Class Name: TestEnsembleClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_newtonfool.py
Class Name: TestNewtonFool
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_lightgbm.py
Class Name: TestLightGBMClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c7585e649aca88cf9e21eb754469630748bb1cfc
Time: 2020-01-27
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_knockoff_nets.py
Class Name: TestKnockoffNets
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierBoosterSoftmax
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_detector_classifier.py
Class Name: TestDetectorClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_copycat_cnn.py
Class Name: TestCopycatCNN
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_blackbox.py
Class Name: TestBlackBoxClassifier
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_copycat_cnn.py
Class Name: TestCopycatCNNVectors
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierPythonAPI
Method Name: setUpClass


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_pytorch.py
Class Name: TestPyTorchClassifier
Method Name: setUpClass