448bd4a78699766aea66231ba442b8b5826d2a05,labelme/app.py,MainWindow,loadLabels,#MainWindow#Any#,940

Before Change



            default_flags = {}
            if self._config["label_flags"]:
                for l in ["__all__", label]:
                    for k in self._config["label_flags"].get(l, []):
                        default_flags[k] = False
            shape.flags = default_flags
            shape.flags.update(flags)

            s.append(shape)

After Change


            default_flags = {}
            if self._config["label_flags"]:
                for pattern, keys in self._config["label_flags"].items():
                    if re.match(pattern, label):
                        for key in keys:
                            default_flags[key] = False
            shape.flags = default_flags
            shape.flags.update(flags)

            s.append(shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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: craffel/mir_eval
Commit Name: 98ae38f57c7a7a369604b4bb78d9879c4a990a24
Time: 2017-03-17
Author: bmcfee@users.noreply.github.com
File Name: mir_eval/chord.py
Class Name:
Method Name: validate_chord_label


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