d6b3aa9668d0211b8439fa8057b5295c1ab11f23,lib/streamlit/Proxy.py,Proxy,_client_ws_handler,#Proxy#Any#,130

Before Change


                // Watch for a CLOSE method as we sleep for throttle_secs.
                try:
                    msg = await ws.receive(timeout=throttle_secs)
                    if msg.type != WSMsgType.CLOSE:
                        raise RuntimeError(f"Unknown message type: {msg.type}")
                    break
                except asyncio.TimeoutError:
                    pass
        except concurrent.futures.CancelledError:

After Change


                    if msg.type == WSMsgType.TEXT:
                        payload = msg.json()
                        self.handle_payload(payload)
                    elif msg.type == WSMsgType.CLOSE:
                        break
                    else:
                        print("Unknown message type:", msg.type)
                except asyncio.TimeoutError:
                    pass
        except concurrent.futures.CancelledError:
            pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: d6b3aa9668d0211b8439fa8057b5295c1ab11f23
Time: 2018-05-21
Author: armando@playground.global
File Name: lib/streamlit/Proxy.py
Class Name: Proxy
Method Name: _client_ws_handler


Project Name: streamlit/streamlit
Commit Name: 4e1a728f3a7af1f1db1b8265f208cc34880bf17e
Time: 2018-05-18
Author: armando@playground.global
File Name: lib/streamlit/Proxy.py
Class Name: Proxy
Method Name: _client_ws_handler


Project Name: AlexEMG/DeepLabCut
Commit Name: 96da2cacf837a9b84ecdeafb50dfb4a93b402f33
Time: 2021-01-06
Author: tr.biasi@gmail.com
File Name: deeplabcut/pose_estimation_tensorflow/nnet/net_factory.py
Class Name:
Method Name: pose_net