8d6e295859edc8c93a2c5dded536588cf01b55e6,local/server/streamlit/local/io.py,,echo,#,138

Before Change


    
    try:
        import traceback
        write(traceback)
        subheader("Stack")
        start_frame = traceback.extract_stack()[0]
        filename, start_line = frame.filename, frame.lineno
        // write(frame)

After Change


    yield
    end_frame = traceback.extract_stack()[0]
    assert start_frame.filename == end_frame.filename
    with open(start_frame.filename) as source_file:
        lines = slice(start_frame.lineno, end_frame.lineno)
        source = "".join(source_file.readlines()[lines])
        code.markdown(f"```\n{textwrap.dedent(source)}\n```")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: 8d6e295859edc8c93a2c5dded536588cf01b55e6
Time: 2018-04-28
Author: adrien.g.treuille@gmail.com
File Name: local/server/streamlit/local/io.py
Class Name:
Method Name: echo


Project Name: Picovoice/porcupine
Commit Name: 6ea0b2b297af473ac73b98938f561a06b63a6bd9
Time: 2020-10-01
Author: alireza@picovoice.ai
File Name: binding/python/setup.py
Class Name:
Method Name:


Project Name: Picovoice/porcupine
Commit Name: 6ea0b2b297af473ac73b98938f561a06b63a6bd9
Time: 2020-10-01
Author: alireza@picovoice.ai
File Name: demo/python/setup.py
Class Name:
Method Name: