4efb423f447f5ba0957e1e27272c5e674e4a8461,studio/local_queue.py,LocalQueue,has_next,#LocalQueue#,22
Before Change
self.logger.setLevel(verbose)
def has_next(self):
return any(glob.glob(self.path + "/*"))
def clean(self, timeout=0):
while self.has_next():
After Change
def has_next(self):
is_active, files = self._get_queue_status()
return is_active and len(files) > 0
def clean(self, timeout=0):
while self.has_next():
self.dequeue()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: studioml/studio
Commit Name: 4efb423f447f5ba0957e1e27272c5e674e4a8461
Time: 2020-04-06
Author: andrei.denissov@cognizant.com
File Name: studio/local_queue.py
Class Name: LocalQueue
Method Name: has_next
Project Name: kubeflow/kubeflow
Commit Name: d5caf230ff50260c1a6565db35edeeddd5d407e6
Time: 2018-02-08
Author: mitake.hitoshi@gmail.com
File Name: build/boilerplate/boilerplate.py
Class Name:
Method Name: get_refs
Project Name: ilastik/ilastik
Commit Name: 71a7e5b084e11d10e03fe33c0fe9824ecbab9d3e
Time: 2014-07-10
Author: webmaster@burgerdev.de
File Name: ilastik/widgets/stackFileSelectionWidget.py
Class Name: StackFileSelectionWidget
Method Name: _chooseDirectory