9c936815ecfef87fab360dfb955dc9cd2f445a5e,utils/neu/misc.py,AttrDict,__getattr__,#AttrDict#Any#,44

Before Change



    def __getattr__(self, key):
        if key not in self:
            raise AttributeError("No such attribute `{}`".format(key))

        if isinstance(self[key], dict):
            self[key] = AttrDict(self[key])

After Change



        if isinstance(self[key], dict):
            self[key] = AttrDict(self[key])
            self[key]._parent = self._parent + [key]

        return self[key]

    def __str__(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sony/nnabla-examples
Commit Name: 9c936815ecfef87fab360dfb955dc9cd2f445a5e
Time: 2020-04-01
Author: Akio.Hayakawa@sony.com
File Name: utils/neu/misc.py
Class Name: AttrDict
Method Name: __getattr__


Project Name: cornellius-gp/gpytorch
Commit Name: 60a342edc8b501802135df44869353cc8604d838
Time: 2018-01-11
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/kronecker_product_lazy_variable.py
Class Name: KroneckerProductLazyVariable
Method Name: _matmul_closure_factory


Project Name: suavecode/SUAVE
Commit Name: f142fa15ec68e5ea806d4e61a8cfe0a561ef6bce
Time: 2019-09-24
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Analyses/Aerodynamics/AVL_Inviscid.py
Class Name: AVL_Inviscid
Method Name: sample_training