_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c14900
train
// Log prints a leveled log message to the output. // This method can be used to use custom log levels if needed. // It adds a new line in the end.
{ "resource": "" }
c14901
train
// Errorf will print only when logger's Level is error, warn, info or debug.
{ "resource": "" }
c14902
train
// Warnf will print when logger's Level is warn, info or debug.
{ "resource": "" }
c14903
train
// Infof will print when logger's Level is info or debug.
{ "resource": "" }
c14904
train
// Debugf will print when logger's Level is debug.
{ "resource": "" }
c14905
train
// Handle adds a log handler. // // Handlers can be used to intercept the message between a log value // and the actual print operation, it's called // when one of the print functions called. // If it's return value is true then it means that the specific // handler handled the log by itself therefore no need to // pro...
{ "resource": "" }
c14906
train
// Hijack adds a hijacker to the low-level logger's Printer. // If you need to implement such as a low-level hijacker manually, // then you have to make use of the pio library.
{ "resource": "" }
c14907
train
// Scan scans everything from "r" and prints // its new contents to the logger's Printer's Output, // forever or until the returning "cancel" is fired, once.
{ "resource": "" }
c14908
train
// Clone returns a copy of this "l" Logger. // This copy is returned as pointer as well.
{ "resource": "" }
c14909
train
// FormatTime returns the formatted `Time`.
{ "resource": "" }
c14910
train
// SetWordList sets the list of words to use for mnemonics. Currently the list // that is set is used package-wide.
{ "resource": "" }
c14911
train
// GetWordIndex gets word index in wordMap.
{ "resource": "" }
c14912
train
// EntropyFromMnemonic takes a mnemonic generated by this library, // and returns the input entropy used to generate the given mnemonic. // An error is returned if the given mnemonic is invalid.
{ "resource": "" }
c14913
train
// NewMnemonic will return a string consisting of the mnemonic words for // the given entropy. // If the provide entropy is invalid, an error will be returned.
{ "resource": "" }
c14914
train
// MnemonicToByteArray takes a mnemonic string and turns it into a byte array // suitable for creating another mnemonic. // An error is returned if the mnemonic is invalid.
{ "resource": "" }
c14915
train
// NewSeedWithErrorChecking creates a hashed seed output given the mnemonic string and a password. // An error is returned if the mnemonic is not convertible to a byte array.
{ "resource": "" }
c14916
train
// NewSeed creates a hashed seed output given a provided string and password. // No checking is performed to validate that the string provided is a valid mnemonic.
{ "resource": "" }
c14917
train
// IsMnemonicValid attempts to verify that the provided mnemonic is valid. // Validity is determined by both the number of words being appropriate, // and that all the words in the mnemonic are present in the word list.
{ "resource": "" }
c14918
train
// padByteSlice returns a byte slice of the given size with contents of the // given slice left padded and any empty spaces filled with 0's.
{ "resource": "" }
c14919
train
// New attempts to connect to a running mist server at the clients specified // host and port.
{ "resource": "" }
c14920
train
// connect dials the remote mist server and handles any incoming responses back // from mist
{ "resource": "" }
c14921
train
// Ping the server
{ "resource": "" }
c14922
train
// Subscribe takes the specified tags and tells the server to subscribe to updates // on those tags, returning the tags and an error or nil
{ "resource": "" }
c14923
train
// Publish sends a message to the mist server to be published to all subscribed // clients
{ "resource": "" }
c14924
train
// PublishAfter sends a message to the mist server to be published to all subscribed // clients after a specified delay
{ "resource": "" }
c14925
train
// handleListAll - listall related
{ "resource": "" }
c14926
train
// handleWho - who related
{ "resource": "" }
c14927
train
// findMemoryToken attempts to find the desired token within memory
{ "resource": "" }
c14928
train
// List returns a list of all current subscriptions
{ "resource": "" }
c14929
train
// Register registers a new mist server
{ "resource": "" }
c14930
train
// Add sorts the keys and then attempts to add them
{ "resource": "" }
c14931
train
// Remove sorts the keys and then attempts to remove them
{ "resource": "" }
c14932
train
// Match sorts the keys and then attempts to find a match
{ "resource": "" }
c14933
train
// ToSlice recurses down an entire node returning a list of all branches and leaves // as a slice of slices
{ "resource": "" }
c14934
train
// Register registers a new mist authenticator
{ "resource": "" }
c14935
train
// NewPostgres creates a new "postgres" Authenticator
{ "resource": "" }
c14936
train
// this could really be optimized a lot. instead of opening a new conenction for // each query, it should reuse connections
{ "resource": "" }
c14937
train
// This could also be optimized a lot
{ "resource": "" }
c14938
train
// Subscribers is listall related
{ "resource": "" }
c14939
train
// Who is who related
{ "resource": "" }
c14940
train
// PublishAfter publishes to ALL subscribers. Usefull in client applications // who reuse the publish connection for subscribing
{ "resource": "" }
c14941
train
// publish publishes to all subscribers except the one who issued the publish
{ "resource": "" }
c14942
train
// subscribe adds a proxy to the list of mist subscribers; we need this so that // we can lock this process incase multiple proxies are subscribing at the same // time
{ "resource": "" }
c14943
train
// unsubscribe removes a proxy from the list of mist subscribers; we need this // so that we can lock this process incase multiple proxies are unsubscribing at // the same time
{ "resource": "" }
c14944
train
// NewScribble creates a new "scribble" authenticator
{ "resource": "" }
c14945
train
// findScribbleToken attempts to find the desired token within "scribble"
{ "resource": "" }
c14946
train
// StartHTTP starts a mist server listening over HTTP
{ "resource": "" }
c14947
train
// routes registers all api routes with the router
{ "resource": "" }
c14948
train
// handleRequest is a wrapper for the actual route handler, simply to provide some // debug output
{ "resource": "" }
c14949
train
// Negotiate handles the SPNEGO client-server negotiation. Negotiate will likely // be invoked multiple times; a 200 or 400 response code are terminating // conditions, whereas a 401 or 407 means that the client should respond to the // challenge that we send.
{ "resource": "" }
c14950
train
// MakeOIDSet makes an OIDSet prepopulated with the given OIDs.
{ "resource": "" }
c14951
train
// Release frees all C memory associated with an OIDSet.
{ "resource": "" }
c14952
train
// Add adds OIDs to an OIDSet.
{ "resource": "" }
c14953
train
// Length returns the number of OIDs in a set.
{ "resource": "" }
c14954
train
// Get returns a specific OID from the set. The memory will be released when the // set itself is released.
{ "resource": "" }
c14955
train
// Path returns the chosen gssapi library path that we're looking for.
{ "resource": "" }
c14956
train
// Load attempts to load a dynamically-linked gssapi library from the path // specified by the supplied Options.
{ "resource": "" }
c14957
train
// Unload closes the handle to the dynamically-linked gssapi library.
{ "resource": "" }
c14958
train
// populateFunctions ranges over the library's ftable, initializing each // function inside. Assumes that the caller executes runtime.LockOSThread.
{ "resource": "" }
c14959
train
// initConstants sets the initial values of a library's set of 'constants'.
{ "resource": "" }
c14960
train
// Print outputs a log line to the specified severity.
{ "resource": "" }
c14961
train
// Release frees a credential.
{ "resource": "" }
c14962
train
// MakeBufferBytes makes a Buffer encapsulating a byte slice.
{ "resource": "" }
c14963
train
// MakeBufferString makes a Buffer encapsulating the contents of a string.
{ "resource": "" }
c14964
train
// Release safely frees the contents of a Buffer.
{ "resource": "" }
c14965
train
// Length returns the number of bytes in the Buffer.
{ "resource": "" }
c14966
train
// Bytes returns the contents of a Buffer as a byte slice.
{ "resource": "" }
c14967
train
// String returns the contents of a Buffer as a string.
{ "resource": "" }
c14968
train
// Equal determines if a Buffer receiver is equivalent to the supplied Buffer.
{ "resource": "" }
c14969
train
// MakeOIDBytes makes an OID encapsulating a byte slice. Note that it does not // duplicate the data, but rather it points to it directly.
{ "resource": "" }
c14970
train
// MakeOIDString makes an OID from a string.
{ "resource": "" }
c14971
train
// Release safely frees the contents of an OID if it's allocated with malloc by // MakeOIDBytes.
{ "resource": "" }
c14972
train
// Bytes displays the bytes of an OID.
{ "resource": "" }
c14973
train
// String displays a string representation of an OID.
{ "resource": "" }
c14974
train
// Returns a symbolic name for a known OID, or the string. Note that this // function is intended for debugging and is not at all performant.
{ "resource": "" }
c14975
train
// AcceptSecContext accepts an initialized security context. Usually called by // the server. May return ErrContinueNeeded if the client is to make another // iteration of exchanging token with the service
{ "resource": "" }
c14976
train
// InquireContext returns fields about a security context.
{ "resource": "" }
c14977
train
// AddSPNEGONegotiate adds a Negotiate header with the value of a serialized // token to an http header.
{ "resource": "" }
c14978
train
// CheckSPNEGONegotiate checks for the presence of a Negotiate header. If // present, we return a gssapi Token created from the header value sent to us.
{ "resource": "" }
c14979
train
// Release frees the memory associated with an internal representation of the // name.
{ "resource": "" }
c14980
train
// Display "allows an application to obtain a textual representation of an // opaque internal-form name for display purposes"
{ "resource": "" }
c14981
train
// Canonicalize returns a copy of this name, canonicalized for the specified // mechanism
{ "resource": "" }
c14982
train
// InquireMechs returns the set of mechanisms supported by the GSS-API // implementation that may be able to process the specified name
{ "resource": "" }
c14983
train
// InquireNameForMech returns the set of name types supported by // the specified mechanism
{ "resource": "" }
c14984
train
// MakeError creates a golang Error object from a gssapi major & minor status.
{ "resource": "" }
c14985
train
// Error returns a string representation of an Error object.
{ "resource": "" }
c14986
train
// Map prints out a Graphviz digraph of the given datastructure to the given io.Writer
{ "resource": "" }
c14987
train
// newOperatorNode returns new operator node OperatorNode.
{ "resource": "" }
c14988
train
// newAxisNode returns new axis node AxisNode.
{ "resource": "" }
c14989
train
// newVariableNode returns new variable node VariableNode.
{ "resource": "" }
c14990
train
// newFilterNode returns a new filter node FilterNode.
{ "resource": "" }
c14991
train
// newFunctionNode returns function call node.
{ "resource": "" }
c14992
train
// parseExpression parsing the expression with input node n.
{ "resource": "" }
c14993
train
// Parse parsing the XPath express string expr and returns a tree node.
{ "resource": "" }
c14994
train
// number vs number
{ "resource": "" }
c14995
train
// string vs string
{ "resource": "" }
c14996
train
// eqFunc is an `=` operator.
{ "resource": "" }
c14997
train
// axisPredicate creates a predicate to predicating for this axis node.
{ "resource": "" }
c14998
train
// processFilterNode builds query for the XPath filter predicate.
{ "resource": "" }
c14999
train
// build builds a specified XPath expressions expr.
{ "resource": "" }