32e10b42eeac0dc66beb57221d9fee265b6976b1,parlai/core/teachers.py,ChunkTeacher,_drain,#ChunkTeacher#Any#,2381

Before Change



    def _drain(self, q):
        with q.mutex:
            q.queue.clear()

    def reset(self):
        super().reset()
        if self.is_root_teacher:

After Change


        return msg

    def _drain(self, q):
        while not q.empty():
            try:
                q.get()
            except queue.Empty:
                return

    def reset(self):
        super().reset()
        if self.is_root_teacher:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 32e10b42eeac0dc66beb57221d9fee265b6976b1
Time: 2020-12-10
Author: edinan@fb.com
File Name: parlai/core/teachers.py
Class Name: ChunkTeacher
Method Name: _drain


Project Name: biolab/orange3
Commit Name: 99b7b421e845f55cbb0ee0330143f5bfdeb5cbe0
Time: 2017-02-17
Author: tankovesna@hotmail.com
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: load_data


Project Name: biolab/orange3
Commit Name: b0cae67239ac68b22a8b00ccb4ec33d5616c6158
Time: 2013-03-01
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/owboxplot.py
Class Name: OWBoxPlot
Method Name: layout_changed