_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c29200
train
// redirectPager returns a redirected io.Writer if the output would exceed // the terminal size
{ "resource": "" }
c29201
train
// listAll will unconditionally list all entries, used if no filter is given
{ "resource": "" }
c29202
train
// pager invokes the default pager with the given content
{ "resource": "" }
c29203
train
// GetTermsize returns the size of the current terminal
{ "resource": "" }
c29204
train
// CryptoBackends returns the list of registered crypto backends.
{ "resource": "" }
c29205
train
// RCSBackends returns the list of registered RCS backends.
{ "resource": "" }
c29206
train
// StorageBackends returns the list of registered storage backends.
{ "resource": "" }
c29207
train
// Copy will copy one entry to another location. Multi-store copies are // supported. Each entry has to be decoded and encoded for the destination // to make sure it's encrypted for the right set of recipients.
{ "resource": "" }
c29208
train
// Move will move one entry from one location to another. Cross-store moves are // supported. Moving an entry will decode it from the old location, encode it // for the destination store with the right set of recipients and remove it // from the old location afterwards.
{ "resource": "" }
c29209
train
// Get retrieves the named content
{ "resource": "" }
c29210
train
// Set writes the given content
{ "resource": "" }
c29211
train
// Delete removes the named entity
{ "resource": "" }
c29212
train
// Deletes all empty parent directories up to the store root
{ "resource": "" }
c29213
train
// Exists checks if the named entity exists
{ "resource": "" }
c29214
train
// List returns a list of all entities
{ "resource": "" }
c29215
train
// IsDir returns true if the named entity is a directory
{ "resource": "" }
c29216
train
// Prune removes a named directory
{ "resource": "" }
c29217
train
// New creates a new agent
{ "resource": "" }
c29218
train
// ListenAndServe starts listening and blocks
{ "resource": "" }
c29219
train
// lookupAuthStyle reports which auth style we last used with tokenURL // when calling RetrieveToken and whether we have ever done so.
{ "resource": "" }
c29220
train
// setAuthStyle adds an entry to authStyleCache, documented above.
{ "resource": "" }
c29221
train
// ServerEndpoint returns a new oauth2.Endpoint for a HipChat Server instance // running on the given domain or host.
{ "resource": "" }
c29222
train
// Token uses client credentials to retrieve a token. // // The provided context optionally controls which HTTP client is used. See the oauth2.HTTPClient variable.
{ "resource": "" }
c29223
train
// EncodeWithSigner encodes a header and claim set with the provided signer.
{ "resource": "" }
c29224
train
// Verify tests whether the provided JWT token's signature was produced by the private key // associated with the supplied public key.
{ "resource": "" }
c29225
train
// Sign the claim set with the shared secret // Result to be sent as assertion
{ "resource": "" }
c29226
train
// activeListeners returns a snapshot copy of the active listeners.
{ "resource": "" }
c29227
train
// StartProcess starts a new process passing it the active listeners. It // doesn't fork, but starts a new process using the same environment and // arguments as when it was originally started. This allows for a newly // deployed binary to be started. It returns the pid of the newly started // process when successful.
{ "resource": "" }
c29228
train
// ServeWithOptions does the same as Serve, but takes a set of options to // configure the app struct.
{ "resource": "" }
c29229
train
// Used for pretty printing addresses.
{ "resource": "" }
c29230
train
// freeNode adds the given node to the list, returning true if it was added // and false if it was discarded.
{ "resource": "" }
c29231
train
// NewWithFreeList creates a new B-Tree that uses the given node free list.
{ "resource": "" }
c29232
train
// truncate truncates this instance at index so that it contains only the // first index items. index must be less than or equal to length.
{ "resource": "" }
c29233
train
// find returns the index where the given item should be inserted into this // list. 'found' is true if the item already exists in the list at the given // index.
{ "resource": "" }
c29234
train
// truncate truncates this instance at index so that it contains only the // first index children. index must be less than or equal to length.
{ "resource": "" }
c29235
train
// maybeSplitChild checks if a child should be split, and if so splits it. // Returns whether or not a split occurred.
{ "resource": "" }
c29236
train
// get finds the given key in the subtree and returns it.
{ "resource": "" }
c29237
train
// min returns the first item in the subtree.
{ "resource": "" }
c29238
train
// max returns the last item in the subtree.
{ "resource": "" }
c29239
train
// remove removes an item from the subtree rooted at this node.
{ "resource": "" }
c29240
train
// Delete removes an item equal to the passed in item from the tree, returning // it. If no such item exists, returns nil.
{ "resource": "" }
c29241
train
// AscendRange calls the iterator for every value in the tree within the range // [greaterOrEqual, lessThan), until iterator returns false.
{ "resource": "" }
c29242
train
// AscendLessThan calls the iterator for every value in the tree within the range // [first, pivot), until iterator returns false.
{ "resource": "" }
c29243
train
// DescendRange calls the iterator for every value in the tree within the range // [lessOrEqual, greaterThan), until iterator returns false.
{ "resource": "" }
c29244
train
// DescendGreaterThan calls the iterator for every value in the tree within // the range (pivot, last], until iterator returns false.
{ "resource": "" }
c29245
train
// Get looks for the key item in the tree, returning it. It returns nil if // unable to find that item.
{ "resource": "" }
c29246
train
// Has returns true if the given key is in the tree.
{ "resource": "" }
c29247
train
// reset returns a subtree to the freelist. It breaks out immediately if the // freelist is full, since the only benefit of iterating is to fill that // freelist up. Returns true if parent reset call should continue.
{ "resource": "" }
c29248
train
// Scan implements the driver.Valuer interface, json field interface
{ "resource": "" }
c29249
train
// This probably works well for 16-byte strings as well, but it may be overkill
{ "resource": "" }
c29250
train
// NewCompressWriter wrap the io.Writer
{ "resource": "" }
c29251
train
// xtob converts hex characters x1 and x2 into a byte.
{ "resource": "" }
c29252
train
// newMatcher returns matcher for word needle
{ "resource": "" }
c29253
train
// NewCompressReader wrap the io.Reader
{ "resource": "" }
c29254
train
// RegisterTLSConfig registers a custom tls.Config to be used with sql.Open.
{ "resource": "" }
c29255
train
// Accept a client connection and collect it in a channel
{ "resource": "" }
c29256
train
// Is a service is enabled
{ "resource": "" }
c29257
train
// Check service is running
{ "resource": "" }
c29258
train
// Get executable path
{ "resource": "" }
c29259
train
// Get windows error
{ "resource": "" }
c29260
train
// Get windows service state
{ "resource": "" }
c29261
train
// Lookup path for executable file
{ "resource": "" }
c29262
train
// Check root rights to use system service
{ "resource": "" }
c29263
train
// NewShellProgramFuncWithEnv creates programs that are executed in a Shell with environment variables
{ "resource": "" }
c29264
train
// Input sets the input to send to a remote credentials helper.
{ "resource": "" }
c29265
train
// isValidCredsMessage checks if 'msg' contains invalid credentials error message. // It returns whether the logs are free of invalid credentials errors and the error if it isn't. // error values can be errCredentialsMissingServerURL or errCredentialsMissingUsername.
{ "resource": "" }
c29266
train
// Store uses an external program to save credentials.
{ "resource": "" }
c29267
train
// Get executes an external program to get the credentials from a native store.
{ "resource": "" }
c29268
train
// Erase executes a program to remove the server credentials from the native store.
{ "resource": "" }
c29269
train
// List executes a program to list server credentials in the native store.
{ "resource": "" }
c29270
train
// Delete removes credentials from the keychain.
{ "resource": "" }
c29271
train
// List returns the stored URLs and corresponding usernames.
{ "resource": "" }
c29272
train
// isValid checks the integrity of Credentials object such that no credentials lack // a server URL or a username. // It returns whether the credentials are valid and the error if it isn't. // error values can be errCredentialsMissingServerURL or errCredentialsMissingUsername
{ "resource": "" }
c29273
train
// HandleCommand uses a helper and a key to run a credential action.
{ "resource": "" }
c29274
train
// Store uses a helper and an input reader to save credentials. // The reader must contain the JSON serialization of a Credentials struct.
{ "resource": "" }
c29275
train
// Get retrieves the credentials for a given server url. // The reader must contain the server URL to search. // The writer is used to write the JSON serialization of the credentials.
{ "resource": "" }
c29276
train
// Erase removes credentials from the store. // The reader must contain the server URL to remove.
{ "resource": "" }
c29277
train
//List returns all the serverURLs of keys in //the OS store as a list of strings
{ "resource": "" }
c29278
train
//PrintVersion outputs the current version.
{ "resource": "" }
c29279
train
// Add adds new credentials to the windows credentials manager.
{ "resource": "" }
c29280
train
// Delete removes credentials from the windows credentials manager.
{ "resource": "" }
c29281
train
// Get retrieves credentials from the windows credentials manager.
{ "resource": "" }
c29282
train
// List returns the stored URLs and corresponding usernames for a given credentials label.
{ "resource": "" }
c29283
train
// listPassDir lists all the contents of a directory in the password store. // Pass uses fancy unicode to emit stuff to stdout, so rather than try // and parse this, let's just look at the directory structure instead.
{ "resource": "" }
c29284
train
// WritePin sets a given pin High or Low // by setting the clear or set registers respectively
{ "resource": "" }
c29285
train
// ReadPin reads the state of a pin
{ "resource": "" }
c29286
train
// Close unmaps GPIO memory
{ "resource": "" }
c29287
train
// SpiReceive receives n bytes from slave. // // Note that n zeroed bytes are send to slave as side effect.
{ "resource": "" }
c29288
train
// readableIndex returns a transaction usable for reading the given // index in a table. If a write transaction is in progress, we may need // to use an existing modified txn.
{ "resource": "" }
c29289
train
// writableIndex returns a transaction usable for modifying the // given index in a table.
{ "resource": "" }
c29290
train
// Abort is used to cancel this transaction. // This is a noop for read transactions.
{ "resource": "" }
c29291
train
// Commit is used to finalize this transaction. // This is a noop for read transactions.
{ "resource": "" }
c29292
train
// Delete is used to delete a single object from the given table // This object must already exist in the table
{ "resource": "" }
c29293
train
// DeletePrefix is used to delete an entire subtree based on a prefix. // The given index must be a prefix index, and will be used to perform a scan and enumerate the set of objects to delete. // These will be removed from all other indexes, and then a special prefix operation will delete the objects from the given ind...
{ "resource": "" }
c29294
train
// DeleteAll is used to delete all the objects in a given table // matching the constraints on the index
{ "resource": "" }
c29295
train
// FirstWatch is used to return the first matching object for // the given constraints on the index along with the watch channel
{ "resource": "" }
c29296
train
// First is used to return the first matching object for // the given constraints on the index
{ "resource": "" }
c29297
train
// getIndexValue is used to get the IndexSchema and the value // used to scan the index given the parameters. This handles prefix based // scans when the index has the "_prefix" suffix. The index must support // prefix iteration.
{ "resource": "" }
c29298
train
// Get is used to construct a ResultIterator over all the // rows that match the given constraints of an index.
{ "resource": "" }
c29299
train
// Defer is used to push a new arbitrary function onto a stack which // gets called when a transaction is committed and finished. Deferred // functions are called in LIFO order, and only invoked at the end of // write transactions.
{ "resource": "" }