b49d07897fa5bd21ae37486dede02dc360bebadb,nilmtk/hashable.py,Hashable,__repr__,#Hashable#,31

Before Change


    def __repr__(self):
        s = "{:s}(".format(self.__class__.__name__)
        s += ", ".join(["{:s}={}".format(k, self.metadata.get(k))
                       for k in self.__class__.KEY_ATTRIBUTES])
        s += ")"
        return s

After Change



    def __repr__(self):
        s = "{:s}(".format(self.__class__.__name__)
        s += str(self.identifier).partition("(")[2]
        return s
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilmtk/nilmtk
Commit Name: b49d07897fa5bd21ae37486dede02dc360bebadb
Time: 2014-05-12
Author: jack-list@xlk.org.uk
File Name: nilmtk/hashable.py
Class Name: Hashable
Method Name: __repr__


Project Name: ntucllab/libact
Commit Name: e81142f0869321cd8792e13bfc4f6fb85d9f1efc
Time: 2015-12-22
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/uncertainty_sampling.py
Class Name: UncertaintySampling
Method Name: make_query


Project Name: pantsbuild/pants
Commit Name: f04ad7d453c21c3d6613f105e963c3187f1c37bd
Time: 2016-01-07
Author: benjyw@gmail.com
File Name: src/python/pants/goal/goal.py
Class Name: _Goal
Method Name: description