4fc2fed2a6e3da28de4d77b4e3917952a0dfa562,brian2/core/variables.py,VariableView,__repr__,#VariableView#,310

Before Change


    def __repr__(self):
        if self.unit is None or have_same_dimensions(self.unit, Unit(1)):
            return "<%s.%s_: %r>" % (self.group.name, self.variable.name,
                                     self.variable.get_value())
        else:
            return "<%s.%s: %r>" % (self.group.name, self.variable.name,
                                    Quantity(self.variable.get_value(),

After Change


        if self.unit is None:
            varname += "_"
        return "<%s.%s_: %r>" % (self.group.name, varname,
                                 self[:])


class ArrayVariable(Variable):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: 4fc2fed2a6e3da28de4d77b4e3917952a0dfa562
Time: 2013-08-12
Author: marcel.stimberg@ens.fr
File Name: brian2/core/variables.py
Class Name: VariableView
Method Name: __repr__


Project Name: lcswillems/torch-rl
Commit Name: 034ee51fb01fea37fb75e196a04cd96de102da28
Time: 2018-04-30
Author: lcswillems@gmail.com
File Name: torch_ac/algos/a2c.py
Class Name: A2CAlgo
Method Name: update_parameters


Project Name: brian-team/brian2
Commit Name: a8f3ec3ff99008920ce442698003e6e191c1d2b4
Time: 2013-07-11
Author: marcel.stimberg@ens.fr
File Name: brian2/core/specifiers.py
Class Name: VariableView
Method Name: __getitem__