e4378ddc530abc356c8ca4e3e6a317562b104c96,gb/node.py,Node,_neighbors,#Node#Any#Any#,49

Before Change



        if (depth < 2):
            self.execute("SELECT targ FROM link WHERE orig=%s", (self.id,))
            rows = self.cur.fetchall()
            for row in rows:
                nnode = Node().get_by_id(row[0])
                nnode.parent = self.id
                nnode._neighbors(nodes, depth + 1)

After Change



            for n in self.d["origs"]:
                nnode = Node().get_by_id(n)
                nnode.parent = self.d["_id"]
                nnode._neighbors(nodes, depth + 1)

    def _internal_links(self, nodes):
        ilinks = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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: _neighbors


Project Name: allenai/allennlp
Commit Name: 0459261c388bec72937e0268c4316b85279d0bac
Time: 2018-09-24
Author: kl2806@columbia.edu
File Name: allennlp/semparse/contexts/sql_table_context.py
Class Name: SqlTableContext
Method Name: initialize_grammar_str


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