32e01f8e54a7d9abbf1194f1f51d6d038de05ae7,conceptnet5/nodes.py,,find_concept,#Any#Any#Any#,15
Before Change
def find_concept(graph, language, name):
index_key = "/" + language + "/" + name
result = graph.nodes.indexes["concepts"].query("name",index_key)[:]
if len(result): return result[0]
else: return None
def get_concept_with_id(graph, id):
_, lang, name = id.split("/")
return get_concept(graph, lang, name)
After Change
def find_concept(graph, language, name):
index_key = "/concept/" + language + "/" + name
return lookup_id(graph, index_key)
def get_concept_with_id(graph, id):
_, type, lang, name = id.split("/")
assert type == "concept"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: commonsense/conceptnet5
Commit Name: 32e01f8e54a7d9abbf1194f1f51d6d038de05ae7
Time: 2011-09-27
Author: rspeer@mit.edu
File Name: conceptnet5/nodes.py
Class Name:
Method Name: find_concept
Project Name: commonsense/conceptnet5
Commit Name: 32e01f8e54a7d9abbf1194f1f51d6d038de05ae7
Time: 2011-09-27
Author: rspeer@mit.edu
File Name: conceptnet5/nodes.py
Class Name:
Method Name: find_relation
Project Name: mlflow/mlflow
Commit Name: df7cc84746f88cfe6aae3f086ba20b7e19f7c998
Time: 2020-07-20
Author: 52183359+ankitmathur-db@users.noreply.github.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: _get_sql_model_version