e579899b0941d1e75bb12260ca0328ae62d08e44,nilmtk/docinherit.py,DocInherit,__get__,#DocInherit#,34
Before Change
if obj:
return self.get_with_inst(obj, cls)
else:
return self.get_no_inst(cls)
def get_with_inst(self, obj, cls):
overridden = getattr(super(cls, obj), self.name, None)
After Change
def __get__(self, obj, cls):
for parent in cls.__mro__[1:]:
overridden = getattr(parent, self.name, None)
if overridden:
break
@wraps(self.mthd, assigned=("__name__", "__module__"))
def f(*args, **kwargs):
if obj:
return self.mthd(obj, *args, **kwargs)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: nilmtk/nilmtk
Commit Name: e579899b0941d1e75bb12260ca0328ae62d08e44
Time: 2020-10-09
Author: phenyl@posteo.net
File Name: nilmtk/docinherit.py
Class Name: DocInherit
Method Name: __get__
Project Name: nilmtk/nilmtk
Commit Name: e579899b0941d1e75bb12260ca0328ae62d08e44
Time: 2020-10-09
Author: phenyl@posteo.net
File Name: nilmtk/docinherit.py
Class Name: DocInherit
Method Name: __get__
Project Name: brilee/MuGo
Commit Name: 1288f14e436fdccb0e358b72b6abfa7accf74111
Time: 2016-07-20
Author: brian.kihoon.lee@gmail.com
File Name: strategies.py
Class Name: MCTS
Method Name: estimate_value
Project Name: Logan1x/Python-Scripts
Commit Name: 2ef5c047b4296a807eea8366f67d7f271f0d47de
Time: 2020-06-28
Author: 59202862+Monsieurvishal@users.noreply.github.com
File Name: bin/password-strength-checker.py
Class Name:
Method Name: pass1
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product