b19d0834272dbe109dbc38045f4fe02ed92c8b85,brian2/groups/group.py,Group,get_states,#Group#Any#Any#Any#Any#Any#,421

Before Change


        // For the moment, "dict" is the only supported format -- later this will
        // be made into an extensible system, see github issue /룊
        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))]

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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

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: thenetcircle/dino
Commit Name: 46ad858e7284a026c02fff43146f2ec422d3449e
Time: 2016-10-25
Author: oscar.eriks@gmail.com
File Name: dino/db/redis.py
Class Name: DatabaseRedis
Method Name: get_acls_channel


Project Name: tensorflow/tensorboard
Commit Name: 1780833b30d953509200bf9560be2ba42fabe9ff
Time: 2020-01-06
Author: cais@google.com
File Name: tensorboard/plugins/debugger_v2/debug_data_provider.py
Class Name: LocalDebuggerV2DataProvider
Method Name: read_blob_sequences