93a35216d4053431a057cce3826127d69a7b7954,lib/streamlit/elements/doc_string.py,,marshall,#Any#Any#,33

Before Change


    except AttributeError:
        pass

    try:
        if obj.__module__ in CONFUSING_STREAMLIT_MODULES:
            proto.doc_string.module = "streamlit"
        else:
            proto.doc_string.module = obj.__module__
    except AttributeError:
        pass

    obj_type = type(obj)
    proto.doc_string.type = str(obj_type)

    if callable(obj):

After Change


    except AttributeError:
        pass

    module_name = getattr(obj, "__module__", None)

    if module_name in CONFUSING_STREAMLIT_MODULES:
        proto.doc_string.module = "streamlit"
    elif module_name is not None:
        proto.doc_string.module = module_name
    else:
        // Leave proto.doc_string.module as an empty string (default value).
        pass

    obj_type = type(obj)
    proto.doc_string.type = str(obj_type)

    if callable(obj):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: streamlit/streamlit
Commit Name: 93a35216d4053431a057cce3826127d69a7b7954
Time: 2019-04-12
Author: thiagot@gmail.com
File Name: lib/streamlit/elements/doc_string.py
Class Name:
Method Name: marshall


Project Name: streamlit/streamlit
Commit Name: fbc2ac6cb326a6bc7fcde9f3c9e07663c8299be5
Time: 2019-04-22
Author: thiagot@gmail.com
File Name: lib/streamlit/elements/doc_string.py
Class Name:
Method Name: marshall


Project Name: streamlit/streamlit
Commit Name: 360aaa513091dbc360b28ee416b074b5f94fec87
Time: 2019-04-12
Author: thiagot@gmail.com
File Name: lib/streamlit/elements/doc_string.py
Class Name:
Method Name: marshall