eb668c03c6a92d0ee2f7edbd46417fb0f7b85ae5,art/detection/features_unittest.py,TestFeatures,setUpClass,#Any#,26
Before Change
@classmethod
def setUpClass(cls):
dir_path = "./tests"
if not os.path.exists(dir_path):
os.makedirs(dir_path)
// Initialize a tf session
session = tf.Session()
k.set_session(session)
// Get MNIST
After Change
(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)
input_shape = x_train.shape[1:]
nb_classes = 10
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: eb668c03c6a92d0ee2f7edbd46417fb0f7b85ae5
Time: 2018-11-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/detection/features_unittest.py
Class Name: TestFeatures
Method Name: setUpClass
Project Name: pantsbuild/pants
Commit Name: 8307ec95a1ab13bbe6dbc0662ec2a04e36d20a9e
Time: 2016-02-01
Author: nhoward@twopensource.com
File Name: src/python/pants/backend/jvm/tasks/ivy_task_mixin.py
Class Name: IvyTaskMixin
Method Name: ivy_resolve
Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main