f2408b719c991b98ba5dc77db81dc184805b33df,rllib/env/pettingzoo_env.py,PettingZooEnv,step,#PettingZooEnv#Any#,141

Before Change


            // observations.
            else:
                del self.dones[agent]
                del self.rewards[agent]
                del self.obs[agent]
                del self.infos[agent]

        // update self.agents

After Change


            assert agent in action_dict, \
                "Live environment agent is not in actions dictionary"
            self.aec_env.step(action_dict[agent])
            stepped_agents.add(agent)

        assert all(agent in stepped_agents or self.aec_env.dones[agent]
                   for agent in action_dict), \
            "environment has a nontrivial ordering, and cannot be used with"\
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: f2408b719c991b98ba5dc77db81dc184805b33df
Time: 2020-09-17
Author: weepingwillowben@gmail.com
File Name: rllib/env/pettingzoo_env.py
Class Name: PettingZooEnv
Method Name: step


Project Name: scipy/scipy
Commit Name: 08defcf0a049db6aa714558430dae6b3f77404ee
Time: 2013-07-10
Author: evgeni@burovski.me
File Name: scipy/stats/tests/test_discrete_basic.py
Class Name:
Method Name: test_discrete_basic


Project Name: wandb/client
Commit Name: 98e363d1143e14ecac754a29a5500de6ffbbb004
Time: 2021-01-15
Author: jeff@wandb.com
File Name: wandb/sdk_py27/wandb_config.py
Class Name: Config
Method Name: _update