c26f8827854295228a774c928b307224ad128e2d,lib/streamlit/proxy/ClientWebSocket.py,ClientWebSocket,on_message,#ClientWebSocket#Any#,88

Before Change


            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:
                LOGGER.warning("no handler for %s",
                    protobuf.BackMsg.Command.Name(backend_msg.command))

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()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

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: streamlit/streamlit
Commit Name: c60791a61c1860965894ee1018063b8c349b86cc
Time: 2018-11-12
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/LocalWebSocket.py
Class Name: LocalWebSocket
Method Name: on_close


Project Name: streamlit/streamlit
Commit Name: da3894b5ae20d2f2851504e0fed6a946247f733f
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/S3Connection.py
Class Name: S3
Method Name: upload_report


Project Name: tensorflow/tensorboard
Commit Name: 394ac5324cba203735b12542db64eb6bea5157d3
Time: 2018-09-04
Author: nfelt@users.noreply.github.com
File Name: tensorboard/backend/event_processing/event_file_loader.py
Class Name: EventFileLoader
Method Name: Load