047f6bd4873ffcab21c6035c9fffe5e74e914727,lib/streamlit/server/Server.py,Server,_create_report_session,#Server#Any#,492

Before Change


            The newly-created ReportSession for this browser connection.

        
        if UNCLAIMED_PREHEATED_ID in self._session_info_by_id:
            assert len(self._session_info_by_id) == 1
            LOGGER.debug("Reusing preheated context for ws %s", ws)
            session = self._session_info_by_id[UNCLAIMED_PREHEATED_ID].session

After Change


            The newly-created ReportSession for this browser connection.

        
        if self._preheated_session_id is not None:
            assert len(self._session_info_by_id) == 1
            assert ws is not None

            session_id = self._preheated_session_id
            self._preheated_session_id = None

            session_info = self._session_info_by_id[session_id]
            session_info.ws = ws
            session = session_info.session

            LOGGER.debug(
                "Reused preheated session for ws %s. Session ID: %s", id(ws), session_id
            )

        else:
            session = ReportSession(
                ioloop=self._ioloop,
                script_path=self._script_path,
                command_line=self._command_line,
                uploaded_file_manager=self._uploaded_file_mgr,
            )

            LOGGER.debug(
                "Created new session for ws %s. Session ID: %s", id(ws), session.id
            )

            assert session.id not in self._session_info_by_id, (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: 047f6bd4873ffcab21c6035c9fffe5e74e914727
Time: 2020-04-01
Author: thiago@streamlit.io
File Name: lib/streamlit/server/Server.py
Class Name: Server
Method Name: _create_report_session


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 858e82aade1b6439b9284e8baa836a23003583c1
Time: 2016-11-23
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/keras_input_lib.py
Class Name:
Method Name: extract


Project Name: Microsoft/nni
Commit Name: 192a807b39bc029c273c2d1349fb73850ed9484c
Time: 2020-12-13
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/converter/graph_gen.py
Class Name:
Method Name: convert_module