3f6eeb9f152b324975c6b77eade8fddfa699dfa5,snips_nlu/builtin_entities.py,,,#,123
Before Change
for kind in kinds)
_ENTITY_TO_PARSED_DIM_KIND = dict()
for entity in RUSTLING_ENTITIES:
parsed_dim_kind_name = ""
for i, char in enumerate(entity.rustling_dim_kind):
lowered = char.lower()
if lowered != char and i != 0:
parsed_dim_kind_name += "-"
parsed_dim_kind_name += lowered
_ENTITY_TO_PARSED_DIM_KIND[entity] = parsed_dim_kind_name
_PARSED_DIM_KIND_TO_ENTITY = {
v: k
for k, v in _ENTITY_TO_PARSED_DIM_KIND.iteritems()
}
After Change
kind for kinds in _RUSTLING_SUPPORTED_BUILTINS_BY_LANGUAGE.values()
for kind in kinds)
_DIM_KIND_TO_ENTITY = {e.rustling_dim_kind: e for e in RUSTLING_ENTITIES}
def scope_to_dim_kinds(scope):
return [entity.rustling_dim_kind for entity in scope]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: snipsco/snips-nlu
Commit Name: 3f6eeb9f152b324975c6b77eade8fddfa699dfa5
Time: 2017-06-01
Author: clement.doumouro@snips.ai
File Name: snips_nlu/builtin_entities.py
Class Name:
Method Name:
Project Name: googledatalab/pydatalab
Commit Name: 5b48f9a9c097d26d395873044ceaa1a0b886682a
Time: 2017-06-14
Author: brandondutra@google.com
File Name: solutionbox/code_free_ml/mltoolbox/code_free_ml/analyze.py
Class Name:
Method Name: run_local_analysis
Project Name: googledatalab/pydatalab
Commit Name: 5b48f9a9c097d26d395873044ceaa1a0b886682a
Time: 2017-06-14
Author: brandondutra@google.com
File Name: solutionbox/code_free_ml/mltoolbox/code_free_ml/analyze.py
Class Name:
Method Name: run_cloud_analysis