4c8508b85ebc4c869850dce4a0cd7144f64b13c5,torch_geometric/data/sampler.py,Block,__repr__,#Block#,26

Before Change



    def __repr__(self):
        info = [(key, getattr(self, key)) for key in self.__dict__]
        info = ["{}={}".format(key, size_repr(item)) for key, item in info]
        return "{}({})".format(self.__class__.__name__, ", ".join(info))

After Change


        self.size = size

    def __repr__(self):
        info = [size_repr(key, getattr(self, key)) for key in self.__dict__]
        return "{}({})".format(self.__class__.__name__, ", ".join(info))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 4c8508b85ebc4c869850dce4a0cd7144f64b13c5
Time: 2020-05-31
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/data/sampler.py
Class Name: Block
Method Name: __repr__


Project Name: rusty1s/pytorch_geometric
Commit Name: 47313e3cf6dd2e6a7d8242b715f8ef60b8f02778
Time: 2020-05-14
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/data/data.py
Class Name: Data
Method Name: __repr__


Project Name: rusty1s/pytorch_geometric
Commit Name: 5c22982a949b8c1597d1e8c13428adf4db0e45e2
Time: 2020-05-14
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/data/sampler.py
Class Name: Block
Method Name: __repr__


Project Name: rusty1s/pytorch_geometric
Commit Name: 59f362ee07c07d6a3ddc70ddbf1bfe925d3d8392
Time: 2020-05-31
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/data/data.py
Class Name: Data
Method Name: __repr__