dded0e1e61a8b8175621d638bd96041ccfb2cc07,chainercv/utils/iterator/split_iterator.py,,split_iterator,#Any#,23

Before Change


            it.push(value)

    values = next(iterator)
    iters = tuple(BufferedIterator(feed) for _ in values)
    feed(values)

    return iters

After Change


    

    values = next(iterator)
    buffers = [[val] for val in values]
    return tuple(
        BufferedIterator(iterator, buffers, index)
        for index in range(len(buffers)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: dded0e1e61a8b8175621d638bd96041ccfb2cc07
Time: 2017-05-30
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/utils/iterator/split_iterator.py
Class Name:
Method Name: split_iterator


Project Name: keras-team/keras
Commit Name: bf464d7ed9283988fea1f548a11a0171fd2ff364
Time: 2021-01-06
Author: gardener@tensorflow.org
File Name: keras/utils/version_utils.py
Class Name:
Method Name: swap_class


Project Name: NifTK/NiftyNet
Commit Name: bbf4350363dc25cb9cdabb9d8fb635e96a617f32
Time: 2017-08-28
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_type.py
Class Name: SpatialImage3D
Method Name: shape