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 | parserCtxt.htmlCtxtReadDoc | parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlCtxtReadDoc(self, cur, URL, encoding, options):
"""parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadDoc(self._o, cur, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadDoc() faile... | def htmlCtxtReadDoc(self, cur, URL, encoding, options):
"""parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadDoc(self._o, cur, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadDoc() faile... | [
"parse",
"an",
"XML",
"in",
"-",
"memory",
"document",
"and",
"build",
"a",
"tree",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4953-L4959 | [
"def",
"htmlCtxtReadDoc",
"(",
"self",
",",
"cur",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"htmlCtxtReadDoc",
"(",
"self",
".",
"_o",
",",
"cur",
",",
"URL",
",",
"encoding",
",",
"options",
")",
"if",
"r... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.htmlCtxtReadFd | parse an XML from a file descriptor and build a tree. This
reuses the existing @ctxt parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlCtxtReadFd(self, fd, URL, encoding, options):
"""parse an XML from a file descriptor and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFd() failed... | def htmlCtxtReadFd(self, fd, URL, encoding, options):
"""parse an XML from a file descriptor and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFd() failed... | [
"parse",
"an",
"XML",
"from",
"a",
"file",
"descriptor",
"and",
"build",
"a",
"tree",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4961-L4967 | [
"def",
"htmlCtxtReadFd",
"(",
"self",
",",
"fd",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"htmlCtxtReadFd",
"(",
"self",
".",
"_o",
",",
"fd",
",",
"URL",
",",
"encoding",
",",
"options",
")",
"if",
"ret",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.htmlCtxtReadFile | parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlCtxtReadFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFile(... | def htmlCtxtReadFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context """
ret = libxml2mod.htmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFile(... | [
"parse",
"an",
"XML",
"file",
"from",
"the",
"filesystem",
"or",
"the",
"network",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4969-L4975 | [
"def",
"htmlCtxtReadFile",
"(",
"self",
",",
"filename",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"htmlCtxtReadFile",
"(",
"self",
".",
"_o",
",",
"filename",
",",
"encoding",
",",
"options",
")",
"if",
"ret",
"is",
"None... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.htmlCtxtUseOptions | Applies the options to the parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlCtxtUseOptions(self, options):
"""Applies the options to the parser context """
ret = libxml2mod.htmlCtxtUseOptions(self._o, options)
return ret | def htmlCtxtUseOptions(self, options):
"""Applies the options to the parser context """
ret = libxml2mod.htmlCtxtUseOptions(self._o, options)
return ret | [
"Applies",
"the",
"options",
"to",
"the",
"parser",
"context"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4989-L4992 | [
"def",
"htmlCtxtUseOptions",
"(",
"self",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"htmlCtxtUseOptions",
"(",
"self",
".",
"_o",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.htmlParseChunk | Parse a Chunk of memory | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlParseChunk(self, chunk, size, terminate):
"""Parse a Chunk of memory """
ret = libxml2mod.htmlParseChunk(self._o, chunk, size, terminate)
return ret | def htmlParseChunk(self, chunk, size, terminate):
"""Parse a Chunk of memory """
ret = libxml2mod.htmlParseChunk(self._o, chunk, size, terminate)
return ret | [
"Parse",
"a",
"Chunk",
"of",
"memory"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5005-L5008 | [
"def",
"htmlParseChunk",
"(",
"self",
",",
"chunk",
",",
"size",
",",
"terminate",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"htmlParseChunk",
"(",
"self",
".",
"_o",
",",
"chunk",
",",
"size",
",",
"terminate",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.ctxtReadFile | parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def ctxtReadFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context """
ret = libxml2mod.xmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('xmlCtxtReadFile() fail... | def ctxtReadFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. This
reuses the existing @ctxt parser context """
ret = libxml2mod.xmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('xmlCtxtReadFile() fail... | [
"parse",
"an",
"XML",
"file",
"from",
"the",
"filesystem",
"or",
"the",
"network",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5060-L5066 | [
"def",
"ctxtReadFile",
"(",
"self",
",",
"filename",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCtxtReadFile",
"(",
"self",
".",
"_o",
",",
"filename",
",",
"encoding",
",",
"options",
")",
"if",
"ret",
"is",
"None",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.ctxtReadMemory | parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def ctxtReadMemory(self, buffer, size, URL, encoding, options):
"""parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.xmlCtxtReadMemory(self._o, buffer, size, URL, encoding, options)
if ret is None:raise treeError('xmlC... | def ctxtReadMemory(self, buffer, size, URL, encoding, options):
"""parse an XML in-memory document and build a tree. This
reuses the existing @ctxt parser context """
ret = libxml2mod.xmlCtxtReadMemory(self._o, buffer, size, URL, encoding, options)
if ret is None:raise treeError('xmlC... | [
"parse",
"an",
"XML",
"in",
"-",
"memory",
"document",
"and",
"build",
"a",
"tree",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5068-L5074 | [
"def",
"ctxtReadMemory",
"(",
"self",
",",
"buffer",
",",
"size",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCtxtReadMemory",
"(",
"self",
".",
"_o",
",",
"buffer",
",",
"size",
",",
"URL",
",",
"encoding"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.ctxtResetPush | Reset a push parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def ctxtResetPush(self, chunk, size, filename, encoding):
"""Reset a push parser context """
ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding)
return ret | def ctxtResetPush(self, chunk, size, filename, encoding):
"""Reset a push parser context """
ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding)
return ret | [
"Reset",
"a",
"push",
"parser",
"context"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5080-L5083 | [
"def",
"ctxtResetPush",
"(",
"self",
",",
"chunk",
",",
"size",
",",
"filename",
",",
"encoding",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCtxtResetPush",
"(",
"self",
".",
"_o",
",",
"chunk",
",",
"size",
",",
"filename",
",",
"encoding",
")",
"re... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.ctxtUseOptions | Applies the options to the parser context | deps/src/libxml2-2.9.1/python/libxml2.py | def ctxtUseOptions(self, options):
"""Applies the options to the parser context """
ret = libxml2mod.xmlCtxtUseOptions(self._o, options)
return ret | def ctxtUseOptions(self, options):
"""Applies the options to the parser context """
ret = libxml2mod.xmlCtxtUseOptions(self._o, options)
return ret | [
"Applies",
"the",
"options",
"to",
"the",
"parser",
"context"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5085-L5088 | [
"def",
"ctxtUseOptions",
"(",
"self",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCtxtUseOptions",
"(",
"self",
".",
"_o",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.parseChunk | Parse a Chunk of memory | deps/src/libxml2-2.9.1/python/libxml2.py | def parseChunk(self, chunk, size, terminate):
"""Parse a Chunk of memory """
ret = libxml2mod.xmlParseChunk(self._o, chunk, size, terminate)
return ret | def parseChunk(self, chunk, size, terminate):
"""Parse a Chunk of memory """
ret = libxml2mod.xmlParseChunk(self._o, chunk, size, terminate)
return ret | [
"Parse",
"a",
"Chunk",
"of",
"memory"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5095-L5098 | [
"def",
"parseChunk",
"(",
"self",
",",
"chunk",
",",
"size",
",",
"terminate",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlParseChunk",
"(",
"self",
".",
"_o",
",",
"chunk",
",",
"size",
",",
"terminate",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.setupParserForBuffer | Setup the parser context to parse a new buffer; Clears any
prior contents from the parser context. The buffer
parameter must not be None, but the filename parameter can
be | deps/src/libxml2-2.9.1/python/libxml2.py | def setupParserForBuffer(self, buffer, filename):
"""Setup the parser context to parse a new buffer; Clears any
prior contents from the parser context. The buffer
parameter must not be None, but the filename parameter can
be """
libxml2mod.xmlSetupParserForBuffer(self._o, ... | def setupParserForBuffer(self, buffer, filename):
"""Setup the parser context to parse a new buffer; Clears any
prior contents from the parser context. The buffer
parameter must not be None, but the filename parameter can
be """
libxml2mod.xmlSetupParserForBuffer(self._o, ... | [
"Setup",
"the",
"parser",
"context",
"to",
"parse",
"a",
"new",
"buffer",
";",
"Clears",
"any",
"prior",
"contents",
"from",
"the",
"parser",
"context",
".",
"The",
"buffer",
"parameter",
"must",
"not",
"be",
"None",
"but",
"the",
"filename",
"parameter",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5114-L5119 | [
"def",
"setupParserForBuffer",
"(",
"self",
",",
"buffer",
",",
"filename",
")",
":",
"libxml2mod",
".",
"xmlSetupParserForBuffer",
"(",
"self",
".",
"_o",
",",
"buffer",
",",
"filename",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.decodeEntities | This function is deprecated, we now always process entities
content through xmlStringDecodeEntities TODO: remove it in
next major release. [67] Reference ::= EntityRef | CharRef
[69] PEReference ::= '%' Name ';' | deps/src/libxml2-2.9.1/python/libxml2.py | def decodeEntities(self, len, what, end, end2, end3):
"""This function is deprecated, we now always process entities
content through xmlStringDecodeEntities TODO: remove it in
next major release. [67] Reference ::= EntityRef | CharRef
[69] PEReference ::= '%' Name ';' """
... | def decodeEntities(self, len, what, end, end2, end3):
"""This function is deprecated, we now always process entities
content through xmlStringDecodeEntities TODO: remove it in
next major release. [67] Reference ::= EntityRef | CharRef
[69] PEReference ::= '%' Name ';' """
... | [
"This",
"function",
"is",
"deprecated",
"we",
"now",
"always",
"process",
"entities",
"content",
"through",
"xmlStringDecodeEntities",
"TODO",
":",
"remove",
"it",
"in",
"next",
"major",
"release",
".",
"[",
"67",
"]",
"Reference",
"::",
"=",
"EntityRef",
"|",... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5129-L5135 | [
"def",
"decodeEntities",
"(",
"self",
",",
"len",
",",
"what",
",",
"end",
",",
"end2",
",",
"end3",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlDecodeEntities",
"(",
"self",
".",
"_o",
",",
"len",
",",
"what",
",",
"end",
",",
"end2",
",",
"end3"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.handleEntity | Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. | deps/src/libxml2-2.9.1/python/libxml2.py | def handleEntity(self, entity):
"""Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. """
if entity is None: entity__o = None
else: entity__o = entity._o
... | def handleEntity(self, entity):
"""Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. """
if entity is None: entity__o = None
else: entity__o = entity._o
... | [
"Default",
"handling",
"of",
"defined",
"entities",
"when",
"should",
"we",
"define",
"a",
"new",
"input",
"stream",
"?",
"When",
"do",
"we",
"just",
"handle",
"that",
"as",
"a",
"set",
"of",
"chars",
"?",
"OBSOLETE",
":",
"to",
"be",
"removed",
"at",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5137-L5143 | [
"def",
"handleEntity",
"(",
"self",
",",
"entity",
")",
":",
"if",
"entity",
"is",
"None",
":",
"entity__o",
"=",
"None",
"else",
":",
"entity__o",
"=",
"entity",
".",
"_o",
"libxml2mod",
".",
"xmlHandleEntity",
"(",
"self",
".",
"_o",
",",
"entity__o",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.parseEntityRef | parse ENTITY references declarations [68] EntityRef ::=
'&' Name ';' [ WFC: Entity Declared ] In a document
without any DTD, a document with only an internal DTD
subset which contains no parameter entity references, or a
document with "standalone='yes'", the Name given in the
... | deps/src/libxml2-2.9.1/python/libxml2.py | def parseEntityRef(self):
"""parse ENTITY references declarations [68] EntityRef ::=
'&' Name ';' [ WFC: Entity Declared ] In a document
without any DTD, a document with only an internal DTD
subset which contains no parameter entity references, or a
document with "stand... | def parseEntityRef(self):
"""parse ENTITY references declarations [68] EntityRef ::=
'&' Name ';' [ WFC: Entity Declared ] In a document
without any DTD, a document with only an internal DTD
subset which contains no parameter entity references, or a
document with "stand... | [
"parse",
"ENTITY",
"references",
"declarations",
"[",
"68",
"]",
"EntityRef",
"::",
"=",
"&",
"Name",
";",
"[",
"WFC",
":",
"Entity",
"Declared",
"]",
"In",
"a",
"document",
"without",
"any",
"DTD",
"a",
"document",
"with",
"only",
"an",
"internal",
"DTD... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5288-L5311 | [
"def",
"parseEntityRef",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlParseEntityRef",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"parserError",
"(",
"'xmlParseEntityRef() failed'",
")",
"__tmp",
"=",
"xmlEntity",
"(",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.parseExternalSubset | parse Markup declarations from an external subset [30]
extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl
::= (markupdecl | conditionalSect | PEReference | S) * | deps/src/libxml2-2.9.1/python/libxml2.py | def parseExternalSubset(self, ExternalID, SystemID):
"""parse Markup declarations from an external subset [30]
extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl
::= (markupdecl | conditionalSect | PEReference | S) * """
libxml2mod.xmlParseExternalSubset(self._o, ExternalID,... | def parseExternalSubset(self, ExternalID, SystemID):
"""parse Markup declarations from an external subset [30]
extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl
::= (markupdecl | conditionalSect | PEReference | S) * """
libxml2mod.xmlParseExternalSubset(self._o, ExternalID,... | [
"parse",
"Markup",
"declarations",
"from",
"an",
"external",
"subset",
"[",
"30",
"]",
"extSubset",
"::",
"=",
"textDecl?",
"extSubsetDecl",
"[",
"31",
"]",
"extSubsetDecl",
"::",
"=",
"(",
"markupdecl",
"|",
"conditionalSect",
"|",
"PEReference",
"|",
"S",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5313-L5317 | [
"def",
"parseExternalSubset",
"(",
"self",
",",
"ExternalID",
",",
"SystemID",
")",
":",
"libxml2mod",
".",
"xmlParseExternalSubset",
"(",
"self",
".",
"_o",
",",
"ExternalID",
",",
"SystemID",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.stringDecodeEntities | Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' | deps/src/libxml2-2.9.1/python/libxml2.py | def stringDecodeEntities(self, str, what, end, end2, end3):
"""Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' """
ret = libxml2mod.xmlStringDecodeEntities(self._o, str, what, end,... | def stringDecodeEntities(self, str, what, end, end2, end3):
"""Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' """
ret = libxml2mod.xmlStringDecodeEntities(self._o, str, what, end,... | [
"Takes",
"a",
"entity",
"string",
"content",
"and",
"process",
"to",
"do",
"the",
"adequate",
"substitutions",
".",
"[",
"67",
"]",
"Reference",
"::",
"=",
"EntityRef",
"|",
"CharRef",
"[",
"69",
"]",
"PEReference",
"::",
"=",
"%",
"Name",
";"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5546-L5551 | [
"def",
"stringDecodeEntities",
"(",
"self",
",",
"str",
",",
"what",
",",
"end",
",",
"end2",
",",
"end3",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlStringDecodeEntities",
"(",
"self",
".",
"_o",
",",
"str",
",",
"what",
",",
"end",
",",
"end2",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | parserCtxt.stringLenDecodeEntities | Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' | deps/src/libxml2-2.9.1/python/libxml2.py | def stringLenDecodeEntities(self, str, len, what, end, end2, end3):
"""Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' """
ret = libxml2mod.xmlStringLenDecodeEntities(self._o, str,... | def stringLenDecodeEntities(self, str, len, what, end, end2, end3):
"""Takes a entity string content and process to do the
adequate substitutions. [67] Reference ::= EntityRef |
CharRef [69] PEReference ::= '%' Name ';' """
ret = libxml2mod.xmlStringLenDecodeEntities(self._o, str,... | [
"Takes",
"a",
"entity",
"string",
"content",
"and",
"process",
"to",
"do",
"the",
"adequate",
"substitutions",
".",
"[",
"67",
"]",
"Reference",
"::",
"=",
"EntityRef",
"|",
"CharRef",
"[",
"69",
"]",
"PEReference",
"::",
"=",
"%",
"Name",
";"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5553-L5558 | [
"def",
"stringLenDecodeEntities",
"(",
"self",
",",
"str",
",",
"len",
",",
"what",
",",
"end",
",",
"end2",
",",
"end3",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlStringLenDecodeEntities",
"(",
"self",
".",
"_o",
",",
"str",
",",
"len",
",",
"what"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.debugDumpAttr | Dumps debug information for the attribute | deps/src/libxml2-2.9.1/python/libxml2.py | def debugDumpAttr(self, output, depth):
"""Dumps debug information for the attribute """
libxml2mod.xmlDebugDumpAttr(output, self._o, depth) | def debugDumpAttr(self, output, depth):
"""Dumps debug information for the attribute """
libxml2mod.xmlDebugDumpAttr(output, self._o, depth) | [
"Dumps",
"debug",
"information",
"for",
"the",
"attribute"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5573-L5575 | [
"def",
"debugDumpAttr",
"(",
"self",
",",
"output",
",",
"depth",
")",
":",
"libxml2mod",
".",
"xmlDebugDumpAttr",
"(",
"output",
",",
"self",
".",
"_o",
",",
"depth",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.debugDumpAttrList | Dumps debug information for the attribute list | deps/src/libxml2-2.9.1/python/libxml2.py | def debugDumpAttrList(self, output, depth):
"""Dumps debug information for the attribute list """
libxml2mod.xmlDebugDumpAttrList(output, self._o, depth) | def debugDumpAttrList(self, output, depth):
"""Dumps debug information for the attribute list """
libxml2mod.xmlDebugDumpAttrList(output, self._o, depth) | [
"Dumps",
"debug",
"information",
"for",
"the",
"attribute",
"list"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5577-L5579 | [
"def",
"debugDumpAttrList",
"(",
"self",
",",
"output",
",",
"depth",
")",
":",
"libxml2mod",
".",
"xmlDebugDumpAttrList",
"(",
"output",
",",
"self",
".",
"_o",
",",
"depth",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.copyProp | Do a copy of the attribute. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyProp(self, target):
"""Do a copy of the attribute. """
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyProp(target__o, self._o)
if ret is None:raise treeError('xmlCopyProp() failed')
__tmp = xmlAttr(_obj=ret)
return ... | def copyProp(self, target):
"""Do a copy of the attribute. """
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyProp(target__o, self._o)
if ret is None:raise treeError('xmlCopyProp() failed')
__tmp = xmlAttr(_obj=ret)
return ... | [
"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#L5585-L5592 | [
"def",
"copyProp",
"(",
"self",
",",
"target",
")",
":",
"if",
"target",
"is",
"None",
":",
"target__o",
"=",
"None",
"else",
":",
"target__o",
"=",
"target",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyProp",
"(",
"target__o",
",",
"self",
".",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.copyPropList | Do a copy of an attribute list. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyPropList(self, target):
"""Do a copy of an attribute list. """
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyPropList(target__o, self._o)
if ret is None:raise treeError('xmlCopyPropList() failed')
__tmp = xmlAttr(_obj=ret)... | def copyPropList(self, target):
"""Do a copy of an attribute list. """
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyPropList(target__o, self._o)
if ret is None:raise treeError('xmlCopyPropList() failed')
__tmp = xmlAttr(_obj=ret)... | [
"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#L5594-L5601 | [
"def",
"copyPropList",
"(",
"self",
",",
"target",
")",
":",
"if",
"target",
"is",
"None",
":",
"target__o",
"=",
"None",
"else",
":",
"target__o",
"=",
"target",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyPropList",
"(",
"target__o",
",",
"self",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.removeID | Remove the given attribute from the ID table maintained
internally. | deps/src/libxml2-2.9.1/python/libxml2.py | def removeID(self, doc):
"""Remove the given attribute from the ID table maintained
internally. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveID(doc__o, self._o)
return ret | def removeID(self, doc):
"""Remove the given attribute from the ID table maintained
internally. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveID(doc__o, self._o)
return ret | [
"Remove",
"the",
"given",
"attribute",
"from",
"the",
"ID",
"table",
"maintained",
"internally",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5622-L5628 | [
"def",
"removeID",
"(",
"self",
",",
"doc",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlRemoveID",
"(",
"doc__o",
",",
"self",
".",
"_o",
")",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlAttr.removeRef | Remove the given attribute from the Ref table maintained
internally. | deps/src/libxml2-2.9.1/python/libxml2.py | def removeRef(self, doc):
"""Remove the given attribute from the Ref table maintained
internally. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveRef(doc__o, self._o)
return ret | def removeRef(self, doc):
"""Remove the given attribute from the Ref table maintained
internally. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveRef(doc__o, self._o)
return ret | [
"Remove",
"the",
"given",
"attribute",
"from",
"the",
"Ref",
"table",
"maintained",
"internally",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5630-L5636 | [
"def",
"removeRef",
"(",
"self",
",",
"doc",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlRemoveRef",
"(",
"doc__o",
",",
"self",
".",
"_o",
")",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.add | Add an entry in the catalog, it may overwrite existing but
different entries. | deps/src/libxml2-2.9.1/python/libxml2.py | def add(self, type, orig, replace):
"""Add an entry in the catalog, it may overwrite existing but
different entries. """
ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace)
return ret | def add(self, type, orig, replace):
"""Add an entry in the catalog, it may overwrite existing but
different entries. """
ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace)
return ret | [
"Add",
"an",
"entry",
"in",
"the",
"catalog",
"it",
"may",
"overwrite",
"existing",
"but",
"different",
"entries",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5661-L5665 | [
"def",
"add",
"(",
"self",
",",
"type",
",",
"orig",
",",
"replace",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogAdd",
"(",
"self",
".",
"_o",
",",
"type",
",",
"orig",
",",
"replace",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.remove | Remove an entry from the catalog | deps/src/libxml2-2.9.1/python/libxml2.py | def remove(self, value):
"""Remove an entry from the catalog """
ret = libxml2mod.xmlACatalogRemove(self._o, value)
return ret | def remove(self, value):
"""Remove an entry from the catalog """
ret = libxml2mod.xmlACatalogRemove(self._o, value)
return ret | [
"Remove",
"an",
"entry",
"from",
"the",
"catalog"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5681-L5684 | [
"def",
"remove",
"(",
"self",
",",
"value",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogRemove",
"(",
"self",
".",
"_o",
",",
"value",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.resolve | Do a complete resolution lookup of an External Identifier | deps/src/libxml2-2.9.1/python/libxml2.py | def resolve(self, pubID, sysID):
"""Do a complete resolution lookup of an External Identifier """
ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID)
return ret | def resolve(self, pubID, sysID):
"""Do a complete resolution lookup of an External Identifier """
ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID)
return ret | [
"Do",
"a",
"complete",
"resolution",
"lookup",
"of",
"an",
"External",
"Identifier"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5686-L5689 | [
"def",
"resolve",
"(",
"self",
",",
"pubID",
",",
"sysID",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogResolve",
"(",
"self",
".",
"_o",
",",
"pubID",
",",
"sysID",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.resolvePublic | Try to lookup the catalog local reference associated to a
public ID in that catalog | deps/src/libxml2-2.9.1/python/libxml2.py | def resolvePublic(self, pubID):
"""Try to lookup the catalog local reference associated to a
public ID in that catalog """
ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID)
return ret | def resolvePublic(self, pubID):
"""Try to lookup the catalog local reference associated to a
public ID in that catalog """
ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID)
return ret | [
"Try",
"to",
"lookup",
"the",
"catalog",
"local",
"reference",
"associated",
"to",
"a",
"public",
"ID",
"in",
"that",
"catalog"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5691-L5695 | [
"def",
"resolvePublic",
"(",
"self",
",",
"pubID",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogResolvePublic",
"(",
"self",
".",
"_o",
",",
"pubID",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.resolveSystem | Try to lookup the catalog resource for a system ID | deps/src/libxml2-2.9.1/python/libxml2.py | def resolveSystem(self, sysID):
"""Try to lookup the catalog resource for a system ID """
ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID)
return ret | def resolveSystem(self, sysID):
"""Try to lookup the catalog resource for a system ID """
ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID)
return ret | [
"Try",
"to",
"lookup",
"the",
"catalog",
"resource",
"for",
"a",
"system",
"ID"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5697-L5700 | [
"def",
"resolveSystem",
"(",
"self",
",",
"sysID",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogResolveSystem",
"(",
"self",
".",
"_o",
",",
"sysID",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | catalog.resolveURI | Do a complete resolution lookup of an URI | deps/src/libxml2-2.9.1/python/libxml2.py | def resolveURI(self, URI):
"""Do a complete resolution lookup of an URI """
ret = libxml2mod.xmlACatalogResolveURI(self._o, URI)
return ret | def resolveURI(self, URI):
"""Do a complete resolution lookup of an URI """
ret = libxml2mod.xmlACatalogResolveURI(self._o, URI)
return ret | [
"Do",
"a",
"complete",
"resolution",
"lookup",
"of",
"an",
"URI"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5702-L5705 | [
"def",
"resolveURI",
"(",
"self",
",",
"URI",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlACatalogResolveURI",
"(",
"self",
".",
"_o",
",",
"URI",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlDtd.copyDtd | Do a copy of the dtd. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyDtd(self):
"""Do a copy of the dtd. """
ret = libxml2mod.xmlCopyDtd(self._o)
if ret is None:raise treeError('xmlCopyDtd() failed')
__tmp = xmlDtd(_obj=ret)
return __tmp | def copyDtd(self):
"""Do a copy of the dtd. """
ret = libxml2mod.xmlCopyDtd(self._o)
if ret is None:raise treeError('xmlCopyDtd() failed')
__tmp = xmlDtd(_obj=ret)
return __tmp | [
"Do",
"a",
"copy",
"of",
"the",
"dtd",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5728-L5733 | [
"def",
"copyDtd",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyDtd",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlCopyDtd() failed'",
")",
"__tmp",
"=",
"xmlDtd",
"(",
"_obj",
"=",
"ret",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlDtd.dtdAttrDesc | Search the DTD for the description of this attribute on
this element. | deps/src/libxml2-2.9.1/python/libxml2.py | def dtdAttrDesc(self, elem, name):
"""Search the DTD for the description of this attribute on
this element. """
ret = libxml2mod.xmlGetDtdAttrDesc(self._o, elem, name)
if ret is None:raise treeError('xmlGetDtdAttrDesc() failed')
__tmp = xmlAttribute(_obj=ret)
return __... | def dtdAttrDesc(self, elem, name):
"""Search the DTD for the description of this attribute on
this element. """
ret = libxml2mod.xmlGetDtdAttrDesc(self._o, elem, name)
if ret is None:raise treeError('xmlGetDtdAttrDesc() failed')
__tmp = xmlAttribute(_obj=ret)
return __... | [
"Search",
"the",
"DTD",
"for",
"the",
"description",
"of",
"this",
"attribute",
"on",
"this",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5743-L5749 | [
"def",
"dtdAttrDesc",
"(",
"self",
",",
"elem",
",",
"name",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlGetDtdAttrDesc",
"(",
"self",
".",
"_o",
",",
"elem",
",",
"name",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlGetDtdAttr... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlDtd.dtdElementDesc | Search the DTD for the description of this element | deps/src/libxml2-2.9.1/python/libxml2.py | def dtdElementDesc(self, name):
"""Search the DTD for the description of this element """
ret = libxml2mod.xmlGetDtdElementDesc(self._o, name)
if ret is None:raise treeError('xmlGetDtdElementDesc() failed')
__tmp = xmlElement(_obj=ret)
return __tmp | def dtdElementDesc(self, name):
"""Search the DTD for the description of this element """
ret = libxml2mod.xmlGetDtdElementDesc(self._o, name)
if ret is None:raise treeError('xmlGetDtdElementDesc() failed')
__tmp = xmlElement(_obj=ret)
return __tmp | [
"Search",
"the",
"DTD",
"for",
"the",
"description",
"of",
"this",
"element"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5751-L5756 | [
"def",
"dtdElementDesc",
"(",
"self",
",",
"name",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlGetDtdElementDesc",
"(",
"self",
".",
"_o",
",",
"name",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlGetDtdElementDesc() failed'",
")",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlDtd.dtdQAttrDesc | Search the DTD for the description of this qualified
attribute on this element. | deps/src/libxml2-2.9.1/python/libxml2.py | def dtdQAttrDesc(self, elem, name, prefix):
"""Search the DTD for the description of this qualified
attribute on this element. """
ret = libxml2mod.xmlGetDtdQAttrDesc(self._o, elem, name, prefix)
if ret is None:raise treeError('xmlGetDtdQAttrDesc() failed')
__tmp = xmlAttribut... | def dtdQAttrDesc(self, elem, name, prefix):
"""Search the DTD for the description of this qualified
attribute on this element. """
ret = libxml2mod.xmlGetDtdQAttrDesc(self._o, elem, name, prefix)
if ret is None:raise treeError('xmlGetDtdQAttrDesc() failed')
__tmp = xmlAttribut... | [
"Search",
"the",
"DTD",
"for",
"the",
"description",
"of",
"this",
"qualified",
"attribute",
"on",
"this",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5758-L5764 | [
"def",
"dtdQAttrDesc",
"(",
"self",
",",
"elem",
",",
"name",
",",
"prefix",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlGetDtdQAttrDesc",
"(",
"self",
".",
"_o",
",",
"elem",
",",
"name",
",",
"prefix",
")",
"if",
"ret",
"is",
"None",
":",
"raise",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlDtd.dtdQElementDesc | Search the DTD for the description of this element | deps/src/libxml2-2.9.1/python/libxml2.py | def dtdQElementDesc(self, name, prefix):
"""Search the DTD for the description of this element """
ret = libxml2mod.xmlGetDtdQElementDesc(self._o, name, prefix)
if ret is None:raise treeError('xmlGetDtdQElementDesc() failed')
__tmp = xmlElement(_obj=ret)
return __tmp | def dtdQElementDesc(self, name, prefix):
"""Search the DTD for the description of this element """
ret = libxml2mod.xmlGetDtdQElementDesc(self._o, name, prefix)
if ret is None:raise treeError('xmlGetDtdQElementDesc() failed')
__tmp = xmlElement(_obj=ret)
return __tmp | [
"Search",
"the",
"DTD",
"for",
"the",
"description",
"of",
"this",
"element"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5766-L5771 | [
"def",
"dtdQElementDesc",
"(",
"self",
",",
"name",
",",
"prefix",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlGetDtdQElementDesc",
"(",
"self",
".",
"_o",
",",
"name",
",",
"prefix",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'x... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlEntity.handleEntity | Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. | deps/src/libxml2-2.9.1/python/libxml2.py | def handleEntity(self, ctxt):
"""Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. """
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
libxm... | def handleEntity(self, ctxt):
"""Default handling of defined entities, when should we define
a new input stream ? When do we just handle that as a set
of chars ? OBSOLETE: to be removed at some point. """
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
libxm... | [
"Default",
"handling",
"of",
"defined",
"entities",
"when",
"should",
"we",
"define",
"a",
"new",
"input",
"stream",
"?",
"When",
"do",
"we",
"just",
"handle",
"that",
"as",
"a",
"set",
"of",
"chars",
"?",
"OBSOLETE",
":",
"to",
"be",
"removed",
"at",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5795-L5801 | [
"def",
"handleEntity",
"(",
"self",
",",
"ctxt",
")",
":",
"if",
"ctxt",
"is",
"None",
":",
"ctxt__o",
"=",
"None",
"else",
":",
"ctxt__o",
"=",
"ctxt",
".",
"_o",
"libxml2mod",
".",
"xmlHandleEntity",
"(",
"ctxt__o",
",",
"self",
".",
"_o",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | Error.copyError | Save the original error to the new place. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyError(self, to):
"""Save the original error to the new place. """
if to is None: to__o = None
else: to__o = to._o
ret = libxml2mod.xmlCopyError(self._o, to__o)
return ret | def copyError(self, to):
"""Save the original error to the new place. """
if to is None: to__o = None
else: to__o = to._o
ret = libxml2mod.xmlCopyError(self._o, to__o)
return ret | [
"Save",
"the",
"original",
"error",
"to",
"the",
"new",
"place",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5843-L5848 | [
"def",
"copyError",
"(",
"self",
",",
"to",
")",
":",
"if",
"to",
"is",
"None",
":",
"to__o",
"=",
"None",
"else",
":",
"to__o",
"=",
"to",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyError",
"(",
"self",
".",
"_o",
",",
"to__o",
")",
"retu... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.copyNamespace | Do a copy of the namespace. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyNamespace(self):
"""Do a copy of the namespace. """
ret = libxml2mod.xmlCopyNamespace(self._o)
if ret is None:raise treeError('xmlCopyNamespace() failed')
__tmp = xmlNs(_obj=ret)
return __tmp | def copyNamespace(self):
"""Do a copy of the namespace. """
ret = libxml2mod.xmlCopyNamespace(self._o)
if ret is None:raise treeError('xmlCopyNamespace() failed')
__tmp = xmlNs(_obj=ret)
return __tmp | [
"Do",
"a",
"copy",
"of",
"the",
"namespace",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5867-L5872 | [
"def",
"copyNamespace",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyNamespace",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlCopyNamespace() failed'",
")",
"__tmp",
"=",
"xmlNs",
"(",
"_obj"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.copyNamespaceList | Do a copy of an namespace list. | deps/src/libxml2-2.9.1/python/libxml2.py | def copyNamespaceList(self):
"""Do a copy of an namespace list. """
ret = libxml2mod.xmlCopyNamespaceList(self._o)
if ret is None:raise treeError('xmlCopyNamespaceList() failed')
__tmp = xmlNs(_obj=ret)
return __tmp | def copyNamespaceList(self):
"""Do a copy of an namespace list. """
ret = libxml2mod.xmlCopyNamespaceList(self._o)
if ret is None:raise treeError('xmlCopyNamespaceList() failed')
__tmp = xmlNs(_obj=ret)
return __tmp | [
"Do",
"a",
"copy",
"of",
"an",
"namespace",
"list",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5874-L5879 | [
"def",
"copyNamespaceList",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlCopyNamespaceList",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlCopyNamespaceList() failed'",
")",
"__tmp",
"=",
"xmlNs",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.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, parent, 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 newChild(self, parent, 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#L5890-L5906 | [
"def",
"newChild",
"(",
"self",
",",
"parent",
",",
"name",
",",
"content",
")",
":",
"if",
"parent",
"is",
"None",
":",
"parent__o",
"=",
"None",
"else",
":",
"parent__o",
"=",
"parent",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewChild",
"(",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.newDocNode | Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by using
xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNo... | deps/src/libxml2-2.9.1/python/libxml2.py | def newDocNode(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by using
... | def newDocNode(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by using
... | [
"Creation",
"of",
"a",
"new",
"node",
"element",
"within",
"a",
"document",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5908-L5920 | [
"def",
"newDocNode",
"(",
"self",
",",
"doc",
",",
"name",
",",
"content",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewDocNode",
"(",
"doc__o",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.newDocNodeEatName | Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by using
xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNo... | deps/src/libxml2-2.9.1/python/libxml2.py | def newDocNodeEatName(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by usin... | def newDocNodeEatName(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). NOTE: @content is supposed to
be a piece of XML CDATA, so it allow entities references,
but XML special chars need to be escaped first by usin... | [
"Creation",
"of",
"a",
"new",
"node",
"element",
"within",
"a",
"document",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5922-L5934 | [
"def",
"newDocNodeEatName",
"(",
"self",
",",
"doc",
",",
"name",
",",
"content",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewDocNodeEatName",
"(",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.newDocRawNode | Creation of a new node element within a document. @ns and
@content are optional (None). | deps/src/libxml2-2.9.1/python/libxml2.py | def newDocRawNode(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlNewDocRawNode(doc__o, self._o, name, content)
if ret is N... | def newDocRawNode(self, doc, name, content):
"""Creation of a new node element within a document. @ns and
@content are optional (None). """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlNewDocRawNode(doc__o, self._o, name, content)
if ret is N... | [
"Creation",
"of",
"a",
"new",
"node",
"element",
"within",
"a",
"document",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5936-L5944 | [
"def",
"newDocRawNode",
"(",
"self",
",",
"doc",
",",
"name",
",",
"content",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewDocRawNode",
"(",
"doc_... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.newNodeEatName | Creation of a new node element. @ns is optional (None). | deps/src/libxml2-2.9.1/python/libxml2.py | def newNodeEatName(self, name):
"""Creation of a new node element. @ns is optional (None). """
ret = libxml2mod.xmlNewNodeEatName(self._o, name)
if ret is None:raise treeError('xmlNewNodeEatName() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | def newNodeEatName(self, name):
"""Creation of a new node element. @ns is optional (None). """
ret = libxml2mod.xmlNewNodeEatName(self._o, name)
if ret is None:raise treeError('xmlNewNodeEatName() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation",
"of",
"a",
"new",
"node",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5946-L5951 | [
"def",
"newNodeEatName",
"(",
"self",
",",
"name",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlNewNodeEatName",
"(",
"self",
".",
"_o",
",",
"name",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlNewNodeEatName() failed'",
")",
"__tm... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.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, node, name, value):
"""Create a new property tagged with a namespace and carried
by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlNewNsProp(node__o, self._o, name, value)
if ret is None:raise treeError('xmlN... | def newNsProp(self, node, name, value):
"""Create a new property tagged with a namespace and carried
by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlNewNsProp(node__o, self._o, name, value)
if ret is None:raise treeError('xmlN... | [
"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#L5953-L5961 | [
"def",
"newNsProp",
"(",
"self",
",",
"node",
",",
"name",
",",
"value",
")",
":",
"if",
"node",
"is",
"None",
":",
"node__o",
"=",
"None",
"else",
":",
"node__o",
"=",
"node",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewNsProp",
"(",
"node__o",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.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, node, name, value):
"""Create a new property tagged with a namespace and carried
by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlNewNsPropEatName(node__o, self._o, name, value)
if ret is None:raise t... | def newNsPropEatName(self, node, name, value):
"""Create a new property tagged with a namespace and carried
by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlNewNsPropEatName(node__o, self._o, name, value)
if ret is None:raise t... | [
"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#L5963-L5971 | [
"def",
"newNsPropEatName",
"(",
"self",
",",
"node",
",",
"name",
",",
"value",
")",
":",
"if",
"node",
"is",
"None",
":",
"node__o",
"=",
"None",
"else",
":",
"node__o",
"=",
"node",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewNsPropEatName",
"("... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.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, parent, 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, parent, 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#L5973-L5990 | [
"def",
"newTextChild",
"(",
"self",
",",
"parent",
",",
"name",
",",
"content",
")",
":",
"if",
"parent",
"is",
"None",
":",
"parent__o",
"=",
"None",
"else",
":",
"parent__o",
"=",
"parent",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlNewTextChild",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.setNs | Associate a namespace to a node, a posteriori. | deps/src/libxml2-2.9.1/python/libxml2.py | def setNs(self, node):
"""Associate a namespace to a node, a posteriori. """
if node is None: node__o = None
else: node__o = node._o
libxml2mod.xmlSetNs(node__o, self._o) | def setNs(self, node):
"""Associate a namespace to a node, a posteriori. """
if node is None: node__o = None
else: node__o = node._o
libxml2mod.xmlSetNs(node__o, self._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#L5992-L5996 | [
"def",
"setNs",
"(",
"self",
",",
"node",
")",
":",
"if",
"node",
"is",
"None",
":",
"node__o",
"=",
"None",
"else",
":",
"node__o",
"=",
"node",
".",
"_o",
"libxml2mod",
".",
"xmlSetNs",
"(",
"node__o",
",",
"self",
".",
"_o",
")"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.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, node, name, value):
"""Set (or reset) an attribute carried by a node. The ns
structure must be in scope, this is not checked """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlSetNsProp(node__o, self._o, name, value)
if ... | def setNsProp(self, node, name, value):
"""Set (or reset) an attribute carried by a node. The ns
structure must be in scope, this is not checked """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlSetNsProp(node__o, self._o, name, value)
if ... | [
"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#L5998-L6006 | [
"def",
"setNsProp",
"(",
"self",
",",
"node",
",",
"name",
",",
"value",
")",
":",
"if",
"node",
"is",
"None",
":",
"node__o",
"=",
"None",
"else",
":",
"node__o",
"=",
"node",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlSetNsProp",
"(",
"node__o",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlNs.unsetNsProp | Remove an attribute carried by a node. | deps/src/libxml2-2.9.1/python/libxml2.py | def unsetNsProp(self, node, name):
"""Remove an attribute carried by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlUnsetNsProp(node__o, self._o, name)
return ret | def unsetNsProp(self, node, name):
"""Remove an attribute carried by a node. """
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlUnsetNsProp(node__o, self._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#L6008-L6013 | [
"def",
"unsetNsProp",
"(",
"self",
",",
"node",
",",
"name",
")",
":",
"if",
"node",
"is",
"None",
":",
"node__o",
"=",
"None",
"else",
":",
"node__o",
"=",
"node",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlUnsetNsProp",
"(",
"node__o",
",",
"sel... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.htmlDocContentDumpFormatOutput | Dump an HTML document. | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlDocContentDumpFormatOutput(self, cur, encoding, format):
"""Dump an HTML document. """
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlDocContentDumpFormatOutput(self._o, cur__o, encoding, format) | def htmlDocContentDumpFormatOutput(self, cur, encoding, format):
"""Dump an HTML document. """
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlDocContentDumpFormatOutput(self._o, cur__o, encoding, format) | [
"Dump",
"an",
"HTML",
"document",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6035-L6039 | [
"def",
"htmlDocContentDumpFormatOutput",
"(",
"self",
",",
"cur",
",",
"encoding",
",",
"format",
")",
":",
"if",
"cur",
"is",
"None",
":",
"cur__o",
"=",
"None",
"else",
":",
"cur__o",
"=",
"cur",
".",
"_o",
"libxml2mod",
".",
"htmlDocContentDumpFormatOutpu... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.htmlDocContentDumpOutput | Dump an HTML document. Formating return/spaces are added. | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlDocContentDumpOutput(self, cur, encoding):
"""Dump an HTML document. Formating return/spaces are added. """
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlDocContentDumpOutput(self._o, cur__o, encoding) | def htmlDocContentDumpOutput(self, cur, encoding):
"""Dump an HTML document. Formating return/spaces are added. """
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlDocContentDumpOutput(self._o, cur__o, encoding) | [
"Dump",
"an",
"HTML",
"document",
".",
"Formating",
"return",
"/",
"spaces",
"are",
"added",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6041-L6045 | [
"def",
"htmlDocContentDumpOutput",
"(",
"self",
",",
"cur",
",",
"encoding",
")",
":",
"if",
"cur",
"is",
"None",
":",
"cur__o",
"=",
"None",
"else",
":",
"cur__o",
"=",
"cur",
".",
"_o",
"libxml2mod",
".",
"htmlDocContentDumpOutput",
"(",
"self",
".",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.htmlNodeDumpFormatOutput | Dump an HTML node, recursive behaviour,children are printed
too. | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlNodeDumpFormatOutput(self, doc, cur, encoding, format):
"""Dump an HTML node, recursive behaviour,children are printed
too. """
if doc is None: doc__o = None
else: doc__o = doc._o
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlNodeDu... | def htmlNodeDumpFormatOutput(self, doc, cur, encoding, format):
"""Dump an HTML node, recursive behaviour,children are printed
too. """
if doc is None: doc__o = None
else: doc__o = doc._o
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.htmlNodeDu... | [
"Dump",
"an",
"HTML",
"node",
"recursive",
"behaviour",
"children",
"are",
"printed",
"too",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6047-L6054 | [
"def",
"htmlNodeDumpFormatOutput",
"(",
"self",
",",
"doc",
",",
"cur",
",",
"encoding",
",",
"format",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"cur",
"is",
"None",
":",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.htmlNodeDumpOutput | Dump an HTML node, recursive behaviour,children are printed
too, and formatting returns/spaces are added. | deps/src/libxml2-2.9.1/python/libxml2.py | def htmlNodeDumpOutput(self, doc, cur, encoding):
"""Dump an HTML node, recursive behaviour,children are printed
too, and formatting returns/spaces are added. """
if doc is None: doc__o = None
else: doc__o = doc._o
if cur is None: cur__o = None
else: cur__o = cur._o
... | def htmlNodeDumpOutput(self, doc, cur, encoding):
"""Dump an HTML node, recursive behaviour,children are printed
too, and formatting returns/spaces are added. """
if doc is None: doc__o = None
else: doc__o = doc._o
if cur is None: cur__o = None
else: cur__o = cur._o
... | [
"Dump",
"an",
"HTML",
"node",
"recursive",
"behaviour",
"children",
"are",
"printed",
"too",
"and",
"formatting",
"returns",
"/",
"spaces",
"are",
"added",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6056-L6063 | [
"def",
"htmlNodeDumpOutput",
"(",
"self",
",",
"doc",
",",
"cur",
",",
"encoding",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"cur",
"is",
"None",
":",
"cur__o",
"=",
"None",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.nodeDumpOutput | Dump an XML node, recursive behaviour, children are printed
too. Note that @format = 1 provide node indenting only if
xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was
called | deps/src/libxml2-2.9.1/python/libxml2.py | def nodeDumpOutput(self, doc, cur, level, format, encoding):
"""Dump an XML node, recursive behaviour, children are printed
too. Note that @format = 1 provide node indenting only if
xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was
called """
if doc is None: doc__o = ... | def nodeDumpOutput(self, doc, cur, level, format, encoding):
"""Dump an XML node, recursive behaviour, children are printed
too. Note that @format = 1 provide node indenting only if
xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was
called """
if doc is None: doc__o = ... | [
"Dump",
"an",
"XML",
"node",
"recursive",
"behaviour",
"children",
"are",
"printed",
"too",
".",
"Note",
"that"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6069-L6078 | [
"def",
"nodeDumpOutput",
"(",
"self",
",",
"doc",
",",
"cur",
",",
"level",
",",
"format",
",",
"encoding",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"cur",
"is",
"None",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.saveFileTo | Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. | deps/src/libxml2-2.9.1/python/libxml2.py | def saveFileTo(self, cur, encoding):
"""Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. """
if cur is None: cur__o = None
else: cur__o = cur._o
ret = libxml2mod.xmlSaveFileTo(self._o, cu... | def saveFileTo(self, cur, encoding):
"""Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. """
if cur is None: cur__o = None
else: cur__o = cur._o
ret = libxml2mod.xmlSaveFileTo(self._o, cu... | [
"Dump",
"an",
"XML",
"document",
"to",
"an",
"I",
"/",
"O",
"buffer",
".",
"Warning",
"!",
"This",
"call",
"xmlOutputBufferClose",
"()",
"on",
"buf",
"which",
"is",
"not",
"available",
"after",
"this",
"call",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6080-L6087 | [
"def",
"saveFileTo",
"(",
"self",
",",
"cur",
",",
"encoding",
")",
":",
"if",
"cur",
"is",
"None",
":",
"cur__o",
"=",
"None",
"else",
":",
"cur__o",
"=",
"cur",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlSaveFileTo",
"(",
"self",
".",
"_o",
",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.saveFormatFileTo | Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. | deps/src/libxml2-2.9.1/python/libxml2.py | def saveFormatFileTo(self, cur, encoding, format):
"""Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. """
if cur is None: cur__o = None
else: cur__o = cur._o
ret = libxml2mod.xmlSaveForm... | def saveFormatFileTo(self, cur, encoding, format):
"""Dump an XML document to an I/O buffer. Warning ! This call
xmlOutputBufferClose() on buf which is not available after
this call. """
if cur is None: cur__o = None
else: cur__o = cur._o
ret = libxml2mod.xmlSaveForm... | [
"Dump",
"an",
"XML",
"document",
"to",
"an",
"I",
"/",
"O",
"buffer",
".",
"Warning",
"!",
"This",
"call",
"xmlOutputBufferClose",
"()",
"on",
"buf",
"which",
"is",
"not",
"available",
"after",
"this",
"call",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6089-L6096 | [
"def",
"saveFormatFileTo",
"(",
"self",
",",
"cur",
",",
"encoding",
",",
"format",
")",
":",
"if",
"cur",
"is",
"None",
":",
"cur__o",
"=",
"None",
"else",
":",
"cur__o",
"=",
"cur",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlSaveFormatFileTo",
"("... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.write | Write the content of the array in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. | deps/src/libxml2-2.9.1/python/libxml2.py | def write(self, len, buf):
"""Write the content of the array in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. """
ret = libxml2mod.xmlOutputBufferWrite(self._... | def write(self, len, buf):
"""Write the content of the array in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. """
ret = libxml2mod.xmlOutputBufferWrite(self._... | [
"Write",
"the",
"content",
"of",
"the",
"array",
"in",
"the",
"output",
"I",
"/",
"O",
"buffer",
"This",
"routine",
"handle",
"the",
"I18N",
"transcoding",
"from",
"internal",
"UTF",
"-",
"8",
"The",
"buffer",
"is",
"lossless",
"i",
".",
"e",
".",
"wil... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6108-L6114 | [
"def",
"write",
"(",
"self",
",",
"len",
",",
"buf",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlOutputBufferWrite",
"(",
"self",
".",
"_o",
",",
"len",
",",
"buf",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | outputBuffer.writeString | Write the content of the string in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. | deps/src/libxml2-2.9.1/python/libxml2.py | def writeString(self, str):
"""Write the content of the string in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. """
ret = libxml2mod.xmlOutputBufferWriteStrin... | def writeString(self, str):
"""Write the content of the string in the output I/O buffer
This routine handle the I18N transcoding from internal
UTF-8 The buffer is lossless, i.e. will store in case of
partial or delayed writes. """
ret = libxml2mod.xmlOutputBufferWriteStrin... | [
"Write",
"the",
"content",
"of",
"the",
"string",
"in",
"the",
"output",
"I",
"/",
"O",
"buffer",
"This",
"routine",
"handle",
"the",
"I18N",
"transcoding",
"from",
"internal",
"UTF",
"-",
"8",
"The",
"buffer",
"is",
"lossless",
"i",
".",
"e",
".",
"wi... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6116-L6122 | [
"def",
"writeString",
"(",
"self",
",",
"str",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlOutputBufferWriteString",
"(",
"self",
".",
"_o",
",",
"str",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | inputBuffer.grow | Grow up the content of the input buffer, the old data are
preserved This routine handle the I18N transcoding to
internal UTF-8 This routine is used when operating the
parser in normal (pull) mode TODO: one should be able to
remove one extra copy by copying directly onto in->buff... | deps/src/libxml2-2.9.1/python/libxml2.py | def grow(self, len):
"""Grow up the content of the input buffer, the old data are
preserved This routine handle the I18N transcoding to
internal UTF-8 This routine is used when operating the
parser in normal (pull) mode TODO: one should be able to
remove one extra copy b... | def grow(self, len):
"""Grow up the content of the input buffer, the old data are
preserved This routine handle the I18N transcoding to
internal UTF-8 This routine is used when operating the
parser in normal (pull) mode TODO: one should be able to
remove one extra copy b... | [
"Grow",
"up",
"the",
"content",
"of",
"the",
"input",
"buffer",
"the",
"old",
"data",
"are",
"preserved",
"This",
"routine",
"handle",
"the",
"I18N",
"transcoding",
"to",
"internal",
"UTF",
"-",
"8",
"This",
"routine",
"is",
"used",
"when",
"operating",
"t... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6138-L6146 | [
"def",
"grow",
"(",
"self",
",",
"len",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlParserInputBufferGrow",
"(",
"self",
".",
"_o",
",",
"len",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | inputBuffer.push | Push the content of the arry in the input buffer This
routine handle the I18N transcoding to internal UTF-8 This
is used when operating the parser in progressive (push)
mode. | deps/src/libxml2-2.9.1/python/libxml2.py | def push(self, len, buf):
"""Push the content of the arry in the input buffer This
routine handle the I18N transcoding to internal UTF-8 This
is used when operating the parser in progressive (push)
mode. """
ret = libxml2mod.xmlParserInputBufferPush(self._o, len, buf)
... | def push(self, len, buf):
"""Push the content of the arry in the input buffer This
routine handle the I18N transcoding to internal UTF-8 This
is used when operating the parser in progressive (push)
mode. """
ret = libxml2mod.xmlParserInputBufferPush(self._o, len, buf)
... | [
"Push",
"the",
"content",
"of",
"the",
"arry",
"in",
"the",
"input",
"buffer",
"This",
"routine",
"handle",
"the",
"I18N",
"transcoding",
"to",
"internal",
"UTF",
"-",
"8",
"This",
"is",
"used",
"when",
"operating",
"the",
"parser",
"in",
"progressive",
"(... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6148-L6154 | [
"def",
"push",
"(",
"self",
",",
"len",
",",
"buf",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlParserInputBufferPush",
"(",
"self",
".",
"_o",
",",
"len",
",",
"buf",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | inputBuffer.read | Refresh the content of the input buffer, the old data are
considered consumed This routine handle the I18N
transcoding to internal UTF-8 | deps/src/libxml2-2.9.1/python/libxml2.py | def read(self, len):
"""Refresh the content of the input buffer, the old data are
considered consumed This routine handle the I18N
transcoding to internal UTF-8 """
ret = libxml2mod.xmlParserInputBufferRead(self._o, len)
return ret | def read(self, len):
"""Refresh the content of the input buffer, the old data are
considered consumed This routine handle the I18N
transcoding to internal UTF-8 """
ret = libxml2mod.xmlParserInputBufferRead(self._o, len)
return ret | [
"Refresh",
"the",
"content",
"of",
"the",
"input",
"buffer",
"the",
"old",
"data",
"are",
"considered",
"consumed",
"This",
"routine",
"handle",
"the",
"I18N",
"transcoding",
"to",
"internal",
"UTF",
"-",
"8"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6156-L6161 | [
"def",
"read",
"(",
"self",
",",
"len",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlParserInputBufferRead",
"(",
"self",
".",
"_o",
",",
"len",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | inputBuffer.Setup | Setup an XML reader with new options | deps/src/libxml2-2.9.1/python/libxml2.py | def Setup(self, reader, URL, encoding, options):
"""Setup an XML reader with new options """
if reader is None: reader__o = None
else: reader__o = reader._o
ret = libxml2mod.xmlTextReaderSetup(reader__o, self._o, URL, encoding, options)
return ret | def Setup(self, reader, URL, encoding, options):
"""Setup an XML reader with new options """
if reader is None: reader__o = None
else: reader__o = reader._o
ret = libxml2mod.xmlTextReaderSetup(reader__o, self._o, URL, encoding, options)
return ret | [
"Setup",
"an",
"XML",
"reader",
"with",
"new",
"options"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6167-L6172 | [
"def",
"Setup",
"(",
"self",
",",
"reader",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"if",
"reader",
"is",
"None",
":",
"reader__o",
"=",
"None",
"else",
":",
"reader__o",
"=",
"reader",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlTex... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | inputBuffer.newTextReader | Create an xmlTextReader structure fed with @input | deps/src/libxml2-2.9.1/python/libxml2.py | def newTextReader(self, URI):
"""Create an xmlTextReader structure fed with @input """
ret = libxml2mod.xmlNewTextReader(self._o, URI)
if ret is None:raise treeError('xmlNewTextReader() failed')
__tmp = xmlTextReader(_obj=ret)
__tmp.input = self
return __tmp | def newTextReader(self, URI):
"""Create an xmlTextReader structure fed with @input """
ret = libxml2mod.xmlNewTextReader(self._o, URI)
if ret is None:raise treeError('xmlNewTextReader() failed')
__tmp = xmlTextReader(_obj=ret)
__tmp.input = self
return __tmp | [
"Create",
"an",
"xmlTextReader",
"structure",
"fed",
"with"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6174-L6180 | [
"def",
"newTextReader",
"(",
"self",
",",
"URI",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlNewTextReader",
"(",
"self",
".",
"_o",
",",
"URI",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlNewTextReader() failed'",
")",
"__tmp",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlReg.regexpExec | Check if the regular expression generates the value | deps/src/libxml2-2.9.1/python/libxml2.py | def regexpExec(self, content):
"""Check if the regular expression generates the value """
ret = libxml2mod.xmlRegexpExec(self._o, content)
return ret | def regexpExec(self, content):
"""Check if the regular expression generates the value """
ret = libxml2mod.xmlRegexpExec(self._o, content)
return ret | [
"Check",
"if",
"the",
"regular",
"expression",
"generates",
"the",
"value"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6196-L6199 | [
"def",
"regexpExec",
"(",
"self",
",",
"content",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlRegexpExec",
"(",
"self",
".",
"_o",
",",
"content",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgParserCtxt.relaxNGParse | parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGParse(self):
"""parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. """
ret = libxml2mod.xmlRelaxNGParse(self._o)
if ret is None:raise parserError('xmlRelaxNGParse() failed')
__tmp = relaxNgSchema(_obj... | def relaxNGParse(self):
"""parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. """
ret = libxml2mod.xmlRelaxNGParse(self._o)
if ret is None:raise parserError('xmlRelaxNGParse() failed')
__tmp = relaxNgSchema(_obj... | [
"parse",
"a",
"schema",
"definition",
"resource",
"and",
"build",
"an",
"internal",
"XML",
"Shema",
"struture",
"which",
"can",
"be",
"used",
"to",
"validate",
"instances",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6224-L6230 | [
"def",
"relaxNGParse",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlRelaxNGParse",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"parserError",
"(",
"'xmlRelaxNGParse() failed'",
")",
"__tmp",
"=",
"relaxNgSchema",
"(",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgParserCtxt.relaxParserSetFlag | Semi private function used to pass informations to a parser
context which are a combination of xmlRelaxNGParserFlag . | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxParserSetFlag(self, flags):
"""Semi private function used to pass informations to a parser
context which are a combination of xmlRelaxNGParserFlag . """
ret = libxml2mod.xmlRelaxParserSetFlag(self._o, flags)
return ret | def relaxParserSetFlag(self, flags):
"""Semi private function used to pass informations to a parser
context which are a combination of xmlRelaxNGParserFlag . """
ret = libxml2mod.xmlRelaxParserSetFlag(self._o, flags)
return ret | [
"Semi",
"private",
"function",
"used",
"to",
"pass",
"informations",
"to",
"a",
"parser",
"context",
"which",
"are",
"a",
"combination",
"of",
"xmlRelaxNGParserFlag",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6232-L6236 | [
"def",
"relaxParserSetFlag",
"(",
"self",
",",
"flags",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlRelaxParserSetFlag",
"(",
"self",
".",
"_o",
",",
"flags",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgSchema.relaxNGNewValidCtxt | Create an XML RelaxNGs validation context based on the
given schema | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGNewValidCtxt(self):
"""Create an XML RelaxNGs validation context based on the
given schema """
ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o)
if ret is None:raise treeError('xmlRelaxNGNewValidCtxt() failed')
__tmp = relaxNgValidCtxt(_obj=ret)
__tmp.schema ... | def relaxNGNewValidCtxt(self):
"""Create an XML RelaxNGs validation context based on the
given schema """
ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o)
if ret is None:raise treeError('xmlRelaxNGNewValidCtxt() failed')
__tmp = relaxNgValidCtxt(_obj=ret)
__tmp.schema ... | [
"Create",
"an",
"XML",
"RelaxNGs",
"validation",
"context",
"based",
"on",
"the",
"given",
"schema"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6260-L6267 | [
"def",
"relaxNGNewValidCtxt",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlRelaxNGNewValidCtxt",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlRelaxNGNewValidCtxt() failed'",
")",
"__tmp",
"=",
"relax... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgSchema.RelaxNGSetSchema | Use RelaxNG to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then RelaxNG validation is desactivated. @
The @schema should not be freed until the reader is
deallocated or its use has been deactivated. | deps/src/libxml2-2.9.1/python/libxml2.py | def RelaxNGSetSchema(self, reader):
"""Use RelaxNG to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then RelaxNG validation is desactivated. @
The @schema should not be freed until the reader is
dealloc... | def RelaxNGSetSchema(self, reader):
"""Use RelaxNG to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then RelaxNG validation is desactivated. @
The @schema should not be freed until the reader is
dealloc... | [
"Use",
"RelaxNG",
"to",
"validate",
"the",
"document",
"as",
"it",
"is",
"processed",
".",
"Activation",
"is",
"only",
"possible",
"before",
"the",
"first",
"Read",
"()",
".",
"if"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6273-L6282 | [
"def",
"RelaxNGSetSchema",
"(",
"self",
",",
"reader",
")",
":",
"if",
"reader",
"is",
"None",
":",
"reader__o",
"=",
"None",
"else",
":",
"reader__o",
"=",
"reader",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderRelaxNGSetSchema",
"(",
"reader__o"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.relaxNGValidateDoc | Validate a document tree in memory. | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGValidateDoc(self, doc):
"""Validate a document tree in memory. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRelaxNGValidateDoc(self._o, doc__o)
return ret | def relaxNGValidateDoc(self, doc):
"""Validate a document tree in memory. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRelaxNGValidateDoc(self._o, doc__o)
return ret | [
"Validate",
"a",
"document",
"tree",
"in",
"memory",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6299-L6304 | [
"def",
"relaxNGValidateDoc",
"(",
"self",
",",
"doc",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlRelaxNGValidateDoc",
"(",
"self",
".",
"_o",
",",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.relaxNGValidateFullElement | Validate a full subtree when
xmlRelaxNGValidatePushElement() returned 0 and the content
of the node has been expanded. | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGValidateFullElement(self, doc, elem):
"""Validate a full subtree when
xmlRelaxNGValidatePushElement() returned 0 and the content
of the node has been expanded. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
... | def relaxNGValidateFullElement(self, doc, elem):
"""Validate a full subtree when
xmlRelaxNGValidatePushElement() returned 0 and the content
of the node has been expanded. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
... | [
"Validate",
"a",
"full",
"subtree",
"when",
"xmlRelaxNGValidatePushElement",
"()",
"returned",
"0",
"and",
"the",
"content",
"of",
"the",
"node",
"has",
"been",
"expanded",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6306-L6315 | [
"def",
"relaxNGValidateFullElement",
"(",
"self",
",",
"doc",
",",
"elem",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"elem",
"is",
"None",
":",
"elem__o",
"=",
"None",
"else",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.relaxNGValidatePopElement | Pop the element end from the RelaxNG validation stack. | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGValidatePopElement(self, doc, elem):
"""Pop the element end from the RelaxNG validation stack. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePopElement(self._o,... | def relaxNGValidatePopElement(self, doc, elem):
"""Pop the element end from the RelaxNG validation stack. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePopElement(self._o,... | [
"Pop",
"the",
"element",
"end",
"from",
"the",
"RelaxNG",
"validation",
"stack",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6317-L6324 | [
"def",
"relaxNGValidatePopElement",
"(",
"self",
",",
"doc",
",",
"elem",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"elem",
"is",
"None",
":",
"elem__o",
"=",
"None",
"else",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.relaxNGValidatePushCData | check the CData parsed for validation in the current stack | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGValidatePushCData(self, data, len):
"""check the CData parsed for validation in the current stack """
ret = libxml2mod.xmlRelaxNGValidatePushCData(self._o, data, len)
return ret | def relaxNGValidatePushCData(self, data, len):
"""check the CData parsed for validation in the current stack """
ret = libxml2mod.xmlRelaxNGValidatePushCData(self._o, data, len)
return ret | [
"check",
"the",
"CData",
"parsed",
"for",
"validation",
"in",
"the",
"current",
"stack"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6326-L6329 | [
"def",
"relaxNGValidatePushCData",
"(",
"self",
",",
"data",
",",
"len",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlRelaxNGValidatePushCData",
"(",
"self",
".",
"_o",
",",
"data",
",",
"len",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.relaxNGValidatePushElement | Push a new element start on the RelaxNG validation stack. | deps/src/libxml2-2.9.1/python/libxml2.py | def relaxNGValidatePushElement(self, doc, elem):
"""Push a new element start on the RelaxNG validation stack. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePushElement(sel... | def relaxNGValidatePushElement(self, doc, elem):
"""Push a new element start on the RelaxNG validation stack. """
if doc is None: doc__o = None
else: doc__o = doc._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePushElement(sel... | [
"Push",
"a",
"new",
"element",
"start",
"on",
"the",
"RelaxNG",
"validation",
"stack",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6331-L6338 | [
"def",
"relaxNGValidatePushElement",
"(",
"self",
",",
"doc",
",",
"elem",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"if",
"elem",
"is",
"None",
":",
"elem__o",
"=",
"None",
"else",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | relaxNgValidCtxt.RelaxNGValidateCtxt | Use RelaxNG schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then RelaxNG schema validation is
deactivated. | deps/src/libxml2-2.9.1/python/libxml2.py | def RelaxNGValidateCtxt(self, reader, options):
"""Use RelaxNG schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then RelaxNG schema validation is
deactivated. """
if reader is None: reader__o... | def RelaxNGValidateCtxt(self, reader, options):
"""Use RelaxNG schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then RelaxNG schema validation is
deactivated. """
if reader is None: reader__o... | [
"Use",
"RelaxNG",
"schema",
"context",
"to",
"validate",
"the",
"document",
"as",
"it",
"is",
"processed",
".",
"Activation",
"is",
"only",
"possible",
"before",
"the",
"first",
"Read",
"()",
".",
"If"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6344-L6352 | [
"def",
"RelaxNGValidateCtxt",
"(",
"self",
",",
"reader",
",",
"options",
")",
":",
"if",
"reader",
"is",
"None",
":",
"reader__o",
"=",
"None",
"else",
":",
"reader__o",
"=",
"reader",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderRelaxNGValidateC... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaParserCtxt.schemaParse | parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaParse(self):
"""parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. """
ret = libxml2mod.xmlSchemaParse(self._o)
if ret is None:raise parserError('xmlSchemaParse() failed')
__tmp = Schema(_obj=ret)
... | def schemaParse(self):
"""parse a schema definition resource and build an internal
XML Shema struture which can be used to validate instances. """
ret = libxml2mod.xmlSchemaParse(self._o)
if ret is None:raise parserError('xmlSchemaParse() failed')
__tmp = Schema(_obj=ret)
... | [
"parse",
"a",
"schema",
"definition",
"resource",
"and",
"build",
"an",
"internal",
"XML",
"Shema",
"struture",
"which",
"can",
"be",
"used",
"to",
"validate",
"instances",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6368-L6374 | [
"def",
"schemaParse",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaParse",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"parserError",
"(",
"'xmlSchemaParse() failed'",
")",
"__tmp",
"=",
"Schema",
"(",
"_obj",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | Schema.SetSchema | Use XSD Schema to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then Schema validation is desactivated. @
The @schema should not be freed until the reader is
deallocated or its use has been deactivated. | deps/src/libxml2-2.9.1/python/libxml2.py | def SetSchema(self, reader):
"""Use XSD Schema to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then Schema validation is desactivated. @
The @schema should not be freed until the reader is
deallocated ... | def SetSchema(self, reader):
"""Use XSD Schema to validate the document as it is processed.
Activation is only possible before the first Read(). if
@schema is None, then Schema validation is desactivated. @
The @schema should not be freed until the reader is
deallocated ... | [
"Use",
"XSD",
"Schema",
"to",
"validate",
"the",
"document",
"as",
"it",
"is",
"processed",
".",
"Activation",
"is",
"only",
"possible",
"before",
"the",
"first",
"Read",
"()",
".",
"if"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6390-L6399 | [
"def",
"SetSchema",
"(",
"self",
",",
"reader",
")",
":",
"if",
"reader",
"is",
"None",
":",
"reader__o",
"=",
"None",
"else",
":",
"reader__o",
"=",
"reader",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderSetSchema",
"(",
"reader__o",
",",
"se... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | Schema.schemaNewValidCtxt | Create an XML Schemas validation context based on the given
schema. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaNewValidCtxt(self):
"""Create an XML Schemas validation context based on the given
schema. """
ret = libxml2mod.xmlSchemaNewValidCtxt(self._o)
if ret is None:raise treeError('xmlSchemaNewValidCtxt() failed')
__tmp = SchemaValidCtxt(_obj=ret)
__tmp.schema = se... | def schemaNewValidCtxt(self):
"""Create an XML Schemas validation context based on the given
schema. """
ret = libxml2mod.xmlSchemaNewValidCtxt(self._o)
if ret is None:raise treeError('xmlSchemaNewValidCtxt() failed')
__tmp = SchemaValidCtxt(_obj=ret)
__tmp.schema = se... | [
"Create",
"an",
"XML",
"Schemas",
"validation",
"context",
"based",
"on",
"the",
"given",
"schema",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6409-L6416 | [
"def",
"schemaNewValidCtxt",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaNewValidCtxt",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlSchemaNewValidCtxt() failed'",
")",
"__tmp",
"=",
"SchemaVa... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.SchemaValidateCtxt | Use W3C XSD schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then XML Schema validation is
deactivated. | deps/src/libxml2-2.9.1/python/libxml2.py | def SchemaValidateCtxt(self, reader, options):
"""Use W3C XSD schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then XML Schema validation is
deactivated. """
if reader is None: reader__o = No... | def SchemaValidateCtxt(self, reader, options):
"""Use W3C XSD schema context to validate the document as it
is processed. Activation is only possible before the first
Read(). If @ctxt is None, then XML Schema validation is
deactivated. """
if reader is None: reader__o = No... | [
"Use",
"W3C",
"XSD",
"schema",
"context",
"to",
"validate",
"the",
"document",
"as",
"it",
"is",
"processed",
".",
"Activation",
"is",
"only",
"possible",
"before",
"the",
"first",
"Read",
"()",
".",
"If"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6433-L6441 | [
"def",
"SchemaValidateCtxt",
"(",
"self",
",",
"reader",
",",
"options",
")",
":",
"if",
"reader",
"is",
"None",
":",
"reader__o",
"=",
"None",
"else",
":",
"reader__o",
"=",
"reader",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderSchemaValidateCtx... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.schemaSetValidOptions | Sets the options to be used during the validation. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaSetValidOptions(self, options):
"""Sets the options to be used during the validation. """
ret = libxml2mod.xmlSchemaSetValidOptions(self._o, options)
return ret | def schemaSetValidOptions(self, options):
"""Sets the options to be used during the validation. """
ret = libxml2mod.xmlSchemaSetValidOptions(self._o, options)
return ret | [
"Sets",
"the",
"options",
"to",
"be",
"used",
"during",
"the",
"validation",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6452-L6455 | [
"def",
"schemaSetValidOptions",
"(",
"self",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaSetValidOptions",
"(",
"self",
".",
"_o",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.schemaValidCtxtGetParserCtxt | allow access to the parser context of the schema validation
context | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaValidCtxtGetParserCtxt(self):
"""allow access to the parser context of the schema validation
context """
ret = libxml2mod.xmlSchemaValidCtxtGetParserCtxt(self._o)
if ret is None:raise parserError('xmlSchemaValidCtxtGetParserCtxt() failed')
__tmp = parserCtxt(_obj=ret... | def schemaValidCtxtGetParserCtxt(self):
"""allow access to the parser context of the schema validation
context """
ret = libxml2mod.xmlSchemaValidCtxtGetParserCtxt(self._o)
if ret is None:raise parserError('xmlSchemaValidCtxtGetParserCtxt() failed')
__tmp = parserCtxt(_obj=ret... | [
"allow",
"access",
"to",
"the",
"parser",
"context",
"of",
"the",
"schema",
"validation",
"context"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6462-L6468 | [
"def",
"schemaValidCtxtGetParserCtxt",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaValidCtxtGetParserCtxt",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"parserError",
"(",
"'xmlSchemaValidCtxtGetParserCtxt() failed'",
")... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.schemaValidateDoc | Validate a document tree in memory. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaValidateDoc(self, doc):
"""Validate a document tree in memory. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlSchemaValidateDoc(self._o, doc__o)
return ret | def schemaValidateDoc(self, doc):
"""Validate a document tree in memory. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlSchemaValidateDoc(self._o, doc__o)
return ret | [
"Validate",
"a",
"document",
"tree",
"in",
"memory",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6470-L6475 | [
"def",
"schemaValidateDoc",
"(",
"self",
",",
"doc",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaValidateDoc",
"(",
"self",
".",
"_o",
",",
"d... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.schemaValidateFile | Do a schemas validation of the given resource, it will use
the SAX streamable validation internally. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaValidateFile(self, filename, options):
"""Do a schemas validation of the given resource, it will use
the SAX streamable validation internally. """
ret = libxml2mod.xmlSchemaValidateFile(self._o, filename, options)
return ret | def schemaValidateFile(self, filename, options):
"""Do a schemas validation of the given resource, it will use
the SAX streamable validation internally. """
ret = libxml2mod.xmlSchemaValidateFile(self._o, filename, options)
return ret | [
"Do",
"a",
"schemas",
"validation",
"of",
"the",
"given",
"resource",
"it",
"will",
"use",
"the",
"SAX",
"streamable",
"validation",
"internally",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6477-L6481 | [
"def",
"schemaValidateFile",
"(",
"self",
",",
"filename",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaValidateFile",
"(",
"self",
".",
"_o",
",",
"filename",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | SchemaValidCtxt.schemaValidateOneElement | Validate a branch of a tree, starting with the given @elem. | deps/src/libxml2-2.9.1/python/libxml2.py | def schemaValidateOneElement(self, elem):
"""Validate a branch of a tree, starting with the given @elem. """
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlSchemaValidateOneElement(self._o, elem__o)
return ret | def schemaValidateOneElement(self, elem):
"""Validate a branch of a tree, starting with the given @elem. """
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlSchemaValidateOneElement(self._o, elem__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#L6483-L6488 | [
"def",
"schemaValidateOneElement",
"(",
"self",
",",
"elem",
")",
":",
"if",
"elem",
"is",
"None",
":",
"elem__o",
"=",
"None",
"else",
":",
"elem__o",
"=",
"elem",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlSchemaValidateOneElement",
"(",
"self",
".",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.CurrentDoc | Hacking interface allowing to get the xmlDocPtr
correponding to the current document being accessed by the
xmlTextReader. NOTE: as a result of this call, the reader
will not destroy the associated XML document and calling
xmlFreeDoc() on the result is needed once the reader
... | deps/src/libxml2-2.9.1/python/libxml2.py | def CurrentDoc(self):
"""Hacking interface allowing to get the xmlDocPtr
correponding to the current document being accessed by the
xmlTextReader. NOTE: as a result of this call, the reader
will not destroy the associated XML document and calling
xmlFreeDoc() on the resul... | def CurrentDoc(self):
"""Hacking interface allowing to get the xmlDocPtr
correponding to the current document being accessed by the
xmlTextReader. NOTE: as a result of this call, the reader
will not destroy the associated XML document and calling
xmlFreeDoc() on the resul... | [
"Hacking",
"interface",
"allowing",
"to",
"get",
"the",
"xmlDocPtr",
"correponding",
"to",
"the",
"current",
"document",
"being",
"accessed",
"by",
"the",
"xmlTextReader",
".",
"NOTE",
":",
"as",
"a",
"result",
"of",
"this",
"call",
"the",
"reader",
"will",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6555-L6565 | [
"def",
"CurrentDoc",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderCurrentDoc",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlTextReaderCurrentDoc() failed'",
")",
"__tmp",
"=",
"xmlDoc",
"... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.CurrentNode | Hacking interface allowing to get the xmlNodePtr
correponding to the current node being accessed by the
xmlTextReader. This is dangerous because the underlying
node may be destroyed on the next Reads. | deps/src/libxml2-2.9.1/python/libxml2.py | def CurrentNode(self):
"""Hacking interface allowing to get the xmlNodePtr
correponding to the current node being accessed by the
xmlTextReader. This is dangerous because the underlying
node may be destroyed on the next Reads. """
ret = libxml2mod.xmlTextReaderCurrentNode(... | def CurrentNode(self):
"""Hacking interface allowing to get the xmlNodePtr
correponding to the current node being accessed by the
xmlTextReader. This is dangerous because the underlying
node may be destroyed on the next Reads. """
ret = libxml2mod.xmlTextReaderCurrentNode(... | [
"Hacking",
"interface",
"allowing",
"to",
"get",
"the",
"xmlNodePtr",
"correponding",
"to",
"the",
"current",
"node",
"being",
"accessed",
"by",
"the",
"xmlTextReader",
".",
"This",
"is",
"dangerous",
"because",
"the",
"underlying",
"node",
"may",
"be",
"destroy... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6567-L6575 | [
"def",
"CurrentNode",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderCurrentNode",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlTextReaderCurrentNode() failed'",
")",
"__tmp",
"=",
"xmlNode",... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.Expand | Reads the contents of the current node and the full
subtree. It then makes the subtree available until the next
xmlTextReaderRead() call | deps/src/libxml2-2.9.1/python/libxml2.py | def Expand(self):
"""Reads the contents of the current node and the full
subtree. It then makes the subtree available until the next
xmlTextReaderRead() call """
ret = libxml2mod.xmlTextReaderExpand(self._o)
if ret is None:raise treeError('xmlTextReaderExpand() failed')
... | def Expand(self):
"""Reads the contents of the current node and the full
subtree. It then makes the subtree available until the next
xmlTextReaderRead() call """
ret = libxml2mod.xmlTextReaderExpand(self._o)
if ret is None:raise treeError('xmlTextReaderExpand() failed')
... | [
"Reads",
"the",
"contents",
"of",
"the",
"current",
"node",
"and",
"the",
"full",
"subtree",
".",
"It",
"then",
"makes",
"the",
"subtree",
"available",
"until",
"the",
"next",
"xmlTextReaderRead",
"()",
"call"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6587-L6594 | [
"def",
"Expand",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderExpand",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlTextReaderExpand() failed'",
")",
"__tmp",
"=",
"xmlNode",
"(",
"_obj... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.GetAttribute | Provides the value of the attribute with the specified
qualified name. | deps/src/libxml2-2.9.1/python/libxml2.py | def GetAttribute(self, name):
"""Provides the value of the attribute with the specified
qualified name. """
ret = libxml2mod.xmlTextReaderGetAttribute(self._o, name)
return ret | def GetAttribute(self, name):
"""Provides the value of the attribute with the specified
qualified name. """
ret = libxml2mod.xmlTextReaderGetAttribute(self._o, name)
return ret | [
"Provides",
"the",
"value",
"of",
"the",
"attribute",
"with",
"the",
"specified",
"qualified",
"name",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6596-L6600 | [
"def",
"GetAttribute",
"(",
"self",
",",
"name",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderGetAttribute",
"(",
"self",
".",
"_o",
",",
"name",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.GetAttributeNo | Provides the value of the attribute with the specified
index relative to the containing element. | deps/src/libxml2-2.9.1/python/libxml2.py | def GetAttributeNo(self, no):
"""Provides the value of the attribute with the specified
index relative to the containing element. """
ret = libxml2mod.xmlTextReaderGetAttributeNo(self._o, no)
return ret | def GetAttributeNo(self, no):
"""Provides the value of the attribute with the specified
index relative to the containing element. """
ret = libxml2mod.xmlTextReaderGetAttributeNo(self._o, no)
return ret | [
"Provides",
"the",
"value",
"of",
"the",
"attribute",
"with",
"the",
"specified",
"index",
"relative",
"to",
"the",
"containing",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6602-L6606 | [
"def",
"GetAttributeNo",
"(",
"self",
",",
"no",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderGetAttributeNo",
"(",
"self",
".",
"_o",
",",
"no",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.GetAttributeNs | Provides the value of the specified attribute | deps/src/libxml2-2.9.1/python/libxml2.py | def GetAttributeNs(self, localName, namespaceURI):
"""Provides the value of the specified attribute """
ret = libxml2mod.xmlTextReaderGetAttributeNs(self._o, localName, namespaceURI)
return ret | def GetAttributeNs(self, localName, namespaceURI):
"""Provides the value of the specified attribute """
ret = libxml2mod.xmlTextReaderGetAttributeNs(self._o, localName, namespaceURI)
return ret | [
"Provides",
"the",
"value",
"of",
"the",
"specified",
"attribute"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6608-L6611 | [
"def",
"GetAttributeNs",
"(",
"self",
",",
"localName",
",",
"namespaceURI",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderGetAttributeNs",
"(",
"self",
".",
"_o",
",",
"localName",
",",
"namespaceURI",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.GetParserProp | Read the parser internal property. | deps/src/libxml2-2.9.1/python/libxml2.py | def GetParserProp(self, prop):
"""Read the parser internal property. """
ret = libxml2mod.xmlTextReaderGetParserProp(self._o, prop)
return ret | def GetParserProp(self, prop):
"""Read the parser internal property. """
ret = libxml2mod.xmlTextReaderGetParserProp(self._o, prop)
return ret | [
"Read",
"the",
"parser",
"internal",
"property",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6623-L6626 | [
"def",
"GetParserProp",
"(",
"self",
",",
"prop",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderGetParserProp",
"(",
"self",
".",
"_o",
",",
"prop",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.GetRemainder | Method to get the remainder of the buffered XML. this
method stops the parser, set its state to End Of File and
return the input stream with what is left that the parser
did not use. The implementation is not good, the parser
certainly procgressed past what's left in reader->inp... | deps/src/libxml2-2.9.1/python/libxml2.py | def GetRemainder(self):
"""Method to get the remainder of the buffered XML. this
method stops the parser, set its state to End Of File and
return the input stream with what is left that the parser
did not use. The implementation is not good, the parser
certainly procgres... | def GetRemainder(self):
"""Method to get the remainder of the buffered XML. this
method stops the parser, set its state to End Of File and
return the input stream with what is left that the parser
did not use. The implementation is not good, the parser
certainly procgres... | [
"Method",
"to",
"get",
"the",
"remainder",
"of",
"the",
"buffered",
"XML",
".",
"this",
"method",
"stops",
"the",
"parser",
"set",
"its",
"state",
"to",
"End",
"Of",
"File",
"and",
"return",
"the",
"input",
"stream",
"with",
"what",
"is",
"left",
"that",... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6628-L6639 | [
"def",
"GetRemainder",
"(",
"self",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderGetRemainder",
"(",
"self",
".",
"_o",
")",
"if",
"ret",
"is",
"None",
":",
"raise",
"treeError",
"(",
"'xmlTextReaderGetRemainder() failed'",
")",
"__tmp",
"=",
"inputB... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.LookupNamespace | Resolves a namespace prefix in the scope of the current
element. | deps/src/libxml2-2.9.1/python/libxml2.py | def LookupNamespace(self, prefix):
"""Resolves a namespace prefix in the scope of the current
element. """
ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix)
return ret | def LookupNamespace(self, prefix):
"""Resolves a namespace prefix in the scope of the current
element. """
ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix)
return ret | [
"Resolves",
"a",
"namespace",
"prefix",
"in",
"the",
"scope",
"of",
"the",
"current",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6678-L6682 | [
"def",
"LookupNamespace",
"(",
"self",
",",
"prefix",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderLookupNamespace",
"(",
"self",
".",
"_o",
",",
"prefix",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.MoveToAttribute | Moves the position of the current instance to the attribute
with the specified qualified name. | deps/src/libxml2-2.9.1/python/libxml2.py | def MoveToAttribute(self, name):
"""Moves the position of the current instance to the attribute
with the specified qualified name. """
ret = libxml2mod.xmlTextReaderMoveToAttribute(self._o, name)
return ret | def MoveToAttribute(self, name):
"""Moves the position of the current instance to the attribute
with the specified qualified name. """
ret = libxml2mod.xmlTextReaderMoveToAttribute(self._o, name)
return ret | [
"Moves",
"the",
"position",
"of",
"the",
"current",
"instance",
"to",
"the",
"attribute",
"with",
"the",
"specified",
"qualified",
"name",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6684-L6688 | [
"def",
"MoveToAttribute",
"(",
"self",
",",
"name",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderMoveToAttribute",
"(",
"self",
".",
"_o",
",",
"name",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.MoveToAttributeNo | Moves the position of the current instance to the attribute
with the specified index relative to the containing element. | deps/src/libxml2-2.9.1/python/libxml2.py | def MoveToAttributeNo(self, no):
"""Moves the position of the current instance to the attribute
with the specified index relative to the containing element. """
ret = libxml2mod.xmlTextReaderMoveToAttributeNo(self._o, no)
return ret | def MoveToAttributeNo(self, no):
"""Moves the position of the current instance to the attribute
with the specified index relative to the containing element. """
ret = libxml2mod.xmlTextReaderMoveToAttributeNo(self._o, no)
return ret | [
"Moves",
"the",
"position",
"of",
"the",
"current",
"instance",
"to",
"the",
"attribute",
"with",
"the",
"specified",
"index",
"relative",
"to",
"the",
"containing",
"element",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6690-L6694 | [
"def",
"MoveToAttributeNo",
"(",
"self",
",",
"no",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderMoveToAttributeNo",
"(",
"self",
".",
"_o",
",",
"no",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.MoveToAttributeNs | Moves the position of the current instance to the attribute
with the specified local name and namespace URI. | deps/src/libxml2-2.9.1/python/libxml2.py | def MoveToAttributeNs(self, localName, namespaceURI):
"""Moves the position of the current instance to the attribute
with the specified local name and namespace URI. """
ret = libxml2mod.xmlTextReaderMoveToAttributeNs(self._o, localName, namespaceURI)
return ret | def MoveToAttributeNs(self, localName, namespaceURI):
"""Moves the position of the current instance to the attribute
with the specified local name and namespace URI. """
ret = libxml2mod.xmlTextReaderMoveToAttributeNs(self._o, localName, namespaceURI)
return ret | [
"Moves",
"the",
"position",
"of",
"the",
"current",
"instance",
"to",
"the",
"attribute",
"with",
"the",
"specified",
"local",
"name",
"and",
"namespace",
"URI",
"."
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6696-L6700 | [
"def",
"MoveToAttributeNs",
"(",
"self",
",",
"localName",
",",
"namespaceURI",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlTextReaderMoveToAttributeNs",
"(",
"self",
".",
"_o",
",",
"localName",
",",
"namespaceURI",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.NewDoc | Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. | deps/src/libxml2-2.9.1/python/libxml2.py | def NewDoc(self, cur, URL, encoding, options):
"""Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewDoc(self._o, cur, ... | def NewDoc(self, cur, URL, encoding, options):
"""Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewDoc(self._o, cur, ... | [
"Setup",
"an",
"xmltextReader",
"to",
"parse",
"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#L6730-L6736 | [
"def",
"NewDoc",
"(",
"self",
",",
"cur",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlReaderNewDoc",
"(",
"self",
".",
"_o",
",",
"cur",
",",
"URL",
",",
"encoding",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.NewFd | Setup an xmltextReader to parse an XML from a file
descriptor. NOTE that the file descriptor will not be
closed when the reader is closed or reset. The parsing
flags @options are a combination of xmlParserOption. This
reuses the existing @reader xmlTextReader. | deps/src/libxml2-2.9.1/python/libxml2.py | def NewFd(self, fd, URL, encoding, options):
"""Setup an xmltextReader to parse an XML from a file
descriptor. NOTE that the file descriptor will not be
closed when the reader is closed or reset. The parsing
flags @options are a combination of xmlParserOption. This
reuse... | def NewFd(self, fd, URL, encoding, options):
"""Setup an xmltextReader to parse an XML from a file
descriptor. NOTE that the file descriptor will not be
closed when the reader is closed or reset. The parsing
flags @options are a combination of xmlParserOption. This
reuse... | [
"Setup",
"an",
"xmltextReader",
"to",
"parse",
"an",
"XML",
"from",
"a",
"file",
"descriptor",
".",
"NOTE",
"that",
"the",
"file",
"descriptor",
"will",
"not",
"be",
"closed",
"when",
"the",
"reader",
"is",
"closed",
"or",
"reset",
".",
"The",
"parsing",
... | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6738-L6745 | [
"def",
"NewFd",
"(",
"self",
",",
"fd",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlReaderNewFd",
"(",
"self",
".",
"_o",
",",
"fd",
",",
"URL",
",",
"encoding",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.NewFile | parse an XML file from the filesystem or the network. The
parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. | deps/src/libxml2-2.9.1/python/libxml2.py | def NewFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. The
parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewFile(self._o, filename... | def NewFile(self, filename, encoding, options):
"""parse an XML file from the filesystem or the network. The
parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewFile(self._o, filename... | [
"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#L6747-L6753 | [
"def",
"NewFile",
"(",
"self",
",",
"filename",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlReaderNewFile",
"(",
"self",
".",
"_o",
",",
"filename",
",",
"encoding",
",",
"options",
")",
"return",
"ret"
] | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.NewMemory | Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. | deps/src/libxml2-2.9.1/python/libxml2.py | def NewMemory(self, buffer, size, URL, encoding, options):
"""Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewMemory... | def NewMemory(self, buffer, size, URL, encoding, options):
"""Setup an xmltextReader to parse an XML in-memory document.
The parsing flags @options are a combination of
xmlParserOption. This reuses the existing @reader
xmlTextReader. """
ret = libxml2mod.xmlReaderNewMemory... | [
"Setup",
"an",
"xmltextReader",
"to",
"parse",
"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#L6755-L6761 | [
"def",
"NewMemory",
"(",
"self",
",",
"buffer",
",",
"size",
",",
"URL",
",",
"encoding",
",",
"options",
")",
":",
"ret",
"=",
"libxml2mod",
".",
"xmlReaderNewMemory",
"(",
"self",
".",
"_o",
",",
"buffer",
",",
"size",
",",
"URL",
",",
"encoding",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
train | xmlTextReader.NewWalker | Setup an xmltextReader to parse a preparsed XML document.
This reuses the existing @reader xmlTextReader. | deps/src/libxml2-2.9.1/python/libxml2.py | def NewWalker(self, doc):
"""Setup an xmltextReader to parse a preparsed XML document.
This reuses the existing @reader xmlTextReader. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlReaderNewWalker(self._o, doc__o)
return ret | def NewWalker(self, doc):
"""Setup an xmltextReader to parse a preparsed XML document.
This reuses the existing @reader xmlTextReader. """
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlReaderNewWalker(self._o, doc__o)
return ret | [
"Setup",
"an",
"xmltextReader",
"to",
"parse",
"a",
"preparsed",
"XML",
"document",
".",
"This",
"reuses",
"the",
"existing"
] | apple/turicreate | python | https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6763-L6769 | [
"def",
"NewWalker",
"(",
"self",
",",
"doc",
")",
":",
"if",
"doc",
"is",
"None",
":",
"doc__o",
"=",
"None",
"else",
":",
"doc__o",
"=",
"doc",
".",
"_o",
"ret",
"=",
"libxml2mod",
".",
"xmlReaderNewWalker",
"(",
"self",
".",
"_o",
",",
"doc__o",
... | 74514c3f99e25b46f22c6e02977fe3da69221c2e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.