e4378ddc530abc356c8ca4e3e6a317562b104c96,gb/graph.py,Graph,add_rel_from_parser,#Graph#Any#,71
Before Change
targ.create(r["targ"], self, r["targ_type"])
// create new link between nodes
Link().create(orig, targ, r["rel"], r["rel_raw"], r["sentence"])
return orig.id
After Change
// create new link between nodes
self.add_link(orig, targ, r["rel"], r["rel_raw"], r["sentence"])
return orig.d["_id"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: graphbrain/graphbrain
Commit Name: e4378ddc530abc356c8ca4e3e6a317562b104c96
Time: 2011-10-26
Author: telmo@telmomenezes.net
File Name: gb/graph.py
Class Name: Graph
Method Name: add_rel_from_parser
Project Name: graphbrain/graphbrain
Commit Name: e4378ddc530abc356c8ca4e3e6a317562b104c96
Time: 2011-10-26
Author: telmo@telmomenezes.net
File Name: gb/node.py
Class Name: Node
Method Name: _internal_links
Project Name: chainer/chainer
Commit Name: ee9fe5376855bc334bfc5fff9d3de53bb1743cf1
Time: 2020-03-08
Author: ecastill@preferred.jp
File Name: tests/chainer_tests/training_tests/updaters_tests/snippets/cuda_init.py
Class Name:
Method Name: test