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

Before Change


            return

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

    def _remove_browser_connection(self, ws):
        if ws in self._browser_queues:
            del self._browser_queues[ws]

After Change


            The ReportContext associated with this browser connection

        
        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)
            self._set_state(State.ONE_OR_MORE_BROWSERS_CONNECTED)

        return self._report_contexts[ws]

    def _remove_browser_connection(self, ws):
        if ws in self._report_contexts:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: streamlit/streamlit
Commit Name: f8a915e3dd415991d3be9e77cfa6e215fa48fc1b
Time: 2019-07-09
Author: thiago@streamlit.io
File Name: lib/streamlit/Server.py
Class Name: Server
Method Name: _add_browser_connection


Project Name: streamlit/streamlit
Commit Name: f8a915e3dd415991d3be9e77cfa6e215fa48fc1b
Time: 2019-07-09
Author: thiago@streamlit.io
File Name: lib/streamlit/Server.py
Class Name: Server
Method Name: loop_coroutine