da0932fbef2254a50e1b4c6b6eb1176715dcc421,brian2/core/base.py,BrianObject,__init__,#BrianObject#Any#Any#Any#Any#Any#,52

Before Change


    def __init__(self, dt=None, clock=None, when="start", order=0, name="brianobject*"):
        // Setup traceback information for this object
        creation_stack = ["Object was created here (most recent call last):"]
        brianbase, _ = os.path.split(os.path.normpath(os.path.join(__file__, "../..")))
        for fname, linenum, funcname, line in traceback.extract_stack():
            if brianbase not in fname:
                s = "  File "{fname}", line {linenum}, in {funcname}\n    {line}".format(fname=fname,

After Change


                base, _ = os.path.split(sys.modules[modulename].__file__)
                bases.append(base)
        for fname, linenum, funcname, line in traceback.extract_stack():
            if all(base not in fname for base in bases):
                s = "  File "{fname}", line {linenum}, in {funcname}\n    {line}".format(fname=fname,
                                                                                         linenum=linenum,
                                                                                         funcname=funcname,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: brian-team/brian2
Commit Name: da0932fbef2254a50e1b4c6b6eb1176715dcc421
Time: 2015-10-26
Author: dg.github@thesamovar.net
File Name: brian2/core/base.py
Class Name: BrianObject
Method Name: __init__


Project Name: brian-team/brian2
Commit Name: da0932fbef2254a50e1b4c6b6eb1176715dcc421
Time: 2015-10-26
Author: dg.github@thesamovar.net
File Name: brian2/core/base.py
Class Name: BrianObject
Method Name: __init__


Project Name: idealo/image-super-resolution
Commit Name: 19a39999ccdb247f01909c2848b381d391ef621b
Time: 2019-04-02
Author: testadicardi@gmail.com
File Name: ISR/predict/predictor.py
Class Name: Predictor
Method Name: __init__


Project Name: ilastik/ilastik
Commit Name: 219459f15476426276e24329cdb6f091b5f7cf41
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: importStackAsLocalDataset


Project Name: ilastik/ilastik
Commit Name: 735d2f5a71dcf16e140b81a1490eb0cbf07d37e2
Time: 2019-07-08
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/batchProcessing/batchProcessingGui.py
Class Name: BatchProcessingGui
Method Name: select_files