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

Before Change


                        "nCurrent agent: {self.aec_env.agent_selection}" \
                        "\nExpected agent: {agent}"
                    // Execute agent action in environment
                    self.obs[agent] = self.aec_env.step(
                        action_dict[agent], observe=True)
                    if all(self.aec_env.dones.values()):
                        env_done = True
                        self.dones["__all__"] = True
                else:

After Change


            agent = self.aec_env.agent_selection
            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), \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

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: OpenNMT/OpenNMT-py
Commit Name: 8b287afc510ee7d6d10e3e7bf211929765ab4374
Time: 2018-08-27
Author: vince62s@yahoo.com
File Name: onmt/trainer.py
Class Name: Trainer
Method Name: _gradient_accumulation


Project Name: dmlc/gluon-cv
Commit Name: 679acab57a8e6b4117beb75913cf49acd7d9d68e
Time: 2020-10-31
Author: yizhu59@gmail.com
File Name: scripts/action-recognition/train_ddp_pytorch.py
Class Name:
Method Name: main_worker


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