52e013aed0b4da5db33b0c64d2f798d86236f2c0,imgaug/imgaug.py,BatchLoader,_load_batches,#BatchLoader#Any#Any#Any#Any#Any#,1761

Before Change


            np.random.seed(seedval)
            seed(seedval)

        for batch in load_batch_func():
            do_assert(isinstance(batch, Batch), "Expected batch returned by lambda function to be of class imgaug.Batch, got %s." % (type(batch),))
            queue.put(pickle.dumps(batch, protocol=-1))
            if join_signal.is_set():
                break

        finished_signal.set()

    def terminate(self):
        

After Change


            np.random.seed(seedval)
            seed(seedval)

        try:
            for batch in load_batch_func():
                do_assert(isinstance(batch, Batch), "Expected batch returned by lambda function to be of class imgaug.Batch, got %s." % (type(batch),))
                queue.put(pickle.dumps(batch, protocol=-1))
                if join_signal.is_set():
                    break
        except Exception as exc:
            traceback.print_exc()
        finally:
            finished_signal.set()

    def terminate(self):
        
        Stop all workers.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: aleju/imgaug
Commit Name: 52e013aed0b4da5db33b0c64d2f798d86236f2c0
Time: 2018-06-03
Author: kontakt@ajung.name
File Name: imgaug/imgaug.py
Class Name: BatchLoader
Method Name: _load_batches


Project Name: ilastik/ilastik
Commit Name: e25820e17e9aad85d4fadade73e94c68b67f9b7a
Time: 2012-07-30
Author: bergs@janelia.hhmi.org
File Name: ilastik/shell/projectManager.py
Class Name: ProjectManager
Method Name: loadProject


Project Name: ilastik/ilastik
Commit Name: e25820e17e9aad85d4fadade73e94c68b67f9b7a
Time: 2012-07-30
Author: bergs@janelia.hhmi.org
File Name: ilastik/shell/projectManager.py
Class Name: ProjectManager
Method Name: saveProject