da3894b5ae20d2f2851504e0fed6a946247f733f,lib/streamlit/config.py,,get_option,#Any#,60

Before Change


    If it"s not found, we assume a development build and look for that config
    file.
    
    basedir = os.path.dirname(__file__)
    production_version = ("site-packages" in __file__)
    global __global_config
    if not __global_config:
        __global_config = _load_config({
            "local.root": sys.prefix,
            "local.config": os.path.join(basedir, "config/config.yaml"),
            "proxy.useNode": not production_version,
            "proxy.staticRoot": os.path.join(basedir, "static"),
        })

After Change



def get_option(opt):
    c = Config().Get()
    config = dict()
    _flatten(c, config)
    return config.get("%s" % opt, None)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: streamlit/streamlit
Commit Name: da3894b5ae20d2f2851504e0fed6a946247f733f
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_option


Project Name: MolSSI/QCEngine
Commit Name: fcb2a9e425f2bc873f3f32072b251de63a6e7edc
Time: 2018-08-14
Author: malorian@me.com
File Name: qcengine/tests/test_config.py
Class Name:
Method Name: opt_state_basic


Project Name: MolSSI/QCEngine
Commit Name: 86657ce824ee70a03b43f218de2220bd36fefc4e
Time: 2018-08-14
Author: malorian@me.com
File Name: qcengine/tests/test_config.py
Class Name:
Method Name: opt_state_auto