000a67364dd8c8aeee0079dd87cc47d9298262bd,parlai/mturk/core/agents.py,MTurkAgent,wait_for_hit_completion,#MTurkAgent#Any#,391

Before Change


                    self.worker_id, self.assignment_id, self.conversation_id
                )
            )
            time.sleep(shared_utils.THREAD_MTURK_POLLING_SLEEP)
        shared_utils.print_and_log(
            logging.INFO,
            "Conversation ID: {}, Agent ID: {} - HIT is done.".format(
                self.conversation_id, self.id

After Change


                    self.worker_id, self.assignment_id, self.conversation_id
                )
            )
            i = 0
            while not self.hit_is_complete and i < iters:
                time.sleep(shared_utils.THREAD_SHORT_SLEEP)
                i += 1

        shared_utils.print_and_log(
            logging.INFO,
            "Conversation ID: {}, Agent ID: {} - HIT is done.".format(
                self.conversation_id, self.id
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 000a67364dd8c8aeee0079dd87cc47d9298262bd
Time: 2017-10-02
Author: jju@fb.com
File Name: parlai/mturk/core/agents.py
Class Name: MTurkAgent
Method Name: wait_for_hit_completion


Project Name: home-assistant/home-assistant
Commit Name: 2075de3d81bc7f0a8e690f5d4d463bb02e00750d
Time: 2015-08-04
Author: paulus@paulusschoutsen.nl
File Name: tests/test_init.py
Class Name: TestHomeAssistant
Method Name: test_block_till_stoped


Project Name: polyaxon/polyaxon
Commit Name: cbd6dc824d52df1630fc0419830a2fc38d8c210f
Time: 2018-12-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/sidecar/sidecar/__main__.py
Class Name:
Method Name: