883644354ca6c016a9b79d67e0494db88a823c23,lib/streamlit/proxy/Proxy.py,,_print_remote_url,#Any#Any#,50
Before Change
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:
http_client.close()
After Change
// config.set_option("proxy.isRemote", val)
def _print_remote_url(port, quoted_name):
external_ip = config.get_option("proxy.externalIP")
if external_ip:
LOGGER.debug(f"proxy.externalIP set to {external_ip}")
else:
print("proxy.externalIP not set, attempting autodetect of external IP")
http_client = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances 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: 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: automl/ParameterImportance
Commit Name: 6ecea4f289c368c96dd504f9822bcf58d1a7def3
Time: 2019-03-26
Author: jo.ma@posteo.de
File Name: pimp/evaluator/fanova.py
Class Name: fANOVA
Method Name: plot_result