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
        dimensions = []
        for option in options:
            key = list(option.keys())[0]
            // Make configuration case insensitive
            dimension_cls = key.title()
            values = {k.lower(): v for k, v in option[key].items()}
            if dimension_cls in dimension_classes:

After Change


        // Extract space options for configuration file
        if isinstance(config, dict):
            if namespace is None:
                options = next(iter(config.values()))
            else:
                options = config[namespace]
        elif isinstance(config, list):
            options = config
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: GoogleCloudPlatform/python-docs-samples
Commit Name: 298bbc1b8623a34687bb3aeb183484a4423f5f13
Time: 2020-04-30
Author: billyjacobson@users.noreply.github.com
File Name: bigtable/metricscaler/metricscaler.py
Class Name:
Method Name: get_cpu_load


Project Name: uber/ludwig
Commit Name: 80ea6e99dfe6342cbb419e979b3f6ec5394825ca
Time: 2020-08-15
Author: piero@uber.com
File Name: ludwig/models/trainer.py
Class Name: Trainer
Method Name: train