ab01508a72f9cf062adb4ee752952937492e627c,brian2/groups/group.py,Group,__getattr__,#Group#Any#,301

Before Change


        // called yet.
        if name=="_group_attribute_access_active":
            raise AttributeError
        if not hasattr(self, "_group_attribute_access_active"):
            raise AttributeError
        
        // We want to make sure that accessing variables without units is fast

After Change


        // called yet.
        if name=="_group_attribute_access_active":
            raise AttributeError
        if not "_group_attribute_access_active" in self.__dict__:
            raise AttributeError
        
        // We want to make sure that accessing variables without units is fast
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: ab01508a72f9cf062adb4ee752952937492e627c
Time: 2014-08-11
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: __getattr__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 78604bdd9729e62b290823ad64e0d8de28da477a
Time: 2017-06-08
Author: valentina.zantedeschi@ibm.com
File Name: src/attackers/fast_gradient.py
Class Name: FastGradientMethod
Method Name: generate


Project Name: biolab/orange3
Commit Name: 3b3db8d3806e2aec4ffe25deb3e892b54ef2e1d5
Time: 2014-08-19
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/data/owfile.py
Class Name:
Method Name: addOrigin


Project Name: brian-team/brian2
Commit Name: 4a81669b72223a5965f0a13482d5fdf375552003
Time: 2014-08-11
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: __getattr__