929b81043c1a274cbd2396ac77714d344878c488,data/aligned_dataset.py,AlignedDataset,__getitem__,#AlignedDataset#Any#,28

Before Change


               w_offset:w_offset + self.opt.fineSize]

        if (not self.opt.no_flip) and random.random() < 0.5:
            idx = [i for i in range(A.size(2) - 1, -1, -1)] // size(2)-1, size(2)-2, ... , 0
            idx = torch.LongTensor(idx)
            A = A.index_select(2, idx)

After Change


        // let B directly equals to A
        B = A.clone()
        A_flip = torch.flip(A, [2])
        B_flip = A_flip.clone()

        // Just zero the mask is fine if not offline_loading_mask.
        mask = A.clone().zero_()
        if self.opt.offline_loading_mask:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 929b81043c1a274cbd2396ac77714d344878c488
Time: 2020-03-13
Author: yanzhaoyi@outlook.com
File Name: data/aligned_dataset.py
Class Name: AlignedDataset
Method Name: __getitem__


Project Name: eth-cscs/reframe
Commit Name: f6be78e9b06d08cf06fbfe50cab81ecf94388086
Time: 2019-04-01
Author: karakasis@cscs.ch
File Name: reframe/frontend/executors/__init__.py
Class Name: Runner
Method Name: _retry_failed


Project Name: scikit-optimize/scikit-optimize
Commit Name: 2e0effe79edeaccb70906d6a68310333dcc13cd6
Time: 2016-06-16
Author: betatim@gmail.com
File Name: skopt/learning/gbrt.py
Class Name: GradientBoostingQuantileRegressor
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 17c84d2804318861e8849182f43e5884e6dd0cfc
Time: 2020-04-03
Author: lichenkatrinani@gmail.com
File Name: mlxtend/classifier/ensemble_vote.py
Class Name: EnsembleVoteClassifier
Method Name: fit