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

Before Change


                nnode._neighbors(nodes, depth + 1)

            self.execute("SELECT orig FROM link WHERE targ=%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


        return self

    def _neighbors(self, nodes, depth=0):
        if str(self.d["_id"]) not in nodes.keys():
            nodes[str(self.d["_id"])] = self

        if (depth < 2):
Italian Trulli
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/node.py
Class Name: Node
Method Name: _neighbors


Project Name: ANSSI-FR/SecuML
Commit Name: f37a2477721902d17410e75dfcde5df3b49db9ca
Time: 2017-08-01
Author: anael.bonneton@ssi.gouv.fr
File Name: code/SecuML/Data/idents_tools.py
Class Name:
Method Name: getAllIdents


Project Name: biolab/orange3
Commit Name: f66d5ef4c6fd35b1a7d099e0c93cbdfdbdbc7902
Time: 2014-06-18
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/feature/discretization.py
Class Name: EqualFreq
Method Name: __call__