46c595168cabd5ce99981748204c53de4ffe0261,src/gluonnlp/data/stream.py,_Prefetcher,run,#_Prefetcher#,212

Before Change


            try:
                data = next(stream_iter)
                self.data_queue.put(data)
            except StopIteration:
                self.data_queue.put(None)

    def __next__(self):

After Change


                    raise RuntimeError("Got unexpected control code {}".format(repr(c)))
            except queue.Empty:
                pass
            except RuntimeError as e:
                tb = traceback.format_exc()
                self._dataq.put(None)
                self._errorq.put((e, tb))

            try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 46c595168cabd5ce99981748204c53de4ffe0261
Time: 2018-11-19
Author: leonard@lausen.nl
File Name: src/gluonnlp/data/stream.py
Class Name: _Prefetcher
Method Name: run


Project Name: thenetcircle/dino
Commit Name: fa94e2385af20f4eb153c623a69b4219bd417695
Time: 2016-11-04
Author: oscar.eriks@gmail.com
File Name: dino/validation/request.py
Class Name: RequestValidator
Method Name: on_message


Project Name: tensorflow/minigo
Commit Name: 6f6b0b30a04d95a26b297c219454bcd51f4f793e
Time: 2018-07-15
Author: andrew.m.jackson@gmail.com
File Name: rl_loop.py
Class Name:
Method Name: train


Project Name: Featuretools/featuretools
Commit Name: 40c740c2adb5bdf5ba85232a2259301226d9c722
Time: 2020-03-12
Author: 12969559+jeff-hernandez@users.noreply.github.com
File Name: featuretools/__init__.py
Class Name:
Method Name: