182af8281295a110f8079c561be378b4044dab8e,lib/streamlit/config.py,,_check_conflicts,#,649

Before Change


    assert not (browserPortManuallySet and get_option("proxy.useNode")), (
        "browser.proxyPort does not work when proxy.useNode is true. ")

    assert not (clientPortManuallySet and get_option("proxy.useNode")), (
        "client.proxyPort does not work when proxy.useNode is true. ")


def _clean_paragraphs(txt):
    paragraphs = txt.split("\n\n")

After Change



    // Sharing-related conflicts

    if get_option("global.sharingMode") == "s3":
        assert _is_manually_set("s3.bucket"), (
            "When global.sharingMode is set to "s3", "
            "s3.bucket must also be set")
        assert _is_manually_set("s3.bucket"), (
            "For sharing via S3, s3.bucket must be set")
        both_are_set = (
            _is_manually_set("s3.accessKeyId") and
            _is_manually_set("s3.secretAccessKey"))
        both_are_unset = (
            _is_unset("s3.accessKeyId") and
            _is_unset("s3.secretAccessKey"))
        assert both_are_set or both_are_unset, (
            "In config.toml, s3.accessKeyId and s3.secretAccessKey must "
            "either both be set or both be unset.")

    if get_option("global.sharingMode") == "streamlit-public":
        WARNING_STR = (
            "In config.toml, S3 should not be configured when "
            "global.sharingMode is set to "streamlit-public".")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 182af8281295a110f8079c561be378b4044dab8e
Time: 2018-12-10
Author: thiagot@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _check_conflicts


Project Name: pandas-dev/pandas
Commit Name: 8d923c916dc78374e16ef680a247e070b59cc57b
Time: 2021-01-03
Author: 47963215+lithomas1@users.noreply.github.com
File Name: pandas/io/excel/_base.py
Class Name: ExcelFile
Method Name: __init__


Project Name: streamlit/streamlit
Commit Name: fc730c0a93040edc02eb7abc3c3d853075b417f1
Time: 2018-12-07
Author: thiagot@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _check_conflicts