_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c24700
train
// QueryEventParser's Parse processes a raw query event into a QueryEvent.
{ "resource": "" }
c24701
train
// RotateEventParser's Parse processes a raw rotate event into a RotateEvent.
{ "resource": "" }
c24702
train
// FixedLengthDataSizeForType returns the size of fixed length data for each // event type.
{ "resource": "" }
c24703
train
// FormatDecriptionEventParser's Parse processes a raw FDE event into a // FormatDescriptionEvent.
{ "resource": "" }
c24704
train
// New creates a new LockStore given the options
{ "resource": "" }
c24705
train
// This creates a new ShardedClient.
{ "resource": "" }
c24706
train
// A helper used to specify a SetMulti mutation operation on a shard client.
{ "resource": "" }
c24707
train
// A helper used to specify a CasMulti mutation operation on a shard client.
{ "resource": "" }
c24708
train
// A helper used to specify a AddMulti mutation operation on a shard client.
{ "resource": "" }
c24709
train
// A helper used to specify a DeleteMulti mutation operation on a shard client.
{ "resource": "" }
c24710
train
// NewV4EventParserMap returns an initialize V4EventParserMap with all handled // event types' parsers registered.
{ "resource": "" }
c24711
train
// This returns the error string without stack trace information.
{ "resource": "" }
c24712
train
// Same as New, but with fmt.Printf-style parameters.
{ "resource": "" }
c24713
train
// Same as Wrap, but with fmt.Printf-style parameters.
{ "resource": "" }
c24714
train
// Internal helper function to create new baseError objects, // note that if there is more than one level of redirection to call this function, // stack frame information will include that level too.
{ "resource": "" }
c24715
train
// Constructs full error message for a given DropboxError by traversing // all of its inner errors. If includeStack is True it will also include // stack trace from deepest DropboxError in the chain.
{ "resource": "" }
c24716
train
// Return a wrapped error or nil if there is none.
{ "resource": "" }
c24717
train
// Keep peeling away layers or context until a primitive error is revealed.
{ "resource": "" }
c24718
train
// Perform a deep check, unwrapping errors as much as possilbe and // comparing the string version of the error.
{ "resource": "" }
c24719
train
// RowsQueryEventParser's Parse processes a raw query event into a // RowsQueryEvent.
{ "resource": "" }
c24720
train
// This returns a SimpleResourcePool, where all handles are associated to a // single resource location.
{ "resource": "" }
c24721
train
// This returns an idle resource, if there is one.
{ "resource": "" }
c24722
train
// This adds an idle resource to the pool.
{ "resource": "" }
c24723
train
// Closes resources, at this point it is assumed that this resources // are no longer referenced from the main idleHandles slice.
{ "resource": "" }
c24724
train
// Defines a physical table in the database that is both readable and writable. // This function will panic if name is not valid
{ "resource": "" }
c24725
train
// Returns the specified column, or errors if it doesn't exist in the table
{ "resource": "" }
c24726
train
// Returns a pseudo column representation of the column name. Error checking // is deferred to SerializeSql.
{ "resource": "" }
c24727
train
// Returns all columns for a table as a slice of projections
{ "resource": "" }
c24728
train
// Returns a copy of this table, but with the specified index forced.
{ "resource": "" }
c24729
train
// Creates a inner join table expression using onCondition.
{ "resource": "" }
c24730
train
// Creates a left join table expression using onCondition.
{ "resource": "" }
c24731
train
// Creates a right join table expression using onCondition.
{ "resource": "" }
c24732
train
// PreviousGtidLogEventParser's Parse processes a raw gtid log event into a PreviousGtidLogEvent.
{ "resource": "" }
c24733
train
// This hex encodes the binary data and writes the encoded data to the writer.
{ "resource": "" }
c24734
train
// This returns a RoundRobinResourcePool.
{ "resource": "" }
c24735
train
// EventType returns the event's type.
{ "resource": "" }
c24736
train
// VariableLengthData returns the variable length data associated to the event. // By default, the variable length data also include the extra headers, the // fixed length data and the optional checksum footer.
{ "resource": "" }
c24737
train
// Set the extra headers' size.
{ "resource": "" }
c24738
train
// This returns a CacheOnStorage, which adds a cache layer on top of the // storage.
{ "resource": "" }
c24739
train
// this reads socketRead to fill up the given buffer unless an error is encountered or // workSize zeros in a row are discovered, aligned with WorkSize, causing a flush
{ "resource": "" }
c24740
train
// this reads in a loop from socketRead putting batchSize bytes of work to copyTo until // the socketRead is empty. // Batches may be shorter than batchSize if a whole workSize element is all zeros // If workSize of zero is passed in, then the entire batchSize will be filled up regardless, // unless socketRead returns ...
{ "resource": "" }
c24741
train
// Advances the mock clock by the specified duration.
{ "resource": "" }
c24742
train
// Advance to a specific time.
{ "resource": "" }
c24743
train
// Returns the fake current time.
{ "resource": "" }
c24744
train
// Performs the HTTP request using our HTTP client
{ "resource": "" }
c24745
train
// Set a local timeout the actually cancels the request if we've given up.
{ "resource": "" }
c24746
train
// SimplePool doesn't care about the key
{ "resource": "" }
c24747
train
// For the round robin strategy, sets the number of servers to round-robin // between. The default is 6.
{ "resource": "" }
c24748
train
// // Pool interface methods //
{ "resource": "" }
c24749
train
// Issues an HTTP request, distributing more load to relatively unloaded instances.
{ "resource": "" }
c24750
train
// Returns instance that isn't marked down, if all instances are // marked as down it will just choose a next one.
{ "resource": "" }
c24751
train
// Returns a Pool for an instance selected based on load balancing strategy.
{ "resource": "" }
c24752
train
// Marks instance down till downUntil epoch in seconds.
{ "resource": "" }
c24753
train
// Marks instance as ready to be used.
{ "resource": "" }
c24754
train
// NewLockingMap returns a new instance of LockingMap
{ "resource": "" }
c24755
train
// Get returns the value, ok for a given key from within the map. If a ValueCheckFunc // was defined for the map, the value is only returned if that function returns true.
{ "resource": "" }
c24756
train
// Delete removes a key from the map if it exists. Returns nothing.
{ "resource": "" }
c24757
train
// This creates a managed connection wrapper.
{ "resource": "" }
c24758
train
// See ManagedConn for documentation.
{ "resource": "" }
c24759
train
// Returns the port information.
{ "resource": "" }
c24760
train
// This returns a thread-safe random source.
{ "resource": "" }
c24761
train
// Generates a seed based on the current time and the process ID.
{ "resource": "" }
c24762
train
// Dur returns a pseudo-random Duration in [0, max)
{ "resource": "" }
c24763
train
// Samples 'k' unique ints from the range [0, n)
{ "resource": "" }
c24764
train
// Samples 'k' elements from the given slice
{ "resource": "" }
c24765
train
// Same as 'Sample' except it returns both the 'picked' sample set and the // 'remaining' elements.
{ "resource": "" }
c24766
train
// Randomly shuffles the collection in place.
{ "resource": "" }
c24767
train
// TryAcquire returns true if it acquires a resource slot within the // timeout, false otherwise.
{ "resource": "" }
c24768
train
// Returns an escaped literal string
{ "resource": "" }
c24769
train
// Returns a representation of "a=b"
{ "resource": "" }
c24770
train
// Returns a representation of "a<b"
{ "resource": "" }
c24771
train
// This creates a new memcache RawAsciiClient.
{ "resource": "" }
c24772
train
// Create a new BoundedRWLock with the given capacity. // // RLocks or WLocks beyond this capacity will fail fast with an error.
{ "resource": "" }
c24773
train
// Wait for a read lock for up to 'timeout'. // // Error will be non-nil on timeout or when the wait list is at capacity.
{ "resource": "" }
c24774
train
// Lock for writing, waiting up to 'timeout' for successful exclusive // acquisition of the lock.
{ "resource": "" }
c24775
train
// Wait for a signal on the waiter, with the guarantee that both goroutines // will agree on whether or not the signal was delivered. // // Returns true if the wake occurred, false on timeout.
{ "resource": "" }
c24776
train
// Signal the wait to wake. // // Returns true of the waiter got the signal, false if the waiter timed out // before we could deliver the signal.
{ "resource": "" }
c24777
train
// XidEventParser's Parse processes a raw xid event into a XidEvent.
{ "resource": "" }
c24778
train
// This retrieves a single entry from memcache.
{ "resource": "" }
c24779
train
// Batch version of the Get method.
{ "resource": "" }
c24780
train
// This deletes a single entry from memcache.
{ "resource": "" }
c24781
train
// This appends the value bytes to the end of an existing entry. Note that // this does not allow you to extend past the item limit.
{ "resource": "" }
c24782
train
// This invalidates all existing cache items after expiration number of // seconds.
{ "resource": "" }
c24783
train
// This requests the server statistics. When the key is an empty string, // the server will respond with a "default" set of statistics information.
{ "resource": "" }
c24784
train
// Like os.Hostname but caches first successful result, making it cheap to call it // over and over. // It will also crash whole process if fetching Hostname fails!
{ "resource": "" }
c24785
train
// This returns true if the error returned by the event parser is retryable.
{ "resource": "" }
c24786
train
// Return the properly escaped SQL statement, against the specified database
{ "resource": "" }
c24787
train
// AddReadLock takes read lock on the table.
{ "resource": "" }
c24788
train
// AddWriteLock takes write lock on the table.
{ "resource": "" }
c24789
train
// Set GTID_NEXT statement returns a SQL statement that can be used to explicitly set the next GTID.
{ "resource": "" }
c24790
train
// GtidLogEventParser's Parse processes a raw gtid log event into a GtidLogEvent.
{ "resource": "" }
c24791
train
// This returns a MultiResourcePool, which manages multiple // resource location entries. The handles to each resource location // entry acts independently. // // When createPool is nil, NewSimpleResourcePool is used as default.
{ "resource": "" }
c24792
train
// String returns the raw value as a string
{ "resource": "" }
c24793
train
// EncodeSql encodes the value into an SQL statement. Can be binary.
{ "resource": "" }
c24794
train
// EncodeAscii encodes the value using 7-bit clean ascii bytes.
{ "resource": "" }
c24795
train
// MarshalBinary helps implement BinaryMarshaler interface for Value.
{ "resource": "" }
c24796
train
// UnmarshalBinary helps implement BinaryUnmarshaler interface for Value.
{ "resource": "" }
c24797
train
// ConverAssignRowNullable is the same as ConvertAssignRow except that it allows // nil as a value for the row or any of the row values. In thoses cases, the // corresponding values are ignored.
{ "resource": "" }
c24798
train
// ConvertAssign, but with support for default values
{ "resource": "" }
c24799
train
// Helper function for converting a uint64 to a string suitable for SQL.
{ "resource": "" }