01bf5dd323bebd66b7ad60fdaee34eb8f7b76aae,lib/streamlit/proxy/Proxy.py,,_print_remote_url,#Any#Any#,50
Before Change
except (httpclient.HTTPError, RuntimeError) as e:
// Basically if not on EC2 do a hack and try to connect to
// internet and see what the local ip is.
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 53))
ips.append(s.getsockname()[0])
s.close()
finally:
if http_client is not None:
After Change
if external_ip is None:
print("Did not auto detect external ip. Please go to "
f"{REMOTE_DOC} for debugging hints.")
return
timeout_secs = config.get_option("proxy.waitForConnectionSecs")
url = "http://{}:{}/?name={}".format(external_ip, port, quoted_name)
print("Please connect to %s within %s seconds." % (url, timeout_secs))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: streamlit/streamlit
Commit Name: 01bf5dd323bebd66b7ad60fdaee34eb8f7b76aae
Time: 2018-08-09
Author: armando@playground.global
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: _print_remote_url
Project Name: streamlit/streamlit
Commit Name: 883644354ca6c016a9b79d67e0494db88a823c23
Time: 2018-08-14
Author: armando@playground.global
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: _print_remote_url
Project Name: flow-project/flow
Commit Name: 327c886a6d204e60cd7367afa273589771dcd8ad
Time: 2018-12-24
Author: akreidieh@gmail.com
File Name: flow/core/kernel/simulation/aimsun.py
Class Name: AimsunKernelSimulation
Method Name: start_simulation
Project Name: streamlit/streamlit
Commit Name: 01bf5dd323bebd66b7ad60fdaee34eb8f7b76aae
Time: 2018-08-09
Author: armando@playground.global
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: _print_remote_url