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
xmlTextReader.Preserve
This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished
deps/src/libxml2-2.9.1/python/libxml2.py
def Preserve(self): """This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished """ ret = libxml2mod.xmlTextReaderPreserve(self._o) if ret is None:raise tr...
def Preserve(self): """This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished """ ret = libxml2mod.xmlTextReaderPreserve(self._o) if ret is None:raise tr...
[ "This", "tells", "the", "XML", "Reader", "to", "preserve", "the", "current", "node", ".", "The", "caller", "must", "also", "use", "xmlTextReaderCurrentDoc", "()", "to", "keep", "an", "handle", "on", "the", "resulting", "document", "once", "parsing", "has", "...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6807-L6814
[ "def", "Preserve", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderPreserve", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlTextReaderPreserve() failed'", ")", "__tmp", "=", "xmlNode", "(", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.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, schema): """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, schema): """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#L6856-L6865
[ "def", "RelaxNGSetSchema", "(", "self", ",", "schema", ")", ":", "if", "schema", "is", "None", ":", "schema__o", "=", "None", "else", ":", "schema__o", "=", "schema", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextReaderRelaxNGSetSchema", "(", "self", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.RelaxNGValidate
Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is None, then RelaxNG schema validation is deactivated.
deps/src/libxml2-2.9.1/python/libxml2.py
def RelaxNGValidate(self, rng): """Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is None, then RelaxNG schema validation is deactivated. """ ret = libxml2mod.xmlTextReaderRelaxNGValidate(self._o...
def RelaxNGValidate(self, rng): """Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is None, then RelaxNG schema validation is deactivated. """ ret = libxml2mod.xmlTextReaderRelaxNGValidate(self._o...
[ "Use", "RelaxNG", "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#L6867-L6873
[ "def", "RelaxNGValidate", "(", "self", ",", "rng", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderRelaxNGValidate", "(", "self", ".", "_o", ",", "rng", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.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, ctxt, 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 ctxt is None: ctxt__o = Non...
def RelaxNGValidateCtxt(self, ctxt, 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 ctxt is None: ctxt__o = Non...
[ "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#L6875-L6883
[ "def", "RelaxNGValidateCtxt", "(", "self", ",", "ctxt", ",", "options", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextReaderRelaxNGValidateCtxt", "(...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.SchemaValidate
Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is None, then XML Schema validation is deactivated.
deps/src/libxml2-2.9.1/python/libxml2.py
def SchemaValidate(self, xsd): """Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is None, then XML Schema validation is deactivated. """ ret = libxml2mod.xmlTextReaderSchemaValidate(self._o, xsd)...
def SchemaValidate(self, xsd): """Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is None, then XML Schema validation is deactivated. """ ret = libxml2mod.xmlTextReaderSchemaValidate(self._o, xsd)...
[ "Use", "W3C", "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#L6885-L6891
[ "def", "SchemaValidate", "(", "self", ",", "xsd", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderSchemaValidate", "(", "self", ".", "_o", ",", "xsd", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.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, ctxt, 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 ctxt is None: ctxt__o = None ...
def SchemaValidateCtxt(self, ctxt, 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 ctxt is None: ctxt__o = None ...
[ "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#L6893-L6901
[ "def", "SchemaValidateCtxt", "(", "self", ",", "ctxt", ",", "options", ")", ":", "if", "ctxt", "is", "None", ":", "ctxt__o", "=", "None", "else", ":", "ctxt__o", "=", "ctxt", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextReaderSchemaValidateCtxt", "(",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.SetParserProp
Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done.
deps/src/libxml2-2.9.1/python/libxml2.py
def SetParserProp(self, prop, value): """Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. """ ret = libxml2mod.xmlTextReaderSetParserProp(self._o, prop, value) ret...
def SetParserProp(self, prop, value): """Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. """ ret = libxml2mod.xmlTextReaderSetParserProp(self._o, prop, value) ret...
[ "Change", "the", "parser", "processing", "behaviour", "by", "changing", "some", "of", "its", "internal", "properties", ".", "Note", "that", "some", "properties", "can", "only", "be", "changed", "before", "any", "read", "has", "been", "done", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6903-L6908
[ "def", "SetParserProp", "(", "self", ",", "prop", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderSetParserProp", "(", "self", ".", "_o", ",", "prop", ",", "value", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.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, schema): """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, schema): """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#L6910-L6919
[ "def", "SetSchema", "(", "self", ",", "schema", ")", ":", "if", "schema", "is", "None", ":", "schema__o", "=", "None", "else", ":", "schema__o", "=", "schema", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextReaderSetSchema", "(", "self", ".", "_o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.Setup
Setup an XML reader with new options
deps/src/libxml2-2.9.1/python/libxml2.py
def Setup(self, input, URL, encoding, options): """Setup an XML reader with new options """ if input is None: input__o = None else: input__o = input._o ret = libxml2mod.xmlTextReaderSetup(self._o, input__o, URL, encoding, options) return ret
def Setup(self, input, URL, encoding, options): """Setup an XML reader with new options """ if input is None: input__o = None else: input__o = input._o ret = libxml2mod.xmlTextReaderSetup(self._o, input__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#L6921-L6926
[ "def", "Setup", "(", "self", ",", "input", ",", "URL", ",", "encoding", ",", "options", ")", ":", "if", "input", "is", "None", ":", "input__o", "=", "None", "else", ":", "input__o", "=", "input", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextRead...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xmlTextReader.String
Get an interned string from the reader, allows for example to speedup string name comparisons
deps/src/libxml2-2.9.1/python/libxml2.py
def String(self, str): """Get an interned string from the reader, allows for example to speedup string name comparisons """ ret = libxml2mod.xmlTextReaderConstString(self._o, str) return ret
def String(self, str): """Get an interned string from the reader, allows for example to speedup string name comparisons """ ret = libxml2mod.xmlTextReaderConstString(self._o, str) return ret
[ "Get", "an", "interned", "string", "from", "the", "reader", "allows", "for", "example", "to", "speedup", "string", "name", "comparisons" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6933-L6937
[ "def", "String", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderConstString", "(", "self", ".", "_o", ",", "str", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
URI.parseURIReference
Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref
deps/src/libxml2-2.9.1/python/libxml2.py
def parseURIReference(self, str): """Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIReference(self._o, str) return ret
def parseURIReference(self, str): """Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIReference(self._o, str) return ret
[ "Parse", "an", "URI", "reference", "string", "based", "on", "RFC", "3986", "and", "fills", "in", "the", "appropriate", "fields", "of", "the" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7060-L7065
[ "def", "parseURIReference", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlParseURIReference", "(", "self", ".", "_o", ",", "str", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validCtxtNormalizeAttributeValue
Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequen...
deps/src/libxml2-2.9.1/python/libxml2.py
def validCtxtNormalizeAttributeValue(self, doc, elem, name, value): """Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any ...
def validCtxtNormalizeAttributeValue(self, doc, elem, name, value): """Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any ...
[ "Does", "the", "validation", "related", "extra", "step", "of", "the", "normalization", "of", "attribute", "values", ":", "If", "the", "declared", "value", "is", "not", "CDATA", "then", "the", "XML", "processor", "must", "further", "process", "the", "normalized...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7090-L7104
[ "def", "validCtxtNormalizeAttributeValue", "(", "self", ",", "doc", ",", "elem", ",", "name", ",", "value", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "elem", "is", "None", ":"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateDocument
Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.
deps/src/libxml2-2.9.1/python/libxml2.py
def validateDocument(self, doc): """Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree. """ if doc is None: doc__o = None e...
def validateDocument(self, doc): """Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree. """ if doc is None: doc__o = None e...
[ "Try", "to", "validate", "the", "document", "instance", "basically", "it", "does", "the", "all", "the", "checks", "described", "by", "the", "XML", "Rec", "i", ".", "e", ".", "validates", "the", "internal", "and", "external", "subset", "(", "if", "present",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7106-L7114
[ "def", "validateDocument", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidateDocument", "(", "self", ".", "_o", ",", "doc...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateDocumentFinal
Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity
deps/src/libxml2-2.9.1/python/libxml2.py
def validateDocumentFinal(self, doc): """Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for va...
def validateDocumentFinal(self, doc): """Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for va...
[ "Does", "the", "final", "step", "for", "the", "document", "validation", "once", "all", "the", "incremental", "validation", "steps", "have", "been", "completed", "basically", "it", "does", "the", "following", "checks", "described", "by", "the", "XML", "Rec", "C...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7116-L7125
[ "def", "validateDocumentFinal", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidateDocumentFinal", "(", "self", ".", "_o", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateDtd
Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.
deps/src/libxml2-2.9.1/python/libxml2.py
def validateDtd(self, doc, dtd): """Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present....
def validateDtd(self, doc, dtd): """Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present....
[ "Try", "to", "validate", "the", "document", "against", "the", "dtd", "instance", "Basically", "it", "does", "check", "all", "the", "definitions", "in", "the", "DtD", ".", "Note", "the", "the", "internal", "subset", "(", "if", "present", ")", "is", "de", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7127-L7138
[ "def", "validateDtd", "(", "self", ",", "doc", ",", "dtd", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "dtd", "is", "None", ":", "dtd__o", "=", "None", "else", ":", "dtd__o"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateDtdFinal
Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATIO...
deps/src/libxml2-2.9.1/python/libxml2.py
def validateDtdFinal(self, doc): """Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one o...
def validateDtdFinal(self, doc): """Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one o...
[ "Does", "the", "final", "step", "for", "the", "dtds", "validation", "once", "all", "the", "subsets", "have", "been", "parsed", "basically", "it", "does", "the", "following", "checks", "described", "by", "the", "XML", "Rec", "-", "check", "that", "ENTITY", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7140-L7151
[ "def", "validateDtdFinal", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidateDtdFinal", "(", "self", ".", "_o", ",", "doc...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateElement
Try to validate the subtree under an element
deps/src/libxml2-2.9.1/python/libxml2.py
def validateElement(self, doc, elem): """Try to validate the subtree under an element """ 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.xmlValidateElement(self._o, doc__o, elem__o) retu...
def validateElement(self, doc, elem): """Try to validate the subtree under an element """ 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.xmlValidateElement(self._o, doc__o, elem__o) retu...
[ "Try", "to", "validate", "the", "subtree", "under", "an", "element" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7153-L7160
[ "def", "validateElement", "(", "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
ValidCtxt.validateNotationUse
Validate that the given name match a notation declaration. - [ VC: Notation Declared ]
deps/src/libxml2-2.9.1/python/libxml2.py
def validateNotationUse(self, doc, notationName): """Validate that the given name match a notation declaration. - [ VC: Notation Declared ] """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlValidateNotationUse(self._o, doc__o, notationName) re...
def validateNotationUse(self, doc, notationName): """Validate that the given name match a notation declaration. - [ VC: Notation Declared ] """ if doc is None: doc__o = None else: doc__o = doc._o ret = libxml2mod.xmlValidateNotationUse(self._o, doc__o, notationName) re...
[ "Validate", "that", "the", "given", "name", "match", "a", "notation", "declaration", ".", "-", "[", "VC", ":", "Notation", "Declared", "]" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7162-L7168
[ "def", "validateNotationUse", "(", "self", ",", "doc", ",", "notationName", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidateNotationUse", "(", "self...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateOneAttribute
Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: En...
deps/src/libxml2-2.9.1/python/libxml2.py
def validateOneAttribute(self, doc, elem, attr, value): """Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [...
def validateOneAttribute(self, doc, elem, attr, value): """Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [...
[ "Try", "to", "validate", "a", "single", "attribute", "for", "an", "element", "basically", "it", "does", "the", "following", "checks", "as", "described", "by", "the", "XML", "-", "1", ".", "0", "recommendation", ":", "-", "[", "VC", ":", "Attribute", "Val...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7170-L7185
[ "def", "validateOneAttribute", "(", "self", ",", "doc", ",", "elem", ",", "attr", ",", "value", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "elem", "is", "None", ":", "elem__o...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateOneElement
Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings ar...
deps/src/libxml2-2.9.1/python/libxml2.py
def validateOneElement(self, doc, elem): """Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() fo...
def validateOneElement(self, doc, elem): """Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() fo...
[ "Try", "to", "validate", "a", "single", "element", "and", "it", "s", "attributes", "basically", "it", "does", "the", "following", "checks", "as", "described", "by", "the", "XML", "-", "1", ".", "0", "recommendation", ":", "-", "[", "VC", ":", "Element", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7187-L7199
[ "def", "validateOneElement", "(", "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
ValidCtxt.validateOneNamespace
Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ...
deps/src/libxml2-2.9.1/python/libxml2.py
def validateOneNamespace(self, doc, elem, prefix, ns, value): """Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC:...
def validateOneNamespace(self, doc, elem, prefix, ns, value): """Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC:...
[ "Try", "to", "validate", "a", "single", "namespace", "declaration", "for", "an", "element", "basically", "it", "does", "the", "following", "checks", "as", "described", "by", "the", "XML", "-", "1", ".", "0", "recommendation", ":", "-", "[", "VC", ":", "A...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7201-L7216
[ "def", "validateOneNamespace", "(", "self", ",", "doc", ",", "elem", ",", "prefix", ",", "ns", ",", "value", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "elem", "is", "None", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validatePopElement
Pop the element end from the validation stack.
deps/src/libxml2-2.9.1/python/libxml2.py
def validatePopElement(self, doc, elem, qname): """Pop the element end from the 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.xmlValidatePopElement(self._o, doc__o, elem__...
def validatePopElement(self, doc, elem, qname): """Pop the element end from the 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.xmlValidatePopElement(self._o, doc__o, elem__...
[ "Pop", "the", "element", "end", "from", "the", "validation", "stack", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7218-L7225
[ "def", "validatePopElement", "(", "self", ",", "doc", ",", "elem", ",", "qname", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "elem", "is", "None", ":", "elem__o", "=", "None",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validatePushCData
check the CData parsed for validation in the current stack
deps/src/libxml2-2.9.1/python/libxml2.py
def validatePushCData(self, data, len): """check the CData parsed for validation in the current stack """ ret = libxml2mod.xmlValidatePushCData(self._o, data, len) return ret
def validatePushCData(self, data, len): """check the CData parsed for validation in the current stack """ ret = libxml2mod.xmlValidatePushCData(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#L7227-L7230
[ "def", "validatePushCData", "(", "self", ",", "data", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlValidatePushCData", "(", "self", ".", "_o", ",", "data", ",", "len", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validatePushElement
Push a new element start on the validation stack.
deps/src/libxml2-2.9.1/python/libxml2.py
def validatePushElement(self, doc, elem, qname): """Push a new element start on the 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.xmlValidatePushElement(self._o, doc__o, e...
def validatePushElement(self, doc, elem, qname): """Push a new element start on the 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.xmlValidatePushElement(self._o, doc__o, e...
[ "Push", "a", "new", "element", "start", "on", "the", "validation", "stack", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7232-L7239
[ "def", "validatePushElement", "(", "self", ",", "doc", ",", "elem", ",", "qname", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "if", "elem", "is", "None", ":", "elem__o", "=", "None"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
ValidCtxt.validateRoot
Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element
deps/src/libxml2-2.9.1/python/libxml2.py
def validateRoot(self, doc): """Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element """ if doc is None: doc__o = None ...
def validateRoot(self, doc): """Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element """ if doc is None: doc__o = None ...
[ "Try", "to", "validate", "a", "the", "root", "element", "basically", "it", "does", "the", "following", "check", "as", "described", "by", "the", "XML", "-", "1", ".", "0", "recommendation", ":", "-", "[", "VC", ":", "Root", "Element", "Type", "]", "it",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7241-L7249
[ "def", "validateRoot", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlValidateRoot", "(", "self", ".", "_o", ",", "doc__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.contextDoc
Get the doc from an xpathContext
deps/src/libxml2-2.9.1/python/libxml2.py
def contextDoc(self): """Get the doc from an xpathContext """ ret = libxml2mod.xmlXPathGetContextDoc(self._o) if ret is None:raise xpathError('xmlXPathGetContextDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
def contextDoc(self): """Get the doc from an xpathContext """ ret = libxml2mod.xmlXPathGetContextDoc(self._o) if ret is None:raise xpathError('xmlXPathGetContextDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
[ "Get", "the", "doc", "from", "an", "xpathContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7257-L7262
[ "def", "contextDoc", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathGetContextDoc", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathGetContextDoc() failed'", ")", "__tmp", "=", "xmlDoc", "(",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.contextNode
Get the current node from an xpathContext
deps/src/libxml2-2.9.1/python/libxml2.py
def contextNode(self): """Get the current node from an xpathContext """ ret = libxml2mod.xmlXPathGetContextNode(self._o) if ret is None:raise xpathError('xmlXPathGetContextNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
def contextNode(self): """Get the current node from an xpathContext """ ret = libxml2mod.xmlXPathGetContextNode(self._o) if ret is None:raise xpathError('xmlXPathGetContextNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "Get", "the", "current", "node", "from", "an", "xpathContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7264-L7269
[ "def", "contextNode", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathGetContextNode", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathGetContextNode() failed'", ")", "__tmp", "=", "xmlNode", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.setContextDoc
Set the doc of an xpathContext
deps/src/libxml2-2.9.1/python/libxml2.py
def setContextDoc(self, doc): """Set the doc of an xpathContext """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlXPathSetContextDoc(self._o, doc__o)
def setContextDoc(self, doc): """Set the doc of an xpathContext """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlXPathSetContextDoc(self._o, doc__o)
[ "Set", "the", "doc", "of", "an", "xpathContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7291-L7295
[ "def", "setContextDoc", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "libxml2mod", ".", "xmlXPathSetContextDoc", "(", "self", ".", "_o", ",", "doc__o", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.setContextNode
Set the current node of an xpathContext
deps/src/libxml2-2.9.1/python/libxml2.py
def setContextNode(self, node): """Set the current node of an xpathContext """ if node is None: node__o = None else: node__o = node._o libxml2mod.xmlXPathSetContextNode(self._o, node__o)
def setContextNode(self, node): """Set the current node of an xpathContext """ if node is None: node__o = None else: node__o = node._o libxml2mod.xmlXPathSetContextNode(self._o, node__o)
[ "Set", "the", "current", "node", "of", "an", "xpathContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7297-L7301
[ "def", "setContextNode", "(", "self", ",", "node", ")", ":", "if", "node", "is", "None", ":", "node__o", "=", "None", "else", ":", "node__o", "=", "node", ".", "_o", "libxml2mod", ".", "xmlXPathSetContextNode", "(", "self", ".", "_o", ",", "node__o", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.registerXPathFunction
Register a Python written function to the XPath interpreter
deps/src/libxml2-2.9.1/python/libxml2.py
def registerXPathFunction(self, name, ns_uri, f): """Register a Python written function to the XPath interpreter """ ret = libxml2mod.xmlRegisterXPathFunction(self._o, name, ns_uri, f) return ret
def registerXPathFunction(self, name, ns_uri, f): """Register a Python written function to the XPath interpreter """ ret = libxml2mod.xmlRegisterXPathFunction(self._o, name, ns_uri, f) return ret
[ "Register", "a", "Python", "written", "function", "to", "the", "XPath", "interpreter" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7307-L7310
[ "def", "registerXPathFunction", "(", "self", ",", "name", ",", "ns_uri", ",", "f", ")", ":", "ret", "=", "libxml2mod", ".", "xmlRegisterXPathFunction", "(", "self", ".", "_o", ",", "name", ",", "ns_uri", ",", "f", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathRegisterVariable
Register a variable with the XPath context
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathRegisterVariable(self, name, ns_uri, value): """Register a variable with the XPath context """ ret = libxml2mod.xmlXPathRegisterVariable(self._o, name, ns_uri, value) return ret
def xpathRegisterVariable(self, name, ns_uri, value): """Register a variable with the XPath context """ ret = libxml2mod.xmlXPathRegisterVariable(self._o, name, ns_uri, value) return ret
[ "Register", "a", "variable", "with", "the", "XPath", "context" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7312-L7315
[ "def", "xpathRegisterVariable", "(", "self", ",", "name", ",", "ns_uri", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathRegisterVariable", "(", "self", ".", "_o", ",", "name", ",", "ns_uri", ",", "value", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathContextSetCache
Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathContextSetCache(self, active, value, options): """Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum ...
def xpathContextSetCache(self, active, value, options): """Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum ...
[ "Creates", "/", "frees", "an", "object", "cache", "on", "the", "XPath", "context", ".", "If", "activates", "XPath", "objects", "(", "xmlXPathObject", ")", "will", "be", "cached", "internally", "to", "be", "reused", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7321-L7331
[ "def", "xpathContextSetCache", "(", "self", ",", "active", ",", "value", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathContextSetCache", "(", "self", ".", "_o", ",", "active", ",", "value", ",", "options", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathEval
Evaluate the XPath Location Path in the given context.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathEval(self, str): """Evaluate the XPath Location Path in the given context. """ ret = libxml2mod.xmlXPathEval(str, self._o) if ret is None:raise xpathError('xmlXPathEval() failed') return xpathObjectRet(ret)
def xpathEval(self, str): """Evaluate the XPath Location Path in the given context. """ ret = libxml2mod.xmlXPathEval(str, self._o) if ret is None:raise xpathError('xmlXPathEval() failed') return xpathObjectRet(ret)
[ "Evaluate", "the", "XPath", "Location", "Path", "in", "the", "given", "context", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7333-L7337
[ "def", "xpathEval", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathEval", "(", "str", ",", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathEval() failed'", ")", "return", "xpathObj...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathEvalExpression
Evaluate the XPath expression in the given context.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathEvalExpression(self, str): """Evaluate the XPath expression in the given context. """ ret = libxml2mod.xmlXPathEvalExpression(str, self._o) if ret is None:raise xpathError('xmlXPathEvalExpression() failed') return xpathObjectRet(ret)
def xpathEvalExpression(self, str): """Evaluate the XPath expression in the given context. """ ret = libxml2mod.xmlXPathEvalExpression(str, self._o) if ret is None:raise xpathError('xmlXPathEvalExpression() failed') return xpathObjectRet(ret)
[ "Evaluate", "the", "XPath", "expression", "in", "the", "given", "context", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7339-L7343
[ "def", "xpathEvalExpression", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathEvalExpression", "(", "str", ",", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathEvalExpression() failed'", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathNewParserContext
Create a new xmlXPathParserContext
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNewParserContext(self, str): """Create a new xmlXPathParserContext """ ret = libxml2mod.xmlXPathNewParserContext(str, self._o) if ret is None:raise xpathError('xmlXPathNewParserContext() failed') __tmp = xpathParserContext(_obj=ret) return __tmp
def xpathNewParserContext(self, str): """Create a new xmlXPathParserContext """ ret = libxml2mod.xmlXPathNewParserContext(str, self._o) if ret is None:raise xpathError('xmlXPathNewParserContext() failed') __tmp = xpathParserContext(_obj=ret) return __tmp
[ "Create", "a", "new", "xmlXPathParserContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7353-L7358
[ "def", "xpathNewParserContext", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathNewParserContext", "(", "str", ",", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathNewParserContext() fail...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathNsLookup
Search in the namespace declaration array of the context for the given namespace name associated to the given prefix
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNsLookup(self, prefix): """Search in the namespace declaration array of the context for the given namespace name associated to the given prefix """ ret = libxml2mod.xmlXPathNsLookup(self._o, prefix) return ret
def xpathNsLookup(self, prefix): """Search in the namespace declaration array of the context for the given namespace name associated to the given prefix """ ret = libxml2mod.xmlXPathNsLookup(self._o, prefix) return ret
[ "Search", "in", "the", "namespace", "declaration", "array", "of", "the", "context", "for", "the", "given", "namespace", "name", "associated", "to", "the", "given", "prefix" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7360-L7364
[ "def", "xpathNsLookup", "(", "self", ",", "prefix", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathNsLookup", "(", "self", ".", "_o", ",", "prefix", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathRegisterNs
Register a new namespace. If @ns_uri is None it unregisters the namespace
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathRegisterNs(self, prefix, ns_uri): """Register a new namespace. If @ns_uri is None it unregisters the namespace """ ret = libxml2mod.xmlXPathRegisterNs(self._o, prefix, ns_uri) return ret
def xpathRegisterNs(self, prefix, ns_uri): """Register a new namespace. If @ns_uri is None it unregisters the namespace """ ret = libxml2mod.xmlXPathRegisterNs(self._o, prefix, ns_uri) return ret
[ "Register", "a", "new", "namespace", ".", "If" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7370-L7374
[ "def", "xpathRegisterNs", "(", "self", ",", "prefix", ",", "ns_uri", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathRegisterNs", "(", "self", ".", "_o", ",", "prefix", ",", "ns_uri", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathVariableLookup
Search in the Variable array of the context for the given variable value.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathVariableLookup(self, name): """Search in the Variable array of the context for the given variable value. """ ret = libxml2mod.xmlXPathVariableLookup(self._o, name) if ret is None:raise xpathError('xmlXPathVariableLookup() failed') return xpathObjectRet(ret)
def xpathVariableLookup(self, name): """Search in the Variable array of the context for the given variable value. """ ret = libxml2mod.xmlXPathVariableLookup(self._o, name) if ret is None:raise xpathError('xmlXPathVariableLookup() failed') return xpathObjectRet(ret)
[ "Search", "in", "the", "Variable", "array", "of", "the", "context", "for", "the", "given", "variable", "value", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7391-L7396
[ "def", "xpathVariableLookup", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathVariableLookup", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathVariableLookup() failed'"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpathVariableLookupNS
Search in the Variable array of the context for the given variable value.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathVariableLookupNS(self, name, ns_uri): """Search in the Variable array of the context for the given variable value. """ ret = libxml2mod.xmlXPathVariableLookupNS(self._o, name, ns_uri) if ret is None:raise xpathError('xmlXPathVariableLookupNS() failed') return xpathObj...
def xpathVariableLookupNS(self, name, ns_uri): """Search in the Variable array of the context for the given variable value. """ ret = libxml2mod.xmlXPathVariableLookupNS(self._o, name, ns_uri) if ret is None:raise xpathError('xmlXPathVariableLookupNS() failed') return xpathObj...
[ "Search", "in", "the", "Variable", "array", "of", "the", "context", "for", "the", "given", "variable", "value", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7398-L7403
[ "def", "xpathVariableLookupNS", "(", "self", ",", "name", ",", "ns_uri", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathVariableLookupNS", "(", "self", ".", "_o", ",", "name", ",", "ns_uri", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathContext.xpointerEval
Evaluate the XPath Location Path in the given context.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpointerEval(self, str): """Evaluate the XPath Location Path in the given context. """ ret = libxml2mod.xmlXPtrEval(str, self._o) if ret is None:raise treeError('xmlXPtrEval() failed') return xpathObjectRet(ret)
def xpointerEval(self, str): """Evaluate the XPath Location Path in the given context. """ ret = libxml2mod.xmlXPtrEval(str, self._o) if ret is None:raise treeError('xmlXPtrEval() failed') return xpathObjectRet(ret)
[ "Evaluate", "the", "XPath", "Location", "Path", "in", "the", "given", "context", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7409-L7413
[ "def", "xpointerEval", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPtrEval", "(", "str", ",", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrEval() failed'", ")", "return", "xpathObj...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.context
Get the xpathContext from an xpathParserContext
deps/src/libxml2-2.9.1/python/libxml2.py
def context(self): """Get the xpathContext from an xpathParserContext """ ret = libxml2mod.xmlXPathParserGetContext(self._o) if ret is None:raise xpathError('xmlXPathParserGetContext() failed') __tmp = xpathContext(_obj=ret) return __tmp
def context(self): """Get the xpathContext from an xpathParserContext """ ret = libxml2mod.xmlXPathParserGetContext(self._o) if ret is None:raise xpathError('xmlXPathParserGetContext() failed') __tmp = xpathContext(_obj=ret) return __tmp
[ "Get", "the", "xpathContext", "from", "an", "xpathParserContext" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7421-L7426
[ "def", "context", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathParserGetContext", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathParserGetContext() failed'", ")", "__tmp", "=", "xpathContext...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathCompareValues
Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathCompareValues(self, inf, strict): """Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operat...
def xpathCompareValues(self, inf, strict): """Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operat...
[ "Implement", "the", "compare", "operation", "on", "XPath", "objects", ":" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7454-L7470
[ "def", "xpathCompareValues", "(", "self", ",", "inf", ",", "strict", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathCompareValues", "(", "self", ".", "_o", ",", "inf", ",", "strict", ")", "return", "ret" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextAncestor
Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the paren...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAncestor(self, cur): """Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are orde...
def xpathNextAncestor(self, cur): """Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are orde...
[ "Traversal", "function", "for", "the", "ancestor", "direction", "the", "ancestor", "axis", "contains", "the", "ancestors", "of", "the", "context", "node", ";", "the", "ancestors", "of", "the", "context", "node", "consist", "of", "the", "parent", "of", "context...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7594-L7607
[ "def", "xpathNextAncestor", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAncestor", "(", "self", ".", "_o", ",", "c...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextAncestorOrSelf
Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAncestorOrSelf(self, cur): """Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the ...
def xpathNextAncestorOrSelf(self, cur): """Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the ...
[ "Traversal", "function", "for", "the", "ancestor", "-", "or", "-", "self", "direction", "he", "ancestor", "-", "or", "-", "self", "axis", "contains", "the", "context", "node", "and", "ancestors", "of", "the", "context", "node", "in", "reverse", "document", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7609-L7621
[ "def", "xpathNextAncestorOrSelf", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAncestorOrSelf", "(", "self", ".", "_o",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextAttribute
Traversal function for the "attribute" direction TODO: support DTD inherited default attributes
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextAttribute(self, cur): """Traversal function for the "attribute" direction TODO: support DTD inherited default attributes """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextAttribute(self._o, cur__o) if ret is None:raise xp...
def xpathNextAttribute(self, cur): """Traversal function for the "attribute" direction TODO: support DTD inherited default attributes """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextAttribute(self._o, cur__o) if ret is None:raise xp...
[ "Traversal", "function", "for", "the", "attribute", "direction", "TODO", ":", "support", "DTD", "inherited", "default", "attributes" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7623-L7631
[ "def", "xpathNextAttribute", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextAttribute", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextChild
Traversal function for the "child" direction The child axis contains the children of the context node in document order.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextChild(self, cur): """Traversal function for the "child" direction The child axis contains the children of the context node in document order. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextChild(self._o, cur__o) if ret ...
def xpathNextChild(self, cur): """Traversal function for the "child" direction The child axis contains the children of the context node in document order. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextChild(self._o, cur__o) if ret ...
[ "Traversal", "function", "for", "the", "child", "direction", "The", "child", "axis", "contains", "the", "children", "of", "the", "context", "node", "in", "document", "order", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7633-L7641
[ "def", "xpathNextChild", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextChild", "(", "self", ".", "_o", ",", "cur__o"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextDescendant
Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextDescendant(self, cur): """Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. """ if cur is None: cur__o = None e...
def xpathNextDescendant(self, cur): """Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. """ if cur is None: cur__o = None e...
[ "Traversal", "function", "for", "the", "descendant", "direction", "the", "descendant", "axis", "contains", "the", "descendants", "of", "the", "context", "node", "in", "document", "order", ";", "a", "descendant", "is", "a", "child", "or", "a", "child", "of", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7643-L7653
[ "def", "xpathNextDescendant", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextDescendant", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextDescendantOrSelf
Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second no...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextDescendantOrSelf(self, cur): """Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the ...
def xpathNextDescendantOrSelf(self, cur): """Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the ...
[ "Traversal", "function", "for", "the", "descendant", "-", "or", "-", "self", "direction", "the", "descendant", "-", "or", "-", "self", "axis", "contains", "the", "context", "node", "and", "the", "descendants", "of", "the", "context", "node", "in", "document"...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7655-L7667
[ "def", "xpathNextDescendantOrSelf", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextDescendantOrSelf", "(", "self", ".", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextFollowing
Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextFollowing(self, cur): """Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes...
def xpathNextFollowing(self, cur): """Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes...
[ "Traversal", "function", "for", "the", "following", "direction", "The", "following", "axis", "contains", "all", "nodes", "in", "the", "same", "document", "as", "the", "context", "node", "that", "are", "after", "the", "context", "node", "in", "document", "order...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7669-L7681
[ "def", "xpathNextFollowing", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextFollowing", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextFollowingSibling
Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextFollowingSibling(self, cur): """Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxm...
def xpathNextFollowingSibling(self, cur): """Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxm...
[ "Traversal", "function", "for", "the", "following", "-", "sibling", "direction", "The", "following", "-", "sibling", "axis", "contains", "the", "following", "siblings", "of", "the", "context", "node", "in", "document", "order", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7683-L7692
[ "def", "xpathNextFollowingSibling", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextFollowingSibling", "(", "self", ".", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextNamespace
Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextNamespace(self, cur): """Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an elem...
def xpathNextNamespace(self, cur): """Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an elem...
[ "Traversal", "function", "for", "the", "namespace", "direction", "the", "namespace", "axis", "contains", "the", "namespace", "nodes", "of", "the", "context", "node", ";", "the", "order", "of", "nodes", "on", "this", "axis", "is", "implementation", "-", "define...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7694-L7706
[ "def", "xpathNextNamespace", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextNamespace", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextParent
Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextParent(self, cur): """Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextParent(self._o, cur__o) ...
def xpathNextParent(self, cur): """Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextParent(self._o, cur__o) ...
[ "Traversal", "function", "for", "the", "parent", "direction", "The", "parent", "axis", "contains", "the", "parent", "of", "the", "context", "node", "if", "there", "is", "one", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7708-L7717
[ "def", "xpathNextParent", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextParent", "(", "self", ".", "_o", ",", "cur__...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextPreceding
Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered ...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextPreceding(self, cur): """Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes ...
def xpathNextPreceding(self, cur): """Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes ...
[ "Traversal", "function", "for", "the", "preceding", "direction", "the", "preceding", "axis", "contains", "all", "nodes", "in", "the", "same", "document", "as", "the", "context", "node", "that", "are", "before", "the", "context", "node", "in", "document", "orde...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7719-L7731
[ "def", "xpathNextPreceding", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextPreceding", "(", "self", ".", "_o", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextPrecedingSibling
Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so o...
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextPrecedingSibling(self, cur): """Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling p...
def xpathNextPrecedingSibling(self, cur): """Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling p...
[ "Traversal", "function", "for", "the", "preceding", "-", "sibling", "direction", "The", "preceding", "-", "sibling", "axis", "contains", "the", "preceding", "siblings", "of", "the", "context", "node", "in", "reverse", "document", "order", ";", "the", "first", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7733-L7744
[ "def", "xpathNextPrecedingSibling", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextPrecedingSibling", "(", "self", ".", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpathNextSelf
Traversal function for the "self" direction The self axis contains just the context node itself
deps/src/libxml2-2.9.1/python/libxml2.py
def xpathNextSelf(self, cur): """Traversal function for the "self" direction The self axis contains just the context node itself """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextSelf(self._o, cur__o) if ret is None:raise xpathError('...
def xpathNextSelf(self, cur): """Traversal function for the "self" direction The self axis contains just the context node itself """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlXPathNextSelf(self._o, cur__o) if ret is None:raise xpathError('...
[ "Traversal", "function", "for", "the", "self", "direction", "The", "self", "axis", "contains", "just", "the", "context", "node", "itself" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7746-L7754
[ "def", "xpathNextSelf", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNextSelf", "(", "self", ".", "_o", ",", "cur__o", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
xpathParserContext.xpatherror
Formats an error message.
deps/src/libxml2-2.9.1/python/libxml2.py
def xpatherror(self, file, line, no): """Formats an error message. """ libxml2mod.xmlXPatherror(self._o, file, line, no)
def xpatherror(self, file, line, no): """Formats an error message. """ libxml2mod.xmlXPatherror(self._o, file, line, no)
[ "Formats", "an", "error", "message", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7969-L7971
[ "def", "xpatherror", "(", "self", ",", "file", ",", "line", ",", "no", ")", ":", "libxml2mod", ".", "xmlXPatherror", "(", "self", ".", "_o", ",", "file", ",", "line", ",", "no", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
LogisticClassifier._get_summary_struct
Returns a structured description of the model, including (where relevant) the schema of the training data, description of the training data, training statistics, and model hyperparameters. Returns ------- sections : list (of list of tuples) A list of summary sections...
src/unity/python/turicreate/toolkits/classifier/logistic_classifier.py
def _get_summary_struct(self): """ Returns a structured description of the model, including (where relevant) the schema of the training data, description of the training data, training statistics, and model hyperparameters. Returns ------- sections : list (of lis...
def _get_summary_struct(self): """ Returns a structured description of the model, including (where relevant) the schema of the training data, description of the training data, training statistics, and model hyperparameters. Returns ------- sections : list (of lis...
[ "Returns", "a", "structured", "description", "of", "the", "model", "including", "(", "where", "relevant", ")", "the", "schema", "of", "the", "training", "data", "description", "of", "the", "training", "data", "training", "statistics", "and", "model", "hyperparam...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/classifier/logistic_classifier.py#L403-L451
[ "def", "_get_summary_struct", "(", "self", ")", ":", "model_fields", "=", "[", "(", "'Number of coefficients'", ",", "'num_coefficients'", ")", ",", "(", "'Number of examples'", ",", "'num_examples'", ")", ",", "(", "'Number of classes'", ",", "'num_classes'", ")", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
LogisticClassifier.classify
Return a classification, for each example in the ``dataset``, using the trained logistic regression model. The output SFrame contains predictions as both class labels (0 or 1) as well as probabilities that the predicted value is the associated label. Parameters ---------- ...
src/unity/python/turicreate/toolkits/classifier/logistic_classifier.py
def classify(self, dataset, missing_value_action='auto'): """ Return a classification, for each example in the ``dataset``, using the trained logistic regression model. The output SFrame contains predictions as both class labels (0 or 1) as well as probabilities that the predicted ...
def classify(self, dataset, missing_value_action='auto'): """ Return a classification, for each example in the ``dataset``, using the trained logistic regression model. The output SFrame contains predictions as both class labels (0 or 1) as well as probabilities that the predicted ...
[ "Return", "a", "classification", "for", "each", "example", "in", "the", "dataset", "using", "the", "trained", "logistic", "regression", "model", ".", "The", "output", "SFrame", "contains", "predictions", "as", "both", "class", "labels", "(", "0", "or", "1", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/classifier/logistic_classifier.py#L631-L680
[ "def", "classify", "(", "self", ",", "dataset", ",", "missing_value_action", "=", "'auto'", ")", ":", "return", "super", "(", "LogisticClassifier", ",", "self", ")", ".", "classify", "(", "dataset", ",", "missing_value_action", "=", "missing_value_action", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
add_prefix_and_suffix
Appends the suffix appropriate to 'type/property-set' combination to the specified name and returns the result.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def add_prefix_and_suffix(specified_name, type, property_set): """Appends the suffix appropriate to 'type/property-set' combination to the specified name and returns the result.""" property_set = b2.util.jam_to_value_maybe(property_set) suffix = "" if type: suffix = b2.build.type.generated...
def add_prefix_and_suffix(specified_name, type, property_set): """Appends the suffix appropriate to 'type/property-set' combination to the specified name and returns the result.""" property_set = b2.util.jam_to_value_maybe(property_set) suffix = "" if type: suffix = b2.build.type.generated...
[ "Appends", "the", "suffix", "appropriate", "to", "type", "/", "property", "-", "set", "combination", "to", "the", "specified", "name", "and", "returns", "the", "result", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L610-L639
[ "def", "add_prefix_and_suffix", "(", "specified_name", ",", "type", ",", "property_set", ")", ":", "property_set", "=", "b2", ".", "util", ".", "jam_to_value_maybe", "(", "property_set", ")", "suffix", "=", "\"\"", "if", "type", ":", "suffix", "=", "b2", "."...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
traverse
Traverses the dependency graph of 'target' and return all targets that will be created before this one is created. If root of some dependency graph is found during traversal, it's either included or not, dependencing of the value of 'include_roots'. In either case, sources of root are not traver...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def traverse (target, include_roots = False, include_sources = False): """ Traverses the dependency graph of 'target' and return all targets that will be created before this one is created. If root of some dependency graph is found during traversal, it's either included or not, dependencing of the ...
def traverse (target, include_roots = False, include_sources = False): """ Traverses the dependency graph of 'target' and return all targets that will be created before this one is created. If root of some dependency graph is found during traversal, it's either included or not, dependencing of the ...
[ "Traverses", "the", "dependency", "graph", "of", "target", "and", "return", "all", "targets", "that", "will", "be", "created", "before", "this", "one", "is", "created", ".", "If", "root", "of", "some", "dependency", "graph", "is", "found", "during", "travers...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L963-L996
[ "def", "traverse", "(", "target", ",", "include_roots", "=", "False", ",", "include_sources", "=", "False", ")", ":", "assert", "isinstance", "(", "target", ",", "VirtualTarget", ")", "assert", "isinstance", "(", "include_roots", ",", "(", "int", ",", "bool"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
clone_action
Takes an 'action' instances and creates new instance of it and all produced target. The rule-name and properties are set to 'new-rule-name' and 'new-properties', if those are specified. Returns the cloned action.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def clone_action (action, new_project, new_action_name, new_properties): """Takes an 'action' instances and creates new instance of it and all produced target. The rule-name and properties are set to 'new-rule-name' and 'new-properties', if those are specified. Returns the cloned action.""" if __deb...
def clone_action (action, new_project, new_action_name, new_properties): """Takes an 'action' instances and creates new instance of it and all produced target. The rule-name and properties are set to 'new-rule-name' and 'new-properties', if those are specified. Returns the cloned action.""" if __deb...
[ "Takes", "an", "action", "instances", "and", "creates", "new", "instance", "of", "it", "and", "all", "produced", "target", ".", "The", "rule", "-", "name", "and", "properties", "are", "set", "to", "new", "-", "rule", "-", "name", "and", "new", "-", "pr...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L998-L1034
[ "def", "clone_action", "(", "action", ",", "new_project", ",", "new_action_name", ",", "new_properties", ")", ":", "if", "__debug__", ":", "from", ".", "targets", "import", "ProjectTarget", "assert", "isinstance", "(", "action", ",", "Action", ")", "assert", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
VirtualTargetRegistry.register
Registers a new virtual target. Checks if there's already registered target, with the same name, type, project and subvariant properties, and also with the same sources and equal action. If such target is found it is retured and 'target' is not registered. Otherwise, 'target' is regi...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def register (self, target): """ Registers a new virtual target. Checks if there's already registered target, with the same name, type, project and subvariant properties, and also with the same sources and equal action. If such target is found it is retured and 'target' is not registered...
def register (self, target): """ Registers a new virtual target. Checks if there's already registered target, with the same name, type, project and subvariant properties, and also with the same sources and equal action. If such target is found it is retured and 'target' is not registered...
[ "Registers", "a", "new", "virtual", "target", ".", "Checks", "if", "there", "s", "already", "registered", "target", "with", "the", "same", "name", "type", "project", "and", "subvariant", "properties", "and", "also", "with", "the", "same", "sources", "and", "...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L107-L150
[ "def", "register", "(", "self", ",", "target", ")", ":", "assert", "isinstance", "(", "target", ",", "VirtualTarget", ")", "if", "target", ".", "path", "(", ")", ":", "signature", "=", "target", ".", "path", "(", ")", "+", "\"-\"", "+", "target", "."...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
VirtualTargetRegistry.from_file
Creates a virtual target with appropriate name and type from 'file'. If a target with that name in that project was already created, returns that already created target. TODO: more correct way would be to compute path to the file, based on name and source location for the...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def from_file (self, file, file_location, project): """ Creates a virtual target with appropriate name and type from 'file'. If a target with that name in that project was already created, returns that already created target. TODO: more correct way would be to compute path to...
def from_file (self, file, file_location, project): """ Creates a virtual target with appropriate name and type from 'file'. If a target with that name in that project was already created, returns that already created target. TODO: more correct way would be to compute path to...
[ "Creates", "a", "virtual", "target", "with", "appropriate", "name", "and", "type", "from", "file", ".", "If", "a", "target", "with", "that", "name", "in", "that", "project", "was", "already", "created", "returns", "that", "already", "created", "target", ".",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L152-L178
[ "def", "from_file", "(", "self", ",", "file", ",", "file_location", ",", "project", ")", ":", "if", "__debug__", ":", "from", ".", "targets", "import", "ProjectTarget", "assert", "isinstance", "(", "file", ",", "basestring", ")", "assert", "isinstance", "(",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
VirtualTargetRegistry.add_suffix
Appends the suffix appropriate to 'type/property_set' combination to the specified name and returns the result.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def add_suffix (self, specified_name, file_type, prop_set): """ Appends the suffix appropriate to 'type/property_set' combination to the specified name and returns the result. """ assert isinstance(specified_name, basestring) assert isinstance(file_type, basestring) a...
def add_suffix (self, specified_name, file_type, prop_set): """ Appends the suffix appropriate to 'type/property_set' combination to the specified name and returns the result. """ assert isinstance(specified_name, basestring) assert isinstance(file_type, basestring) a...
[ "Appends", "the", "suffix", "appropriate", "to", "type", "/", "property_set", "combination", "to", "the", "specified", "name", "and", "returns", "the", "result", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L248-L261
[ "def", "add_suffix", "(", "self", ",", "specified_name", ",", "file_type", ",", "prop_set", ")", ":", "assert", "isinstance", "(", "specified_name", ",", "basestring", ")", "assert", "isinstance", "(", "file_type", ",", "basestring", ")", "assert", "isinstance",...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
VirtualTarget.depends
Adds additional instances of 'VirtualTarget' that this one depends on.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def depends (self, d): """ Adds additional instances of 'VirtualTarget' that this one depends on. """ self.dependencies_ = unique (self.dependencies_ + d).sort ()
def depends (self, d): """ Adds additional instances of 'VirtualTarget' that this one depends on. """ self.dependencies_ = unique (self.dependencies_ + d).sort ()
[ "Adds", "additional", "instances", "of", "VirtualTarget", "that", "this", "one", "depends", "on", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L299-L303
[ "def", "depends", "(", "self", ",", "d", ")", ":", "self", ".", "dependencies_", "=", "unique", "(", "self", ".", "dependencies_", "+", "d", ")", ".", "sort", "(", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
VirtualTarget.actualize
Generates all the actual targets and sets up build actions for this target. If 'scanner' is specified, creates an additional target with the same location as actual target, which will depend on the actual target and be associated with 'scanner'. That additional ...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def actualize (self, scanner = None): """ Generates all the actual targets and sets up build actions for this target. If 'scanner' is specified, creates an additional target with the same location as actual target, which will depend on the actual target and be as...
def actualize (self, scanner = None): """ Generates all the actual targets and sets up build actions for this target. If 'scanner' is specified, creates an additional target with the same location as actual target, which will depend on the actual target and be as...
[ "Generates", "all", "the", "actual", "targets", "and", "sets", "up", "build", "actions", "for", "this", "target", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L311-L349
[ "def", "actualize", "(", "self", ",", "scanner", "=", "None", ")", ":", "if", "__debug__", ":", "from", ".", "scanner", "import", "Scanner", "assert", "scanner", "is", "None", "or", "isinstance", "(", "scanner", ",", "Scanner", ")", "actual_name", "=", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
AbstractFileTarget.set_path
Sets the path. When generating target name, it will override any path computation from properties.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def set_path (self, path): """ Sets the path. When generating target name, it will override any path computation from properties. """ assert isinstance(path, basestring) self.path_ = os.path.normpath(path)
def set_path (self, path): """ Sets the path. When generating target name, it will override any path computation from properties. """ assert isinstance(path, basestring) self.path_ = os.path.normpath(path)
[ "Sets", "the", "path", ".", "When", "generating", "target", "name", "it", "will", "override", "any", "path", "computation", "from", "properties", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L425-L430
[ "def", "set_path", "(", "self", ",", "path", ")", ":", "assert", "isinstance", "(", "path", ",", "basestring", ")", "self", ".", "path_", "=", "os", ".", "path", ".", "normpath", "(", "path", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
AbstractFileTarget.root
Sets/gets the 'root' flag. Target is root is it directly correspods to some variant of a main target.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def root (self, set = None): """ Sets/gets the 'root' flag. Target is root is it directly correspods to some variant of a main target. """ assert isinstance(set, (int, bool, type(None))) if set: self.root_ = True return self.root_
def root (self, set = None): """ Sets/gets the 'root' flag. Target is root is it directly correspods to some variant of a main target. """ assert isinstance(set, (int, bool, type(None))) if set: self.root_ = True return self.root_
[ "Sets", "/", "gets", "the", "root", "flag", ".", "Target", "is", "root", "is", "it", "directly", "correspods", "to", "some", "variant", "of", "a", "main", "target", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L437-L444
[ "def", "root", "(", "self", ",", "set", "=", "None", ")", ":", "assert", "isinstance", "(", "set", ",", "(", "int", ",", "bool", ",", "type", "(", "None", ")", ")", ")", "if", "set", ":", "self", ".", "root_", "=", "True", "return", "self", "."...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
AbstractFileTarget.creating_subvariant
Gets or sets the subvariant which created this target. Subvariant is set when target is brought into existance, and is never changed after that. In particual, if target is shared by subvariant, only the first is stored. s: If specified, specified the value to set, which ...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def creating_subvariant (self, s = None): """ Gets or sets the subvariant which created this target. Subvariant is set when target is brought into existance, and is never changed after that. In particual, if target is shared by subvariant, only the first is stored. s: If specifi...
def creating_subvariant (self, s = None): """ Gets or sets the subvariant which created this target. Subvariant is set when target is brought into existance, and is never changed after that. In particual, if target is shared by subvariant, only the first is stored. s: If specifi...
[ "Gets", "or", "sets", "the", "subvariant", "which", "created", "this", "target", ".", "Subvariant", "is", "set", "when", "target", "is", "brought", "into", "existance", "and", "is", "never", "changed", "after", "that", ".", "In", "particual", "if", "target",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L446-L462
[ "def", "creating_subvariant", "(", "self", ",", "s", "=", "None", ")", ":", "assert", "s", "is", "None", "or", "isinstance", "(", "s", ",", "Subvariant", ")", "if", "s", "and", "not", "self", ".", "creating_subvariant", "(", ")", ":", "if", "self", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
AbstractFileTarget.grist
Helper to 'actual_name', above. Compute unique prefix used to distinguish this target from other targets with the same name which create different file.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def grist (self): """Helper to 'actual_name', above. Compute unique prefix used to distinguish this target from other targets with the same name which create different file. """ # Depending on target, there may be different approaches to generating # unique prefix...
def grist (self): """Helper to 'actual_name', above. Compute unique prefix used to distinguish this target from other targets with the same name which create different file. """ # Depending on target, there may be different approaches to generating # unique prefix...
[ "Helper", "to", "actual_name", "above", ".", "Compute", "unique", "prefix", "used", "to", "distinguish", "this", "target", "from", "other", "targets", "with", "the", "same", "name", "which", "create", "different", "file", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L500-L530
[ "def", "grist", "(", "self", ")", ":", "# Depending on target, there may be different approaches to generating", "# unique prefixes. We'll generate prefixes in the form", "# <one letter approach code> <the actual prefix>", "path", "=", "self", ".", "path", "(", ")", "if", "path", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
AbstractFileTarget.__adjust_name
Given the target name specified in constructor, returns the name which should be really used, by looking at the <tag> properties. The tag properties come in two flavour: - <tag>value, - <tag>@rule-name In the first case, value is just added to name In the second case,...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def __adjust_name(self, specified_name): """Given the target name specified in constructor, returns the name which should be really used, by looking at the <tag> properties. The tag properties come in two flavour: - <tag>value, - <tag>@rule-name In the first case, val...
def __adjust_name(self, specified_name): """Given the target name specified in constructor, returns the name which should be really used, by looking at the <tag> properties. The tag properties come in two flavour: - <tag>value, - <tag>@rule-name In the first case, val...
[ "Given", "the", "target", "name", "specified", "in", "constructor", "returns", "the", "name", "which", "should", "be", "really", "used", "by", "looking", "at", "the", "<tag", ">", "properties", ".", "The", "tag", "properties", "come", "in", "two", "flavour",...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L532-L584
[ "def", "__adjust_name", "(", "self", ",", "specified_name", ")", ":", "assert", "isinstance", "(", "specified_name", ",", "basestring", ")", "if", "self", ".", "action_", ":", "ps", "=", "self", ".", "action_", ".", "properties", "(", ")", "else", ":", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
FileTarget.path
Returns the directory for this target.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def path (self): """ Returns the directory for this target. """ if not self.path_: if self.action_: p = self.action_.properties () (target_path, relative_to_build_dir) = p.target_path () if relative_to_build_dir: # ...
def path (self): """ Returns the directory for this target. """ if not self.path_: if self.action_: p = self.action_.properties () (target_path, relative_to_build_dir) = p.target_path () if relative_to_build_dir: # ...
[ "Returns", "the", "directory", "for", "this", "target", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L727-L744
[ "def", "path", "(", "self", ")", ":", "if", "not", "self", ".", "path_", ":", "if", "self", ".", "action_", ":", "p", "=", "self", ".", "action_", ".", "properties", "(", ")", "(", "target_path", ",", "relative_to_build_dir", ")", "=", "p", ".", "t...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
Action.actualize
Generates actual build instructions.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def actualize (self): """ Generates actual build instructions. """ if self.actualized_: return self.actualized_ = True ps = self.properties () properties = self.adjust_properties (ps) actual_targets = [] for i in self.targets (): ...
def actualize (self): """ Generates actual build instructions. """ if self.actualized_: return self.actualized_ = True ps = self.properties () properties = self.adjust_properties (ps) actual_targets = [] for i in self.targets (): ...
[ "Generates", "actual", "build", "instructions", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L818-L861
[ "def", "actualize", "(", "self", ")", ":", "if", "self", ".", "actualized_", ":", "return", "self", ".", "actualized_", "=", "True", "ps", "=", "self", ".", "properties", "(", ")", "properties", "=", "self", ".", "adjust_properties", "(", "ps", ")", "a...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
Action.actualize_source_type
Helper for 'actualize_sources'. For each passed source, actualizes it with the appropriate scanner. Returns the actualized virtual targets.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def actualize_source_type (self, sources, prop_set): """ Helper for 'actualize_sources'. For each passed source, actualizes it with the appropriate scanner. Returns the actualized virtual targets. """ assert is_iterable_typed(sources, VirtualTarget) assert isinsta...
def actualize_source_type (self, sources, prop_set): """ Helper for 'actualize_sources'. For each passed source, actualizes it with the appropriate scanner. Returns the actualized virtual targets. """ assert is_iterable_typed(sources, VirtualTarget) assert isinsta...
[ "Helper", "for", "actualize_sources", ".", "For", "each", "passed", "source", "actualizes", "it", "with", "the", "appropriate", "scanner", ".", "Returns", "the", "actualized", "virtual", "targets", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L863-L884
[ "def", "actualize_source_type", "(", "self", ",", "sources", ",", "prop_set", ")", ":", "assert", "is_iterable_typed", "(", "sources", ",", "VirtualTarget", ")", "assert", "isinstance", "(", "prop_set", ",", "property_set", ".", "PropertySet", ")", "result", "="...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
Action.actualize_sources
Creates actual jam targets for sources. Initializes two member variables: 'self.actual_sources_' -- sources which are passed to updating action 'self.dependency_only_sources_' -- sources which are made dependencies, but are not used otherwise. New values will...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def actualize_sources (self, sources, prop_set): """ Creates actual jam targets for sources. Initializes two member variables: 'self.actual_sources_' -- sources which are passed to updating action 'self.dependency_only_sources_' -- sources which are made dependencies, but ...
def actualize_sources (self, sources, prop_set): """ Creates actual jam targets for sources. Initializes two member variables: 'self.actual_sources_' -- sources which are passed to updating action 'self.dependency_only_sources_' -- sources which are made dependencies, but ...
[ "Creates", "actual", "jam", "targets", "for", "sources", ".", "Initializes", "two", "member", "variables", ":", "self", ".", "actual_sources_", "--", "sources", "which", "are", "passed", "to", "updating", "action", "self", ".", "dependency_only_sources_", "--", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L886-L917
[ "def", "actualize_sources", "(", "self", ",", "sources", ",", "prop_set", ")", ":", "assert", "is_iterable_typed", "(", "sources", ",", "VirtualTarget", ")", "assert", "isinstance", "(", "prop_set", ",", "property_set", ".", "PropertySet", ")", "dependencies", "...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
Subvariant.all_referenced_targets
Returns all targets referenced by this subvariant, either directly or indirectly, and either as sources, or as dependency properties. Targets referred with dependency property are returned a properties, not targets.
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def all_referenced_targets(self, result): """Returns all targets referenced by this subvariant, either directly or indirectly, and either as sources, or as dependency properties. Targets referred with dependency property are returned a properties, not targets.""" if __debug__: ...
def all_referenced_targets(self, result): """Returns all targets referenced by this subvariant, either directly or indirectly, and either as sources, or as dependency properties. Targets referred with dependency property are returned a properties, not targets.""" if __debug__: ...
[ "Returns", "all", "targets", "referenced", "by", "this", "subvariant", "either", "directly", "or", "indirectly", "and", "either", "as", "sources", "or", "as", "dependency", "properties", ".", "Targets", "referred", "with", "dependency", "property", "are", "returne...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L1099-L1128
[ "def", "all_referenced_targets", "(", "self", ",", "result", ")", ":", "if", "__debug__", ":", "from", ".", "property", "import", "Property", "assert", "is_iterable_typed", "(", "result", ",", "(", "VirtualTarget", ",", "Property", ")", ")", "# Find directly ref...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
Subvariant.implicit_includes
Returns the properties which specify implicit include paths to generated headers. This traverses all targets in this subvariant, and subvariants referred by <implcit-dependecy>properties. For all targets which are of type 'target-type' (or for all targets, if 'target_type...
deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py
def implicit_includes (self, feature, target_type): """ Returns the properties which specify implicit include paths to generated headers. This traverses all targets in this subvariant, and subvariants referred by <implcit-dependecy>properties. For all targets which are of typ...
def implicit_includes (self, feature, target_type): """ Returns the properties which specify implicit include paths to generated headers. This traverses all targets in this subvariant, and subvariants referred by <implcit-dependecy>properties. For all targets which are of typ...
[ "Returns", "the", "properties", "which", "specify", "implicit", "include", "paths", "to", "generated", "headers", ".", "This", "traverses", "all", "targets", "in", "this", "subvariant", "and", "subvariants", "referred", "by", "<implcit", "-", "dependecy", ">", "...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/tools/build/src/build/virtual_target.py#L1131-L1154
[ "def", "implicit_includes", "(", "self", ",", "feature", ",", "target_type", ")", ":", "assert", "isinstance", "(", "feature", ",", "basestring", ")", "assert", "isinstance", "(", "target_type", ",", "basestring", ")", "if", "not", "target_type", ":", "key", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
cmp_ast
Compare if two nodes are equal.
src/unity/python/turicreate/meta/asttools/__init__.py
def cmp_ast(node1, node2): ''' Compare if two nodes are equal. ''' if type(node1) != type(node2): return False if isinstance(node1, (list, tuple)): if len(node1) != len(node2): return False for left, right in zip(node1, node2): if not cmp_ast(left, ...
def cmp_ast(node1, node2): ''' Compare if two nodes are equal. ''' if type(node1) != type(node2): return False if isinstance(node1, (list, tuple)): if len(node1) != len(node2): return False for left, right in zip(node1, node2): if not cmp_ast(left, ...
[ "Compare", "if", "two", "nodes", "are", "equal", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/meta/asttools/__init__.py#L23-L49
[ "def", "cmp_ast", "(", "node1", ",", "node2", ")", ":", "if", "type", "(", "node1", ")", "!=", "type", "(", "node2", ")", ":", "return", "False", "if", "isinstance", "(", "node1", ",", "(", "list", ",", "tuple", ")", ")", ":", "if", "len", "(", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
create_more_container_files
Creates additional files for the individual MPL-containers.
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def create_more_container_files(sourceDir, suffix, maxElements, containers, containers2): """Creates additional files for the individual MPL-containers.""" # Create files for each MPL-container with 20 to 'maxElements' elements # which will be used during generation. for container in containers: ...
def create_more_container_files(sourceDir, suffix, maxElements, containers, containers2): """Creates additional files for the individual MPL-containers.""" # Create files for each MPL-container with 20 to 'maxElements' elements # which will be used during generation. for container in containers: ...
[ "Creates", "additional", "files", "for", "the", "individual", "MPL", "-", "containers", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L21-L53
[ "def", "create_more_container_files", "(", "sourceDir", ",", "suffix", ",", "maxElements", ",", "containers", ",", "containers2", ")", ":", "# Create files for each MPL-container with 20 to 'maxElements' elements", "# which will be used during generation.", "for", "container", "i...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
create_input_for_numbered_sequences
Creates additional source- and header-files for the numbered sequence MPL-containers.
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def create_input_for_numbered_sequences(headerDir, sourceDir, containers, maxElements): """Creates additional source- and header-files for the numbered sequence MPL-containers.""" # Create additional container-list without "map". containersWithoutMap = containers[:] try: containersWithoutMap.rem...
def create_input_for_numbered_sequences(headerDir, sourceDir, containers, maxElements): """Creates additional source- and header-files for the numbered sequence MPL-containers.""" # Create additional container-list without "map". containersWithoutMap = containers[:] try: containersWithoutMap.rem...
[ "Creates", "additional", "source", "-", "and", "header", "-", "files", "for", "the", "numbered", "sequence", "MPL", "-", "containers", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L56-L67
[ "def", "create_input_for_numbered_sequences", "(", "headerDir", ",", "sourceDir", ",", "containers", ",", "maxElements", ")", ":", "# Create additional container-list without \"map\".", "containersWithoutMap", "=", "containers", "[", ":", "]", "try", ":", "containersWithout...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
adjust_container_limits_for_variadic_sequences
Adjusts the limits of variadic sequence MPL-containers.
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def adjust_container_limits_for_variadic_sequences(headerDir, containers, maxElements): """Adjusts the limits of variadic sequence MPL-containers.""" for container in containers: headerFile = os.path.join( headerDir, "limits", container + ".hpp" ) regexMatch = r'(define\s+BOOST_MPL_LIMIT_' + c...
def adjust_container_limits_for_variadic_sequences(headerDir, containers, maxElements): """Adjusts the limits of variadic sequence MPL-containers.""" for container in containers: headerFile = os.path.join( headerDir, "limits", container + ".hpp" ) regexMatch = r'(define\s+BOOST_MPL_LIMIT_' + c...
[ "Adjusts", "the", "limits", "of", "variadic", "sequence", "MPL", "-", "containers", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L70-L78
[ "def", "adjust_container_limits_for_variadic_sequences", "(", "headerDir", ",", "containers", ",", "maxElements", ")", ":", "for", "container", "in", "containers", ":", "headerFile", "=", "os", ".", "path", ".", "join", "(", "headerDir", ",", "\"limits\"", ",", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
current_boost_dir
Returns the (relative) path to the Boost source-directory this file is located in (if any).
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def current_boost_dir(): """Returns the (relative) path to the Boost source-directory this file is located in (if any).""" # Path to directory containing this script. path = os.path.dirname( os.path.realpath(__file__) ) # Making sure it is located in "${boost-dir}/libs/mpl/preprocessed". for directo...
def current_boost_dir(): """Returns the (relative) path to the Boost source-directory this file is located in (if any).""" # Path to directory containing this script. path = os.path.dirname( os.path.realpath(__file__) ) # Making sure it is located in "${boost-dir}/libs/mpl/preprocessed". for directo...
[ "Returns", "the", "(", "relative", ")", "path", "to", "the", "Boost", "source", "-", "directory", "this", "file", "is", "located", "in", "(", "if", "any", ")", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L81-L92
[ "def", "current_boost_dir", "(", ")", ":", "# Path to directory containing this script.", "path", "=", "os", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "realpath", "(", "__file__", ")", ")", "# Making sure it is located in \"${boost-dir}/libs/mpl/preproce...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
to_positive_multiple_of_10
Converts a string into its encoded positive integer (greater zero) or throws an exception.
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def to_positive_multiple_of_10(string): """Converts a string into its encoded positive integer (greater zero) or throws an exception.""" try: value = int(string) except ValueError: msg = '"%r" is not a positive multiple of 10 (greater zero).' % string raise argparse.ArgumentTypeError...
def to_positive_multiple_of_10(string): """Converts a string into its encoded positive integer (greater zero) or throws an exception.""" try: value = int(string) except ValueError: msg = '"%r" is not a positive multiple of 10 (greater zero).' % string raise argparse.ArgumentTypeError...
[ "Converts", "a", "string", "into", "its", "encoded", "positive", "integer", "(", "greater", "zero", ")", "or", "throws", "an", "exception", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L96-L106
[ "def", "to_positive_multiple_of_10", "(", "string", ")", ":", "try", ":", "value", "=", "int", "(", "string", ")", "except", "ValueError", ":", "msg", "=", "'\"%r\" is not a positive multiple of 10 (greater zero).'", "%", "string", "raise", "argparse", ".", "Argumen...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
main
The main function.
deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py
def main(): """The main function.""" # Find the current Boost source-directory in which this script is located. sourceDir = current_boost_dir() if sourceDir == None: sourceDir = "" # Prepare and run cmdline-parser. cmdlineParser = argparse.ArgumentParser(description="A generato...
def main(): """The main function.""" # Find the current Boost source-directory in which this script is located. sourceDir = current_boost_dir() if sourceDir == None: sourceDir = "" # Prepare and run cmdline-parser. cmdlineParser = argparse.ArgumentParser(description="A generato...
[ "The", "main", "function", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/boost_1_68_0/libs/mpl/preprocessed/boost_mpl_preprocess.py#L118-L246
[ "def", "main", "(", ")", ":", "# Find the current Boost source-directory in which this script is located.", "sourceDir", "=", "current_boost_dir", "(", ")", "if", "sourceDir", "==", "None", ":", "sourceDir", "=", "\"\"", "# Prepare and run cmdline-parser.", "cmdlineParser", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
NeuralNetworkBuilder.add_inner_product
Add an inner product layer to the model. Parameters ---------- name: str The name of this layer W: numpy.array or bytes() Weight matrix of shape (output_channels, input_channels) If W is of type bytes(), i.e. quantized, other quantization related argu...
src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py
def add_inner_product(self, name, W, b, input_channels, output_channels, has_bias, input_name, output_name, **kwargs): """ Add an inner product layer to the model. Parameters ---------- name: str The name of this layer W: numpy.array...
def add_inner_product(self, name, W, b, input_channels, output_channels, has_bias, input_name, output_name, **kwargs): """ Add an inner product layer to the model. Parameters ---------- name: str The name of this layer W: numpy.array...
[ "Add", "an", "inner", "product", "layer", "to", "the", "model", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py#L394-L471
[ "def", "add_inner_product", "(", "self", ",", "name", ",", "W", ",", "b", ",", "input_channels", ",", "output_channels", ",", "has_bias", ",", "input_name", ",", "output_name", ",", "*", "*", "kwargs", ")", ":", "spec", "=", "self", ".", "spec", "nn_spec...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
NeuralNetworkBuilder.add_convolution
Add a convolution layer to the network. Please see the ConvolutionLayerParams in Core ML neural network protobuf message for more information about input and output blob dimensions. Parameters ---------- name: str The name of this layer. kernel_channels: int...
src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py
def add_convolution(self, name, kernel_channels, output_channels, height, width, stride_height, stride_width, border_mode, groups, W, b, has_bias, is_deconv = False, output_shape = None, input_name = 'data', output_name = 'out', dilation_factors = [1,1], paddi...
def add_convolution(self, name, kernel_channels, output_channels, height, width, stride_height, stride_width, border_mode, groups, W, b, has_bias, is_deconv = False, output_shape = None, input_name = 'data', output_name = 'out', dilation_factors = [1,1], paddi...
[ "Add", "a", "convolution", "layer", "to", "the", "network", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py#L967-L1167
[ "def", "add_convolution", "(", "self", ",", "name", ",", "kernel_channels", ",", "output_channels", ",", "height", ",", "width", ",", "stride_height", ",", "stride_width", ",", "border_mode", ",", "groups", ",", "W", ",", "b", ",", "has_bias", ",", "is_decon...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
NeuralNetworkBuilder.add_resize_bilinear
Add resize bilinear layer to the model. A layer that resizes the input to a given spatial size using bilinear interpolation. Parameters ---------- name: str The name of this layer. input_name: str The input blob name of this layer. output_name: str ...
src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py
def add_resize_bilinear(self, name, input_name, output_name, target_height=1, target_width=1, mode='ALIGN_ENDPOINTS_MODE'): """ Add resize bilinear layer to the model. A layer that resizes the input to a given spatial size using bilinear interpolation. Parameters ...
def add_resize_bilinear(self, name, input_name, output_name, target_height=1, target_width=1, mode='ALIGN_ENDPOINTS_MODE'): """ Add resize bilinear layer to the model. A layer that resizes the input to a given spatial size using bilinear interpolation. Parameters ...
[ "Add", "resize", "bilinear", "layer", "to", "the", "model", ".", "A", "layer", "that", "resizes", "the", "input", "to", "a", "given", "spatial", "size", "using", "bilinear", "interpolation", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py#L2612-L2657
[ "def", "add_resize_bilinear", "(", "self", ",", "name", ",", "input_name", ",", "output_name", ",", "target_height", "=", "1", ",", "target_width", "=", "1", ",", "mode", "=", "'ALIGN_ENDPOINTS_MODE'", ")", ":", "spec", "=", "self", ".", "spec", "nn_spec", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
NeuralNetworkBuilder.add_crop_resize
Add crop resize layer to the model. A layer that extracts cropped spatial patches or RoIs (regions of interest) from the input and resizes them to a pre-specified size using bilinear interpolation. Note that RoI Align layer can be implemented with this layer followed by a pooling layer. Kindly r...
src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py
def add_crop_resize(self, name, input_names, output_name, target_height=1, target_width=1, mode='STRICT_ALIGN_ENDPOINTS_MODE', normalized_roi=False, box_indices_mode='CORNERS_HEIGHT_FIRST', spatial_scale=1.0)...
def add_crop_resize(self, name, input_names, output_name, target_height=1, target_width=1, mode='STRICT_ALIGN_ENDPOINTS_MODE', normalized_roi=False, box_indices_mode='CORNERS_HEIGHT_FIRST', spatial_scale=1.0)...
[ "Add", "crop", "resize", "layer", "to", "the", "model", ".", "A", "layer", "that", "extracts", "cropped", "spatial", "patches", "or", "RoIs", "(", "regions", "of", "interest", ")", "from", "the", "input", "and", "resizes", "them", "to", "a", "pre", "-", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/external/coremltools_wrap/coremltools/coremltools/models/neural_network/builder.py#L2659-L2753
[ "def", "add_crop_resize", "(", "self", ",", "name", ",", "input_names", ",", "output_name", ",", "target_height", "=", "1", ",", "target_width", "=", "1", ",", "mode", "=", "'STRICT_ALIGN_ENDPOINTS_MODE'", ",", "normalized_roi", "=", "False", ",", "box_indices_m...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_toolkit_serialize_summary_struct
Serialize model summary into a dict with ordered lists of sections and section titles Parameters ---------- model : Model object sections : Ordered list of lists (sections) of tuples (field,value) [ [(field1, value1), (field2, value2)], [(field3, value3), (field4, value4)], ...
src/unity/python/turicreate/toolkits/_internal_utils.py
def _toolkit_serialize_summary_struct(model, sections, section_titles): """ Serialize model summary into a dict with ordered lists of sections and section titles Parameters ---------- model : Model object sections : Ordered list of lists (sections) of tuples (field,value) [ [(fi...
def _toolkit_serialize_summary_struct(model, sections, section_titles): """ Serialize model summary into a dict with ordered lists of sections and section titles Parameters ---------- model : Model object sections : Ordered list of lists (sections) of tuples (field,value) [ [(fi...
[ "Serialize", "model", "summary", "into", "a", "dict", "with", "ordered", "lists", "of", "sections", "and", "section", "titles" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L34-L61
[ "def", "_toolkit_serialize_summary_struct", "(", "model", ",", "sections", ",", "section_titles", ")", ":", "output_dict", "=", "dict", "(", ")", "output_dict", "[", "'sections'", "]", "=", "[", "[", "(", "field", "[", "0", "]", ",", "__extract_model_summary_v...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_add_docstring
Format a doc-string on the fly. @arg format_dict: A dictionary to format the doc-strings Example: @add_docstring({'context': __doc_string_context}) def predict(x): ''' {context} >> model.predict(data) ''' return x
src/unity/python/turicreate/toolkits/_internal_utils.py
def _add_docstring(format_dict): """ Format a doc-string on the fly. @arg format_dict: A dictionary to format the doc-strings Example: @add_docstring({'context': __doc_string_context}) def predict(x): ''' {context} >> model.predict(data) '...
def _add_docstring(format_dict): """ Format a doc-string on the fly. @arg format_dict: A dictionary to format the doc-strings Example: @add_docstring({'context': __doc_string_context}) def predict(x): ''' {context} >> model.predict(data) '...
[ "Format", "a", "doc", "-", "string", "on", "the", "fly", ".", "@arg", "format_dict", ":", "A", "dictionary", "to", "format", "the", "doc", "-", "strings", "Example", ":" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L64-L83
[ "def", "_add_docstring", "(", "format_dict", ")", ":", "def", "add_docstring_context", "(", "func", ")", ":", "def", "wrapper", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "return", "func", "(", "*", "args", ",", "*", "*", "kwargs", ")", "wr...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_find_only_column_of_type
Finds the only column in `SFrame` with a type specified by `target_type`. If there are zero or more than one such columns, an exception will be raised. The name and type of the target column should be provided as strings for the purpose of error feedback.
src/unity/python/turicreate/toolkits/_internal_utils.py
def _find_only_column_of_type(sframe, target_type, type_name, col_name): """ Finds the only column in `SFrame` with a type specified by `target_type`. If there are zero or more than one such columns, an exception will be raised. The name and type of the target column should be provided as strings fo...
def _find_only_column_of_type(sframe, target_type, type_name, col_name): """ Finds the only column in `SFrame` with a type specified by `target_type`. If there are zero or more than one such columns, an exception will be raised. The name and type of the target column should be provided as strings fo...
[ "Finds", "the", "only", "column", "in", "SFrame", "with", "a", "type", "specified", "by", "target_type", ".", "If", "there", "are", "zero", "or", "more", "than", "one", "such", "columns", "an", "exception", "will", "be", "raised", ".", "The", "name", "an...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L86-L103
[ "def", "_find_only_column_of_type", "(", "sframe", ",", "target_type", ",", "type_name", ",", "col_name", ")", ":", "image_column_name", "=", "None", "if", "type", "(", "target_type", ")", "!=", "list", ":", "target_type", "=", "[", "target_type", "]", "for", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_find_only_image_column
Finds the only column in `sframe` with a type of turicreate.Image. If there are zero or more than one image columns, an exception will be raised.
src/unity/python/turicreate/toolkits/_internal_utils.py
def _find_only_image_column(sframe): """ Finds the only column in `sframe` with a type of turicreate.Image. If there are zero or more than one image columns, an exception will be raised. """ from turicreate import Image return _find_only_column_of_type(sframe, target_type=Image, ...
def _find_only_image_column(sframe): """ Finds the only column in `sframe` with a type of turicreate.Image. If there are zero or more than one image columns, an exception will be raised. """ from turicreate import Image return _find_only_column_of_type(sframe, target_type=Image, ...
[ "Finds", "the", "only", "column", "in", "sframe", "with", "a", "type", "of", "turicreate", ".", "Image", ".", "If", "there", "are", "zero", "or", "more", "than", "one", "image", "columns", "an", "exception", "will", "be", "raised", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L105-L113
[ "def", "_find_only_image_column", "(", "sframe", ")", ":", "from", "turicreate", "import", "Image", "return", "_find_only_column_of_type", "(", "sframe", ",", "target_type", "=", "Image", ",", "type_name", "=", "'image'", ",", "col_name", "=", "'feature'", ")" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_find_only_drawing_column
Finds the only column that can be interpreted as a drawing feature column. A drawing column can be a stroke-based drawing column (with dtype list) or a bitmap-based drawing column (with dtype turicreate.Image) If there are zero or more than one drawing columns, an exception will be raised.
src/unity/python/turicreate/toolkits/_internal_utils.py
def _find_only_drawing_column(sframe): """ Finds the only column that can be interpreted as a drawing feature column. A drawing column can be a stroke-based drawing column (with dtype list) or a bitmap-based drawing column (with dtype turicreate.Image) If there are zero or more than one drawing...
def _find_only_drawing_column(sframe): """ Finds the only column that can be interpreted as a drawing feature column. A drawing column can be a stroke-based drawing column (with dtype list) or a bitmap-based drawing column (with dtype turicreate.Image) If there are zero or more than one drawing...
[ "Finds", "the", "only", "column", "that", "can", "be", "interpreted", "as", "a", "drawing", "feature", "column", ".", "A", "drawing", "column", "can", "be", "a", "stroke", "-", "based", "drawing", "column", "(", "with", "dtype", "list", ")", "or", "a", ...
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L115-L201
[ "def", "_find_only_drawing_column", "(", "sframe", ")", ":", "from", "turicreate", "import", "Image", "bitmap_success", ",", "stroke_success", "=", "False", ",", "False", "bitmap_error", ",", "stroke_error", "=", "None", ",", "None", "feature", "=", "None", "try...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_SGraphFromJsonTree
Convert the Json Tree to SGraph
src/unity/python/turicreate/toolkits/_internal_utils.py
def _SGraphFromJsonTree(json_str): """ Convert the Json Tree to SGraph """ g = json.loads(json_str) vertices = [_Vertex(x['id'], dict([(str(k), v) for k, v in _six.iteritems(x) if k != 'id'])) for x in g['vertices']] edges = [...
def _SGraphFromJsonTree(json_str): """ Convert the Json Tree to SGraph """ g = json.loads(json_str) vertices = [_Vertex(x['id'], dict([(str(k), v) for k, v in _six.iteritems(x) if k != 'id'])) for x in g['vertices']] edges = [...
[ "Convert", "the", "Json", "Tree", "to", "SGraph" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L203-L217
[ "def", "_SGraphFromJsonTree", "(", "json_str", ")", ":", "g", "=", "json", ".", "loads", "(", "json_str", ")", "vertices", "=", "[", "_Vertex", "(", "x", "[", "'id'", "]", ",", "dict", "(", "[", "(", "str", "(", "k", ")", ",", "v", ")", "for", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_summarize_coefficients
Return a tuple of sections and section titles. Sections are pretty print of model coefficients Parameters ---------- top_coefs : SFrame of top k coefficients bottom_coefs : SFrame of bottom k coefficients Returns ------- (sections, section_titles) : tuple sections : list ...
src/unity/python/turicreate/toolkits/_internal_utils.py
def _summarize_coefficients(top_coefs, bottom_coefs): """ Return a tuple of sections and section titles. Sections are pretty print of model coefficients Parameters ---------- top_coefs : SFrame of top k coefficients bottom_coefs : SFrame of bottom k coefficients Returns ------- ...
def _summarize_coefficients(top_coefs, bottom_coefs): """ Return a tuple of sections and section titles. Sections are pretty print of model coefficients Parameters ---------- top_coefs : SFrame of top k coefficients bottom_coefs : SFrame of bottom k coefficients Returns ------- ...
[ "Return", "a", "tuple", "of", "sections", "and", "section", "titles", ".", "Sections", "are", "pretty", "print", "of", "model", "coefficients" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L223-L264
[ "def", "_summarize_coefficients", "(", "top_coefs", ",", "bottom_coefs", ")", ":", "def", "get_row_name", "(", "row", ")", ":", "if", "row", "[", "'index'", "]", "is", "None", ":", "return", "row", "[", "'name'", "]", "else", ":", "return", "\"%s[%s]\"", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_toolkit_get_topk_bottomk
Returns a tuple of the top k values from the positive and negative values in a SArray Parameters ---------- values : SFrame of model coefficients k: Maximum number of largest positive and k lowest negative numbers to return Returns ------- (topk_positive, bottomk_positive) : tuple ...
src/unity/python/turicreate/toolkits/_internal_utils.py
def _toolkit_get_topk_bottomk(values, k=5): """ Returns a tuple of the top k values from the positive and negative values in a SArray Parameters ---------- values : SFrame of model coefficients k: Maximum number of largest positive and k lowest negative numbers to return Returns -...
def _toolkit_get_topk_bottomk(values, k=5): """ Returns a tuple of the top k values from the positive and negative values in a SArray Parameters ---------- values : SFrame of model coefficients k: Maximum number of largest positive and k lowest negative numbers to return Returns -...
[ "Returns", "a", "tuple", "of", "the", "top", "k", "values", "from", "the", "positive", "and", "negative", "values", "in", "a", "SArray" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L266-L294
[ "def", "_toolkit_get_topk_bottomk", "(", "values", ",", "k", "=", "5", ")", ":", "top_values", "=", "values", ".", "topk", "(", "'value'", ",", "k", "=", "k", ")", "top_values", "=", "top_values", "[", "top_values", "[", "'value'", "]", ">", "0", "]", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
__extract_model_summary_value
Extract a model summary field value
src/unity/python/turicreate/toolkits/_internal_utils.py
def __extract_model_summary_value(model, value): """ Extract a model summary field value """ field_value = None if isinstance(value, _precomputed_field): field_value = value.field else: field_value = model._get(value) if isinstance(field_value, float): try: ...
def __extract_model_summary_value(model, value): """ Extract a model summary field value """ field_value = None if isinstance(value, _precomputed_field): field_value = value.field else: field_value = model._get(value) if isinstance(field_value, float): try: ...
[ "Extract", "a", "model", "summary", "field", "value" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L320-L334
[ "def", "__extract_model_summary_value", "(", "model", ",", "value", ")", ":", "field_value", "=", "None", "if", "isinstance", "(", "value", ",", "_precomputed_field", ")", ":", "field_value", "=", "value", ".", "field", "else", ":", "field_value", "=", "model"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_make_repr_table_from_sframe
Serializes an SFrame to a list of strings, that, when printed, creates a well-formatted table.
src/unity/python/turicreate/toolkits/_internal_utils.py
def _make_repr_table_from_sframe(X): """ Serializes an SFrame to a list of strings, that, when printed, creates a well-formatted table. """ assert isinstance(X, _SFrame) column_names = X.column_names() out_data = [ [None]*len(column_names) for i in range(X.num_rows())] column_sizes = [le...
def _make_repr_table_from_sframe(X): """ Serializes an SFrame to a list of strings, that, when printed, creates a well-formatted table. """ assert isinstance(X, _SFrame) column_names = X.column_names() out_data = [ [None]*len(column_names) for i in range(X.num_rows())] column_sizes = [le...
[ "Serializes", "an", "SFrame", "to", "a", "list", "of", "strings", "that", "when", "printed", "creates", "a", "well", "-", "formatted", "table", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L336-L359
[ "def", "_make_repr_table_from_sframe", "(", "X", ")", ":", "assert", "isinstance", "(", "X", ",", "_SFrame", ")", "column_names", "=", "X", ".", "column_names", "(", ")", "out_data", "=", "[", "[", "None", "]", "*", "len", "(", "column_names", ")", "for"...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_toolkit_repr_print
Display a toolkit repr according to some simple rules. Parameters ---------- model : Turi Create model fields: List of lists of tuples Each tuple should be (display_name, field_name), where field_name can be a string or a _precomputed_field object. section_titles: List of section...
src/unity/python/turicreate/toolkits/_internal_utils.py
def _toolkit_repr_print(model, fields, section_titles, width = None): """ Display a toolkit repr according to some simple rules. Parameters ---------- model : Turi Create model fields: List of lists of tuples Each tuple should be (display_name, field_name), where field_name can ...
def _toolkit_repr_print(model, fields, section_titles, width = None): """ Display a toolkit repr according to some simple rules. Parameters ---------- model : Turi Create model fields: List of lists of tuples Each tuple should be (display_name, field_name), where field_name can ...
[ "Display", "a", "toolkit", "repr", "according", "to", "some", "simple", "rules", "." ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L362-L446
[ "def", "_toolkit_repr_print", "(", "model", ",", "fields", ",", "section_titles", ",", "width", "=", "None", ")", ":", "assert", "len", "(", "section_titles", ")", "==", "len", "(", "fields", ")", ",", "\"The number of section titles ({0}) \"", ".", "format", ...
74514c3f99e25b46f22c6e02977fe3da69221c2e
train
_map_unity_proxy_to_object
Map returning value, if it is unity SFrame, SArray, map it
src/unity/python/turicreate/toolkits/_internal_utils.py
def _map_unity_proxy_to_object(value): """ Map returning value, if it is unity SFrame, SArray, map it """ vtype = type(value) if vtype in _proxy_map: return _proxy_map[vtype](value) elif vtype == list: return [_map_unity_proxy_to_object(v) for v in value] elif vtype == dict: ...
def _map_unity_proxy_to_object(value): """ Map returning value, if it is unity SFrame, SArray, map it """ vtype = type(value) if vtype in _proxy_map: return _proxy_map[vtype](value) elif vtype == list: return [_map_unity_proxy_to_object(v) for v in value] elif vtype == dict: ...
[ "Map", "returning", "value", "if", "it", "is", "unity", "SFrame", "SArray", "map", "it" ]
apple/turicreate
python
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/src/unity/python/turicreate/toolkits/_internal_utils.py#L448-L460
[ "def", "_map_unity_proxy_to_object", "(", "value", ")", ":", "vtype", "=", "type", "(", "value", ")", "if", "vtype", "in", "_proxy_map", ":", "return", "_proxy_map", "[", "vtype", "]", "(", "value", ")", "elif", "vtype", "==", "list", ":", "return", "[",...
74514c3f99e25b46f22c6e02977fe3da69221c2e