63630d4b66a0c8bdaa8ac924a3eb4755419e2b6c,lib/streamlit/__init__.py,,spinner,#Any#,141

Before Change


            time.sleep(5)
        st.success("Done!")
    
    try:
        message = warning(text)
        yield
    finally:
        message.empty()

@contextlib.contextmanager
def echo():
    Render the given code, then execute it.

After Change


        DELAY_SECS = 0.1
        message = empty()
        display_message = True
        display_message_lock = threading.Lock()
        def set_message():
            with display_message_lock:
                if display_message:
                    message.warning(str(text))
        threading.Timer(DELAY_SECS, set_message).start()

        // Yield control back to the context.
        yield
    finally:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: 63630d4b66a0c8bdaa8ac924a3eb4755419e2b6c
Time: 2018-08-07
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/__init__.py
Class Name:
Method Name: spinner


Project Name: streamlit/streamlit
Commit Name: 428de4b8d7ef06fe6970ab86e2c7c01b900ba9b5
Time: 2018-08-16
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/__init__.py
Class Name:
Method Name: spinner


Project Name: descarteslabs/descarteslabs-python
Commit Name: 9867d46676b48fbf23b8998a0a6f5269cbb0bace
Time: 2019-08-21
Author: 13060286+stephaniegott@users.noreply.github.com
File Name: descarteslabs/workflows/interactive/layer_controller_row.py
Class Name: LayerControllerRow
Method Name: autoscale