9893731e1c5d1c57ff2cc1c2d280c11f2f453d64,slm_lab/env/openai.py,OpenAIEnv,space_reset,#OpenAIEnv#,63

Before Change


            state = self.u_env.reset()
            state_e[ab] = state
            done_e[ab] = self.done = False
        if util.get_lab_mode() == "dev":
            self.u_env.render()
        logger.debug(f"Env {self.e} reset reward_e: {_reward_e}, state_e: {state_e}, done_e: {done_e}")
        return _reward_e, state_e, done_e

After Change


            state = self.u_env.reset()
            state_e[ab] = state
            done_e[ab] = self.done = False
        if util.to_render():
            self.u_env.render()
        logger.debug(f"Env {self.e} reset reward_e: {_reward_e}, state_e: {state_e}, done_e: {done_e}")
        return _reward_e, state_e, done_e
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: kengz/SLM-Lab
Commit Name: 9893731e1c5d1c57ff2cc1c2d280c11f2f453d64
Time: 2018-09-03
Author: kengzwl@gmail.com
File Name: slm_lab/env/openai.py
Class Name: OpenAIEnv
Method Name: space_reset


Project Name: kengz/SLM-Lab
Commit Name: 9893731e1c5d1c57ff2cc1c2d280c11f2f453d64
Time: 2018-09-03
Author: kengzwl@gmail.com
File Name: slm_lab/env/openai.py
Class Name: OpenAIEnv
Method Name: reset


Project Name: kengz/SLM-Lab
Commit Name: 9893731e1c5d1c57ff2cc1c2d280c11f2f453d64
Time: 2018-09-03
Author: kengzwl@gmail.com
File Name: slm_lab/env/openai.py
Class Name: OpenAIEnv
Method Name: space_step


Project Name: kengz/SLM-Lab
Commit Name: 9893731e1c5d1c57ff2cc1c2d280c11f2f453d64
Time: 2018-09-03
Author: kengzwl@gmail.com
File Name: slm_lab/env/openai.py
Class Name: OpenAIEnv
Method Name: step