b19d0834272dbe109dbc38045f4fe02ed92c8b85,brian2/groups/group.py,Group,get_states,#Group#Any#Any#Any#Any#Any#,421
Before Change
if format != "dict":
raise NotImplementedError("Format "%s" is not supported" % format)
if vars is None:
vars = [name for name, var in self.variables.iteritems()
if not name.startswith("_") and
(subexpressions or not isinstance(var, Subexpression))]
data = {}
for var in vars:
data[var] = np.array(self.state(var, use_units=units,
level=level+1),
After Change
suggestions = checker.suggest(name)
if len(suggestions) == 1:
suggestion, = suggestions
error_msg += " Did you mean to write "%s%s"?" % (suggestion,
suffix)
elif len(suggestions) > 1:
error_msg += (" Did you mean to write any of the following: %s ?" %
(", ".join([""%s%s"" % (suggestion, suffix)
for suggestion in suggestions])))
error_msg += (" Use the add_attribute method if you intend to add "
"a new attribute to the object.")
raise AttributeError(error_msg)
def add_attribute(self, name):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: brian-team/brian2
Commit Name: b19d0834272dbe109dbc38045f4fe02ed92c8b85
Time: 2015-07-22
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: get_states
Project Name: senarvi/theanolm
Commit Name: eb8b70c825ef3e02818cbfa95c0f8a9ec4184275
Time: 2015-12-25
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Network
Method Name: __init__
Project Name: deepfakes/faceswap
Commit Name: cbcd301150a30da76baa29b27026d85def796e3b
Time: 2020-08-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/_config.py
Class Name:
Method Name: get_clean_fonts