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()
}
def dump_config(config):
config = to_dict(config)
After Change
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:
return config
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: NifTK/NiftyNet
Commit Name: a22d96b4dbed86dd36b60a85b221a2fb86f84373
Time: 2017-11-24
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_resize.py
Class Name: ResizeSampler
Method Name: layer_op
Project Name: NifTK/NiftyNet
Commit Name: 72cdb227cff9af1f3b4bd68c20a973691a634e32
Time: 2017-11-29
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: initialise