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 = []

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: 4

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: deepgram/kur
Commit Name: 73e7b24a65b7c05a09dcf404776331db420f673a
Time: 2017-03-23
Author: noajshu@users.noreply.github.com
File Name: kur/supplier/jsonl_supplier.py
Class Name: JSONLSupplier
Method Name: get_sources


Project Name: pyinstaller/pyinstaller
Commit Name: d9e7a5b788d7096f261b7e3dab5dbc1e03cc14a0
Time: 2020-12-23
Author: rock@gimp.org
File Name: PyInstaller/utils/win32/winmanifest.py
Class Name:
Method Name: ManifestFromResFile


Project Name: OpenNMT/OpenNMT-py
Commit Name: 594f66417cf0a2abaead1ce6e5f15a2100441682
Time: 2017-09-21
Author: srush@seas.harvard.edu
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: __init__