b822f33804289099c7df6701511f2063466c5740,brian2/core/namespace.py,,get_local_namespace,#Any#,27

Before Change


        The locals and globals at the given depth of the stack frame.
    """
    // Get the locals and globals from the stack frame
    frame = inspect.stack()[level + 1][0]
    // We return the full stack here, even if it contains a lot of stuff we are
    // not interested in -- it is cheaper to later raise an error when we find
    // a specific object with an incorrect type instead of going through this big
    // list now to check the types of all objects

After Change


        The locals and globals at the given depth of the stack frame.
    """
    // Get the locals and globals from the stack frame
    frame = inspect.currentframe()
    for _ in xrange(level + 1):
        frame = frame.f_back
    // We return the full stack here, even if it contains a lot of stuff we are
    // not interested in -- it is cheaper to later raise an error when we find
    // a specific object with an incorrect type instead of going through this big
    // list now to check the types of all objects
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: brian-team/brian2
Commit Name: b822f33804289099c7df6701511f2063466c5740
Time: 2016-05-26
Author: marcel.stimberg@inserm.fr
File Name: brian2/core/namespace.py
Class Name:
Method Name: get_local_namespace


Project Name: tensorflow/tensorflow
Commit Name: 9aec83d8e6457025ac9b9bb1e9bbe0f4c0bfb0ec
Time: 2020-11-12
Author: mdan@google.com
File Name: tensorflow/python/util/tf_decorator.py
Class Name:
Method Name: make_decorator


Project Name: tensorflow/tensorflow
Commit Name: ded40f9b8f2b99f683d3919a55f93ee4ae5de808
Time: 2020-11-12
Author: mdan@google.com
File Name: tensorflow/python/util/tf_decorator.py
Class Name:
Method Name: make_decorator