ebe62273a97c206750efcb9989de42a6b46c4e10,torch_geometric/datasets/faust.py,FAUST,__getitem__,#FAUST#Any#,41

Before Change



        data, target = self.data[index], self.labels[index]

        if self.transform is not None:
            data = self.transform(data)

        if self.target_transform is not None:
            target = self.target_transform(target)

        return data, target

    def __len__(self):
        return len(self.labels)

After Change


            index of the target class.
        

        return 1, 2
        // data, target = self.data[index], self.labels[index]

        // if self.transform is not None:
        //     data = self.transform(data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: ebe62273a97c206750efcb9989de42a6b46c4e10
Time: 2017-10-17
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/faust.py
Class Name: FAUST
Method Name: __getitem__


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 8f420a3b35944dcfa470dee958ef61dee221ce02
Time: 2018-04-23
Author: eriklindernoren@gmail.com
File Name: implementations/dualgan/datasets.py
Class Name: MNISTM
Method Name: __getitem__


Project Name: leftthomas/SRGAN
Commit Name: 5e1b913c28e0ce51db00919a2f74b5853da2d54d
Time: 2017-12-05
Author: leftthomas@qq.com
File Name: data_utils.py
Class Name: DatasetFromFolder
Method Name: __getitem__