1ba2dd41729cb7254e9e40b036e3d516a05d7a28,tests/test_torch_agent.py,TestTorchAgent,test_batch_act,#TestTorchAgent#,718

Before Change


            {"text": "Hello there.",
             "labels": ["General Kenobi."]},
        ]
        obs_labs = [agent.vectorize(o) for o in obs_labs]
        reply = agent.batch_act(obs_labs)
        for i in range(len(obs_labs)):
            self.assertEqual(reply[i]["text"], f"Training {i}!")

After Change


            agent.history.update_history(o)
            obs_elabs_vecs.append(agent.vectorize(o, agent.history))
        reply = agent.batch_act(obs_elabs_vecs)
        import pdb; pdb.set_trace()
        for i in range(len(obs_elabs_vecs)):
            self.assertEqual(reply[i]["text"], f"Evaluating {i}!")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 1ba2dd41729cb7254e9e40b036e3d516a05d7a28
Time: 2019-02-13
Author: edinan@fb.com
File Name: tests/test_torch_agent.py
Class Name: TestTorchAgent
Method Name: test_batch_act


Project Name: fperazzi/proSR
Commit Name: 29d619d6a8cd3bd01bd16bbf037c2a3151e26ce4
Time: 2018-08-28
Author: yifanwang2010@gmail.com
File Name: train.py
Class Name:
Method Name: main


Project Name: neuroailab/tnn
Commit Name: 0d14553fa39718c788b2c3064e24ec10cc218098
Time: 2016-10-07
Author: qbilius@gmail.com
File Name: model.py
Class Name:
Method Name: _construct_graph


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9a4540b682074d3f84a2fc232cf2a832dc96bce7
Time: 2018-01-19
Author: wang.alex.c@gmail.com
File Name: src/aggregate_results.py
Class Name:
Method Name: latexify