c49bd59c7d43af4a3baadbfe17d6d77a6a6040fd,torch_geometric/datasets/particle.py,TrackingData,__inc__,#TrackingData#Any#Any#,12

Before Change


class TrackingData(Data):
    def __inc__(self, key, item):
        if key == "y":
            return item.max().item() + 1
        else:
            return super(TrackingData, self).__inc__(key, item)

After Change


class TrackingData(Data):
    def __inc__(self, key, item):
        if key == "y_index":
            return torch.tensor([item[0].max().item() + 1, self.num_nodes])
        else:
            return super(TrackingData, self).__inc__(key, item)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: c49bd59c7d43af4a3baadbfe17d6d77a6a6040fd
Time: 2020-03-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/particle.py
Class Name: TrackingData
Method Name: __inc__


Project Name: rusty1s/pytorch_geometric
Commit Name: 7c41e2eee4ff49865ea9fc2fc94fe91a68cb4807
Time: 2019-04-12
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/icews.py
Class Name: TemporalDataset
Method Name: num_rels


Project Name: rusty1s/pytorch_geometric
Commit Name: 14b628e18fdefc250915ddc7b7b39f7880dad6cf
Time: 2019-07-04
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/glob/glob.py
Class Name:
Method Name: global_mean_pool


Project Name: rusty1s/pytorch_geometric
Commit Name: 14b628e18fdefc250915ddc7b7b39f7880dad6cf
Time: 2019-07-04
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/glob/glob.py
Class Name:
Method Name: global_max_pool


Project Name: rusty1s/pytorch_geometric
Commit Name: 14b628e18fdefc250915ddc7b7b39f7880dad6cf
Time: 2019-07-04
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/glob/glob.py
Class Name:
Method Name: global_add_pool