d1146303b070a463e9e81086a0aeff7a2c909311,gym/envs/box2d/lunar_lander.py,LunarLander,step,#LunarLander#Any#,237

Before Change


            self.world.DestroyBody(self.particles.pop(0))

    def step(self, action):
        assert self.action_space.contains(action), "%r (%s) invalid " % (action,type(action))

        // Engines
        tip  = (math.sin(self.lander.angle), math.cos(self.lander.angle))
        side = (-tip[1], tip[0]);

After Change


            self.world.DestroyBody(self.particles.pop(0))

    def step(self, action):
        action = np.clip(action, -1, +1).astype(np.float32)

        // Engines
        tip  = (math.sin(self.lander.angle), math.cos(self.lander.angle))
        side = (-tip[1], tip[0]);
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: openai/gym
Commit Name: d1146303b070a463e9e81086a0aeff7a2c909311
Time: 2018-08-14
Author: omgtech@gmail.com
File Name: gym/envs/box2d/lunar_lander.py
Class Name: LunarLander
Method Name: step


Project Name: ray-project/ray
Commit Name: ce96b03b07a4a4bdd851aa84493c616cd291aff2
Time: 2020-10-06
Author: sven@anyscale.io
File Name: rllib/examples/env/mbmpo_env.py
Class Name: HopperWrapper
Method Name: reward


Project Name: broadinstitute/keras-rcnn
Commit Name: 0f0fa7e5aa9ba084cefb14c4d2bbe12be0bc99c3
Time: 2018-02-27
Author: jyhung@broadinstitute.org
File Name: tests/layers/object_detection/test_anchor_target.py
Class Name:
Method Name: test_label


Project Name: aleju/imgaug
Commit Name: 5f85518f21f3aa7b7f16145636cd5db9408905f3
Time: 2019-03-30
Author: kontakt@ajung.name
File Name: imgaug/augmentables/heatmaps.py
Class Name: HeatmapsOnImage
Method Name: __init__