c26f8827854295228a774c928b307224ad128e2d,lib/streamlit/proxy/ClientWebSocket.py,ClientWebSocket,on_message,#ClientWebSocket#Any#,88
Before Change
command = backend_msg.command
if command == protobuf.BackMsg.Command.Value("HELP"):
os.system("python -m streamlit help &")
elif command == protobuf.BackMsg.Command.Value("CLOUD_UPLOAD"):
LOGGER.debug("CLOUD_UPLOAD!!!")
yield self._save_cloud(connection, ws)
else:
After Change
def on_message(self, msg):
Run callback for websocket messages.
LOGGER.debug(repr(msg))
yield self._handle_backend_msg(msg, self._connection, self)
@gen.coroutine
def _handle_backend_msg(self, payload, connection, ws):
backend_msg = protobuf.BackMsg()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: streamlit/streamlit
Commit Name: c26f8827854295228a774c928b307224ad128e2d
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: on_message
Project Name: ray-project/ray
Commit Name: edbb2937d393f9cd95a5016bc2df5250bbd59152
Time: 2021-01-23
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: object_spilling_config
Project Name: google/deepvariant
Commit Name: 13a85e08e713f374933bc4fc082f67e1fa8dcd02
Time: 2018-02-20
Author: cym@google.com
File Name: deepvariant/util/io_utils.py
Class Name:
Method Name: read_shard_sorted_tfrecords