5064e583f4d372e3a4038df3123efe454d34fd7d,studio/rabbit_queue.py,RMQueue,enqueue,#RMQueue#Any#Any#,353

Before Change


            with self._msg_tracking_lock:
                if message_number not in self._deliveries:
                    tries = 0
                    break

            tries -= 1
            if tries <= 0:
                break

After Change


                else:
                    tries -= 1

        raise Exception("studioml message was never acknowledged to {} " +
                        "after waiting {} seconds"
                        .format(self._url, abs(tries - 5)))

    def dequeue(self, acknowledge=True, timeout=0):
        msg = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: studioml/studio
Commit Name: 5064e583f4d372e3a4038df3123efe454d34fd7d
Time: 2018-06-29
Author: karlmutch@users.noreply.github.com
File Name: studio/rabbit_queue.py
Class Name: RMQueue
Method Name: enqueue


Project Name: facebookresearch/Detectron
Commit Name: df0e4972de432841fa0bf3a99ef86ac5b99471b7
Time: 2018-10-17
Author: ilijar@fb.com
File Name: detectron/utils/env.py
Class Name:
Method Name: get_detectron_ops_lib


Project Name: elfi-dev/elfi
Commit Name: b19e3080dba989e2e7e08c74877f8396790f83d2
Time: 2016-12-05
Author: jarno.lintusaari@aalto.fi
File Name: elfi/graph.py
Class Name: Node
Method Name: remove_parent