00286c5f3e9ef7ea63797b692430cad9fe79babf,parlai/agents/test_agents/test_agents.py,MockTorchAgent,train_step,#MockTorchAgent#Any#,113

Before Change


        
        Return confirmation of training.
        
        return Output(["Training {}!".format(i) for i in range(len(batch.text_vec))])

    def eval_step(self, batch):
        
        Return confirmation of evaluation.

After Change


        
        Return confirmation of training.
        
        return Output([f"Training {i}!" for i in range(batch.batchsize)])

    def eval_step(self, batch):
        
        Return confirmation of evaluation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 00286c5f3e9ef7ea63797b692430cad9fe79babf
Time: 2021-03-15
Author: roller@fb.com
File Name: parlai/agents/test_agents/test_agents.py
Class Name: MockTorchAgent
Method Name: train_step


Project Name: facebookresearch/ParlAI
Commit Name: 00286c5f3e9ef7ea63797b692430cad9fe79babf
Time: 2021-03-15
Author: roller@fb.com
File Name: parlai/agents/test_agents/test_agents.py
Class Name: MockTorchAgent
Method Name: eval_step


Project Name: facebookresearch/ParlAI
Commit Name: 94856bad6f88a943cda1dbb152dd579349f406ff
Time: 2019-06-12
Author: roller@fb.com
File Name: tests/test_torch_agent.py
Class Name: TorchAgent
Method Name: train_step


Project Name: facebookresearch/ParlAI
Commit Name: 94856bad6f88a943cda1dbb152dd579349f406ff
Time: 2019-06-12
Author: roller@fb.com
File Name: tests/test_torch_agent.py
Class Name: TorchAgent
Method Name: eval_step