182af8281295a110f8079c561be378b4044dab8e,lib/streamlit/config.py,,_check_conflicts,#,649
Before Change
def _check_conflicts():
if (get_option("s3.sharingEnabled")
and not get_option("s3.usePublicStorage")):
assert get_option("s3.bucket"), (
"For sharing, s3.bucket must be set")
if (get_option("client.tryToOutliveProxy")
and not get_option("proxy.isRemote")):
LOGGER.warning(
"The following combination of settings...\n"
After Change
"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".")
assert _is_unset("s3.bucket"), WARNING_STR
assert _is_unset("s3.url"), WARNING_STR
assert _is_unset("s3.accessKeyId"), WARNING_STR
assert _is_unset("s3.secretAccessKey"), WARNING_STR
assert _is_unset("s3.keyPrefix"), WARNING_STR
assert _is_unset("s3.region"), WARNING_STR
assert _is_unset("s3.profile"), WARNING_STR
def _clean_paragraphs(txt):
paragraphs = txt.split("\n\n")
cleaned_paragraphs = [_clean(x) for x in paragraphs]
return cleaned_paragraphs
In pattern: SUPERPATTERN
Frequency: 4
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: streamlit/streamlit
Commit Name: d24989cdda816343f74a97fc32ce3fd1a689a265
Time: 2019-07-16
Author: thiago@streamlit.io
File Name: lib/streamlit/Server.py
Class Name:
Method Name: _is_url_from_allowed_origins
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
Project Name: streamlit/streamlit
Commit Name: 4a5b5153ec136e445e74c5a3dbcdb9d0abf5acc3
Time: 2019-03-30
Author: thiagot@gmail.com
File Name: lib/streamlit/__init__.py
Class Name:
Method Name: _get_current_delta_generator