1d7ee2ce7679c12229688fb04b23157b44a60593,arviz/plots/plot_utils.py,,make_2d,#Any#,9

Before Change


    // flatten out dimensions beyond the first
    first_dim = ary.shape[0]
    newshape = np.product(ary.shape[1:]).astype(int)
    ary = ary.reshape((first_dim, newshape), order="F")
    return ary


def _scale_text(figsize, textsize, scale_ratio=2):

After Change


    In case the array is already more than 2 dimensional, will ravel the
    dimensions after the first.
    
    dim_0, *_ = np.atleast_1d(ary).shape
    return ary.reshape(dim_0, -1, order="F")


def _scale_text(figsize, textsize, scale_ratio=2):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: arviz-devs/arviz
Commit Name: 1d7ee2ce7679c12229688fb04b23157b44a60593
Time: 2018-09-19
Author: ahartikainen@users.noreply.github.com
File Name: arviz/plots/plot_utils.py
Class Name:
Method Name: make_2d


Project Name: uqfoundation/mystic
Commit Name: 19ff37bfddbf24c85817e5d4d5cc468f0dc25691
Time: 2018-06-07
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/svr.py
Class Name:
Method Name: _euclidean_distance


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a15f84b2b3ce0a8be7b57db42b048edba8b27e81
Time: 2019-09-09
Author: irinutza.n@gmail.com
File Name: art/attacks/virtual_adversarial.py
Class Name: VirtualAdversarialMethod
Method Name: _normalize