c2ba19759b2a6955ff3ccade614a15f1a6d61b9c,labelme/main.py,,_main,#,25

Before Change


            with codecs.open(args.label_flags, "r", encoding="utf-8") as f:
                args.label_flags = [l.strip() for l in f if l.strip()]
        else:
            args.label_flags = [l for l in args.label_flags.split(",") if l]

    if hasattr(args, "labels"):
        if os.path.isfile(args.labels):
            with codecs.open(args.labels, "r", encoding="utf-8") as f:

After Change


    if hasattr(args, "labels"):
        if os.path.isfile(args.labels):
            with codecs.open(args.labels, "r", encoding="utf-8") as f:
                args.labels = [l.strip() for l in f if l.strip()]
        else:
            args.labels = [l for l in args.labels.split(",") if l]

    if hasattr(args, "label_flags"):
        if os.path.isfile(args.label_flags):
            with codecs.open(args.label_flags, "r", encoding="utf-8") as f:
                args.label_flags = yaml.load(f)
        else:
            args.label_flags = yaml.load(args.label_flags)

        // Add not overlapping labels from label flags
        if not hasattr(args, "labels"):
            args.labels = []
        for label in args.label_flags.keys():
            if label != "__all__" and label not in args.labels:
                args.labels.append(label)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: wkentaro/labelme
Commit Name: c2ba19759b2a6955ff3ccade614a15f1a6d61b9c
Time: 2019-05-15
Author: cmerchant@camgian.com
File Name: labelme/main.py
Class Name:
Method Name: _main


Project Name: keras-team/keras
Commit Name: cab77c8f23bf81eaa06aeeeb28a4da3b716f7bd7
Time: 2017-10-25
Author: julien.rebetez@gmail.com
File Name: keras/utils/layer_utils.py
Class Name:
Method Name: print_summary


Project Name: keras-team/keras
Commit Name: 466bb39aa113a09844d6677516497242e6a5f4fb
Time: 2017-04-05
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: run_internal_graph