88e37703dfdd24274ad9744e07adf53a58a9300e,lib/streamlit/ScriptRunner.py,ScriptRunner,_run,#ScriptRunner#,133
Before Change
_script_thread_id = threading.current_thread().ident
assert _script_thread_id != self._main_thread_id
if not self.is_fully_stopped():
// This should never happen!
raise RuntimeError("Script is already running")
// Reset delta generator so it starts from index 0.
import streamlit as st
st._reset()
self._state_change_requested.clear()
After Change
assert _script_thread_id != self._main_thread_id
cur_state = self._state
if cur_state != State.STARTING_THREAD:
// TODO: Fix self._state-related race conditions
raise RuntimeError("Bad state (expected=%s, saw=%s)" % (State.STARTING_THREAD, cur_state))
// Reset delta generator so it starts from index 0.
import streamlit as st
st._reset()
self._state_change_requested = False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: streamlit/streamlit
Commit Name: 88e37703dfdd24274ad9744e07adf53a58a9300e
Time: 2019-06-03
Author: tconkling@gmail.com
File Name: lib/streamlit/ScriptRunner.py
Class Name: ScriptRunner
Method Name: _run
Project Name: ray-project/ray
Commit Name: 8204717eed71923f1e14fa6bd17ca4588c140c09
Time: 2020-07-16
Author: sven@anyscale.io
File Name: rllib/evaluation/rollout_worker.py
Class Name: RolloutWorker
Method Name: __init__
Project Name: dmlc/gluon-cv
Commit Name: fdd55d36c05c747643fc98430a7f9b787b6cec16
Time: 2019-08-29
Author: yizhu59@gmail.com
File Name: gluoncv/data/kinetics400/classification.py
Class Name: Kinetics400
Method Name: _TSN_RGB