ba63cf9e111e6a405766c00f8d78aad2f944b849,text/mixins.py,StringlikeMixin,__repr__,#StringlikeMixin#,59

Before Change


        """Returns a string representation for debugging."""
        class_name = self.__class__.__name__
        return "{cls}({text})".format(cls=class_name,
                                        text=repr(self._strkey()))

    def __str__(self):
        """Returns a string representation used in print statements

After Change


    def __repr__(self):
        """Returns a string representation for debugging."""
        class_name = self.__class__.__name__
        text = self.__unicode__().encode("utf-8") if PY2 else str(self)
        ret = "{cls}("{text}")".format(cls=class_name,
                                        text=text)
        return binary_type(ret) if PY2 else ret
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sloria/TextBlob
Commit Name: ba63cf9e111e6a405766c00f8d78aad2f944b849
Time: 2013-09-29
Author: sloria1@gmail.com
File Name: text/mixins.py
Class Name: StringlikeMixin
Method Name: __repr__


Project Name: michaelhush/M-LOOP
Commit Name: 40f84ae7d82352de9e43e515f545913da42f89f3
Time: 2016-08-31
Author: MichaelRHush@gmail.com
File Name: mloop/controllers.py
Class Name: Controller
Method Name: _get_cost_and_in_dict


Project Name: prody/ProDy
Commit Name: 7ca79b945accfbf1c5e435eac1e9e25c0d808272
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/blastpdb.py
Class Name:
Method Name: blastPDB