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

Before Change


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

After Change


        for o in obs_elabs:
            agent.history.clear()
            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)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: kermitt2/delft
Commit Name: 6618a6999ac7242eb4a60059427b3c990f1eabc3
Time: 2019-08-16
Author: patrice.lopez@science-miner.com
File Name: delft/textClassification/models.py
Class Name: BERT_classifier
Method Name: eval


Project Name: kermitt2/delft
Commit Name: ce9118e7e738ef955a436c017faeba8873bd97ab
Time: 2019-12-04
Author: patrice.lopez@science-miner.com
File Name: delft/textClassification/models.py
Class Name: BERT_classifier
Method Name: eval