2d6afd5eac5e22fa564703a2dd2989c785007e55,firestore/cloud-client/snippets.py,City,__repr__,#City#,150

Before Change


        // [END_EXCLUDE]

    def __repr__(self):
        return(
            u"City(name={}, country={}, population={}, capital={}, regions={})"
            .format(self.name, self.country, self.population, self.capital,
                    self.regions))
// [END custom_class_def]


def add_example_data():

After Change


        // [END_EXCLUDE]

    def __repr__(self):
        return(
            f"City(\
                name={self.name}, \
                country={self.country}, \
                population={self.population}, \
                capital={self.capital}, \
                regions={self.regions}\
            )"
        )
// [END custom_class_def]


def add_example_data():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name: City
Method Name: __repr__


Project Name: PIQuIL/QuCumber
Commit Name: 10bdd46d76d35cfba3a484b007ea3e14af801813
Time: 2019-12-09
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/binary_rbm.py
Class Name: BinaryRBM
Method Name: __repr__


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2d6afd5eac5e22fa564703a2dd2989c785007e55
Time: 2020-06-05
Author: sdlin@users.noreply.github.com
File Name: firestore/cloud-client/snippets.py
Class Name: City
Method Name: __repr__


Project Name: Scitator/catalyst
Commit Name: cc01e8a726fabd2c758303b1a3174fb2b17be5a2
Time: 2020-10-10
Author: dimdoroshenko@gmail.com
File Name: catalyst/contrib/nn/modules/cosface.py
Class Name: CosFace
Method Name: __repr__