f42653664505435a8e87e286be6d676fed8355f2,imgaug/augmenters/blend.py,,blend_alpha,#Any#Any#Any#Any#,35
Before Change
// TODO add test for this
input_was_2d = (len(image_fg.shape) == 2)
if input_was_2d:
image_fg = np.atleast_3d(image_fg)
image_bg = np.atleast_3d(image_bg)
input_was_bool = False
if image_fg.dtype.kind == "b":
After Change
input_was_2d = (image_fg.ndim == 2)
if input_was_2d:
image_fg = image_fg[..., np.newaxis]
image_bg = image_bg[..., np.newaxis]
input_was_bool = False
if image_fg.dtype.kind == "b":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: aleju/imgaug
Commit Name: f42653664505435a8e87e286be6d676fed8355f2
Time: 2019-09-21
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blend.py
Class Name:
Method Name: blend_alpha
Project Name: SheffieldML/GPy
Commit Name: e7650c8a90de31e3d4877fcbfbc217a9b1202ebf
Time: 2015-04-20
Author: ibinbei@gmail.com
File Name: GPy/core/sparse_gp.py
Class Name: SparseGP
Method Name: _raw_predict
Project Name: SheffieldML/GPy
Commit Name: a24853da6b5c1201184fb60265c0b08b7d77e3cd
Time: 2015-04-28
Author: ibinbei@gmail.com
File Name: GPy/core/sparse_gp.py
Class Name: SparseGP
Method Name: _raw_predict