125c7ee38d413e4709271292c473f5930196b137,environments/gym_environment_wrapper.py,GymEnvironmentWrapper,_restart_environment_episode,#GymEnvironmentWrapper#Any#,149

Before Change


        while observation is None:
            observation = self.step(0)["observation"]

        if "Breakout" in self.env_id:
            // crop image
            observation = observation[34:195, :, :]

After Change



    def _restart_environment_episode(self, force_environment_reset=False):
        // prevent reset of environment if there are ale lives left
        if (hasattr(self.env.env, "ale") and self.env.env.ale.lives() > 0) \
                and not force_environment_reset and not self.env._past_limit():
            return self.observation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: NervanaSystems/coach
Commit Name: 125c7ee38d413e4709271292c473f5930196b137
Time: 2017-12-19
Author: 30383381+itaicaspi-intel@users.noreply.github.com
File Name: environments/gym_environment_wrapper.py
Class Name: GymEnvironmentWrapper
Method Name: _restart_environment_episode


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 99a660049d3cc013d12d55a5e35fa6d63eafb09a
Time: 2019-11-01
Author: wilkieolin@users.noreply.github.com
File Name: snntoolbox/simulation/target_simulators/brian2_target_sim.py
Class Name: SNN
Method Name: compile


Project Name: BindsNET/bindsnet
Commit Name: 0a18114d0fc40174dee076a5d9893de26fc6377a
Time: 2019-06-09
Author: chaneyk@seas.upenn.edu
File Name: bindsnet/pipeline/base_pipeline.py
Class Name: BasePipeline
Method Name: __init__


Project Name: BindsNET/bindsnet
Commit Name: e600cf64a4a25aad39c142f92417a3d435b55c92
Time: 2019-06-03
Author: jessehagenaars@gmail.com
File Name: bindsnet/pipeline/base_pipeline.py
Class Name: BasePipeline
Method Name: __init__


Project Name: Microsoft/nni
Commit Name: e7fccfb4a01285795c7a68ea233af119e0fd5a3c
Time: 2020-08-11
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/nas/tensorflow/mutables.py
Class Name: Mutable
Method Name: set_mutator


Project Name: ray-project/ray
Commit Name: fb1c1e2d27348b139bf1b686a1e81b94049d5190
Time: 2020-03-03
Author: pcmoritz@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getnewargs