Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/f/u/FuXi-1.4.1.production/lib/Rete/BetaNode.py   FuXi(Download)
            self.fedByBuiltin = LEFT_MEMORY
            assert not isinstance(rightNode,BuiltInAlphaNode),"Both %s and %s are builtins feeding a beta node!"%(leftNode,rightNode)
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind((self,RIGHT_MEMORY,leftNode.n3builtin))
        else:
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind(self,RIGHT_MEMORY)
            self.fedByBuiltin = RIGHT_MEMORY
            assert not isinstance(leftNode,BuiltInAlphaNode),"Both %s and %s are builtins feeding a beta node!"%(leftNode,rightNode)
            self.memories[LEFT_MEMORY]  = self.ReteMemoryKind(self,LEFT_MEMORY,rightNode.n3builtin)
        else:
            self.memories[LEFT_MEMORY]  = self.ReteMemoryKind(self,LEFT_MEMORY)        
                #candidate for left unlinking
                self.leftUnlinkedNodes.add(leftNode) 
                leftNode.unlinkedMemory = self.ReteMemoryKind(self,LEFT_MEMORY)
#                print "unlinked %s from %s"%(leftNode,self)
            elif self.leftNode:            

src/f/u/FuXi-HEAD/lib/Rete/BetaNode.py   FuXi(Download)
            self.fedByBuiltin = LEFT_MEMORY
            assert not isinstance(rightNode, BuiltInAlphaNode), "Both %s and %s are builtins feeding a beta node." % (leftNode, rightNode)
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind((self, RIGHT_MEMORY, leftNode.n3builtin))
        else:
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind(self, RIGHT_MEMORY)
            self.fedByBuiltin = RIGHT_MEMORY
            assert not isinstance(leftNode, BuiltInAlphaNode), "Both %s and %s are builtins feeding a beta node." % (leftNode, rightNode)
            self.memories[LEFT_MEMORY] = self.ReteMemoryKind(self, LEFT_MEMORY, rightNode.n3builtin)
        else:
            self.memories[LEFT_MEMORY] = self.ReteMemoryKind(self, LEFT_MEMORY)
                # candidate for left unlinking
                self.leftUnlinkedNodes.add(leftNode)
                leftNode.unlinkedMemory = self.ReteMemoryKind(self, LEFT_MEMORY)
                # print("unlinked %s from %s"%(leftNode,self))
            elif self.leftNode:

src/r/d/RDF.py-HEAD/FuXi/Rete/BetaNode.py   RDF.py(Download)
            self.fedByBuiltin = LEFT_MEMORY
            assert not isinstance(rightNode,BuiltInAlphaNode),"Both %s and %s are builtins feeding a beta node!"%(leftNode,rightNode)
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind((self,RIGHT_MEMORY,leftNode.n3builtin))
        else:
            self.memories[RIGHT_MEMORY] = self.ReteMemoryKind(self,RIGHT_MEMORY)
            self.fedByBuiltin = RIGHT_MEMORY
            assert not isinstance(leftNode,BuiltInAlphaNode),"Both %s and %s are builtins feeding a beta node!"%(leftNode,rightNode)
            self.memories[LEFT_MEMORY]  = self.ReteMemoryKind(self,LEFT_MEMORY,rightNode.n3builtin)
        else:
            self.memories[LEFT_MEMORY]  = self.ReteMemoryKind(self,LEFT_MEMORY)        
                #candidate for left unlinking
                self.leftUnlinkedNodes.add(leftNode) 
                leftNode.unlinkedMemory = self.ReteMemoryKind(self,LEFT_MEMORY)
#                print "unlinked %s from %s"%(leftNode,self)
            elif self.leftNode: