0540ba000c084f43b51f46d0b61be79df6e82570,deeppavlov/core/common/params.py,,from_params,#Any#Any#,9
Before Change
def from_params(cls: Type, params: Dict, **kwargs) -> Type["T"]:
config_params = {}
for sp in params.keys():
try:
if sp != "name":
config_params[sp] = params[sp]
After Change
def from_params(cls: Type, params: Dict, **kwargs) -> Type["T"]:
config_params = {k: v for k, v in params.items() if k != "name"}
for param_name, subcl_params in config_params.items():
if isinstance(subcl_params, dict):
try:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 0540ba000c084f43b51f46d0b61be79df6e82570
Time: 2017-12-15
Author: ol.gure@gmail.com
File Name: deeppavlov/core/common/params.py
Class Name:
Method Name: from_params
Project Name: NifTK/NiftyNet
Commit Name: 2c526df0cf1fe56c579b77816ef9d783169ded39
Time: 2019-06-05
Author: ucabtmv@ucl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: layer_op
Project Name: hanxiao/bert-as-service
Commit Name: 1c5a778ff90c6b51196d3ba5ac9d6f80cdc8e479
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertServer
Method Name: __init__
Project Name: deepmipt/DeepPavlov
Commit Name: 9e4d759bc80f48fde5ebd34d011895d51528e424
Time: 2017-12-18
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/core/common/params.py
Class Name:
Method Name: from_params