7ad8d5c5cf89269d191117c4dd41ce205bc66c8c,labelme/widgets/label_dialog.py,LabelDialog,resetFlags,#LabelDialog#Any#,149

Before Change



        // Add all flags
        for label in ["__all__", text]:
            if label in self.flags:
                for key in self.flags[label]:
                    item = QtWidgets.QCheckBox(key, self)
                    self.label_flags.addWidget(item)
                    item.show()

    def setFlags(self, flags, text=""):
        self.deleteFlags()

        // Add flags not set

After Change


            item.setParent(None)

    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):
        self.deleteFlags()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: wkentaro/labelme
Commit Name: 7ad8d5c5cf89269d191117c4dd41ce205bc66c8c
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: google/tangent
Commit Name: 31269a5197170026985db35c4703cc6e9c805ebf
Time: 2017-11-10
Author: bart.vanmerrienboer@gmail.com
File Name: tangent/reverse_ad.py
Class Name: ReverseAD
Method Name: visit_Call


Project Name: google/tangent
Commit Name: 31269a5197170026985db35c4703cc6e9c805ebf
Time: 2017-11-10
Author: bart.vanmerrienboer@gmail.com
File Name: tangent/forward_ad.py
Class Name: ForwardAD
Method Name: visit_Call