40692791b6d7be242aa96a375daf468f54250771,DataLoader.py,DataLoader,next,#DataLoader#,95

Before Change


                return (src_data, src_pos), (tgt_data, tgt_pos)

        else:
            self.shuffle()
            self._iter_count = 0
            raise StopIteration()

After Change



        else:

            if self._need_shuffle:
                self.shuffle()

            self._iter_count = 0
            raise StopIteration()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 40692791b6d7be242aa96a375daf468f54250771
Time: 2017-07-23
Author: jadore801120@gmail.com
File Name: DataLoader.py
Class Name: DataLoader
Method Name: next


Project Name: ellisdg/3DUnetCNN
Commit Name: 85126e0f1f380dd389b0f21b5a09ef7c57011047
Time: 2017-11-17
Author: david.ellis@unmc.edu
File Name: unet3d/generator.py
Class Name:
Method Name: data_generator


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 40692791b6d7be242aa96a375daf468f54250771
Time: 2017-07-23
Author: jadore801120@gmail.com
File Name: DataLoader.py
Class Name: DataLoader
Method Name: __init__