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:
pass
After Change
// Watch for a CLOSE method as we sleep for throttle_secs.
try:
msg = await ws.receive(timeout=throttle_secs)
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: autonomio/talos
Commit Name: 1e0dc41ed1a7346076f32741323049b631f93e6e
Time: 2019-03-07
Author: mailme@mikkokotila.com
File Name: talos/scan/scan_run.py
Class Name:
Method Name: scan_run