551eb84e755b4cd969e975c9de4604568c162504,hypertools/_shared/helpers.py,,format_data,#,139

Before Change


        formatted_data.append(xi)

    if any([i.ndim==1 for i in formatted_data]):
        formatted_data = [np.reshape(i,(i.shape[0],1)) if i.ndim==1 else i for i in formatted_data]

    // if there are any nans in any of the lists, use ppca
    if ppca is True:

After Change


    formatted_data = []

    // if its a single list of strings
    if all([isinstance(xi, str) for xi in x]):
        formatted_data.append(np.array(x))

    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ContextLab/hypertools
Commit Name: 551eb84e755b4cd969e975c9de4604568c162504
Time: 2018-01-15
Author: andrew.heusser@gmail.com
File Name: hypertools/_shared/helpers.py
Class Name:
Method Name: format_data


Project Name: biotite-dev/biotite
Commit Name: 7c84a16bcb2a77c6e461b72507cc7207074158bf
Time: 2021-01-06
Author: anter.jacob@gmail.com
File Name: src/biotite/structure/charges.py
Class Name:
Method Name: _get_parameters


Project Name: scikit-image/scikit-image
Commit Name: e52e890f54c741f9c9ba0aa45217d9e53caf0969
Time: 2019-12-09
Author: xwu@enthought.com
File Name: skimage/transform/hough_transform.py
Class Name:
Method Name: hough_circle_peaks


Project Name: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree