cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37,lib/streamlit/config.py,,get_s3_option,#Any#,159

Before Change


    LOGGER.debug("Trying to get bucket option")
    LOGGER.debug("s3.nothing -> %s" % get_option("s3.nothing"))
    import sys
    sys.exit(-1)

    if option == "profile":
        return get_option("storage.s3")["profile"]

After Change


        region    = ("storage.s3.region"   , "s3.region"    ),
    )
    try:
        new_option, old_option = s3_option_table[option]
        LOGGER.debug(f"Getting option "{option}" which maps to "{new_option}" or "{old_option}".")
    except KeyError:
        raise RuntimeError("S3 Option "%s" not recognized." % option)
    if get_option(new_option) is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37
Time: 2018-07-06
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option


Project Name: ray-project/ray
Commit Name: cdca5af53b309c381b46bc565befb3873a1cfa31
Time: 2020-10-20
Author: mfitton@berkeley.edu
File Name: python/ray/tests/test_metrics.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 741ad9fb33a98023d76c6b962ae77183745d4ffa
Time: 2019-01-17
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/models/core.py
Class Name: Model
Method Name: __call__


Project Name: streamlit/streamlit
Commit Name: c786913462decebc4157ac3e8d2ec08303021adc
Time: 2018-07-02
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option


Project Name: ray-project/ray
Commit Name: aa1cbe8abc845e1a6acf2f237b4b00aa7c3f295d
Time: 2020-05-21
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_metrics.py
Class Name:
Method Name: