ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1,deeppavlov/core/common/params_search.py,ParamsSearch,find_model_path,#ParamsSearch#Any#Any#Any#,81

Before Change


        if type(config_pointer) is dict and key_model in config_pointer.keys():
            yield path
        else:
            if type(config_pointer) is dict:
                for key in list(config_pointer.keys()):
                    for path_ in self.find_model_path(config_pointer[key], key_model, path + [key]):
                        yield path_
            elif type(config_pointer) is list:
                for i in range(len(config_pointer)):
                    for path_ in self.find_model_path(config_pointer[i], key_model, path + [i]):
                        yield path_

After Change


        Returns:
            path in config -- list of keys (strings and integers)
        
        config_pointer = config
        if isinstance(config_pointer, dict) and key_model in config_pointer.keys():
            yield path
        else:
            if isinstance(config_pointer, dict):
                for key in list(config_pointer.keys()):
                    for path_ in self.find_model_path(config_pointer[key], key_model, path + [key]):
                        yield path_
            elif isinstance(config_pointer, list):
                for i in range(len(config_pointer)):
                    for path_ in self.find_model_path(config_pointer[i], key_model, path + [i]):
                        yield path_
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 10

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/params_search.py
Class Name: ParamsSearch
Method Name: find_model_path


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/params_search.py
Class Name: ParamsSearch
Method Name: find_model_path


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/models/go_bot/tracker.py
Class Name: FeaturizedTracker
Method Name: update_state


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/params_search.py
Class Name: ParamsSearch
Method Name: get_value_from_config


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/models/go_bot/tracker.py
Class Name: DefaultTracker
Method Name: update_state


Project Name: deepmipt/DeepPavlov
Commit Name: ecb4dacbf793ee4276dd7ad4625bf2cb53feb9a1
Time: 2018-11-17
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/params_search.py
Class Name: ParamsSearch
Method Name: insert_value_or_dict_into_config


Project Name: keras-team/keras
Commit Name: f430de10fba7f02ff821a094b29db9a9d407eb4b
Time: 2017-06-21
Author: me@taehoonlee.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: _normalize_axis