44be9703a0744caf78b8b61319be0db281e91d6a,skopt/space/space.py,Space,from_yaml,#Any#Any#Any#,556

Before Change


        dimension_classes = ["Real", "Integer", "Categorical"]

        // Extract space options for configuration file
        options_name = namespace or list(cfg.keys())[0]
        options = cfg if isinstance(cfg, list) else cfg[options_name]

        // Populate list with Dimension objects

After Change


        elif isinstance(config, list):
            options = config
        else:
            raise TypeError("YaML does not specify a list or dictionary")

        // Populate list with Dimension objects
        dimensions = []
        for option in options:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 44be9703a0744caf78b8b61319be0db281e91d6a
Time: 2018-04-06
Author: scott_graham@bose.com
File Name: skopt/space/space.py
Class Name: Space
Method Name: from_yaml


Project Name: keras-team/keras
Commit Name: 00135a70697dc9b4611971e5833e2d84501c3da7
Time: 2021-03-23
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: evaluate


Project Name: pymc-devs/pymc3
Commit Name: 1c30a6f487afaeef73464a98320e35961b11873f
Time: 2019-12-09
Author: aloctavodia@gmail.com
File Name: pymc3/variational/inference.py
Class Name:
Method Name: fit


Project Name: pytorch/ignite
Commit Name: 62f82c45fff316da25968228502f2960b4d14b95
Time: 2020-12-22
Author: uribgp@gmail.com
File Name: ignite/metrics/metric.py
Class Name: Metric
Method Name: iteration_completed