cd7fc53a118063d64dfb1b659cfb6fe4bfe9feda,gluoncv/model_zoo/ssd/ssd.py,SSD,reset_class,#SSD#Any#Any#,226

Before Change


                        except ValueError:
                            raise ValueError(
                                "{} not found in new class names {}".format(k, self.classes))
                        reuse_weights.pop(k)
                        reuse_weights[new_idx] = v
            else:
                new_map = {}
                for x in reuse_weights:

After Change


                            raise ValueError(
                                "{} not found in old class names {}".format(v, old_classes))
                    else:
                        if v < 0 or v >= len(old_classes):
                            raise ValueError(
                                "Index {} out of bounds for old class names".format(v))
                        new_vals.append(v)
                    if isinstance(k, str):
                        try:
                            new_keys.append(self.classes.index(k))  // raise ValueError if not found
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/gluon-cv
Commit Name: cd7fc53a118063d64dfb1b659cfb6fe4bfe9feda
Time: 2019-08-23
Author: 33575288+douglas125@users.noreply.github.com
File Name: gluoncv/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: reset_class


Project Name: dmlc/gluon-cv
Commit Name: cd7fc53a118063d64dfb1b659cfb6fe4bfe9feda
Time: 2019-08-23
Author: 33575288+douglas125@users.noreply.github.com
File Name: gluoncv/model_zoo/yolo/yolo3.py
Class Name: YOLOV3
Method Name: reset_class


Project Name: pymc-devs/pymc3
Commit Name: e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e
Time: 2019-02-16
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/distributions/mixture.py
Class Name: Mixture
Method Name: __init__