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

Before Change


    In case the array is already more than 2 dimensional, will ravel the
    dimensions after the first.
    
    ary = np.atleast_2d(ary.T).T
    // 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):
    Scale text and linewidth to figsize.

After Change


    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):
    Scale text and linewidth to figsize.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: scikit-learn-contrib/DESlib
Commit Name: b2afdded85cbe4560baf56c08feae93aab3bc508
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knop.py
Class Name: KNOP
Method Name: estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: b2afdded85cbe4560baf56c08feae93aab3bc508
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knora_u.py
Class Name: KNORAU
Method Name: estimate_competence