715016dd2f3079c9e9876fbed75d1489e44ed066,catalyst/dl/experiments/experiment.py,ConfigExperiment,_prepare_stages_config,#ConfigExperiment#Any#,209

Before Change


    def _prepare_stages_config(self, stages_config):
        stages_defaults = {}
        for key in self.STAGE_KEYWORDS:
            stages_defaults[key] = stages_config.pop(key, {})
        for stage in stages_config:
            for key in self.STAGE_KEYWORDS:
                stages_config[stage][key] = merge_dicts(
                    stages_config[stage].get(key, {}).copy(),

After Change


        for key in self.STAGE_KEYWORDS:
            stages_defaults[key] = stages_config_in.get(key, {}).copy()
        for stage in stages_config_in:
            if stage in self.STAGE_KEYWORDS:
                continue
            stages_config_out[stage] = {}
            for key in self.STAGE_KEYWORDS:
                stages_config_out[stage][key] = merge_dicts(
                    stages_config_in[stage].get(key, {}).copy(),
                    stages_defaults.get(key, {}).copy()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Scitator/catalyst
Commit Name: 715016dd2f3079c9e9876fbed75d1489e44ed066
Time: 2019-03-27
Author: scitator@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: _prepare_stages_config


Project Name: stellargraph/stellargraph
Commit Name: 21e91a0334e0b164629a86442fc7ec7131625e22
Time: 2019-09-08
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: stellargraph/data/explorer.py
Class Name: SampledBreadthFirstWalk
Method Name: run


Project Name: arogozhnikov/einops
Commit Name: 29389772364178f76ccf565917870639cad283bb
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: get_axes_names