bb6b2d059ad7b8a231d9f8015b41e60f033eaf76,studio/model.py,,get_config,#Any#,595
Before Change
def get_config(config_file=None):
if config_file:
with open(config_file) as f:
config = yaml.load(f.read())
else:
def_config_file = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"default_config.yaml")
with open(def_config_file) as f:
config = yaml.load(f.read())
return config
def get_db_provider(config=None, blocking_auth=True):
After Change
for path in config_paths:
if not os.path.exists(path):
continue
with(open(path)) as f:
return yaml.load(f.read())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: studioml/studio
Commit Name: bb6b2d059ad7b8a231d9f8015b41e60f033eaf76
Time: 2017-08-04
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name:
Method Name: get_config
Project Name: matplotlib/matplotlib
Commit Name: d23bcea94a01a598de9619a1bf45b911120f7096
Time: 2019-01-08
Author: jklymak@gmail.com
File Name: lib/matplotlib/axis.py
Class Name: Axis
Method Name: _update_ticks
Project Name: floydhub/dockerfiles
Commit Name: 40a882d47b80ca9c8743510320288477445a14a2
Time: 2017-05-14
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/render.py
Class Name:
Method Name: render_matrix