ddea47a633bf2cf97c69951467fdb1cc586485f1,lib/streamlit/Connection.py,Connection,_cleanup_on_exit,#Connection#Any#Any#,278

Before Change


                LOGGER.debug("Proxy connection failed. Ending the local script.")
                break
            else:
                LOGGER.error(f"_proxy_connection_status illegal value: {self._proxy_connection_status}")
                break
        LOGGER.debug("Main thread ended. Restoring excepthook.")
        sys.excepthook = original_excepthook
        self._loop.add_callback(setattr, self, "_is_open", False)

After Change



        // Then wait for a certain number of seconds to connect to the proxy
        // to make sure that we can flush the connection queue.
        start_time = time.time()
        FINAL_WAIT_SECONDS = 5.0
        PROXY_CONNECTION_POLL_INTERVAL_SECONDS = 0.1
        FLUSH_QUEUE_SECONDS = 0.1
        while True:
            elapsed_time = time.time() - start_time

            if elapsed_time > FINAL_WAIT_SECONDS:
                LOGGER.debug(f"Waited {FINAL_WAIT_SECONDS} for proxy "
                    "to connect. Exiting.")
                break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: ddea47a633bf2cf97c69951467fdb1cc586485f1
Time: 2018-10-12
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/Connection.py
Class Name: Connection
Method Name: _cleanup_on_exit


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: b53e9baee8a3ff165048424b9be8fd020a78270e
Time: 2020-09-03
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus


Project Name: home-assistant/home-assistant
Commit Name: 80c187f8ea188ea3e63fd8e093ecf4284e1916c2
Time: 2017-06-26
Author: per.j.sandstrom@gmail.com
File Name: homeassistant/components/lock/verisure.py
Class Name: VerisureDoorlock
Method Name: update