664bda1d012ed41bc66fb499d48e3cd2ae9a0c82,python/mxnet/ndarray/numpy/_op.py,,identity,#Any#Any#Any#,585

Before Change


    else:
        ctx = str(ctx)
    shape = (n, n)  // pylint: disable=redefined-outer-name
    if dtype is not None and not isinstance(dtype, str):
        dtype = _np.dtype(dtype).name
    return _api_internal.identity(shape, dtype, ctx)


// pylint: disable=redefined-outer-name

After Change


        raise ValueError("Input "n" cannot be negative")
    if ctx is None:
        ctx = current_context()
    dtype = _np.float32 if dtype is None else dtype
    return _npi.identity(shape=(n, n), ctx=ctx, dtype=dtype)


// pylint: disable=redefined-outer-name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: apache/incubator-mxnet
Commit Name: 664bda1d012ed41bc66fb499d48e3cd2ae9a0c82
Time: 2020-04-30
Author: xshiab@connect.ust.hk
File Name: python/mxnet/ndarray/numpy/_op.py
Class Name:
Method Name: identity


Project Name: apache/incubator-mxnet
Commit Name: 664bda1d012ed41bc66fb499d48e3cd2ae9a0c82
Time: 2020-04-30
Author: xshiab@connect.ust.hk
File Name: python/mxnet/ndarray/numpy/_op.py
Class Name:
Method Name: full


Project Name: apache/incubator-mxnet
Commit Name: 664bda1d012ed41bc66fb499d48e3cd2ae9a0c82
Time: 2020-04-30
Author: xshiab@connect.ust.hk
File Name: python/mxnet/ndarray/numpy/_op.py
Class Name:
Method Name: ones