9798c7be0ff5147752e75fd2522d8528df99b0b6,parlai/messenger/core/messenger_manager.py,MessengerManager,add_agent_to_pool,#MessengerManager#Any#Any#,87

Before Change


            )
            // time agent entered agent_pool
            agent.time_in_pool.setdefault(world_type, time.time())
            if world_type not in self.agent_pool:
                self.agent_pool[world_type] = []
            self.agent_pool[world_type].append(agent)

    def remove_agent_from_pool(self, agent, world_type="default", mark_removed=True):
        Remove agent from the pool

After Change


            // time agent entered agent_pool
            agent.time_in_pool.setdefault(world_type, time.time())
            // add agent to pool
            self.agent_pool.setdefault(world_type, []).append(agent)

    def remove_agent_from_pool(self, agent, world_type="default", mark_removed=True):
        Remove agent from the pool
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 9798c7be0ff5147752e75fd2522d8528df99b0b6
Time: 2018-03-01
Author: edinan@fb.com
File Name: parlai/messenger/core/messenger_manager.py
Class Name: MessengerManager
Method Name: add_agent_to_pool


Project Name: eth-cscs/reframe
Commit Name: 1a08f1da70bd6d4c33585f67af542dec4d850161
Time: 2020-07-20
Author: eirini.koutsaniti@cscs.ch
File Name: reframe/frontend/executors/policies.py
Class Name: SerialExecutionPolicy
Method Name: runcase


Project Name: eth-cscs/reframe
Commit Name: 1a08f1da70bd6d4c33585f67af542dec4d850161
Time: 2020-07-20
Author: eirini.koutsaniti@cscs.ch
File Name: reframe/frontend/executors/policies.py
Class Name: AsynchronousExecutionPolicy
Method Name: on_task_setup


Project Name: keras-team/keras
Commit Name: b6ca3ef051107f544b97cdb315eaf1b8e12665d9
Time: 2016-06-19
Author: lucas.moura128@gmail.com
File Name: keras/callbacks.py
Class Name: History
Method Name: on_epoch_end