7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d,lib/streamlit/server.py,Server,loop_coroutine,#Server#,75

Before Change



                // Grab this before the "for" loop, so it doesn"t change while
                // we loop through its elements.
                browser_queues = list(self._browser_queues.items())

                for ws, browser_queue in browser_queues:
                    while len(browser_queue):
                        msg = browser_queue.popleft()

After Change


                    msg_list = browser_queue.flush()
                    for msg in msg_list:
                        msg_str = _serialize(msg)
                        if ws is None:
                            break
                        ws.write_message(msg_str, binary=True)
                        yield
                    yield
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: 7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d
Time: 2019-03-28
Author: thiagot@gmail.com
File Name: lib/streamlit/server.py
Class Name: Server
Method Name: loop_coroutine


Project Name: keras-team/autokeras
Commit Name: 504d63d25cfd42e650834d8db6d976103e5f4baa
Time: 2018-09-03
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform


Project Name: keras-team/autokeras
Commit Name: 68e0442cd7c9e28e2d1a0ca41dac64297fad858a
Time: 2018-08-30
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform