2f608dd95d89ac486fe227312d2f40d6e6066e39,src/rv/classification/ml/utils.py,RandomRotate90,__call__,#RandomRotate90#Any#,115

Before Change


        Returns:
            PIL Image: Randomly rotated image.
        
        return img.rotate(90 * random.randint(0, 4))


class Resize(object):
    def __init__(self, size):

After Change


        rot_choice = random.choice(rot_choices)
        if rot_choice is None:
            return img
        return img.transpose(rot_choice)


class Resize(object):
    def __init__(self, size):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: azavea/raster-vision
Commit Name: 2f608dd95d89ac486fe227312d2f40d6e6066e39
Time: 2017-12-27
Author: lewfish@gmail.com
File Name: src/rv/classification/ml/utils.py
Class Name: RandomRotate90
Method Name: __call__


Project Name: chainer/chainercv
Commit Name: 44edfba78536668c2240e8e722029741a547bd9a
Time: 2018-11-20
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/rotate.py
Class Name:
Method Name: rotate


Project Name: matplotlib/matplotlib
Commit Name: 13a3095840e38c41870e8a198e6d61fa2cba7d87
Time: 2018-01-26
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/transforms.py
Class Name: Affine2D
Method Name: rotate_deg


Project Name: rodluger/starry
Commit Name: 4e5c97a84c22b6beb953e34a0f18147f7e668f88
Time: 2019-09-05
Author: rodluger@gmail.com
File Name: starry/ops/ops.py
Class Name: Ops
Method Name: align


Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: ImageRotate
Method Name: apply