824a732fbe9dce332a69a67b613dc82169dbb50d,snips_nlu/intent_parser/regex_intent_parser.py,RegexIntentParser,from_dict,#Any#Any#,296
Before Change
patterns = obj_dict["patterns"]
group_names_to_slot_names = obj_dict["group_names_to_slot_names"]
slot_names_to_entities = obj_dict["slot_names_to_entities"]
return cls(language, patterns, group_names_to_slot_names,
slot_names_to_entities)
def __eq__(self, other):
if not isinstance(other, RegexIntentParser):
return False
After Change
@classmethod
def from_dict(cls, obj_dict):
config = RegexIntentParserConfig.from_dict(obj_dict["config"])
parser = cls(config=config)
language = None
if obj_dict["language_code"] is not None:
language = Language.from_iso_code(obj_dict["language_code"])
parser.patterns = obj_dict["patterns"]
parser.language = language
parser.group_names_to_slot_names = obj_dict[
"group_names_to_slot_names"]
parser.slot_names_to_entities = obj_dict["slot_names_to_entities"]
return parser
def __eq__(self, other):
if not isinstance(other, RegexIntentParser):
return False
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: snipsco/snips-nlu
Commit Name: 824a732fbe9dce332a69a67b613dc82169dbb50d
Time: 2018-01-18
Author: adrien.ball@snips.net
File Name: snips_nlu/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: from_dict
Project Name: nilmtk/nilmtk
Commit Name: ad8b2134134404d909324f35381e51908a1d3c10
Time: 2014-11-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/timeframe.py
Class Name:
Method Name: timeframe_from_dict
Project Name: tensorflow/datasets
Commit Name: 1ded88e8b8ff179b85a11d62745be66b4a4ef24f
Time: 2020-11-12
Author: no-reply@google.com
File Name: tensorflow_datasets/core/utils/benchmark.py
Class Name:
Method Name: benchmark
Project Name: pantsbuild/pants
Commit Name: dd6afb2e51df558f103ba8b3e11a3871b2015962
Time: 2020-07-15
Author: benjyw@gmail.com
File Name: src/python/pants/backend/project_info/source_file_validator.py
Class Name: SourceFileValidation
Method Name: get_multi_matcher
Project Name: polyaxon/polyaxon
Commit Name: d39319741ae8c51aa8453b11af152c7ce658c35d
Time: 2018-11-25
Author: mouradmourafiq@gmail.com
File Name: polyaxon/hpsearch/schemas/__init__.py
Class Name:
Method Name: get_iteration_config