e0e9d7350826c7d968e48181cea38bde23942c30,lib/streamlit/Server.py,Server,loop_coroutine,#Server#,143

Before Change



                for ws, browser_queue in ws_queue_pairs:
                    msg_list = browser_queue.flush()
                    for msg in msg_list:
                        msg_str = _serialize(msg)
                        if ws is None:
                            break
                        try:
                            ws.write_message(msg_str, binary=True)
                        except tornado.websocket.WebSocketClosedError:
                            self._remove_browser_connection(ws)
                        yield
                    yield

            elif self._state == State.NO_BROWSERS_CONNECTED:
                pass

After Change


            yield tornado.gen.sleep(0.01)

        // Shut down all ReportContexts
        for report_ctx in list(self._report_contexts.values()):
            report_ctx.shutdown()

        self._set_state(State.STOPPED)

        // Stop the ioloop. This will end our process.
        self._ioloop.stop()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/Server.py
Class Name: Server
Method Name: loop_coroutine


Project Name: home-assistant/home-assistant
Commit Name: c6f5a5443f18d11dce3d1ebc64d0662c67001426
Time: 2016-11-15
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: update_properties


Project Name: idaholab/raven
Commit Name: ff45d0c445429e9500953eced5f3eb05e8463392
Time: 2018-08-23
Author: alptezbasaran@ncsu.edu
File Name: framework/CodeInterfaces/CobraTF/CTFinterface.py
Class Name: CobraTF
Method Name: createNewInput


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 06b9fdb0079116af3e79021a4fb27a2caac1ad97
Time: 2018-01-24
Author: yuhanliu@google.com
File Name: sklearn/hpsearch/gke_parallel.py
Class Name: GKEParallel
Method Name: _partition_search_spaces