41c79a28adb945dbb91f7bd3a8bf65703cc81bac,gui/mozregui/log_report.py,LogView,on_log_filter,#LogView#,79
Before Change
while current_block.isValid() and current_block.userData():
block_log_lvl = current_block.userData().log_lvl
if block_log_lvl <= self.log_lvl:
current_block.setVisible(True)
else:
current_block.setVisible(False)
current_block = next(current_block)
self.viewport().update()
After Change
self.log_lvl = log_levels[log_lvl_name]
it = self.document().begin()
while it != self.document().end():
userdata = it.userData()
if userdata:
block_log_lvl = userdata.log_lvl
it.setVisible(block_log_lvl <= self.log_lvl)
it = it.next()
self.viewport().update()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mozilla/mozregression
Commit Name: 41c79a28adb945dbb91f7bd3a8bf65703cc81bac
Time: 2020-04-20
Author: wlachance@mozilla.com
File Name: gui/mozregui/log_report.py
Class Name: LogView
Method Name: on_log_filter
Project Name: biolab/orange3
Commit Name: 0a2c179089eddc6744210cfde4c33c5c85f57d2b
Time: 2018-07-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/document/schemeedit.py
Class Name: SchemeEditWidget
Method Name: __activateWindowGroup
Project Name: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__