partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
newComment
Creation of a new node containing a comment.
deps/src/libxml2-2.9.1/python/libxml2.py
def newComment(content): """Creation of a new node containing a comment. """ ret = libxml2mod.xmlNewComment(content) if ret is None:raise treeError('xmlNewComment() failed') return xmlNode(_obj=ret)
def newComment(content): """Creation of a new node containing a comment. """ ret = libxml2mod.xmlNewComment(content) if ret is None:raise treeError('xmlNewComment() failed') return xmlNode(_obj=ret)
[ "Creation", "of", "a", "new", "node", "containing", "a", "comment", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1677-L1681
[ "def", "newComment", "(", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewComment", "(", "content", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewComment() failed'", ")", "return", "xmlNode", "(", "_obj", "=", "ret", ")...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
newDoc
Creates a new XML document
deps/src/libxml2-2.9.1/python/libxml2.py
def newDoc(version): """Creates a new XML document """ ret = libxml2mod.xmlNewDoc(version) if ret is None:raise treeError('xmlNewDoc() failed') return xmlDoc(_obj=ret)
def newDoc(version): """Creates a new XML document """ ret = libxml2mod.xmlNewDoc(version) if ret is None:raise treeError('xmlNewDoc() failed') return xmlDoc(_obj=ret)
[ "Creates", "a", "new", "XML", "document" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1683-L1687
[ "def", "newDoc", "(", "version", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewDoc", "(", "version", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewDoc() failed'", ")", "return", "xmlDoc", "(", "_obj", "=", "ret", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
newPI
Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning
deps/src/libxml2-2.9.1/python/libxml2.py
def newPI(name, content): """Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning """ ret = libxml2mod.xmlNewPI(name, content) if ret is None:raise treeError('xmlNewPI() failed') return xmlNode(_obj=ret)
def newPI(name, content): """Creation of a processing instruction element. Use xmlDocNewPI preferably to get string interning """ ret = libxml2mod.xmlNewPI(name, content) if ret is None:raise treeError('xmlNewPI() failed') return xmlNode(_obj=ret)
[ "Creation", "of", "a", "processing", "instruction", "element", ".", "Use", "xmlDocNewPI", "preferably", "to", "get", "string", "interning" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1689-L1694
[ "def", "newPI", "(", "name", ",", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewPI", "(", "name", ",", "content", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewPI() failed'", ")", "return", "xmlNode", "(", "_obj", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
newText
Creation of a new text node.
deps/src/libxml2-2.9.1/python/libxml2.py
def newText(content): """Creation of a new text node. """ ret = libxml2mod.xmlNewText(content) if ret is None:raise treeError('xmlNewText() failed') return xmlNode(_obj=ret)
def newText(content): """Creation of a new text node. """ ret = libxml2mod.xmlNewText(content) if ret is None:raise treeError('xmlNewText() failed') return xmlNode(_obj=ret)
[ "Creation", "of", "a", "new", "text", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1696-L1700
[ "def", "newText", "(", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewText", "(", "content", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewText() failed'", ")", "return", "xmlNode", "(", "_obj", "=", "ret", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
newTextLen
Creation of a new text node with an extra parameter for the content's length
deps/src/libxml2-2.9.1/python/libxml2.py
def newTextLen(content, len): """Creation of a new text node with an extra parameter for the content's length """ ret = libxml2mod.xmlNewTextLen(content, len) if ret is None:raise treeError('xmlNewTextLen() failed') return xmlNode(_obj=ret)
def newTextLen(content, len): """Creation of a new text node with an extra parameter for the content's length """ ret = libxml2mod.xmlNewTextLen(content, len) if ret is None:raise treeError('xmlNewTextLen() failed') return xmlNode(_obj=ret)
[ "Creation", "of", "a", "new", "text", "node", "with", "an", "extra", "parameter", "for", "the", "content", "s", "length" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1702-L1707
[ "def", "newTextLen", "(", "content", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewTextLen", "(", "content", ",", "len", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewTextLen() failed'", ")", "return", "xmlNode", "("...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
URIUnescapeString
Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string.
deps/src/libxml2-2.9.1/python/libxml2.py
def URIUnescapeString(str, len, target): """Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string. """ ret = libxml2...
def URIUnescapeString(str, len, target): """Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string. """ ret = libxml2...
[ "Unescaping", "routine", "but", "does", "not", "check", "that", "the", "string", "is", "an", "URI", ".", "The", "output", "is", "a", "direct", "unsigned", "char", "translation", "of", "%XX", "values", "(", "no", "encoding", ")", "Note", "that", "the", "l...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1751-L1757
[ "def", "URIUnescapeString", "(", "str", ",", "len", ",", "target", ")", ":", "ret", "=", "libxml2mod", ".", "xmlURIUnescapeString", "(", "str", ",", "len", ",", "target", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
parseURI
Parse an URI based on RFC 3986 URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
deps/src/libxml2-2.9.1/python/libxml2.py
def parseURI(str): """Parse an URI based on RFC 3986 URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] """ ret = libxml2mod.xmlParseURI(str) if ret is None:raise uriError('xmlParseURI() failed') return URI(_obj=ret)
def parseURI(str): """Parse an URI based on RFC 3986 URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] """ ret = libxml2mod.xmlParseURI(str) if ret is None:raise uriError('xmlParseURI() failed') return URI(_obj=ret)
[ "Parse", "an", "URI", "based", "on", "RFC", "3986", "URI", "-", "reference", "=", "[", "absoluteURI", "|", "relativeURI", "]", "[", "#", "fragment", "]" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1809-L1814
[ "def", "parseURI", "(", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlParseURI", "(", "str", ")", "if", "ret", "is", "None", ":", "raise", "uriError", "(", "'xmlParseURI() failed'", ")", "return", "URI", "(", "_obj", "=", "ret", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
parseURIRaw
Parse an URI but allows to keep intact the original fragments. URI-reference = URI / relative-ref
deps/src/libxml2-2.9.1/python/libxml2.py
def parseURIRaw(str, raw): """Parse an URI but allows to keep intact the original fragments. URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIRaw(str, raw) if ret is None:raise uriError('xmlParseURIRaw() failed') return URI(_obj=ret)
def parseURIRaw(str, raw): """Parse an URI but allows to keep intact the original fragments. URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIRaw(str, raw) if ret is None:raise uriError('xmlParseURIRaw() failed') return URI(_obj=ret)
[ "Parse", "an", "URI", "but", "allows", "to", "keep", "intact", "the", "original", "fragments", ".", "URI", "-", "reference", "=", "URI", "/", "relative", "-", "ref" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1816-L1821
[ "def", "parseURIRaw", "(", "str", ",", "raw", ")", ":", "ret", "=", "libxml2mod", ".", "xmlParseURIRaw", "(", "str", ",", "raw", ")", "if", "ret", "is", "None", ":", "raise", "uriError", "(", "'xmlParseURIRaw() failed'", ")", "return", "URI", "(", "_obj"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
newTextReaderFilename
Create an xmlTextReader structure fed with the resource at @URI
deps/src/libxml2-2.9.1/python/libxml2.py
def newTextReaderFilename(URI): """Create an xmlTextReader structure fed with the resource at @URI """ ret = libxml2mod.xmlNewTextReaderFilename(URI) if ret is None:raise treeError('xmlNewTextReaderFilename() failed') return xmlTextReader(_obj=ret)
def newTextReaderFilename(URI): """Create an xmlTextReader structure fed with the resource at @URI """ ret = libxml2mod.xmlNewTextReaderFilename(URI) if ret is None:raise treeError('xmlNewTextReaderFilename() failed') return xmlTextReader(_obj=ret)
[ "Create", "an", "xmlTextReader", "structure", "fed", "with", "the", "resource", "at" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1941-L1946
[ "def", "newTextReaderFilename", "(", "URI", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewTextReaderFilename", "(", "URI", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewTextReaderFilename() failed'", ")", "return", "xmlTextReader", "(",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
readerForDoc
Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.
deps/src/libxml2-2.9.1/python/libxml2.py
def readerForDoc(cur, URL, encoding, options): """Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForDoc(cur, URL, encoding, options) if ret is None:raise treeError('xmlReaderForDoc() failed') ret...
def readerForDoc(cur, URL, encoding, options): """Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForDoc(cur, URL, encoding, options) if ret is None:raise treeError('xmlReaderForDoc() failed') ret...
[ "Create", "an", "xmltextReader", "for", "an", "XML", "in", "-", "memory", "document", ".", "The", "parsing", "flags" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1948-L1953
[ "def", "readerForDoc", "(", "cur", ",", "URL", ",", "encoding", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlReaderForDoc", "(", "cur", ",", "URL", ",", "encoding", ",", "options", ")", "if", "ret", "is", "None", ":", "raise", "treeErro...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
readerForFd
Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset.
deps/src/libxml2-2.9.1/python/libxml2.py
def readerForFd(fd, URL, encoding, options): """Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset. """ ret = libxml2mod.xmlReaderForFd(...
def readerForFd(fd, URL, encoding, options): """Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset. """ ret = libxml2mod.xmlReaderForFd(...
[ "Create", "an", "xmltextReader", "for", "an", "XML", "from", "a", "file", "descriptor", ".", "The", "parsing", "flags" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1955-L1962
[ "def", "readerForFd", "(", "fd", ",", "URL", ",", "encoding", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlReaderForFd", "(", "fd", ",", "URL", ",", "encoding", ",", "options", ")", "if", "ret", "is", "None", ":", "raise", "treeError", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
readerForFile
parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption.
deps/src/libxml2-2.9.1/python/libxml2.py
def readerForFile(filename, encoding, options): """parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForFile(filename, encoding, options) if ret is None:raise treeError('xmlReaderForFile() failed') r...
def readerForFile(filename, encoding, options): """parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForFile(filename, encoding, options) if ret is None:raise treeError('xmlReaderForFile() failed') r...
[ "parse", "an", "XML", "file", "from", "the", "filesystem", "or", "the", "network", ".", "The", "parsing", "flags" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1964-L1969
[ "def", "readerForFile", "(", "filename", ",", "encoding", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlReaderForFile", "(", "filename", ",", "encoding", ",", "options", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlRe...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
readerForMemory
Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption.
deps/src/libxml2-2.9.1/python/libxml2.py
def readerForMemory(buffer, size, URL, encoding, options): """Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForMemory(buffer, size, URL, encoding, options) if ret is None:raise treeError('xmlReaderF...
def readerForMemory(buffer, size, URL, encoding, options): """Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. """ ret = libxml2mod.xmlReaderForMemory(buffer, size, URL, encoding, options) if ret is None:raise treeError('xmlReaderF...
[ "Create", "an", "xmltextReader", "for", "an", "XML", "in", "-", "memory", "document", ".", "The", "parsing", "flags" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1971-L1976
[ "def", "readerForMemory", "(", "buffer", ",", "size", ",", "URL", ",", "encoding", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlReaderForMemory", "(", "buffer", ",", "size", ",", "URL", ",", "encoding", ",", "options", ")", "if", "ret", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
regexpCompile
Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression
deps/src/libxml2-2.9.1/python/libxml2.py
def regexpCompile(regexp): """Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression """ ret = libxml2mod.xmlRegexpCompile(regexp) if ret is None:raise treeError('xmlRegexpCompile() fai...
def regexpCompile(regexp): """Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression """ ret = libxml2mod.xmlRegexpCompile(regexp) if ret is None:raise treeError('xmlRegexpCompile() fai...
[ "Parses", "a", "regular", "expression", "conforming", "to", "XML", "Schemas", "Part", "2", "Datatype", "Appendix", "F", "and", "builds", "an", "automata", "suitable", "for", "testing", "strings", "against", "that", "regular", "expression" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1982-L1988
[ "def", "regexpCompile", "(", "regexp", ")", ":", "ret", "=", "libxml2mod", ".", "xmlRegexpCompile", "(", "regexp", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlRegexpCompile() failed'", ")", "return", "xmlReg", "(", "_obj", "=", "ret"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
schemaNewMemParserCtxt
Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.
deps/src/libxml2-2.9.1/python/libxml2.py
def schemaNewMemParserCtxt(buffer, size): """Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. """ ret = libxml2mod.xmlSchemaNewMemParserCtxt(buffer, size) if ret is None:raise parserError('xmlSchemaNewMemParserCtxt() failed') return SchemaParserC...
def schemaNewMemParserCtxt(buffer, size): """Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. """ ret = libxml2mod.xmlSchemaNewMemParserCtxt(buffer, size) if ret is None:raise parserError('xmlSchemaNewMemParserCtxt() failed') return SchemaParserC...
[ "Create", "an", "XML", "Schemas", "parse", "context", "for", "that", "memory", "buffer", "expected", "to", "contain", "an", "XML", "Schemas", "file", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L1994-L1999
[ "def", "schemaNewMemParserCtxt", "(", "buffer", ",", "size", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaNewMemParserCtxt", "(", "buffer", ",", "size", ")", "if", "ret", "is", "None", ":", "raise", "parserError", "(", "'xmlSchemaNewMemParserCtxt() failed'",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
schemaNewParserCtxt
Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.
deps/src/libxml2-2.9.1/python/libxml2.py
def schemaNewParserCtxt(URL): """Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. """ ret = libxml2mod.xmlSchemaNewParserCtxt(URL) if ret is None:raise parserError('xmlSchemaNewParserCtxt() failed') return SchemaParserCtxt(_obj=ret)
def schemaNewParserCtxt(URL): """Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. """ ret = libxml2mod.xmlSchemaNewParserCtxt(URL) if ret is None:raise parserError('xmlSchemaNewParserCtxt() failed') return SchemaParserCtxt(_obj=ret)
[ "Create", "an", "XML", "Schemas", "parse", "context", "for", "that", "file", "/", "resource", "expected", "to", "contain", "an", "XML", "Schemas", "file", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L2001-L2006
[ "def", "schemaNewParserCtxt", "(", "URL", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaNewParserCtxt", "(", "URL", ")", "if", "ret", "is", "None", ":", "raise", "parserError", "(", "'xmlSchemaNewParserCtxt() failed'", ")", "return", "SchemaParserCtxt", "(", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
UTF8Strsub
Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars
deps/src/libxml2-2.9.1/python/libxml2.py
def UTF8Strsub(utf, start, len): """Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars """ ret = libxml2mod.xmlUTF8Strsub(utf, start, len) return ret
def UTF8Strsub(utf, start, len): """Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars """ ret = libxml2mod.xmlUTF8Strsub(utf, start, len) return ret
[ "Create", "a", "substring", "from", "a", "given", "UTF", "-", "8", "string", "Note", ":", "positions", "are", "given", "in", "units", "of", "UTF", "-", "8", "chars" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L2072-L2076
[ "def", "UTF8Strsub", "(", "utf", ",", "start", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlUTF8Strsub", "(", "utf", ",", "start", ",", "len", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
valuePop
Pops the top XPath object from the value stack
deps/src/libxml2-2.9.1/python/libxml2.py
def valuePop(ctxt): """Pops the top XPath object from the value stack """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.valuePop(ctxt__o) return ret
def valuePop(ctxt): """Pops the top XPath object from the value stack """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.valuePop(ctxt__o) return ret
[ "Pops", "the", "top", "XPath", "object", "from", "the", "value", "stack" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3008-L3013
[ "def", "valuePop", "(", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "valuePop", "(", "ctxt__o", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlCore.removeNsDef
Remove a namespace definition from a node. If href is None, remove all of the ns definitions on that node. The removed namespaces are returned as a linked list. Note: If any child nodes referred to the removed namespaces, they will be left with dangling links. You should call ...
deps/src/libxml2-2.9.1/python/libxml2.py
def removeNsDef(self, href): """ Remove a namespace definition from a node. If href is None, remove all of the ns definitions on that node. The removed namespaces are returned as a linked list. Note: If any child nodes referred to the removed namespaces, they will be l...
def removeNsDef(self, href): """ Remove a namespace definition from a node. If href is None, remove all of the ns definitions on that node. The removed namespaces are returned as a linked list. Note: If any child nodes referred to the removed namespaces, they will be l...
[ "Remove", "a", "namespace", "definition", "from", "a", "node", ".", "If", "href", "is", "None", "remove", "all", "of", "the", "ns", "definitions", "on", "that", "node", ".", "The", "removed", "namespaces", "are", "returned", "as", "a", "linked", "list", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L489-L507
[ "def", "removeNsDef", "(", "self", ",", "href", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNodeRemoveNsDef", "(", "self", ".", "_o", ",", "href", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
parserCtxtCore.setErrorHandler
Register an error handler that will be called back as f(arg,msg,severity,reserved). @reserved is currently always None.
deps/src/libxml2-2.9.1/python/libxml2.py
def setErrorHandler(self,f,arg): """Register an error handler that will be called back as f(arg,msg,severity,reserved). @reserved is currently always None.""" libxml2mod.xmlParserCtxtSetErrorHandler(self._o,f,arg)
def setErrorHandler(self,f,arg): """Register an error handler that will be called back as f(arg,msg,severity,reserved). @reserved is currently always None.""" libxml2mod.xmlParserCtxtSetErrorHandler(self._o,f,arg)
[ "Register", "an", "error", "handler", "that", "will", "be", "called", "back", "as", "f", "(", "arg", "msg", "severity", "reserved", ")", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L657-L662
[ "def", "setErrorHandler", "(", "self", ",", "f", ",", "arg", ")", ":", "libxml2mod", ".", "xmlParserCtxtSetErrorHandler", "(", "self", ".", "_o", ",", "f", ",", "arg", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxtCore.setValidityErrorHandler
Register error and warning handlers for DTD validation. These will be called back as f(msg,arg)
deps/src/libxml2-2.9.1/python/libxml2.py
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for DTD validation. These will be called back as f(msg,arg) """ libxml2mod.xmlSetValidErrors(self._o, err_func, warn_func, arg)
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for DTD validation. These will be called back as f(msg,arg) """ libxml2mod.xmlSetValidErrors(self._o, err_func, warn_func, arg)
[ "Register", "error", "and", "warning", "handlers", "for", "DTD", "validation", ".", "These", "will", "be", "called", "back", "as", "f", "(", "msg", "arg", ")" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L679-L684
[ "def", "setValidityErrorHandler", "(", "self", ",", "err_func", ",", "warn_func", ",", "arg", "=", "None", ")", ":", "libxml2mod", ".", "xmlSetValidErrors", "(", "self", ".", "_o", ",", "err_func", ",", "warn_func", ",", "arg", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
SchemaValidCtxtCore.setValidityErrorHandler
Register error and warning handlers for Schema validation. These will be called back as f(msg,arg)
deps/src/libxml2-2.9.1/python/libxml2.py
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for Schema validation. These will be called back as f(msg,arg) """ libxml2mod.xmlSchemaSetValidErrors(self._o, err_func, warn_func, arg)
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for Schema validation. These will be called back as f(msg,arg) """ libxml2mod.xmlSchemaSetValidErrors(self._o, err_func, warn_func, arg)
[ "Register", "error", "and", "warning", "handlers", "for", "Schema", "validation", ".", "These", "will", "be", "called", "back", "as", "f", "(", "msg", "arg", ")" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L692-L697
[ "def", "setValidityErrorHandler", "(", "self", ",", "err_func", ",", "warn_func", ",", "arg", "=", "None", ")", ":", "libxml2mod", ".", "xmlSchemaSetValidErrors", "(", "self", ".", "_o", ",", "err_func", ",", "warn_func", ",", "arg", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
relaxNgValidCtxtCore.setValidityErrorHandler
Register error and warning handlers for RelaxNG validation. These will be called back as f(msg,arg)
deps/src/libxml2-2.9.1/python/libxml2.py
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for RelaxNG validation. These will be called back as f(msg,arg) """ libxml2mod.xmlRelaxNGSetValidErrors(self._o, err_func, warn_func, arg)
def setValidityErrorHandler(self, err_func, warn_func, arg=None): """ Register error and warning handlers for RelaxNG validation. These will be called back as f(msg,arg) """ libxml2mod.xmlRelaxNGSetValidErrors(self._o, err_func, warn_func, arg)
[ "Register", "error", "and", "warning", "handlers", "for", "RelaxNG", "validation", ".", "These", "will", "be", "called", "back", "as", "f", "(", "msg", "arg", ")" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L705-L710
[ "def", "setValidityErrorHandler", "(", "self", ",", "err_func", ",", "warn_func", ",", "arg", "=", "None", ")", ":", "libxml2mod", ".", "xmlRelaxNGSetValidErrors", "(", "self", ".", "_o", ",", "err_func", ",", "warn_func", ",", "arg", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReaderCore.SetErrorHandler
Register an error handler that will be called back as f(arg,msg,severity,locator).
deps/src/libxml2-2.9.1/python/libxml2.py
def SetErrorHandler(self,f,arg): """Register an error handler that will be called back as f(arg,msg,severity,locator).""" if f is None: libxml2mod.xmlTextReaderSetErrorHandler(\ self._o,None,None) else: libxml2mod.xmlTextReaderSetErrorHandler(\ ...
def SetErrorHandler(self,f,arg): """Register an error handler that will be called back as f(arg,msg,severity,locator).""" if f is None: libxml2mod.xmlTextReaderSetErrorHandler(\ self._o,None,None) else: libxml2mod.xmlTextReaderSetErrorHandler(\ ...
[ "Register", "an", "error", "handler", "that", "will", "be", "called", "back", "as", "f", "(", "arg", "msg", "severity", "locator", ")", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L730-L738
[ "def", "SetErrorHandler", "(", "self", ",", "f", ",", "arg", ")", ":", "if", "f", "is", "None", ":", "libxml2mod", ".", "xmlTextReaderSetErrorHandler", "(", "self", ".", "_o", ",", "None", ",", "None", ")", "else", ":", "libxml2mod", ".", "xmlTextReaderS...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReaderCore.GetErrorHandler
Return (f,arg) as previously registered with setErrorHandler or (None,None).
deps/src/libxml2-2.9.1/python/libxml2.py
def GetErrorHandler(self): """Return (f,arg) as previously registered with setErrorHandler or (None,None).""" f,arg = libxml2mod.xmlTextReaderGetErrorHandler(self._o) if f is None: return None,None else: # assert f is _xmlTextReaderErrorFunc ...
def GetErrorHandler(self): """Return (f,arg) as previously registered with setErrorHandler or (None,None).""" f,arg = libxml2mod.xmlTextReaderGetErrorHandler(self._o) if f is None: return None,None else: # assert f is _xmlTextReaderErrorFunc ...
[ "Return", "(", "f", "arg", ")", "as", "previously", "registered", "with", "setErrorHandler", "or", "(", "None", "None", ")", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L740-L748
[ "def", "GetErrorHandler", "(", "self", ")", ":", "f", ",", "arg", "=", "libxml2mod", ".", "xmlTextReaderGetErrorHandler", "(", "self", ".", "_o", ")", "if", "f", "is", "None", ":", "return", "None", ",", "None", "else", ":", "# assert f is _xmlTextReaderErro...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.ns
Get the namespace of a node
deps/src/libxml2-2.9.1/python/libxml2.py
def ns(self): """Get the namespace of a node """ ret = libxml2mod.xmlNodeGetNs(self._o) if ret is None:return None __tmp = xmlNs(_obj=ret) return __tmp
def ns(self): """Get the namespace of a node """ ret = libxml2mod.xmlNodeGetNs(self._o) if ret is None:return None __tmp = xmlNs(_obj=ret) return __tmp
[ "Get", "the", "namespace", "of", "a", "node" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3025-L3030
[ "def", "ns", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNodeGetNs", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.nsDefs
Get the namespace of a node
deps/src/libxml2-2.9.1/python/libxml2.py
def nsDefs(self): """Get the namespace of a node """ ret = libxml2mod.xmlNodeGetNsDefs(self._o) if ret is None:return None __tmp = xmlNs(_obj=ret) return __tmp
def nsDefs(self): """Get the namespace of a node """ ret = libxml2mod.xmlNodeGetNsDefs(self._o) if ret is None:return None __tmp = xmlNs(_obj=ret) return __tmp
[ "Get", "the", "namespace", "of", "a", "node" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3032-L3037
[ "def", "nsDefs", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNodeGetNsDefs", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.debugDumpNode
Dumps debug information for the element node, it is recursive
deps/src/libxml2-2.9.1/python/libxml2.py
def debugDumpNode(self, output, depth): """Dumps debug information for the element node, it is recursive """ libxml2mod.xmlDebugDumpNode(output, self._o, depth)
def debugDumpNode(self, output, depth): """Dumps debug information for the element node, it is recursive """ libxml2mod.xmlDebugDumpNode(output, self._o, depth)
[ "Dumps", "debug", "information", "for", "the", "element", "node", "it", "is", "recursive" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3043-L3046
[ "def", "debugDumpNode", "(", "self", ",", "output", ",", "depth", ")", ":", "libxml2mod", ".", "xmlDebugDumpNode", "(", "output", ",", "self", ".", "_o", ",", "depth", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.debugDumpNodeList
Dumps debug information for the list of element node, it is recursive
deps/src/libxml2-2.9.1/python/libxml2.py
def debugDumpNodeList(self, output, depth): """Dumps debug information for the list of element node, it is recursive """ libxml2mod.xmlDebugDumpNodeList(output, self._o, depth)
def debugDumpNodeList(self, output, depth): """Dumps debug information for the list of element node, it is recursive """ libxml2mod.xmlDebugDumpNodeList(output, self._o, depth)
[ "Dumps", "debug", "information", "for", "the", "list", "of", "element", "node", "it", "is", "recursive" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3048-L3051
[ "def", "debugDumpNodeList", "(", "self", ",", "output", ",", "depth", ")", ":", "libxml2mod", ".", "xmlDebugDumpNodeList", "(", "output", ",", "self", ".", "_o", ",", "depth", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.debugDumpOneNode
Dumps debug information for the element node, it is not recursive
deps/src/libxml2-2.9.1/python/libxml2.py
def debugDumpOneNode(self, output, depth): """Dumps debug information for the element node, it is not recursive """ libxml2mod.xmlDebugDumpOneNode(output, self._o, depth)
def debugDumpOneNode(self, output, depth): """Dumps debug information for the element node, it is not recursive """ libxml2mod.xmlDebugDumpOneNode(output, self._o, depth)
[ "Dumps", "debug", "information", "for", "the", "element", "node", "it", "is", "not", "recursive" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3053-L3056
[ "def", "debugDumpOneNode", "(", "self", ",", "output", ",", "depth", ")", ":", "libxml2mod", ".", "xmlDebugDumpOneNode", "(", "output", ",", "self", ".", "_o", ",", "depth", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addChild
Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.
deps/src/libxml2-2.9.1/python/libxml2.py
def addChild(self, cur): """Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal ...
def addChild(self, cur): """Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal ...
[ "Add", "a", "new", "node", "to" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3075-L3086
[ "def", "addChild", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddChild", "(", "self", ".", "_o", ",", "cur__o", ")", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addChildList
Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed)
deps/src/libxml2-2.9.1/python/libxml2.py
def addChildList(self, cur): """Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlAddChildList(self._o, cur__o) if ret is None:raise ...
def addChildList(self, cur): """Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlAddChildList(self._o, cur__o) if ret is None:raise ...
[ "Add", "a", "list", "of", "node", "at", "the", "end", "of", "the", "child", "list", "of", "the", "parent", "merging", "adjacent", "TEXT", "nodes", "(" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3088-L3096
[ "def", "addChildList", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddChildList", "(", "self", ".", "_o", ",", "cur__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addContentLen
Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported.
deps/src/libxml2-2.9.1/python/libxml2.py
def addContentLen(self, content, len): """Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. """ libxml2mod.xmlNo...
def addContentLen(self, content, len): """Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. """ libxml2mod.xmlNo...
[ "Append", "the", "extra", "substring", "to", "the", "node", "content", ".", "NOTE", ":", "In", "contrast", "to", "xmlNodeSetContentLen", "()" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3105-L3110
[ "def", "addContentLen", "(", "self", ",", "content", ",", "len", ")", ":", "libxml2mod", ".", "xmlNodeAddContentLen", "(", "self", ".", "_o", ",", "content", ",", "len", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addNextSibling
Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If th...
deps/src/libxml2-2.9.1/python/libxml2.py
def addNextSibling(self, elem): """Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added...
def addNextSibling(self, elem): """Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added...
[ "Add", "a", "new", "node" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3112-L3124
[ "def", "addNextSibling", "(", "self", ",", "elem", ")", ":", "if", "elem", "is", "None", ":", "elem__o", "=", "None", "else", ":", "elem__o", "=", "elem", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddNextSibling", "(", "self", ".", "_o", ",", "el...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addPrevSibling
Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. ...
deps/src/libxml2-2.9.1/python/libxml2.py
def addPrevSibling(self, elem): """Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is ...
def addPrevSibling(self, elem): """Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is ...
[ "Add", "a", "new", "node" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3126-L3139
[ "def", "addPrevSibling", "(", "self", ",", "elem", ")", ":", "if", "elem", "is", "None", ":", "elem__o", "=", "None", "else", ":", "elem__o", "=", "elem", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddPrevSibling", "(", "self", ".", "_o", ",", "el...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.addSibling
Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context.
deps/src/libxml2-2.9.1/python/libxml2.py
def addSibling(self, elem): """Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. """ if elem is None: elem__o = None...
def addSibling(self, elem): """Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. """ if elem is None: elem__o = None...
[ "Add", "a", "new", "element" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3141-L3151
[ "def", "addSibling", "(", "self", ",", "elem", ")", ":", "if", "elem", "is", "None", ":", "elem__o", "=", "None", "else", ":", "elem__o", "=", "elem", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddSibling", "(", "self", ".", "_o", ",", "elem__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.copyNode
Do a copy of the node.
deps/src/libxml2-2.9.1/python/libxml2.py
def copyNode(self, extended): """Do a copy of the node. """ ret = libxml2mod.xmlCopyNode(self._o, extended) if ret is None:raise treeError('xmlCopyNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
def copyNode(self, extended): """Do a copy of the node. """ ret = libxml2mod.xmlCopyNode(self._o, extended) if ret is None:raise treeError('xmlCopyNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "Do", "a", "copy", "of", "the", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3153-L3158
[ "def", "copyNode", "(", "self", ",", "extended", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyNode", "(", "self", ".", "_o", ",", "extended", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyNode() failed'", ")", "__tmp", "=",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.copyNodeList
Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning.
deps/src/libxml2-2.9.1/python/libxml2.py
def copyNodeList(self): """Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning. """ ret = libxml2mod.xmlCopyNodeList(self._o) if ret is None:raise treeError('xmlCopyNodeList() failed') __tmp = xmlNode(_obj=ret) return __...
def copyNodeList(self): """Do a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning. """ ret = libxml2mod.xmlCopyNodeList(self._o) if ret is None:raise treeError('xmlCopyNodeList() failed') __tmp = xmlNode(_obj=ret) return __...
[ "Do", "a", "recursive", "copy", "of", "the", "node", "list", ".", "Use", "xmlDocCopyNodeList", "()", "if", "possible", "to", "ensure", "string", "interning", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3160-L3166
[ "def", "copyNodeList", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyNodeList", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyNodeList() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.copyProp
Do a copy of the attribute.
deps/src/libxml2-2.9.1/python/libxml2.py
def copyProp(self, cur): """Do a copy of the attribute. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlCopyProp(self._o, cur__o) if ret is None:raise treeError('xmlCopyProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
def copyProp(self, cur): """Do a copy of the attribute. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlCopyProp(self._o, cur__o) if ret is None:raise treeError('xmlCopyProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
[ "Do", "a", "copy", "of", "the", "attribute", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3168-L3175
[ "def", "copyProp", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlCopyProp", "(", "self", ".", "_o", ",", "cur__o", ")", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.copyPropList
Do a copy of an attribute list.
deps/src/libxml2-2.9.1/python/libxml2.py
def copyPropList(self, cur): """Do a copy of an attribute list. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlCopyPropList(self._o, cur__o) if ret is None:raise treeError('xmlCopyPropList() failed') __tmp = xmlAttr(_obj=ret) return __...
def copyPropList(self, cur): """Do a copy of an attribute list. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlCopyPropList(self._o, cur__o) if ret is None:raise treeError('xmlCopyPropList() failed') __tmp = xmlAttr(_obj=ret) return __...
[ "Do", "a", "copy", "of", "an", "attribute", "list", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3177-L3184
[ "def", "copyPropList", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlCopyPropList", "(", "self", ".", "_o", ",", "cur__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.docCopyNode
Do a copy of the node to a given document.
deps/src/libxml2-2.9.1/python/libxml2.py
def docCopyNode(self, doc, extended): """Do a copy of the node to a given document. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocCopyNode(self._o, doc__o, extended) if ret is None:raise treeError('xmlDocCopyNode() failed') __tmp = xmlNode...
def docCopyNode(self, doc, extended): """Do a copy of the node to a given document. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocCopyNode(self._o, doc__o, extended) if ret is None:raise treeError('xmlDocCopyNode() failed') __tmp = xmlNode...
[ "Do", "a", "copy", "of", "the", "node", "to", "a", "given", "document", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3186-L3193
[ "def", "docCopyNode", "(", "self", ",", "doc", ",", "extended", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlDocCopyNode", "(", "self", ".", "_o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.docCopyNodeList
Do a recursive copy of the node list.
deps/src/libxml2-2.9.1/python/libxml2.py
def docCopyNodeList(self, doc): """Do a recursive copy of the node list. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocCopyNodeList(doc__o, self._o) if ret is None:raise treeError('xmlDocCopyNodeList() failed') __tmp = xmlNode(_obj=ret) ...
def docCopyNodeList(self, doc): """Do a recursive copy of the node list. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocCopyNodeList(doc__o, self._o) if ret is None:raise treeError('xmlDocCopyNodeList() failed') __tmp = xmlNode(_obj=ret) ...
[ "Do", "a", "recursive", "copy", "of", "the", "node", "list", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3195-L3202
[ "def", "docCopyNodeList", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlDocCopyNodeList", "(", "doc__o", ",", "self", ".", "_...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.docSetRootElement
Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).
deps/src/libxml2-2.9.1/python/libxml2.py
def docSetRootElement(self, doc): """Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocSetRootElement(doc__o, self._o) if ret is None...
def docSetRootElement(self, doc): """Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlDocSetRootElement(doc__o, self._o) if ret is None...
[ "Set", "the", "root", "element", "of", "the", "document", "(", "doc", "-", ">", "children", "is", "a", "list", "containing", "possibly", "comments", "PIs", "etc", "...", ")", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3204-L3212
[ "def", "docSetRootElement", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlDocSetRootElement", "(", "doc__o", ",", "self", ".", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.firstElementChild
Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
deps/src/libxml2-2.9.1/python/libxml2.py
def firstElementChild(self): """Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities refere...
def firstElementChild(self): """Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities refere...
[ "Finds", "the", "first", "child", "node", "of", "that", "element", "which", "is", "a", "Element", "node", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since"...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3214-L3223
[ "def", "firstElementChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlFirstElementChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "_...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.getBase
Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it...
deps/src/libxml2-2.9.1/python/libxml2.py
def getBase(self, doc): """Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from ...
def getBase(self, doc): """Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from ...
[ "Searches", "for", "the", "BASE", "URL", ".", "The", "code", "should", "work", "on", "both", "XML", "and", "HTML", "document", "even", "if", "base", "mechanisms", "are", "completely", "different", ".", "It", "returns", "the", "base", "as", "defined", "in",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3236-L3246
[ "def", "getBase", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNodeGetBase", "(", "doc__o", ",", "self", ".", "_o", ")", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.hasNsProp
Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Note that a ...
deps/src/libxml2-2.9.1/python/libxml2.py
def hasNsProp(self, name, nameSpace): """Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values...
def hasNsProp(self, name, nameSpace): """Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values...
[ "Search", "for", "an", "attribute", "associated", "to", "a", "node", "This", "attribute", "has", "to", "be", "anchored", "in", "the", "namespace", "specified", ".", "This", "does", "the", "entity", "substitution", ".", "This", "function", "looks", "in", "DTD...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3270-L3280
[ "def", "hasNsProp", "(", "self", ",", "name", ",", "nameSpace", ")", ":", "ret", "=", "libxml2mod", ".", "xmlHasNsProp", "(", "self", ".", "_o", ",", "name", ",", "nameSpace", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlA...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.hasProp
Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.
deps/src/libxml2-2.9.1/python/libxml2.py
def hasProp(self, name): """Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. """ ret = libxml2mod.xmlHasProp(self._o, name) if ret is None:return None ...
def hasProp(self, name): """Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. """ ret = libxml2mod.xmlHasProp(self._o, name) if ret is None:return None ...
[ "Search", "an", "attribute", "associated", "to", "a", "node", "This", "function", "also", "looks", "in", "DTD", "attribute", "declaration", "for", "#FIXED", "or", "default", "declaration", "values", "unless", "DTD", "use", "has", "been", "turned", "off", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3282-L3289
[ "def", "hasProp", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlHasProp", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlAttr", "(", "_obj", "=", "ret", ")", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.lastChild
Search the last child of a node.
deps/src/libxml2-2.9.1/python/libxml2.py
def lastChild(self): """Search the last child of a node. """ ret = libxml2mod.xmlGetLastChild(self._o) if ret is None:raise treeError('xmlGetLastChild() failed') __tmp = xmlNode(_obj=ret) return __tmp
def lastChild(self): """Search the last child of a node. """ ret = libxml2mod.xmlGetLastChild(self._o) if ret is None:raise treeError('xmlGetLastChild() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "Search", "the", "last", "child", "of", "a", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3302-L3307
[ "def", "lastChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetLastChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetLastChild() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.lastElementChild
Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
deps/src/libxml2-2.9.1/python/libxml2.py
def lastElementChild(self): """Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities referenc...
def lastElementChild(self): """Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities referenc...
[ "Finds", "the", "last", "child", "node", "of", "that", "element", "which", "is", "a", "Element", "node", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3309-L3318
[ "def", "lastElementChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlLastElementChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__t...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.listGetRawString
Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling.
deps/src/libxml2-2.9.1/python/libxml2.py
def listGetRawString(self, doc, inLine): """Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. """ if doc is None: doc__o = None ...
def listGetRawString(self, doc, inLine): """Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. """ if doc is None: doc__o = None ...
[ "Builds", "the", "string", "equivalent", "to", "the", "text", "contained", "in", "the", "Node", "list", "made", "of", "TEXTs", "and", "ENTITY_REFs", "contrary", "to", "xmlNodeListGetString", "()", "this", "function", "doesn", "t", "do", "any", "character", "en...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3327-L3335
[ "def", "listGetRawString", "(", "self", ",", "doc", ",", "inLine", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNodeListGetRawString", "(", "doc__o", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.listGetString
Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs
deps/src/libxml2-2.9.1/python/libxml2.py
def listGetString(self, doc, inLine): """Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlNodeListGetString(doc__o, self._o, inLine) return ret
def listGetString(self, doc, inLine): """Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlNodeListGetString(doc__o, self._o, inLine) return ret
[ "Build", "the", "string", "equivalent", "to", "the", "text", "contained", "in", "the", "Node", "list", "made", "of", "TEXTs", "and", "ENTITY_REFs" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3337-L3343
[ "def", "listGetString", "(", "self", ",", "doc", ",", "inLine", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNodeListGetString", "(", "doc__o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newChild
Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a child list containing the TEXTs and ENTITY_REFs nod...
deps/src/libxml2-2.9.1/python/libxml2.py
def newChild(self, ns, name, content): """Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a c...
def newChild(self, ns, name, content): """Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a c...
[ "Creation", "of", "a", "new", "child", "element", "added", "at", "the", "end", "of" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3345-L3361
[ "def", "newChild", "(", "self", ",", "ns", ",", "name", ",", "content", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNewChild", "(", "self", ".", "_o...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newNs
Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined.
deps/src/libxml2-2.9.1/python/libxml2.py
def newNs(self, href, prefix): """Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined. """ ret...
def newNs(self, href, prefix): """Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined. """ ret...
[ "Creation", "of", "a", "new", "Namespace", ".", "This", "function", "will", "refuse", "to", "create", "a", "namespace", "with", "a", "similar", "prefix", "than", "an", "existing", "one", "present", "on", "this", "node", ".", "We", "use", "href", "==", "N...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3363-L3371
[ "def", "newNs", "(", "self", ",", "href", ",", "prefix", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewNs", "(", "self", ".", "_o", ",", "href", ",", "prefix", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewNs() failed'", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newNsProp
Create a new property tagged with a namespace and carried by a node.
deps/src/libxml2-2.9.1/python/libxml2.py
def newNsProp(self, ns, name, value): """Create a new property tagged with a namespace and carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlNewNsProp(self._o, ns__o, name, value) if ret is None:raise treeError('xmlNewNsProp() f...
def newNsProp(self, ns, name, value): """Create a new property tagged with a namespace and carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlNewNsProp(self._o, ns__o, name, value) if ret is None:raise treeError('xmlNewNsProp() f...
[ "Create", "a", "new", "property", "tagged", "with", "a", "namespace", "and", "carried", "by", "a", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3373-L3381
[ "def", "newNsProp", "(", "self", ",", "ns", ",", "name", ",", "value", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNewNsProp", "(", "self", ".", "_o...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newNsPropEatName
Create a new property tagged with a namespace and carried by a node.
deps/src/libxml2-2.9.1/python/libxml2.py
def newNsPropEatName(self, ns, name, value): """Create a new property tagged with a namespace and carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlNewNsPropEatName(self._o, ns__o, name, value) if ret is None:raise treeError('xm...
def newNsPropEatName(self, ns, name, value): """Create a new property tagged with a namespace and carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlNewNsPropEatName(self._o, ns__o, name, value) if ret is None:raise treeError('xm...
[ "Create", "a", "new", "property", "tagged", "with", "a", "namespace", "and", "carried", "by", "a", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3383-L3391
[ "def", "newNsPropEatName", "(", "self", ",", "ns", ",", "name", ",", "value", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNewNsPropEatName", "(", "self"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newProp
Create a new property carried by a node.
deps/src/libxml2-2.9.1/python/libxml2.py
def newProp(self, name, value): """Create a new property carried by a node. """ ret = libxml2mod.xmlNewProp(self._o, name, value) if ret is None:raise treeError('xmlNewProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
def newProp(self, name, value): """Create a new property carried by a node. """ ret = libxml2mod.xmlNewProp(self._o, name, value) if ret is None:raise treeError('xmlNewProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
[ "Create", "a", "new", "property", "carried", "by", "a", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3393-L3398
[ "def", "newProp", "(", "self", ",", "name", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewProp", "(", "self", ".", "_o", ",", "name", ",", "value", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewProp() failed'",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.newTextChild
Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a child TEXT node will be created containing the stri...
deps/src/libxml2-2.9.1/python/libxml2.py
def newTextChild(self, ns, name, content): """Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, ...
def newTextChild(self, ns, name, content): """Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, ...
[ "Creation", "of", "a", "new", "child", "element", "added", "at", "the", "end", "of" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3400-L3417
[ "def", "newTextChild", "(", "self", ",", "ns", ",", "name", ",", "content", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlNewTextChild", "(", "self", "....
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.nextElementSibling
Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
deps/src/libxml2-2.9.1/python/libxml2.py
def nextElementSibling(self): """Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entiti...
def nextElementSibling(self): """Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entiti...
[ "Finds", "the", "first", "closest", "next", "sibling", "of", "the", "node", "which", "is", "an", "element", "node", ".", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3419-L3428
[ "def", "nextElementSibling", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNextElementSibling", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.noNsProp
Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is similar to xmlGetProp except it will acc...
deps/src/libxml2-2.9.1/python/libxml2.py
def noNsProp(self, name): """Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is sim...
def noNsProp(self, name): """Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is sim...
[ "Search", "and", "get", "the", "value", "of", "an", "attribute", "associated", "to", "a", "node", "This", "does", "the", "entity", "substitution", ".", "This", "function", "looks", "in", "DTD", "attribute", "declaration", "for", "#FIXED", "or", "default", "d...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3430-L3438
[ "def", "noNsProp", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetNoNsProp", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.nsProp
Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned...
deps/src/libxml2-2.9.1/python/libxml2.py
def nsProp(self, name, nameSpace): """Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default dec...
def nsProp(self, name, nameSpace): """Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default dec...
[ "Search", "and", "get", "the", "value", "of", "an", "attribute", "associated", "to", "a", "node", "This", "attribute", "has", "to", "be", "anchored", "in", "the", "namespace", "specified", ".", "This", "does", "the", "entity", "substitution", ".", "This", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3445-L3452
[ "def", "nsProp", "(", "self", ",", "name", ",", "nameSpace", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetNsProp", "(", "self", ".", "_o", ",", "name", ",", "nameSpace", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.previousElementSibling
Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
deps/src/libxml2-2.9.1/python/libxml2.py
def previousElementSibling(self): """Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content t...
def previousElementSibling(self): """Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content t...
[ "Finds", "the", "first", "closest", "previous", "sibling", "of", "the", "node", "which", "is", "an", "element", "node", ".", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversa...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3454-L3463
[ "def", "previousElementSibling", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlPreviousElementSibling", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "ret...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.prop
Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts independently of namespaces ...
deps/src/libxml2-2.9.1/python/libxml2.py
def prop(self, name): """Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts...
def prop(self, name): """Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts...
[ "Search", "and", "get", "the", "value", "of", "an", "attribute", "associated", "to", "a", "node", "This", "does", "the", "entity", "substitution", ".", "This", "function", "looks", "in", "DTD", "attribute", "declaration", "for", "#FIXED", "or", "default", "d...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3465-L3474
[ "def", "prop", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetProp", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.reconciliateNs
This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much ...
deps/src/libxml2-2.9.1/python/libxml2.py
def reconciliateNs(self, doc): """This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outsi...
def reconciliateNs(self, doc): """This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outsi...
[ "This", "function", "checks", "that", "all", "the", "namespaces", "declared", "within", "the", "given", "tree", "are", "properly", "declared", ".", "This", "is", "needed", "for", "example", "after", "Copy", "or", "Cut", "and", "then", "paste", "operations", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3476-L3489
[ "def", "reconciliateNs", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlReconciliateNs", "(", "doc__o", ",", "self", ".", "_o"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.replaceNode
Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context.
deps/src/libxml2-2.9.1/python/libxml2.py
def replaceNode(self, cur): """Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. """ if cur is None: cur__o = None else: cur__o = cur._o ret = ...
def replaceNode(self, cur): """Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. """ if cur is None: cur__o = None else: cur__o = cur._o ret = ...
[ "Unlink", "the", "old", "node", "from", "its", "current", "context", "prune", "the", "new", "one", "at", "the", "same", "place", ".", "If" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3491-L3500
[ "def", "replaceNode", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlReplaceNode", "(", "self", ".", "_o", ",", "cur__o", ")...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.searchNs
Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return None otherwise. @nameSpace can be None, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't decl...
deps/src/libxml2-2.9.1/python/libxml2.py
def searchNs(self, doc, nameSpace): """Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return None otherwise. @nameSpace can be None, this is a search for the default namespace. We don't allow ...
def searchNs(self, doc, nameSpace): """Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return None otherwise. @nameSpace can be None, this is a search for the default namespace. We don't allow ...
[ "Search", "a", "Ns", "registered", "under", "a", "given", "name", "space", "for", "a", "document", ".", "recurse", "on", "the", "parents", "until", "it", "finds", "the", "defined", "namespace", "or", "return", "None", "otherwise", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3502-L3515
[ "def", "searchNs", "(", "self", ",", "doc", ",", "nameSpace", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlSearchNs", "(", "doc__o", ",", "self", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.searchNsByHref
Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return None otherwise.
deps/src/libxml2-2.9.1/python/libxml2.py
def searchNsByHref(self, doc, href): """Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return None otherwise. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlSearchNsByHref(doc__o, self._o,...
def searchNsByHref(self, doc, href): """Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return None otherwise. """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlSearchNsByHref(doc__o, self._o,...
[ "Search", "a", "Ns", "aliasing", "a", "given", "URI", ".", "Recurse", "on", "the", "parents", "until", "it", "finds", "the", "defined", "namespace", "or", "return", "None", "otherwise", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3517-L3526
[ "def", "searchNsByHref", "(", "self", ",", "doc", ",", "href", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlSearchNsByHref", "(", "doc__o", ",", "sel...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setContentLen
Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars().
deps/src/libxml2-2.9.1/python/libxml2.py
def setContentLen(self, content, len): """Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars(). """ ...
def setContentLen(self, content, len): """Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars(). """ ...
[ "Replace", "the", "content", "of", "a", "node", ".", "NOTE", ":" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3540-L3545
[ "def", "setContentLen", "(", "self", ",", "content", ",", "len", ")", ":", "libxml2mod", ".", "xmlNodeSetContentLen", "(", "self", ".", "_o", ",", "content", ",", "len", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setListDoc
update all nodes in the list to point to the right document
deps/src/libxml2-2.9.1/python/libxml2.py
def setListDoc(self, doc): """update all nodes in the list to point to the right document """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlSetListDoc(self._o, doc__o)
def setListDoc(self, doc): """update all nodes in the list to point to the right document """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlSetListDoc(self._o, doc__o)
[ "update", "all", "nodes", "in", "the", "list", "to", "point", "to", "the", "right", "document" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3552-L3556
[ "def", "setListDoc", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "libxml2mod", ".", "xmlSetListDoc", "(", "self", ".", "_o", ",", "doc__o", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setNs
Associate a namespace to a node, a posteriori.
deps/src/libxml2-2.9.1/python/libxml2.py
def setNs(self, ns): """Associate a namespace to a node, a posteriori. """ if ns is None: ns__o = None else: ns__o = ns._o libxml2mod.xmlSetNs(self._o, ns__o)
def setNs(self, ns): """Associate a namespace to a node, a posteriori. """ if ns is None: ns__o = None else: ns__o = ns._o libxml2mod.xmlSetNs(self._o, ns__o)
[ "Associate", "a", "namespace", "to", "a", "node", "a", "posteriori", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3562-L3566
[ "def", "setNs", "(", "self", ",", "ns", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "libxml2mod", ".", "xmlSetNs", "(", "self", ".", "_o", ",", "ns__o", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setNsProp
Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked
deps/src/libxml2-2.9.1/python/libxml2.py
def setNsProp(self, ns, name, value): """Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlSetNsProp(self._o, ns__o, name, value) if ret is None:...
def setNsProp(self, ns, name, value): """Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlSetNsProp(self._o, ns__o, name, value) if ret is None:...
[ "Set", "(", "or", "reset", ")", "an", "attribute", "carried", "by", "a", "node", ".", "The", "ns", "structure", "must", "be", "in", "scope", "this", "is", "not", "checked" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3568-L3576
[ "def", "setNsProp", "(", "self", ",", "ns", ",", "name", ",", "value", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlSetNsProp", "(", "self", ".", "_o...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setProp
Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope.
deps/src/libxml2-2.9.1/python/libxml2.py
def setProp(self, name, value): """Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. """ ret = libxml2mod.xmlSetPro...
def setProp(self, name, value): """Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. """ ret = libxml2mod.xmlSetPro...
[ "Set", "(", "or", "reset", ")", "an", "attribute", "carried", "by", "a", "node", ".", "If" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3578-L3586
[ "def", "setProp", "(", "self", ",", "name", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSetProp", "(", "self", ".", "_o", ",", "name", ",", "value", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlSetProp() failed'",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.setTreeDoc
update all nodes under the tree to point to the right document
deps/src/libxml2-2.9.1/python/libxml2.py
def setTreeDoc(self, doc): """update all nodes under the tree to point to the right document """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlSetTreeDoc(self._o, doc__o)
def setTreeDoc(self, doc): """update all nodes under the tree to point to the right document """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlSetTreeDoc(self._o, doc__o)
[ "update", "all", "nodes", "under", "the", "tree", "to", "point", "to", "the", "right", "document" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3593-L3598
[ "def", "setTreeDoc", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "libxml2mod", ".", "xmlSetTreeDoc", "(", "self", ".", "_o", ",", "doc__o", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.textConcat
Concat the given string at the end of the existing node content
deps/src/libxml2-2.9.1/python/libxml2.py
def textConcat(self, content, len): """Concat the given string at the end of the existing node content """ ret = libxml2mod.xmlTextConcat(self._o, content, len) return ret
def textConcat(self, content, len): """Concat the given string at the end of the existing node content """ ret = libxml2mod.xmlTextConcat(self._o, content, len) return ret
[ "Concat", "the", "given", "string", "at", "the", "end", "of", "the", "existing", "node", "content" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3600-L3604
[ "def", "textConcat", "(", "self", ",", "content", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextConcat", "(", "self", ".", "_o", ",", "content", ",", "len", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.textMerge
Merge two text nodes into one
deps/src/libxml2-2.9.1/python/libxml2.py
def textMerge(self, second): """Merge two text nodes into one """ if second is None: second__o = None else: second__o = second._o ret = libxml2mod.xmlTextMerge(self._o, second__o) if ret is None:raise treeError('xmlTextMerge() failed') __tmp = xmlNode(_obj=ret) re...
def textMerge(self, second): """Merge two text nodes into one """ if second is None: second__o = None else: second__o = second._o ret = libxml2mod.xmlTextMerge(self._o, second__o) if ret is None:raise treeError('xmlTextMerge() failed') __tmp = xmlNode(_obj=ret) re...
[ "Merge", "two", "text", "nodes", "into", "one" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3606-L3613
[ "def", "textMerge", "(", "self", ",", "second", ")", ":", "if", "second", "is", "None", ":", "second__o", "=", "None", "else", ":", "second__o", "=", "second", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextMerge", "(", "self", ".", "_o", ",", "se...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.unsetNsProp
Remove an attribute carried by a node.
deps/src/libxml2-2.9.1/python/libxml2.py
def unsetNsProp(self, ns, name): """Remove an attribute carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlUnsetNsProp(self._o, ns__o, name) return ret
def unsetNsProp(self, ns, name): """Remove an attribute carried by a node. """ if ns is None: ns__o = None else: ns__o = ns._o ret = libxml2mod.xmlUnsetNsProp(self._o, ns__o, name) return ret
[ "Remove", "an", "attribute", "carried", "by", "a", "node", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3623-L3628
[ "def", "unsetNsProp", "(", "self", ",", "ns", ",", "name", ")", ":", "if", "ns", "is", "None", ":", "ns__o", "=", "None", "else", ":", "ns__o", "=", "ns", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlUnsetNsProp", "(", "self", ".", "_o", ",", "n...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.unsetProp
Remove an attribute carried by a node. This handles only attributes in no namespace.
deps/src/libxml2-2.9.1/python/libxml2.py
def unsetProp(self, name): """Remove an attribute carried by a node. This handles only attributes in no namespace. """ ret = libxml2mod.xmlUnsetProp(self._o, name) return ret
def unsetProp(self, name): """Remove an attribute carried by a node. This handles only attributes in no namespace. """ ret = libxml2mod.xmlUnsetProp(self._o, name) return ret
[ "Remove", "an", "attribute", "carried", "by", "a", "node", ".", "This", "handles", "only", "attributes", "in", "no", "namespace", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3630-L3634
[ "def", "unsetProp", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlUnsetProp", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.isID
Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.
deps/src/libxml2-2.9.1/python/libxml2.py
def isID(self, doc, attr): """Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically. """ if doc is None: ...
def isID(self, doc, attr): """Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically. """ if doc is None: ...
[ "Determine", "whether", "an", "attribute", "is", "of", "type", "ID", ".", "In", "case", "we", "have", "DTD", "(", "s", ")", "then", "this", "is", "done", "if", "DTD", "loading", "has", "been", "requested", ".", "In", "the", "case", "of", "HTML", "doc...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3640-L3650
[ "def", "isID", "(", "self", ",", "doc", ",", "attr", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "attr", "is", "None", ":", "attr__o", "=", "None", "else", ":", "attr__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.isRef
Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).
deps/src/libxml2-2.9.1/python/libxml2.py
def isRef(self, doc, attr): """Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase). """ if doc is None: doc__o = None else: doc__o = doc._o if attr is None: attr__o = ...
def isRef(self, doc, attr): """Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase). """ if doc is None: doc__o = None else: doc__o = doc._o if attr is None: attr__o = ...
[ "Determine", "whether", "an", "attribute", "is", "of", "type", "Ref", ".", "In", "case", "we", "have", "DTD", "(", "s", ")", "then", "this", "is", "simple", "otherwise", "we", "use", "an", "heuristic", ":", "name", "Ref", "(", "upper", "or", "lowercase...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3652-L3661
[ "def", "isRef", "(", "self", ",", "doc", ",", "attr", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "attr", "is", "None", ":", "attr__o", "=", "None", "else", ":", "attr__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.validNormalizeAttributeValue
Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequen...
deps/src/libxml2-2.9.1/python/libxml2.py
def validNormalizeAttributeValue(self, doc, name, value): """Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading an...
def validNormalizeAttributeValue(self, doc, name, value): """Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading an...
[ "Does", "the", "validation", "related", "extra", "step", "of", "the", "normalization", "of", "attribute", "values", ":", "If", "the", "declared", "value", "is", "not", "CDATA", "then", "the", "XML", "processor", "must", "further", "process", "the", "normalized...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3663-L3673
[ "def", "validNormalizeAttributeValue", "(", "self", ",", "doc", ",", "name", ",", "value", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidNormalizeAtt...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xincludeProcessTreeFlags
Implement the XInclude substitution for the given subtree
deps/src/libxml2-2.9.1/python/libxml2.py
def xincludeProcessTreeFlags(self, flags): """Implement the XInclude substitution for the given subtree """ ret = libxml2mod.xmlXIncludeProcessTreeFlags(self._o, flags) return ret
def xincludeProcessTreeFlags(self, flags): """Implement the XInclude substitution for the given subtree """ ret = libxml2mod.xmlXIncludeProcessTreeFlags(self._o, flags) return ret
[ "Implement", "the", "XInclude", "substitution", "for", "the", "given", "subtree" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3684-L3687
[ "def", "xincludeProcessTreeFlags", "(", "self", ",", "flags", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXIncludeProcessTreeFlags", "(", "self", ".", "_o", ",", "flags", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.schemaValidateOneElement
Validate a branch of a tree, starting with the given @elem.
deps/src/libxml2-2.9.1/python/libxml2.py
def schemaValidateOneElement(self, ctxt): """Validate a branch of a tree, starting with the given @elem. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlSchemaValidateOneElement(ctxt__o, self._o) return ret
def schemaValidateOneElement(self, ctxt): """Validate a branch of a tree, starting with the given @elem. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlSchemaValidateOneElement(ctxt__o, self._o) return ret
[ "Validate", "a", "branch", "of", "a", "tree", "starting", "with", "the", "given" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3693-L3698
[ "def", "schemaValidateOneElement", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlSchemaValidateOneElement", "(", "ctxt__o", ",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathCmpNodes
Compare two nodes w.r.t document order
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathCmpNodes(self, node2): """Compare two nodes w.r.t document order """ if node2 is None: node2__o = None else: node2__o = node2._o ret = libxml2mod.xmlXPathCmpNodes(self._o, node2__o) return ret
def xpathCmpNodes(self, node2): """Compare two nodes w.r.t document order """ if node2 is None: node2__o = None else: node2__o = node2._o ret = libxml2mod.xmlXPathCmpNodes(self._o, node2__o) return ret
[ "Compare", "two", "nodes", "w", ".", "r", ".", "t", "document", "order" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3714-L3719
[ "def", "xpathCmpNodes", "(", "self", ",", "node2", ")", ":", "if", "node2", "is", "None", ":", "node2__o", "=", "None", "else", ":", "node2__o", "=", "node2", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathCmpNodes", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNodeEval
Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNodeEval(self, str, ctx): """Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. """ if ctx is None: ctx__o = None else: ctx__o = ctx._o ret = libxml2mod.xmlXPathNodeEval(self._...
def xpathNodeEval(self, str, ctx): """Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. """ if ctx is None: ctx__o = None else: ctx__o = ctx._o ret = libxml2mod.xmlXPathNodeEval(self._...
[ "Evaluate", "the", "XPath", "Location", "Path", "in", "the", "given", "context", ".", "The", "node", "node", "is", "set", "as", "the", "context", "node", ".", "The", "context", "node", "is", "not", "restored", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3721-L3729
[ "def", "xpathNodeEval", "(", "self", ",", "str", ",", "ctx", ")", ":", "if", "ctx", "is", "None", ":", "ctx__o", "=", "None", "else", ":", "ctx__o", "=", "ctx", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNodeEval", "(", "self", ".", "_o", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNewNodeSet
Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNewNodeSet(self): """Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val """ ret = libxml2mod.xmlXPathNewNodeSet(self._o) if ret is None:raise xpathError('xmlXPathNewNodeSet() failed') return xpathObjectRet(ret)
def xpathNewNodeSet(self): """Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val """ ret = libxml2mod.xmlXPathNewNodeSet(self._o) if ret is None:raise xpathError('xmlXPathNewNodeSet() failed') return xpathObjectRet(ret)
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "NodeSet", "and", "initialize", "it", "with", "the", "single", "Node" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3735-L3740
[ "def", "xpathNewNodeSet", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathNewNodeSet", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathNewNodeSet() failed'", ")", "return", "xpathObjectRet", "("...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNewValueTree
Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNewValueTree(self): """Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val """ ret = libxml2mod.xmlXPathNewValueTree(self._o) if ret is None:raise xpathError('xmlXPathNewValueTree() failed') return xpathObjectRet(ret)
def xpathNewValueTree(self): """Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val """ ret = libxml2mod.xmlXPathNewValueTree(self._o) if ret is None:raise xpathError('xmlXPathNewValueTree() failed') return xpathObjectRet(ret)
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "Value", "Tree", "(", "XSLT", ")", "and", "initialize", "it", "with", "the", "tree", "root" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3742-L3747
[ "def", "xpathNewValueTree", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathNewValueTree", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathNewValueTree() failed'", ")", "return", "xpathObjectRet",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextAncestor
Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the paren...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAncestor(self, ctxt): """Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ord...
def xpathNextAncestor(self, ctxt): """Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ord...
[ "Traversal", "function", "for", "the", "ancestor", "direction", "the", "ancestor", "axis", "contains", "the", "ancestors", "of", "the", "context", "node", ";", "the", "ancestors", "of", "the", "context", "node", "consist", "of", "the", "parent", "of", "context...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3749-L3762
[ "def", "xpathNextAncestor", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAncestor", "(", "ctxt__o", ",", "self", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextAncestorOrSelf
Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAncestorOrSelf(self, ctxt): """Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the...
def xpathNextAncestorOrSelf(self, ctxt): """Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the...
[ "Traversal", "function", "for", "the", "ancestor", "-", "or", "-", "self", "direction", "he", "ancestor", "-", "or", "-", "self", "axis", "contains", "the", "context", "node", "and", "ancestors", "of", "the", "context", "node", "in", "reverse", "document", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3764-L3776
[ "def", "xpathNextAncestorOrSelf", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAncestorOrSelf", "(", "ctxt__o", ",",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextAttribute
Traversal function for the "attribute" direction TODO: support DTD inherited default attributes
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAttribute(self, ctxt): """Traversal function for the "attribute" direction TODO: support DTD inherited default attributes """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextAttribute(ctxt__o, self._o) if ret is None:ra...
def xpathNextAttribute(self, ctxt): """Traversal function for the "attribute" direction TODO: support DTD inherited default attributes """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextAttribute(ctxt__o, self._o) if ret is None:ra...
[ "Traversal", "function", "for", "the", "attribute", "direction", "TODO", ":", "support", "DTD", "inherited", "default", "attributes" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3778-L3786
[ "def", "xpathNextAttribute", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAttribute", "(", "ctxt__o", ",", "self",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextChild
Traversal function for the "child" direction The child axis contains the children of the context node in document order.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextChild(self, ctxt): """Traversal function for the "child" direction The child axis contains the children of the context node in document order. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextChild(ctxt__o, self._o) i...
def xpathNextChild(self, ctxt): """Traversal function for the "child" direction The child axis contains the children of the context node in document order. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextChild(ctxt__o, self._o) i...
[ "Traversal", "function", "for", "the", "child", "direction", "The", "child", "axis", "contains", "the", "children", "of", "the", "context", "node", "in", "document", "order", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3788-L3796
[ "def", "xpathNextChild", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextChild", "(", "ctxt__o", ",", "self", ".", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextDescendant
Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextDescendant(self, ctxt): """Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. """ if ctxt is None: ctxt__o = None ...
def xpathNextDescendant(self, ctxt): """Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. """ if ctxt is None: ctxt__o = None ...
[ "Traversal", "function", "for", "the", "descendant", "direction", "the", "descendant", "axis", "contains", "the", "descendants", "of", "the", "context", "node", "in", "document", "order", ";", "a", "descendant", "is", "a", "child", "or", "a", "child", "of", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3798-L3808
[ "def", "xpathNextDescendant", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextDescendant", "(", "ctxt__o", ",", "self...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextDescendantOrSelf
Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second no...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextDescendantOrSelf(self, ctxt): """Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the ...
def xpathNextDescendantOrSelf(self, ctxt): """Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the ...
[ "Traversal", "function", "for", "the", "descendant", "-", "or", "-", "self", "direction", "the", "descendant", "-", "or", "-", "self", "axis", "contains", "the", "context", "node", "and", "the", "descendants", "of", "the", "context", "node", "in", "document"...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3810-L3822
[ "def", "xpathNextDescendantOrSelf", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextDescendantOrSelf", "(", "ctxt__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextFollowing
Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextFollowing(self, ctxt): """Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute node...
def xpathNextFollowing(self, ctxt): """Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute node...
[ "Traversal", "function", "for", "the", "following", "direction", "The", "following", "axis", "contains", "all", "nodes", "in", "the", "same", "document", "as", "the", "context", "node", "that", "are", "after", "the", "context", "node", "in", "document", "order...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3824-L3836
[ "def", "xpathNextFollowing", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextFollowing", "(", "ctxt__o", ",", "self",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextFollowingSibling
Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextFollowingSibling(self, ctxt): """Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = ...
def xpathNextFollowingSibling(self, ctxt): """Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = ...
[ "Traversal", "function", "for", "the", "following", "-", "sibling", "direction", "The", "following", "-", "sibling", "axis", "contains", "the", "following", "siblings", "of", "the", "context", "node", "in", "document", "order", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3838-L3847
[ "def", "xpathNextFollowingSibling", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextFollowingSibling", "(", "ctxt__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextNamespace
Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextNamespace(self, ctxt): """Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an ele...
def xpathNextNamespace(self, ctxt): """Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an ele...
[ "Traversal", "function", "for", "the", "namespace", "direction", "the", "namespace", "axis", "contains", "the", "namespace", "nodes", "of", "the", "context", "node", ";", "the", "order", "of", "nodes", "on", "this", "axis", "is", "implementation", "-", "define...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3849-L3861
[ "def", "xpathNextNamespace", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextNamespace", "(", "ctxt__o", ",", "self",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextParent
Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextParent(self, ctxt): """Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextParent(ctxt__o, self._...
def xpathNextParent(self, ctxt): """Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextParent(ctxt__o, self._...
[ "Traversal", "function", "for", "the", "parent", "direction", "The", "parent", "axis", "contains", "the", "parent", "of", "the", "context", "node", "if", "there", "is", "one", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3863-L3872
[ "def", "xpathNextParent", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextParent", "(", "ctxt__o", ",", "self", "."...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextPreceding
Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextPreceding(self, ctxt): """Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes...
def xpathNextPreceding(self, ctxt): """Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes...
[ "Traversal", "function", "for", "the", "preceding", "direction", "the", "preceding", "axis", "contains", "all", "nodes", "in", "the", "same", "document", "as", "the", "context", "node", "that", "are", "before", "the", "context", "node", "in", "document", "orde...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3874-L3886
[ "def", "xpathNextPreceding", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextPreceding", "(", "ctxt__o", ",", "self",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextPrecedingSibling
Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so o...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextPrecedingSibling(self, ctxt): """Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling ...
def xpathNextPrecedingSibling(self, ctxt): """Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling ...
[ "Traversal", "function", "for", "the", "preceding", "-", "sibling", "direction", "The", "preceding", "-", "sibling", "axis", "contains", "the", "preceding", "siblings", "of", "the", "context", "node", "in", "reverse", "document", "order", ";", "the", "first", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3888-L3899
[ "def", "xpathNextPrecedingSibling", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextPrecedingSibling", "(", "ctxt__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpathNextSelf
Traversal function for the "self" direction The self axis contains just the context node itself
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextSelf(self, ctxt): """Traversal function for the "self" direction The self axis contains just the context node itself """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextSelf(ctxt__o, self._o) if ret is None:raise xpathE...
def xpathNextSelf(self, ctxt): """Traversal function for the "self" direction The self axis contains just the context node itself """ if ctxt is None: ctxt__o = None else: ctxt__o = ctxt._o ret = libxml2mod.xmlXPathNextSelf(ctxt__o, self._o) if ret is None:raise xpathE...
[ "Traversal", "function", "for", "the", "self", "direction", "The", "self", "axis", "contains", "just", "the", "context", "node", "itself" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3901-L3909
[ "def", "xpathNextSelf", "(", "self", ",", "ctxt", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextSelf", "(", "ctxt__o", ",", "self", ".", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpointerNewCollapsedRange
Create a new xmlXPathObjectPtr of type range using a single nodes
deps/src/libxml2-2.9.1/python/libxml2.py
def xpointerNewCollapsedRange(self): """Create a new xmlXPathObjectPtr of type range using a single nodes """ ret = libxml2mod.xmlXPtrNewCollapsedRange(self._o) if ret is None:raise treeError('xmlXPtrNewCollapsedRange() failed') return xpathObjectRet(ret)
def xpointerNewCollapsedRange(self): """Create a new xmlXPathObjectPtr of type range using a single nodes """ ret = libxml2mod.xmlXPtrNewCollapsedRange(self._o) if ret is None:raise treeError('xmlXPtrNewCollapsedRange() failed') return xpathObjectRet(ret)
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "range", "using", "a", "single", "nodes" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3915-L3920
[ "def", "xpointerNewCollapsedRange", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPtrNewCollapsedRange", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrNewCollapsedRange() failed'", ")", "return", "x...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlNode.xpointerNewContext
Create a new XPointer context
deps/src/libxml2-2.9.1/python/libxml2.py
def xpointerNewContext(self, doc, origin): """Create a new XPointer context """ if doc is None: doc__o = None else: doc__o = doc._o if origin is None: origin__o = None else: origin__o = origin._o ret = libxml2mod.xmlXPtrNewContext(doc__o, self._o, origin__o) if re...
def xpointerNewContext(self, doc, origin): """Create a new XPointer context """ if doc is None: doc__o = None else: doc__o = doc._o if origin is None: origin__o = None else: origin__o = origin._o ret = libxml2mod.xmlXPtrNewContext(doc__o, self._o, origin__o) if re...
[ "Create", "a", "new", "XPointer", "context" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3922-L3931
[ "def", "xpointerNewContext", "(", "self", ",", "doc", ",", "origin", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "origin", "is", "None", ":", "origin__o", "=", "None", "else", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e