e33754c3cc5dd3c731120e38cc09aaafbcfc35fe,dataset/models/base.py,BaseModel,__init__,#BaseModel#Any#Any#,25

Before Change


        self.name = name or self.__class__.__name__
        if self.get_from_config("build", True):
            self.build(*args, **kwargs)
        if self.get_from_config("load", False):
            self.load(**self.get_from_config("load"))

    @classmethod

After Change


        self.name = name or self.__class__.__name__
        if self.get("build", self.config, True):
            self.build(*args, **kwargs)
        load = self.get("load", self.config, False)
        if load:
            self.load(**load)

    @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: analysiscenter/batchflow
Commit Name: e33754c3cc5dd3c731120e38cc09aaafbcfc35fe
Time: 2017-11-17
Author: rhudor@gmail.com
File Name: dataset/models/base.py
Class Name: BaseModel
Method Name: __init__


Project Name: analysiscenter/batchflow
Commit Name: 02098c5c44893ce455aefcfc452aa00bd655987b
Time: 2017-11-15
Author: rhudor@gmail.com
File Name: dataset/models/tf/vgg.py
Class Name: VGG
Method Name: _build_config


Project Name: quiltdata/quilt
Commit Name: b4cb0c14ebf600daa5573bc90a419eb24329eb55
Time: 2019-06-05
Author: aleksey@residentmar.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: install