59ae34807591155f31d2c85fefddb71cfa8e2bd8,lib/streamlit/proxy/Proxy.py,,_print_remote_url,#Any#Any#,51

Before Change


        try:
            http_client = httpclient.HTTPClient()
            response = http_client.fetch(AWS_CHECK_IP, request_timeout=1)
            external_ip = response.body.strip()
        except (httpclient.HTTPError, RuntimeError) as e:
            LOGGER.error(f"Error connecting to {AWS_CHECK_IP}: {e}")
        finally:
            if http_client is not None:

After Change


    if external_ip:
        LOGGER.debug(f"proxy.externalIP set to {external_ip}")
    else:
        print("proxy.externalIP not set, attempting to autodetect IP")
        external_ip = get_external_ip()
        lan_ip = get_lan_ip()

    timeout_secs = config.get_option("proxy.waitForConnectionSecs")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: streamlit/streamlit
Commit Name: 59ae34807591155f31d2c85fefddb71cfa8e2bd8
Time: 2018-09-24
Author: thiagot@gmail.com
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: _print_remote_url


Project Name: NervanaSystems/nlp-architect
Commit Name: 8e098ed186cf0c62dd01e1a02fd63b7d00443d89
Time: 2018-05-09
Author: peter.izsak@intel.com
File Name: nlp_architect/utils/text.py
Class Name: SpacyTokenizer
Method Name: __init__


Project Name: Hironsan/anago
Commit Name: c12740b64e69e8383144d0f36a138bf033a9b074
Time: 2017-08-01
Author: light.tree.1.13@gmail.com
File Name: anago/data_utils.py
Class Name:
Method Name: load_vocab