c74227ac25b35b06f13216bdbf902cb7e636ee42,lib/streamlit/config.py,,_get_public_credentials,#,523
Before Change
STREAMLIT_CREDENTIALS_URL = "https://streamlit.io/tmp/st_pub_write.json"
LOGGER.debug("Getting remote Streamlit credentials.")
try:
response = urllib.request.urlopen(STREAMLIT_CREDENTIALS_URL, timeout=0.5).read()
import ast
return ast.literal_eval(response.decode("utf-8"))
except Exception as e:
After Change
def _get_public_credentials():
LOGGER.debug("Getting remote Streamlit credentials.")
try:
return requests.get(STREAMLIT_CREDENTIALS_URL, timeout=0.5).json()
except Exception as e:
LOGGER.warning(
"Error getting Streamlit credentials. Sharing will be " "disabled. %s", e
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: streamlit/streamlit
Commit Name: c74227ac25b35b06f13216bdbf902cb7e636ee42
Time: 2019-09-13
Author: tconkling@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _get_public_credentials
Project Name: streamlit/streamlit
Commit Name: c74227ac25b35b06f13216bdbf902cb7e636ee42
Time: 2019-09-13
Author: tconkling@gmail.com
File Name: e2e/scripts/video.py
Class Name:
Method Name:
Project Name: streamlit/streamlit
Commit Name: c74227ac25b35b06f13216bdbf902cb7e636ee42
Time: 2019-09-13
Author: tconkling@gmail.com
File Name: e2e/scripts/audio.py
Class Name:
Method Name: