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