e801ccfdb04a70ff9d314d30a8b744567aeb21ba,gym/core.py,ActionWrapper,action,#ActionWrapper#Any#,306

Before Change


        return self.env.step(action)

    def action(self, action):
        deprecated_warn_once("%s doesn"t implement "action" method. Maybe it implements deprecated "_action" method." % type(self))
        return self._action(action)

    def reverse_action(self, action):
        deprecated_warn_once("%s doesn"t implement "reverse_action" method. Maybe it implements deprecated "_reverse_action" method." % type(self))

After Change


        return self.env.step(self.action(action))

    def action(self, action):
        raise NotImplementedError

    def reverse_action(self, action):
        raise NotImplementedError
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: openai/gym
Commit Name: e801ccfdb04a70ff9d314d30a8b744567aeb21ba
Time: 2019-05-03
Author: zuoxingdong@users.noreply.github.com
File Name: gym/core.py
Class Name: ActionWrapper
Method Name: action


Project Name: openai/gym
Commit Name: e801ccfdb04a70ff9d314d30a8b744567aeb21ba
Time: 2019-05-03
Author: zuoxingdong@users.noreply.github.com
File Name: gym/core.py
Class Name: ActionWrapper
Method Name: reverse_action


Project Name: openai/gym
Commit Name: e801ccfdb04a70ff9d314d30a8b744567aeb21ba
Time: 2019-05-03
Author: zuoxingdong@users.noreply.github.com
File Name: gym/core.py
Class Name: ObservationWrapper
Method Name: observation


Project Name: openai/gym
Commit Name: e801ccfdb04a70ff9d314d30a8b744567aeb21ba
Time: 2019-05-03
Author: zuoxingdong@users.noreply.github.com
File Name: gym/core.py
Class Name: RewardWrapper
Method Name: reward