e0e9d7350826c7d968e48181cea38bde23942c30,lib/streamlit/Server.py,Server,_add_browser_connection,#Server#Any#,201

Before Change


            browser_queue.enqueue(msg)

    def _add_browser_connection(self, ws):
        if ws in self._browser_queues:
            return

        self._browser_queues[ws] = self._report.clone_queue()
        self._set_state(State.ONE_OR_MORE_BROWSERS_CONNECTED)

    def _remove_browser_connection(self, ws):

After Change



        
        if ws not in self._report_contexts:
            LOGGER.debug("Registering new browser connection")
            self._report_contexts[ws] = ReportContext(
                ioloop=self._ioloop,
                script_path=self._script_path,
                script_argv=self._script_argv)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/Server.py
Class Name: Server
Method Name: _add_browser_connection


Project Name: microsoft/nni
Commit Name: 43de011869b8f6a1778a1e1d7f56c2340cab39d6
Time: 2020-02-17
Author: Quanlu.Zhang@microsoft.com
File Name: src/sdk/pynni/nni/compression/speedup/torch/compressor.py
Class Name: ModelSpeedup
Method Name: _find_predecessors


Project Name: evilsocket/pwnagotchi
Commit Name: 2f948306ebeabf10050bb0c07a3254b420c30751
Time: 2019-11-01
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/__init__.py
Class Name:
Method Name: load_from_path