bd163732d8c83ad9c643f319d648cccf6dbc185b,lib/streamlit/proxy/ClientWebSocket.py,ClientWebSocket,open,#ClientWebSocket#,37

Before Change


        while True:
            if not self._queue.is_closed():
                yield self._queue.flush_queue(self)
                yield gen.sleep(throttle_secs)

    // @Proxy.stop_proxy_on_exception
    def on_message(self, msg):
        Run callback for websocket messages.

After Change


            if not self._queue.is_closed():
                yield self._queue.flush_queue(self)

            yield gen.sleep(throttle_secs)

        LOGGER.debug(f"Closing loop for "{self._connection.name}"")

    @gen.coroutine
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: streamlit/streamlit
Commit Name: bd163732d8c83ad9c643f319d648cccf6dbc185b
Time: 2018-06-18
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: open


Project Name: streamlit/streamlit
Commit Name: 44fecf8c0da1a3b5661762308feab0ce30793ae4
Time: 2020-10-22
Author: tconkling@gmail.com
File Name: lib/streamlit/delta_generator.py
Class Name: DeltaGenerator
Method Name: _parent_block_types


Project Name: NifTK/NiftyNet
Commit Name: db2309732f19dc75086a971cfbcd617bcc523d5a
Time: 2017-08-23
Author: egibson@cs.ucl.ac.uk
File Name: niftynet/engine/sampler_resize.py
Class Name: ResizeSampler
Method Name: layer_op