_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c5800
train
// IDs returns the ID's of all elements.
{ "resource": "" }
c5801
train
// Version returns version information from the connected database server.
{ "resource": "" }
c5802
train
// asServerRole converts the response into a ServerRole
{ "resource": "" }
c5803
train
// ServerRole returns the role of the server that answers the request.
{ "resource": "" }
c5804
train
// Gets the ID of this server in the cluster. // An error is returned when calling this to a server that is not part of a cluster.
{ "resource": "" }
c5805
train
// Validate validates the given id.
{ "resource": "" }
c5806
train
// ValidateOrEmpty validates the given id unless it is empty. // In case of empty, nil is returned.
{ "resource": "" }
c5807
train
// Collection returns the collection part of the ID.
{ "resource": "" }
c5808
train
// Key returns the key part of the ID.
{ "resource": "" }
c5809
train
// NewDocumentID creates a new document ID from the given collection, key pair.
{ "resource": "" }
c5810
train
// WithRevision is used to configure a context to make document // functions specify an explicit revision of the document using an `If-Match` condition.
{ "resource": "" }
c5811
train
// WithRevisions is used to configure a context to make multi-document // functions specify explicit revisions of the documents.
{ "resource": "" }
c5812
train
// WithReturnNew is used to configure a context to make create, update & replace document // functions return the new document into the given result.
{ "resource": "" }
c5813
train
// WithReturnOld is used to configure a context to make update & replace document // functions return the old document into the given result.
{ "resource": "" }
c5814
train
// WithEndpoint is used to configure a context that forces a request to be executed on a specific endpoint. // If you specify an endpoint like this, failover is disabled. // If you specify an unknown endpoint, an InvalidArgumentError is returned from requests.
{ "resource": "" }
c5815
train
// WithAllowDirtyReads is used in an active failover deployment to allow reads from the follower. // You can pass a reference to a boolean that will set according to wether a potentially dirty read // happened or not. nil is allowed. // This is valid for document reads, aql queries, gharial vertex and edge reads.
{ "resource": "" }
c5816
train
// WithRawResponse is used to configure a context that will make all functions store the raw response into a // buffer.
{ "resource": "" }
c5817
train
// WithResponse is used to configure a context that will make all functions store the response into the given value.
{ "resource": "" }
c5818
train
// WithImportDetails is used to configure a context that will make import document requests return // details about documents that could not be imported.
{ "resource": "" }
c5819
train
// WithIgnoreRevisions is used to configure a context to make modification // functions ignore revisions in the update. // Do not use in combination with WithRevision or WithRevisions.
{ "resource": "" }
c5820
train
// WithConfigured is used to configure a context to return the configured value of // a user grant instead of the effective grant.
{ "resource": "" }
c5821
train
// WithDBServerID is used to configure a context that includes an ID of a specific DBServer.
{ "resource": "" }
c5822
train
// WithBatchID is used to configure a context that includes an ID of a Batch. // This is used in replication functions.
{ "resource": "" }
c5823
train
// WithJobIDResponse is used to configure a context that includes a reference to a JobID // that is filled on a error-free response. // This is used in cluster functions.
{ "resource": "" }
c5824
train
// loadContextResponseValue loads generic values from the response and puts it into variables specified // via context values.
{ "resource": "" }
c5825
train
// setDirtyReadFlagIfRequired is a helper function that sets the bool reference for allowDirtyReads to the // specified value, if required and reference is not nil.
{ "resource": "" }
c5826
train
// Error returns a human readable error string
{ "resource": "" }
c5827
train
// Will make pool of gorouting workers. // numWorkers - how many workers will be created for this pool // queueLen - how many jobs can we accept until we block // // Returned object contains JobQueue reference, which you can use to send job to pool.
{ "resource": "" }
c5828
train
// OpenQueue opens a queue if one exists at the given directory. If one // does not already exist, a new queue is created.
{ "resource": "" }
c5829
train
// Dequeue removes the next item in the queue and returns it.
{ "resource": "" }
c5830
train
// Peek returns the next item in the queue without removing it.
{ "resource": "" }
c5831
train
// Close closes the LevelDB database of the queue.
{ "resource": "" }
c5832
train
// Drop closes and deletes the LevelDB database of the queue.
{ "resource": "" }
c5833
train
// init initializes the queue data.
{ "resource": "" }
c5834
train
// checkGoqueType checks if the type of Goque data structure // trying to be opened is compatible with the opener type. // // A file named 'GOQUE' within the data directory used by // the structure stores the structure type, using the constants // declared above. // // Stacks and Queues are 100% compatible with each ot...
{ "resource": "" }
c5835
train
// OpenPrefixQueue opens a prefix queue if one exists at the given directory. // If one does not already exist, a new prefix queue is created.
{ "resource": "" }
c5836
train
// EnqueueString is a helper function for Enqueue that accepts the prefix and // value as a string rather than a byte slice.
{ "resource": "" }
c5837
train
// Dequeue removes the next item in the prefix queue and returns it.
{ "resource": "" }
c5838
train
// DequeueString is a helper function for Dequeue that accepts the prefix as a // string rather than a byte slice.
{ "resource": "" }
c5839
train
// Peek returns the next item in the given queue without removing it.
{ "resource": "" }
c5840
train
// PeekString is a helper function for Peek that accepts the prefix as a // string rather than a byte slice.
{ "resource": "" }
c5841
train
// PeekByIDString is a helper function for Peek that accepts the prefix as a // string rather than a byte slice.
{ "resource": "" }
c5842
train
// Update updates an item in the given queue without changing its position.
{ "resource": "" }
c5843
train
// UpdateString is a helper function for Update that accepts the prefix and // value as a string rather than a byte slice.
{ "resource": "" }
c5844
train
// Close closes the LevelDB database of the prefix queue.
{ "resource": "" }
c5845
train
// Drop closes and deletes the LevelDB database of the prefix queue.
{ "resource": "" }
c5846
train
// getQueue gets the unique queue for the given prefix.
{ "resource": "" }
c5847
train
// savePrefixQueue saves the given queue for the given prefix.
{ "resource": "" }
c5848
train
// save saves the main prefix queue data.
{ "resource": "" }
c5849
train
// getDataKey generates the main prefix queue data key.
{ "resource": "" }
c5850
train
// getItemByPrefixID returns an item, if found, for the given prefix and ID.
{ "resource": "" }
c5851
train
// init initializes the prefix queue data.
{ "resource": "" }
c5852
train
// generateKeyPrefixID generates a key using the given prefix and ID.
{ "resource": "" }
c5853
train
// OpenPriorityQueue opens a priority queue if one exists at the given // directory. If one does not already exist, a new priority queue is // created.
{ "resource": "" }
c5854
train
// Enqueue adds an item to the priority queue.
{ "resource": "" }
c5855
train
// Dequeue removes the next item in the priority queue and returns it.
{ "resource": "" }
c5856
train
// DequeueByPriority removes the next item in the given priority level // and returns it.
{ "resource": "" }
c5857
train
// Peek returns the next item in the priority queue without removing it.
{ "resource": "" }
c5858
train
// PeekByPriorityID returns the item with the given ID and priority without // removing it.
{ "resource": "" }
c5859
train
// Update updates an item in the priority queue without changing its // position.
{ "resource": "" }
c5860
train
// Length returns the total number of items in the priority queue.
{ "resource": "" }
c5861
train
// Close closes the LevelDB database of the priority queue.
{ "resource": "" }
c5862
train
// cmpAsc returns wehther the given priority level is higher than the // current priority level based on ascending order.
{ "resource": "" }
c5863
train
// cmpAsc returns wehther the given priority level is higher than the // current priority level based on descending order.
{ "resource": "" }
c5864
train
// resetCurrentLevel resets the current priority level of the queue // so the highest level can be found.
{ "resource": "" }
c5865
train
// findOffset finds the given offset from the current queue position // based on priority order.
{ "resource": "" }
c5866
train
// getNextItem returns the next item in the priority queue, updating // the current priority level of the queue if necessary.
{ "resource": "" }
c5867
train
// generatePrefix creates the key prefix for the given priority level.
{ "resource": "" }
c5868
train
// generateKey create a key to be used with LevelDB.
{ "resource": "" }
c5869
train
// init initializes the priority queue data.
{ "resource": "" }
c5870
train
// idToKey converts and returns the given ID to a key.
{ "resource": "" }
c5871
train
// OpenStack opens a stack if one exists at the given directory. If one // does not already exist, a new stack is created.
{ "resource": "" }
c5872
train
// Push adds an item to the stack.
{ "resource": "" }
c5873
train
// PushString is a helper function for Push that accepts a // value as a string rather than a byte slice.
{ "resource": "" }
c5874
train
// Pop removes the next item in the stack and returns it.
{ "resource": "" }
c5875
train
// Peek returns the next item in the stack without removing it.
{ "resource": "" }
c5876
train
// PeekByOffset returns the item located at the given offset, // starting from the head of the stack, without removing it.
{ "resource": "" }
c5877
train
// Update updates an item in the stack without changing its position.
{ "resource": "" }
c5878
train
// Close closes the LevelDB database of the stack.
{ "resource": "" }
c5879
train
// Drop closes and deletes the LevelDB database of the stack.
{ "resource": "" }
c5880
train
// init initializes the stack data.
{ "resource": "" }
c5881
train
//RetrieveAssertionInfo takes an encoded response and returns the AssertionInfo //contained, or an error message if an error has been encountered.
{ "resource": "" }
c5882
train
// BuildAuthURL builds redirect URL to be sent to principal
{ "resource": "" }
c5883
train
// AuthRedirect takes a ResponseWriter and Request from an http interaction and // redirects to the SAMLServiceProvider's configured IdP, including the // relayState provided, if any.
{ "resource": "" }
c5884
train
// validateResponseAttributes validates a SAML Response's tag and attributes. It does // not inspect child elements of the Response at all.
{ "resource": "" }
c5885
train
//ValidateEncodedResponse both decodes and validates, based on SP //configuration, an encoded, signed response. It will also appropriately //decrypt a response if the assertion was encrypted
{ "resource": "" }
c5886
train
// DecodeUnverifiedBaseResponse decodes several attributes from a SAML response for the purpose // of determining how to validate the response. This is useful for Service Providers which // expose a single Assertion Consumer Service URL but consume Responses from many IdPs.
{ "resource": "" }
c5887
train
// maybeDeflate invokes the passed decoder over the passed data. If an error is // returned, it then attempts to deflate the passed data before re-invoking // the decoder over the deflated data.
{ "resource": "" }
c5888
train
// parseResponse is a helper function that was refactored out so that the XML parsing behavior can be isolated and unit tested
{ "resource": "" }
c5889
train
// Decrypt decrypts and unmarshals the EncryptedAssertion.
{ "resource": "" }
c5890
train
//DecryptSymmetricKey returns the private key contained in the EncryptedKey document
{ "resource": "" }
c5891
train
//VerifyAssertionConditions inspects an assertion element and makes sure that //all SAML2 contracts are upheld.
{ "resource": "" }
c5892
train
//Validate ensures that the assertion passed is valid for the current Service //Provider.
{ "resource": "" }
c5893
train
// // Returns a pointer to an instantiates termios2 struct, based on the given // OpenOptions. Termios2 is a Linux extension which allows arbitrary baud rates // to be specified. //
{ "resource": "" }
c5894
train
// setTermios updates the termios struct associated with a serial port file // descriptor. This sets appropriate options for how the OS interacts with the // port.
{ "resource": "" }
c5895
train
// Execute is invoked by Windows
{ "resource": "" }
c5896
train
// Run runs your Service. // // Run will block until one of the signals specified in sig is received. // If sig is empty syscall.SIGINT and syscall.SIGTERM are used by default.
{ "resource": "" }
c5897
train
// NewSwitch node constructor
{ "resource": "" }
c5898
train
// NewConstant node constructor
{ "resource": "" }
c5899
train
// NewIdentical node constructor
{ "resource": "" }