1c260c438967e16675898bc1c81d462b4aacbed1,src/rastervision/core/box.py,Box,make_random_square,#Box#Any#,107
Before Change
rand_y = int(np.random.uniform(0, ub))
ub = self.get_width() - size
rand_x = int(np.random.uniform(0, ub))
return Box.make_square(rand_y, rand_x, size)
After Change
size: the height and width of the new Box
if size >= self.get_width():
raise ValueError("size of random square cannot be >= width")
if size >= self.get_height():
raise ValueError("size of random square cannot be >= height")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: azavea/raster-vision
Commit Name: 1c260c438967e16675898bc1c81d462b4aacbed1
Time: 2018-08-16
Author: lewfish@gmail.com
File Name: src/rastervision/core/box.py
Class Name: Box
Method Name: make_random_square
Project Name: tensorflow/cleverhans
Commit Name: dd93f4a4ea5a9d4ee858f6fc73c791efb9720057
Time: 2019-05-01
Author: florian.tramer@gmail.com
File Name: cleverhans/utils_tf.py
Class Name:
Method Name: random_lp_vector
Project Name: rlworkgroup/garage
Commit Name: 59bcc7f182c190fc6a79f5fe5cbb26424e24ea17
Time: 2018-05-31
Author: hjzh578@gmail.com
File Name: contrib/ros/envs/sawyer_env.py
Class Name: SawyerEnv
Method Name: sample_goal