e52ff2b14f57d144c3a54677b9fc9d38fa53236b,parlai/mturk/tasks/multi_agent_dialog/run.py,,main,#,25

Before Change


    opt.update(task_config)
    opt["mturk_agent_ids"] = [opt["mturk_agent_1_id"], opt["mturk_agent_2_id"]]
    opt["all_agent_ids"] = [opt["human_agent_1_id"], opt["human_agent_2_id"]] + opt["mturk_agent_ids"]
    opt["run_id"] = str(int(time.time()))

    def run_hit(i, opt):
        opt["conversation_id"] = str(i)

After Change


            world.parley()
        world.shutdown()

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

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

Frequency: 3

Non-data size: 5

Instances


Project Name: facebookresearch/ParlAI
Commit Name: e52ff2b14f57d144c3a54677b9fc9d38fa53236b
Time: 2017-06-17
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: e52ff2b14f57d144c3a54677b9fc9d38fa53236b
Time: 2017-06-17
Author: willfeng@fb.com
File Name: parlai/mturk/tasks/model_evaluator/run.py
Class Name:
Method Name: main


Project Name: home-assistant/home-assistant
Commit Name: 98364248d4cada5f832a8e735f5e286889c53ade
Time: 2016-08-23
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/graphite.py
Class Name:
Method Name: setup