6768be17c4a9bd151fa90363c559bd15aeb395e7,debug_toolbar/utils/__init__.py,,omit_path,#,51

Before Change



def omit_path(path):
    for hidden_path in hidden_paths:
        if hidden_path in path:
            return True
    return False


def tidy_stacktrace(stack):

After Change




def omit_path(path):
    return any(path.startswith(hidden_path) for hidden_path in hidden_paths)


def tidy_stacktrace(stack):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jazzband/django-debug-toolbar
Commit Name: 6768be17c4a9bd151fa90363c559bd15aeb395e7
Time: 2013-10-21
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/utils/__init__.py
Class Name:
Method Name: omit_path


Project Name: beancount/smart_importer
Commit Name: c87b863b74311eaeba5ebd9a100518024a18072e
Time: 2018-12-20
Author: mail@jakobschnitzer.de
File Name: smart_importer/pipelines.py
Class Name:
Method Name: get_pipeline


Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params