780e9097e3394c0b1b6b3c7f2864fa4250d8fa96,parlai/mturk/tasks/multi_agent_dialog/run.py,,main,#,23

Before Change


    mturk_manager.create_hits(opt=opt)
    results = Parallel(n_jobs=opt["num_hits"] * opt["num_assignments"], backend="threading") \
                (delayed(run_hit)(hit_index, assignment_index, opt, mturk_manager) \
                    for hit_index, assignment_index in product(range(1, opt["num_hits"]+1), range(1, opt["num_assignments"]+1)))
    mturk_manager.shutdown()

if __name__ == "__main__":

After Change


    mturk_agent_2_id = "mturk_agent_2"
    human_agent_1_id = "human_1"
    mturk_agent_ids = [mturk_agent_1_id, mturk_agent_2_id]
    mturk_manager = MTurkManager(
        opt=opt,
        mturk_agent_ids = mturk_agent_ids
    )
    mturk_manager.setup_server()

    try:
        mturk_manager.start_new_run()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 780e9097e3394c0b1b6b3c7f2864fa4250d8fa96
Time: 2017-09-05
Author: Jackurbs@gmail.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: 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