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

Before Change


        write(traceback)
        subheader("Stack")
        start_frame = traceback.extract_stack()[0]
        filename, start_line = frame.filename, frame.lineno
        // write(frame)
        // write(dir(frame))
        // write("line", frame.line, type(frame.line))
        // write("lineno", frame.lineno, type(frame.lineno))

After Change


    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```")

// This is a necessary (but not sufficient) condition to establish that this
// is the proxy process.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: dmlc/gluon-cv
Commit Name: 0e97aaafdc7f797127f80a3510c4dac861174cc0
Time: 2020-10-14
Author: haofeikuang@gmail.com
File Name: gluoncv/model_zoo/monodepthv2/pose_decoder.py
Class Name: PoseDecoder
Method Name: hybrid_forward


Project Name: dmlc/gluon-nlp
Commit Name: a9eb2fd38180b5affbd30ec78f33f6ef16ef9c20
Time: 2019-08-19
Author: linhaibin.eric@gmail.com
File Name: src/gluonnlp/model/bert.py
Class Name: BERTModel
Method Name: _apply_pooling