e144e814fa4b542fa70c5b4c167d1253a7a25342,skbio/maths/gradient.py,,make_groups,#Any#Any#Any#Any#,36

Before Change


    

    // Creating groups
    groups = defaultdict([])

    // If sort_category is provided, we used the value of such category to sort
    // otherwise we use the sample id
    if sort_category:

After Change



    // Group by vector_category
    metamap_t = metamap.transpose()
    gb = metamap_t.groupby(vector_category)
    groups = {}
    for g, df in gb:
        groups[g] = signed_natsort([(sort_val(sid), sid) for sid in df.index])

    return groups


def weight_by_vector(vector, w_vector):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: biocore/scikit-bio
Commit Name: e144e814fa4b542fa70c5b4c167d1253a7a25342
Time: 2014-04-29
Author: josenavasmolina@gmail.com
File Name: skbio/maths/gradient.py
Class Name:
Method Name: make_groups


Project Name: ilastik/ilastik
Commit Name: 6096d22cbd933b764c8bf3197fe1f8e8722308c6
Time: 2016-10-25
Author: jimmycc80@hotmail.com
File Name: ilastik/applets/objectExtraction/opObjectExtraction.py
Class Name: OpAdaptTimeListRoi
Method Name: execute


Project Name: erikbern/ann-benchmarks
Commit Name: 21608a6b6e6883504a0bcb06abbf9c7d8029897b
Time: 2019-07-21
Author: maau@itu.dk
File Name: ann_benchmarks/distance.py
Class Name:
Method Name: transform_dense_to_sparse