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

Before Change



    def _restart_environment_episode(self, force_environment_reset=False):
        // prevent reset of environment if there are ale lives left
        if "Breakout" in self.env_id and self.env.env.ale.lives() > 0 and not force_environment_reset:
            return self.observation

        if self.seed:

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: 3

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: 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