712c2cda7f0fe8b8602fd689a7e31c873ddaa86f,examples/core/reuse_label.py,,,#,18

Before Change



// Starting the report takes up the first run.
// When run the test will see the slider first.
if not st.test_run_count:
    w1 = st.button("label")
elif st.test_run_count == 1:
    w1 = st.slider("label", 25, 0, 100, 1)
else:
    w1 = st.selectbox("label", ("m", "f"), 1)

st.write("value 1:", w1)

After Change


if hasattr(st, "test_run_count"):
    st.test_run_count += 1
else:
    st.test_run_count = 0 if st.get_option("server.headless") else -1

if st.test_run_count < 1:
    w1 = st.slider("label", 0, 100, 25, 1)
else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 712c2cda7f0fe8b8602fd689a7e31c873ddaa86f
Time: 2019-08-27
Author: rhone.j@gmail.com
File Name: examples/core/reuse_label.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: 182af8281295a110f8079c561be378b4044dab8e
Time: 2018-12-10
Author: thiagot@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _check_conflicts


Project Name: streamlit/streamlit
Commit Name: fc730c0a93040edc02eb7abc3c3d853075b417f1
Time: 2018-12-07
Author: thiagot@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _check_conflicts