aa1466a5d63d912166aa260ea34f39e2895c3c89,ggplotx/scales/scales.py,Scales,map,#Scales#Any#Any#Any#,127

Before Change


        // discrete scales change the dtype
        // from category to int. Use a new dataframe
        // to collect these results.
        df = pd.DataFrame({}, index=range(len(data)))
        cat_cols = []

        // Loop through each variable, mapping across each scale,
        // then joining back into the copy of the data

After Change


        // from category to int. Use a new dataframe
        // to collect these results.
        // Using `type` preserves the subclass of pd.DataFrame
        df = type(data)(index=data.index)
        cat_cols = []

        // Loop through each variable, mapping across each scale,
        // then joining back into the copy of the data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: has2k1/plotnine
Commit Name: aa1466a5d63d912166aa260ea34f39e2895c3c89
Time: 2016-10-20
Author: has2k1@gmail.com
File Name: ggplotx/scales/scales.py
Class Name: Scales
Method Name: map


Project Name: flow-project/flow
Commit Name: 21e45c08bf3a6407025f2507532d1493c6eb9381
Time: 2017-10-29
Author: akreidieh@gmail.com
File Name: flow/core/generator.py
Class Name: Generator
Method Name: make_routes


Project Name: prody/ProDy
Commit Name: 1779bc4b9b0f9fca335f0cc6d4047c82aa8d8421
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/psiblast.py
Class Name:
Method Name: checkPsiBlastParameter


Project Name: Microsoft/nni
Commit Name: 5461fe7792ce43c3a7009a602c086842fe9fae64
Time: 2018-12-20
Author: 871886504@qq.com
File Name: tools/nni_annotation/search_space_generator.py
Class Name: SearchSpaceGenerator
Method Name: visit_Call