448bd4a78699766aea66231ba442b8b5826d2a05,labelme/widgets/label_dialog.py,LabelDialog,resetFlags,#LabelDialog#Any#,151
Before Change
def resetFlags(self, label=None):
flags = {k: False for k in self._flags.get("__all__", [])}
if label:
flags.update({k: False for k in self._flags.get(label, []) })
self.setFlags(flags)
def setFlags(self, flags):
After Change
def resetFlags(self, label=""):
flags = {}
for pattern, keys in self._flags.items():
if re.match(pattern, label):
for key in keys:
flags[key] = False
self.setFlags(flags)
def setFlags(self, flags):
self.deleteFlags()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: wkentaro/labelme
Commit Name: 448bd4a78699766aea66231ba442b8b5826d2a05
Time: 2019-05-15
Author: www.kentaro.wada@gmail.com
File Name: labelme/widgets/label_dialog.py
Class Name: LabelDialog
Method Name: resetFlags
Project Name: wkentaro/labelme
Commit Name: 448bd4a78699766aea66231ba442b8b5826d2a05
Time: 2019-05-15
Author: www.kentaro.wada@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: loadLabels
Project Name: wkentaro/labelme
Commit Name: 448bd4a78699766aea66231ba442b8b5826d2a05
Time: 2019-05-15
Author: www.kentaro.wada@gmail.com
File Name: labelme/widgets/label_dialog.py
Class Name: LabelDialog
Method Name: updateFlags