_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c26900
train
// the follow functions set the job's unit with seconds,minutes,hours... // Set the unit with second
{ "resource": "" }
c26901
train
// Set the unit with minute, which interval is 1
{ "resource": "" }
c26902
train
//set the unit with hour, which interval is 1
{ "resource": "" }
c26903
train
// Set the job's unit with day, which interval is 1
{ "resource": "" }
c26904
train
// Set the start day with Tuesday
{ "resource": "" }
c26905
train
// Set the start day woth Wednesday
{ "resource": "" }
c26906
train
// Set the start day with thursday
{ "resource": "" }
c26907
train
// Set the start day with friday
{ "resource": "" }
c26908
train
// Set the start day with saturday
{ "resource": "" }
c26909
train
// Set the start day with sunday
{ "resource": "" }
c26910
train
// Get the current runnable jobs, which shouldRun is True
{ "resource": "" }
c26911
train
// Datetime when the next job should run.
{ "resource": "" }
c26912
train
// Schedule a new periodic job
{ "resource": "" }
c26913
train
// Run all the jobs that are scheduled to run.
{ "resource": "" }
c26914
train
// Run all jobs regardless if they are scheduled to run or not
{ "resource": "" }
c26915
train
// Run all jobs with delay seconds
{ "resource": "" }
c26916
train
// Remove specific job j
{ "resource": "" }
c26917
train
// Delete all scheduled jobs
{ "resource": "" }
c26918
train
// Start all the pending jobs // Add seconds ticker
{ "resource": "" }
c26919
train
// Get global permissions from the account at GlobalPermissionsAddress
{ "resource": "" }
c26920
train
// Returns nil if account does not exist with given address.
{ "resource": "" }
c26921
train
// Initialises the validator Ring from the validator storage in forest
{ "resource": "" }
c26922
train
// Reads out the bytes associated with each segment of the key format from key.
{ "resource": "" }
c26923
train
// Like Scan but adds expects a key with the KeyFormat's prefix trimmed
{ "resource": "" }
c26924
train
// Like Key but removes the prefix string
{ "resource": "" }
c26925
train
// Fixes the first args many segments as the prefix of a new KeyFormat by using the args to generate a key that becomes // that prefix. Any remaining unassigned segments become the layout of the new KeyFormat.
{ "resource": "" }
c26926
train
// Returns an iterator over the underlying iterable using this KeyFormat's prefix. This is to support proper iteration over the // prefix in the presence of nil start or end which requests iteration to the inclusive edges of the domain. An optional // argument for reverse can be passed to get reverse iteration.
{ "resource": "" }
c26927
train
// NewServer returns a new HTTP server
{ "resource": "" }
c26928
train
// Run starts the HTTP server
{ "resource": "" }
c26929
train
// ServeHTTP dispatches the HTTP requests using the Server Mux
{ "resource": "" }
c26930
train
// buildEventData builds event data from transactions
{ "resource": "" }
c26931
train
// buildBlkData builds block data from block stream
{ "resource": "" }
c26932
train
// buildTxData builds transaction data from tx stream
{ "resource": "" }
c26933
train
// NewServer returns a new server. See the commentary on the Option functions // for a detailed description of how to configure buffering. If no options are // provided, the resulting server's queue is unbuffered.
{ "resource": "" }
c26934
train
// Subscribe creates a subscription for the given client. It accepts a channel // on which messages matching the given query can be received. An error will be // returned to the caller if the context is canceled or if subscription already // exist for pair clientID and query.
{ "resource": "" }
c26935
train
// Publish publishes the given message. An error will be returned to the caller // if the context is canceled.
{ "resource": "" }
c26936
train
// PublishWithTags publishes the given message with the set of tags. The set is // matched with clients queries. If there is a match, the message is sent to // the client.
{ "resource": "" }
c26937
train
// Provides a logger that sorts key-values with keys in keys before other key-values
{ "resource": "" }
c26938
train
// Returns true if the role is found
{ "resource": "" }
c26939
train
// Returns true if the role is removed, and false if it is not found
{ "resource": "" }
c26940
train
// Clone clones the account permissions
{ "resource": "" }
c26941
train
// Attempts to 'realise' the PublicKey and Address of a Signatory possibly referring to state // in the case where the Signatory contains an Address by no PublicKey. Checks consistency in other // cases, possibly generating the Address from the PublicKey
{ "resource": "" }
c26942
train
// Validate checks the structure of an EventClass
{ "resource": "" }
c26943
train
// Validate checks the structure of an EventFieldMapping
{ "resource": "" }
c26944
train
// Load mutable forest from database, pass overwriting = true if you wish to make writes to version version + 1. // this will
{ "resource": "" }
c26945
train
// Calls to writer should be serialised as should writes to the tree
{ "resource": "" }
c26946
train
// Delete a tree - if the tree exists will return the CommitID of the latest saved version
{ "resource": "" }
c26947
train
// Creates a logger that forks log messages to each of its outputLoggers
{ "resource": "" }
c26948
train
// This is a closer function which is called by most of the tx_run functions
{ "resource": "" }
c26949
train
// displays the question, scans for the response, if the response is an empty // string will return default, otherwise will parseBool and return the result.
{ "resource": "" }
c26950
train
// Syncs the Cache and Resets it to use Writer as the backend Reader
{ "resource": "" }
c26951
train
// DefaultFlags returns a configuration with default values
{ "resource": "" }
c26952
train
// Exporter uses the InfoService to provide pre-aggregated metrics of various types that are then passed to prometheus // as Const metrics rather than being accumulated by individual operations throughout the rest of the Burrow code.
{ "resource": "" }
c26953
train
// Describe - loops through the API metrics and passes them to prometheus.Describe
{ "resource": "" }
c26954
train
// gatherData - Collects the data from the API and stores into struct
{ "resource": "" }
c26955
train
// Get total peers
{ "resource": "" }
c26956
train
// Get transaction buckets
{ "resource": "" }
c26957
train
// Conditions returns a list of conditions.
{ "resource": "" }
c26958
train
// Ensures only one Job payload is set and returns a pointer to that field or an error if none or multiple // job payload fields are set
{ "resource": "" }
c26959
train
// Returns the length in bytes of the public key
{ "resource": "" }
c26960
train
// Produces a binary encoding of the CurveType byte plus // the public key for padded to a fixed width on the right
{ "resource": "" }
c26961
train
// Obtain a nearly unique nonce based on a montonic account sequence number
{ "resource": "" }
c26962
train
// Tendermint and blocks
{ "resource": "" }
c26963
train
// returns the address if valid, nil otherwise
{ "resource": "" }
c26964
train
// Create a PrivValidator with in-memory state that takes an addressable representing the validator identity // and a signer providing private signing for that identity.
{ "resource": "" }
c26965
train
// indentWriter indents all lines written to it with a specified indent string // indented the specified number of indents
{ "resource": "" }
c26966
train
// Provides a sliding window over the last size buckets of validator power changes
{ "resource": "" }
c26967
train
// Implement Reader // Get power at index from the delta bucket then falling through to the cumulative
{ "resource": "" }
c26968
train
// Advance the current head bucket to the next bucket and returns the change in total power between the previous bucket // and the current head, and the total flow which is the sum of absolute values of all changes each validator's power // after rotation the next head is a copy of the current head
{ "resource": "" }
c26969
train
// Returns buckets in order head, previous, ...
{ "resource": "" }
c26970
train
// Concatenate multiple byte slices without unnecessary copying
{ "resource": "" }
c26971
train
// Splice or panic
{ "resource": "" }
c26972
train
// Convert anything byte or byte slice like to a byte slice
{ "resource": "" }
c26973
train
// Prepend elements to slice in the order they appear
{ "resource": "" }
c26974
train
// Concatenate slices into a single slice
{ "resource": "" }
c26975
train
// Deletes n elements starting with the ith from a slice by splicing. // Beware uses append so the underlying backing array will be modified!
{ "resource": "" }
c26976
train
// Recursively flattens a list by splicing any sub-lists into their parent until // depth is reached. If a negative number is passed for depth then it continues // until no elements of the returned list are lists
{ "resource": "" }
c26977
train
// Broadcast a transaction without waiting for confirmation - will attempt to sign server-side and set sequence numbers // if no signatures are provided
{ "resource": "" }
c26978
train
// Consume will add the StreamEvent passed to the block accumulator and if the block complete is complete return the // BlockExecution, otherwise will return nil
{ "resource": "" }
c26979
train
// Consume will add the StreamEvent to the transaction stack and if that completes a single outermost transaction // returns the TxExecution otherwise will return nil
{ "resource": "" }
c26980
train
// Returns the asymmetric difference, diff, between two Sets such that applying diff to before results in after
{ "resource": "" }
c26981
train
// Adds vsOther to vs
{ "resource": "" }
c26982
train
// Subtracts vsOther from vs
{ "resource": "" }
c26983
train
// ReflectTags provides a query.Tagged on a structs exported fields using query.StringFromValue to derive the string // values associated with each field. If passed explicit field names will only only provide those fields as tags, // otherwise all exported fields are provided.
{ "resource": "" }
c26984
train
// Get an in-memory state IterableReader
{ "resource": "" }
c26985
train
// Pull the specified values from a structured log line into a map. // Assumes keys are single-valued. // Returns a map of the key-values from the requested keys and // the unmatched remainder keyvals as context as a slice of key-values.
{ "resource": "" }
c26986
train
// Returns keyvals as a map from keys to vals
{ "resource": "" }
c26987
train
// Drops all key value pairs where dropKeyValPredicate is true
{ "resource": "" }
c26988
train
// 'Vectorises' values associated with repeated string keys member by collapsing many values into a single vector value. // The result is a copy of keyvals where the first occurrence of each matching key and its first value are replaced by // that key and all of its values in a single slice.
{ "resource": "" }
c26989
train
// Return a single value corresponding to key in keyvals
{ "resource": "" }
c26990
train
// Provides a canonical way to stringify keys
{ "resource": "" }
c26991
train
// Tried to interpret the logline as a signal by matching the last key-value pair as a signal, // returns empty string if no match. The idea with signals is that the should be transmitted to a root logger // as a single key-value pair so we avoid the need to do a linear probe over every log line in order to detect a si...
{ "resource": "" }
c26992
train
// Write out TxExecutions parenthetically
{ "resource": "" }
c26993
train
// Writes contents of cache to backend without flushing the cache
{ "resource": "" }
c26994
train
// NewEmitter initializes an emitter struct with a pubsubServer
{ "resource": "" }
c26995
train
// SetLogger attaches a log handler to this emitter
{ "resource": "" }
c26996
train
// Shutdown stops the pubsubServer
{ "resource": "" }
c26997
train
// Publish tells the emitter to publish with the given message and tags
{ "resource": "" }
c26998
train
// Subscribe tells the emitter to listen for messages on the given query
{ "resource": "" }
c26999
train
// Unsubscribe tells the emitter to stop listening for said messages
{ "resource": "" }