ce3836b42f67fbf6f5bbde290cca8242a3a1572b,conceptnet5/nodes.py,,create_concept,#Any#Any#Any#,8
Before Change
new_concept = graph.node(type = "concept", language = language, name = name)
index_key = "/" + language + "/" + name
if not "concepts" in graph.nodes.indexes.keys(): graph.nodes.indexes.create("concepts")
graph.nodes.indexes["concepts"][index_key] = new_concept
return new_concept
def find_concept(graph, language, name):
After Change
new_concept = graph.node(type = "concept", language = language, name = name)
index_key = "/" + language + "/" + name
graph.nodes.indexes["concepts"].add("name",index_key,new_concept)
return new_concept
def find_concept(graph, language, name):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: commonsense/conceptnet5
Commit Name: ce3836b42f67fbf6f5bbde290cca8242a3a1572b
Time: 2011-09-21
Author: julianchaidez@Julian-Chaidezs-MacBook-Pro.local
File Name: conceptnet5/nodes.py
Class Name:
Method Name: create_concept
Project Name: commonsense/conceptnet5
Commit Name: ce3836b42f67fbf6f5bbde290cca8242a3a1572b
Time: 2011-09-21
Author: julianchaidez@Julian-Chaidezs-MacBook-Pro.local
File Name: conceptnet5/nodes.py
Class Name:
Method Name: create_relation
Project Name: samuelclay/NewsBlur
Commit Name: 6011e4f2dadf71c5c13f5e95a2649d1e5b7cbe11
Time: 2013-04-15
Author: samuel@ofbrooklyn.com
File Name: apps/push/views.py
Class Name:
Method Name: push_callback