_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c13500 | train | // The namespace of the node. This is the empty string if there
// no associated namespace. | {
"resource": ""
} | ||
c13501 | train | // ToXml generates an indented XML document with an XML declaration.
// It is not guaranteed to be well formed unless xmlNode is an element node,
// or a document node with only one element child.
// If you need finer control over the formatting, call SerializeWithFormat.
// If encoding is nil, the document's output en... | {
"resource": ""
} | ||
c13502 | train | // ToUnformattedXml generates an unformatted XML document without an XML declaration.
// This is useful for conforming to various standards and for unit testing, although
// the output is not guaranteed to be well formed unless xmlNode is an element node. | {
"resource": ""
} | ||
c13503 | train | // ToHtml generates an indented XML document that conforms to HTML 4.0 rules; meaning
// that some elements may be unclosed or forced to use end tags even when empty.
// If you want to output XHTML, call SerializeWithFormat and enable the XML_SAVE_XHTML
// flag as part of the format.
// If encoding is nil, the document... | {
"resource": ""
} | ||
c13504 | train | // Add a namespace declaration to an element.
// This is typically done on the root element or node high up in the tree
// to avoid duplication. The declaration is not created if the namespace
// is already declared in this scope with the same prefix. | {
"resource": ""
} | ||
c13505 | train | // ReadFile loads an XmlDocument from a filename. The encoding declared in the document will be
// used as the input encoding. If no encoding is declared, the library will use the alogrithm
// in the XML standard to determine if the document is encoded with UTF-8 or UTF-16. | {
"resource": ""
} | ||
c13506 | train | // DocPtr provides access to the libxml2 structure underlying the document. | {
"resource": ""
} | ||
c13507 | train | // Root returns the root node of the document. Newly created documents do not
// have a root node until an element node is added a child of the document.
//
// Documents that have multiple root nodes are invalid adn the behaviour is
// not well defined. | {
"resource": ""
} | ||
c13508 | train | // Get an element node by the value of its ID attribute. By convention this attribute
// is named id, but the actual name of the attribute is set by the document's DTD or schema.
//
// The value for an ID attribute is guaranteed to be unique within a valid document. | {
"resource": ""
} | ||
c13509 | train | //CreateTextNode creates a text node. It can be added as a child of an element.
//
// The data argument is XML-escaped and used as the content of the node. | {
"resource": ""
} | ||
c13510 | train | //CreateCDataNode creates a CDATA node. CDATA nodes can
// only be children of an element.
//
// The data argument will become the content of the newly created node. | {
"resource": ""
} | ||
c13511 | train | //CreateCommentNode creates a comment node. Comment nodes can
// be children of an element or of the document itself.
//
// The data argument will become the content of the comment. | {
"resource": ""
} | ||
c13512 | train | //CreatePINode creates a processing instruction node with the specified name and data.
// Processing instruction nodes can be children of an element or of the document itself.
//
// While it's common to use an attribute-like syntax for processing instructions, the data
// is actually an arbitrary string that you will n... | {
"resource": ""
} | ||
c13513 | train | // Return the value of an NDATA entity declared in the DTD. If there is no such entity or
// the value cannot be encoded as a valid URI, an empty string is returned.
//
// Note that this library assumes you already know the name of entity and does not
// expose any way of getting the list of entities. | {
"resource": ""
} | ||
c13514 | train | // Free the C structures associated with this document. | {
"resource": ""
} | ||
c13515 | train | // Produce a slice of unsafe.Pointer objects, suitable for passing to a C function | {
"resource": ""
} | ||
c13516 | train | // Produce a C.xmlXPathObjectPtr suitable for passing to libxml2 | {
"resource": ""
} | ||
c13517 | train | // Produce a C.xmlXPathObjectPtr marked as a ResultValueTree, suitable for passing to libxml2 | {
"resource": ""
} | ||
c13518 | train | // Convert an arbitrary value into a C.xmlXPathObjectPtr
// Unrecognised and nil values are converted to empty node sets. | {
"resource": ""
} | ||
c13519 | train | //create a document | {
"resource": ""
} | ||
c13520 | train | //parse a string to document | {
"resource": ""
} | ||
c13521 | train | // LocalAssets contains the local objects to be uploaded | {
"resource": ""
} | ||
c13522 | train | // Debugf prints debug output when EnvDebug is set | {
"resource": ""
} | ||
c13523 | train | // PrintRedf prints red error message to console. | {
"resource": ""
} | ||
c13524 | train | // NewGitHubClient creates and initializes a new GitHubClient | {
"resource": ""
} | ||
c13525 | train | // SetUploadURL constructs the upload URL for a release | {
"resource": ""
} | ||
c13526 | train | // CreateRelease creates a new release object in the GitHub API | {
"resource": ""
} | ||
c13527 | train | // GetRelease queries the GitHub API for a specified release object | {
"resource": ""
} | ||
c13528 | train | // EditRelease edit a release object within the GitHub API | {
"resource": ""
} | ||
c13529 | train | // DeleteRelease deletes a release object within the GitHub API | {
"resource": ""
} | ||
c13530 | train | // DeleteTag deletes a tag from the GitHub API | {
"resource": ""
} | ||
c13531 | train | // UploadAsset uploads specified assets to a given release object | {
"resource": ""
} | ||
c13532 | train | // ListAssets lists assets associated with a given release | {
"resource": ""
} | ||
c13533 | train | // OutputVersion checks the current version and compares it against releases
// available on GitHub. If there is a newer version available, it prints an
// update warning. | {
"resource": ""
} | ||
c13534 | train | // DeleteRelease removes an existing release, if it exists. If it does not exist,
// DeleteRelease returns an error | {
"resource": ""
} | ||
c13535 | train | // DeleteAssets removes uploaded assets for a given release | {
"resource": ""
} | ||
c13536 | train | // NewFormatter returns a new formatter with following default values. | {
"resource": ""
} | ||
c13537 | train | // Marshal marshals and formats JSON data. | {
"resource": ""
} | ||
c13538 | train | // Format formats JSON string. | {
"resource": ""
} | ||
c13539 | train | // GetPairTickerInfo is a helper method that returns given `pair`'s `PairTickerInfo` | {
"resource": ""
} | ||
c13540 | train | // UnmarshalJSON takes a json array from kraken and converts it into an OrderBookItem. | {
"resource": ""
} | ||
c13541 | train | // New creates a new Kraken API client | {
"resource": ""
} | ||
c13542 | train | // Time returns the server's time | {
"resource": ""
} | ||
c13543 | train | // Assets returns the servers available assets | {
"resource": ""
} | ||
c13544 | train | // AssetPairs returns the servers available asset pairs | {
"resource": ""
} | ||
c13545 | train | // Ticker returns the ticker for given comma separated pairs | {
"resource": ""
} | ||
c13546 | train | // Trades returns the recent trades for given pair | {
"resource": ""
} | ||
c13547 | train | // Balance returns all account asset balances | {
"resource": ""
} | ||
c13548 | train | // TradeBalance returns trade balance info | {
"resource": ""
} | ||
c13549 | train | // OpenOrders returns all open orders | {
"resource": ""
} | ||
c13550 | train | // ClosedOrders returns all closed orders | {
"resource": ""
} | ||
c13551 | train | // Depth returns the order book for given pair and orders count. | {
"resource": ""
} | ||
c13552 | train | // CancelOrder cancels order | {
"resource": ""
} | ||
c13553 | train | // QueryOrders shows order | {
"resource": ""
} | ||
c13554 | train | // AddOrder adds new order | {
"resource": ""
} | ||
c13555 | train | // Ledgers returns ledgers informations | {
"resource": ""
} | ||
c13556 | train | // DepositAddresses returns deposit addresses | {
"resource": ""
} | ||
c13557 | train | // Withdraw executes a withdrawal, returning a reference ID | {
"resource": ""
} | ||
c13558 | train | // Query sends a query to Kraken api for given method and parameters | {
"resource": ""
} | ||
c13559 | train | // Execute a public method query | {
"resource": ""
} | ||
c13560 | train | // queryPrivate executes a private method query | {
"resource": ""
} | ||
c13561 | train | // doRequest executes a HTTP Request to the Kraken API and returns the result | {
"resource": ""
} | ||
c13562 | train | // isStringInSlice is a helper function to test if given term is in a list of strings | {
"resource": ""
} | ||
c13563 | train | // getHMacSha512 creates a hmac hash with sha512 | {
"resource": ""
} | ||
c13564 | train | // Sign creates a concatenated consumer and token secret key and calculates
// the HMAC digest of the message. Returns the base64 encoded digest bytes. | {
"resource": ""
} | ||
c13565 | train | // Sign uses RSA PKCS1-v1_5 to sign a SHA1 digest of the given message. The
// tokenSecret is not used with this signing scheme. | {
"resource": ""
} | ||
c13566 | train | // NewToken returns a new Token with the given token and token secret. | {
"resource": ""
} | ||
c13567 | train | // PercentEncode percent encodes a string according to RFC 3986 2.1. | {
"resource": ""
} | ||
c13568 | train | // shouldEscape returns false if the byte is an unreserved character that
// should not be escaped and true otherwise, according to RFC 3986 2.1. | {
"resource": ""
} | ||
c13569 | train | // RoundTrip authorizes the request with a signed OAuth1 Authorization header
// using the auther and TokenSource. | {
"resource": ""
} | ||
c13570 | train | // contextTransport gets the Transport from the context client or nil. | {
"resource": ""
} | ||
c13571 | train | // NewConfig returns a new Config with the given consumer key and secret. | {
"resource": ""
} | ||
c13572 | train | // Client returns an HTTP client which uses the provided ctx and access Token. | {
"resource": ""
} | ||
c13573 | train | // NewClient returns a new http Client which signs requests via OAuth1. | {
"resource": ""
} | ||
c13574 | train | // ParseAuthorizationCallback parses an OAuth1 authorization callback request
// from a provider server. The oauth_token and oauth_verifier parameters are
// parsed to return the request token from earlier in the flow and the
// verifier string.
// See RFC 5849 2.2 Resource Owner Authorization. | {
"resource": ""
} | ||
c13575 | train | // commonOAuthParams returns a map of the common OAuth1 protocol parameters,
// excluding the oauth_signature parameter. This includes the realm parameter
// if it was set in the config. The realm parameter will not be included in
// the signature base string as specified in RFC 5849 3.4.1.3.1. | {
"resource": ""
} | ||
c13576 | train | // Returns the Unix epoch seconds. | {
"resource": ""
} | ||
c13577 | train | // Returns the Config's Signer or the default Signer. | {
"resource": ""
} | ||
c13578 | train | // encodeParameters percent encodes parameter keys and values according to
// RFC5849 3.6 and RFC3986 2.1 and returns a new map. | {
"resource": ""
} | ||
c13579 | train | // signatureBase combines the uppercase request method, percent encoded base
// string URI, and normalizes the request parameters int a parameter string.
// Returns the OAuth1 signature base string according to RFC5849 3.4.1. | {
"resource": ""
} | ||
c13580 | train | // baseURI returns the base string URI of a request according to RFC 5849
// 3.4.1.2. The scheme and host are lowercased, the port is dropped if it
// is 80 or 443, and the path minus query parameters is included. | {
"resource": ""
} | ||
c13581 | train | // main performs Twitter PIN-based 3-legged OAuth 1 from the command line | {
"resource": ""
} | ||
c13582 | train | // Bytes gets written content. | {
"resource": ""
} | ||
c13583 | train | // PingSearchEngines requests some ping server from it calls Sitemap.PingSearchEngines. | {
"resource": ""
} | ||
c13584 | train | // NewSitemapURL returns the created the SitemapURL's pointer
// and it validates URL types error. | {
"resource": ""
} | ||
c13585 | train | // XML is building xml. | {
"resource": ""
} | ||
c13586 | train | // Write will create sitemap xml file into the s3. | {
"resource": ""
} | ||
c13587 | train | // URLJoinBy that's convenient. | {
"resource": ""
} | ||
c13588 | train | // NewSitemap returns the created the Sitemap's pointer | {
"resource": ""
} | ||
c13589 | train | // Create method must be that calls first this method in that before call to Add method on this struct. | {
"resource": ""
} | ||
c13590 | train | // Add Should call this after call to Create method on this struct. | {
"resource": ""
} | ||
c13591 | train | // Finalize writes sitemap and index files if it had some
// specific condition in BuilderFile struct. | {
"resource": ""
} | ||
c13592 | train | // NewBuilderIndexfile returns the created the BuilderIndexfile's pointer | {
"resource": ""
} | ||
c13593 | train | // Add method joins old bytes with creates bytes by it calls from Sitemap.Finalize method. | {
"resource": ""
} | ||
c13594 | train | // XMLContent and BuilderFile.XMLContent share almost the same behavior. | {
"resource": ""
} | ||
c13595 | train | // Write and Builderfile.Write are almost the same behavior. | {
"resource": ""
} | ||
c13596 | train | // Directory returns path to combine publicPath and sitemapsPath on file systems.
// It also indicates where sitemap files are. | {
"resource": ""
} | ||
c13597 | train | // Path returns path to combine publicPath, sitemapsPath and Filename on file systems.
// It also indicates where sitemap name is. | {
"resource": ""
} | ||
c13598 | train | // PathInPublic returns path to combine sitemapsPath and Filename on website.
// It also indicates where url file path is. | {
"resource": ""
} | ||
c13599 | train | // URL returns path to combine SitemapsHost, sitemapsPath and
// Filename on website with it uses ResolveReference. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.