c3640ac78a06b512e7838a042a8829641caa3877,parlai/mturk/tasks/multi_agent_dialog/run.py,,main,#,15

Before Change


    human_agent_2 = LocalHumanAgent(opt=None)
    human_agent_2.id = human_agent_2_id

    world = MultiAgentDialogWorld(opt=opt, agents=[human_agent_1, human_agent_2, mturk_agent_1, mturk_agent_2])

    while not world.episode_done():
        world.parley()

    world.shutdown()

if __name__ == "__main__":
    main()

After Change


        world.shutdown()

    MTurkAgent.init_aws(opt)
    results = Parallel(n_jobs=opt["num_hits"], backend="threading")(delayed(run_hit)(i, copy.deepcopy(opt)) for i in range(1, opt["num_hits"]+1))
    MTurkAgent.review_hits(opt=opt)

if __name__ == "__main__":
    main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: facebookresearch/ParlAI
Commit Name: c3640ac78a06b512e7838a042a8829641caa3877
Time: 2017-06-09
Author: willfeng@fb.com
File Name: parlai/mturk/tasks/multi_agent_dialog/run.py
Class Name:
Method Name: main


Project Name: facebookresearch/ParlAI
Commit Name: c3640ac78a06b512e7838a042a8829641caa3877
Time: 2017-06-09
Author: willfeng@fb.com
File Name: parlai/mturk/tasks/model_evaluator/run.py
Class Name:
Method Name: main


Project Name: hanxiao/bert-as-service
Commit Name: f0d581c071f14682c46f7917e11592c189382f53
Time: 2018-12-17
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertServer
Method Name: _run