a9f4425867d981ac732a23dce60eb7d08c24ebca,cleverhans/evaluation.py,,_check_y,#Any#,602

Before Change


  Makes sure a `y` argument is a vliad numpy dataset.
  
  if not isinstance(y, np.ndarray):
    raise TypeError("y must be numpy array. Typically y contains "
                    "the entire test set labels.")

After Change


  Makes sure a `y` argument is a vliad numpy dataset.
  
  if not isinstance(y, np.ndarray):
    raise TypeError("y must be numpy array. Typically y contains "
                    "the entire test set labels. Got " + str(y) + " of type " + str(type(y)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/cleverhans
Commit Name: a9f4425867d981ac732a23dce60eb7d08c24ebca
Time: 2018-12-14
Author: goodfellow@google.com
File Name: cleverhans/evaluation.py
Class Name:
Method Name: _check_y


Project Name: dask/distributed
Commit Name: 6ae7b9e55c402044a571ea86107f6eb35a177253
Time: 2018-10-09
Author: mrocklin@gmail.com
File Name: distributed/comm/tcp.py
Class Name:
Method Name: _expect_tls_context


Project Name: keras-team/keras
Commit Name: 5dd8c5c10ccc286a67ba4846a81701207b606e0d
Time: 2016-10-12
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: ZeroPadding2D
Method Name: __init__