8a600f790ba68880e9a76a5eda33a3f4fccd22c4,luminoth/utils/config.py,,to_dict,#Any#,23

Before Change


def to_dict(config):
    return {
        k: (to_dict(v) if type(v) is EasyDict else v)
        for k, v in config.items()
    }

After Change



def to_dict(config):
    if type(config) is list:
        return [to_dict(c) for c in config]
    elif type(config) is EasyDict:
        return dict([(k, to_dict(v)) for k, v in config.items()])
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: 8a600f790ba68880e9a76a5eda33a3f4fccd22c4
Time: 2017-11-17
Author: javirey@gmail.com
File Name: luminoth/utils/config.py
Class Name:
Method Name: to_dict


Project Name: has2k1/plotnine
Commit Name: a7024416e4ff05722bc2bcee0c2771933899dfe3
Time: 2014-03-30
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_area.py
Class Name: geom_area
Method Name: plot_layer


Project Name: snipsco/snips-nlu
Commit Name: 8f3d959beea60e0c70076ebd3c6c4b9b946172c0
Time: 2017-05-02
Author: adrien.ball@snips.net
File Name: snips_nlu/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: to_dict