_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c173900
validation
// We only fill in the first 20 bytes with ripemd160
{ "resource": "" }
c173901
validation
// increment nonce big-endian by 1 with wraparound.
{ "resource": "" }
c173902
validation
// threadsafe list of peers.
{ "resource": "" }
c173903
validation
// Accept connections and pass on the channel
{ "resource": "" }
c173904
validation
// RemoveAddress removes the address from the book.
{ "resource": "" }
c173905
validation
// Returns false if file does not exist. // Panics if file is corrupt.
{ "resource": "" }
c173906
validation
// Save saves the book.
{ "resource": "" }
c173907
validation
// Dial a list of seeds asynchronously in random order
{ "resource": "" }
c173908
validation
// Equals reports whether na and other are the same addresses.
{ "resource": "" }
c173909
validation
// Dial calls net.Dial on the address.
{ "resource": "" }
c173910
validation
// ReachabilityTo checks whenever o can be reached from na.
{ "resource": "" }
c173911
validation
// OnStart implements BaseService
{ "resource": "" }
c173912
validation
// RequestPEX asks peer for more addresses.
{ "resource": "" }
c173913
validation
// Increment or initialize the msg count for the peer in the CMap
{ "resource": "" }
c173914
validation
// DecodeMessage implements interface registered above.
{ "resource": "" }
c173915
validation
// NewReader returns a new Reader that reads from r.
{ "resource": "" }
c173916
validation
// LogOnPanic logs the given panic and its stacktrace, prefixing each line with // the panic ID.
{ "resource": "" }
c173917
validation
// Wrap returns an handler which proxies requests to the given handler, but // handles panics by logging the stack trace and returning a 500 Internal Server // Error to the client, if possible.
{ "resource": "" }
c173918
validation
// Start creates a goroutine to handle the logging IO.
{ "resource": "" }
c173919
validation
// New returns a new service-ready handler given an application handler. // // This stack application-level metrics, debug endpoints, panic recovery, and // request logging, in that order.
{ "resource": "" }
c173920
validation
// Wrap wraps an HTTP handler to check the contents of client certificates. // If CheckCertificate returns true, the request will be passed to the wrapped // handler. If CheckCertificate returns false, it will be passed to the // InvalidHandler or, if no InvalidHandler is specified, will return an // empty 403 response...
{ "resource": "" }
c173921
validation
// GetString property.
{ "resource": "" }
c173922
validation
// GetInt property.
{ "resource": "" }
c173923
validation
// RegisterDriver registers driver with given names.
{ "resource": "" }
c173924
validation
// Open creates pubsub hub connected to redis server.
{ "resource": "" }
c173925
validation
// SendEvents streams events from specified channels as Server Sent Events packets
{ "resource": "" }
c173926
validation
// Unmarshal message from byte array.
{ "resource": "" }
c173927
validation
// Publish data to given channel.
{ "resource": "" }
c173928
validation
// Subscribe adds new receiver of events for given channel.
{ "resource": "" }
c173929
validation
// GetChannel gets or creates new pubsub channel.
{ "resource": "" }
c173930
validation
// Removes given channel, called by Channel.Close.
{ "resource": "" }
c173931
validation
// Open creates pubsub hub connected to nats server.
{ "resource": "" }
c173932
validation
// Publish message to given channels.
{ "resource": "" }
c173933
validation
// Subscribe on given channels.
{ "resource": "" }
c173934
validation
// IMPLEMENTATION // MakeHub returns new instance of the pubsub hub.
{ "resource": "" }
c173935
validation
// successive Fibonacci numbers.
{ "resource": "" }
c173936
validation
// generates round robin indexes for a slice of length max // starting from index start
{ "resource": "" }
c173937
validation
// Dir returns the home directory for the executing user. // An error is returned if a home directory cannot be detected.
{ "resource": "" }
c173938
validation
// Ask asks cleverbot a question.
{ "resource": "" }
c173939
validation
// InteractionCount gets the count of interactions that have happened between the bot and user. // Returns -1 if interactions_count is missing or parsing failed.
{ "resource": "" }
c173940
validation
// TimeElapsed returns approximate duration since conversation started. // Returns -1 seconds if time_elapsed is not found or parsing failed.
{ "resource": "" }
c173941
validation
// History returns an array of QApair of upto 100 interactions that have happened in Session.
{ "resource": "" }
c173942
validation
// Bool looks up the value of a bool flag, returns false if no bool flag exists
{ "resource": "" }
c173943
validation
// String looks up the value of a string flag, returns "" if no string flag exists
{ "resource": "" }
c173944
validation
// Fail marks the task as having failed but continues execution.
{ "resource": "" }
c173945
validation
// Failed checks if the task has failed
{ "resource": "" }
c173946
validation
// Logf formats its arguments according to the format, analogous to Printf.
{ "resource": "" }
c173947
validation
// Error is equivalent to Log followed by Fail.
{ "resource": "" }
c173948
validation
// Errorf is equivalent to Logf followed by Fail.
{ "resource": "" }
c173949
validation
// Init initializes the Firebase client with a given root url and optional auth token. // The initialization can also pass a mock api for testing purposes.
{ "resource": "" }
c173950
validation
// Value returns the value of of the current Url.
{ "resource": "" }
c173951
validation
// Child returns a populated pointer for a given path. // If the path cannot be found, a null pointer is returned.
{ "resource": "" }
c173952
validation
// Push creates a new value under the current root url. // A populated pointer with that value is also returned.
{ "resource": "" }
c173953
validation
// Update performs a partial update with the given value at the specified path.
{ "resource": "" }
c173954
validation
// Remove deletes the data at the given path.
{ "resource": "" }
c173955
validation
// Rules returns the security rules for the database.
{ "resource": "" }
c173956
validation
// SetRules overwrites the existing security rules with the new rules given.
{ "resource": "" }
c173957
validation
// SetTraceInfo sets the trace info for the trace. // This is currently unused.
{ "resource": "" }
c173958
validation
// Finish declares that this trace is complete. // The trace should not be used after calling this method.
{ "resource": "" }
c173959
validation
// ServeMetrics serves Prometheus metrics endpoint on the // provided net.Listener // Use for long-running services. For cli tools, use PushMetrics instead.
{ "resource": "" }
c173960
validation
// DumpMetrics returns the metrics prometheus would return when collected // as a string, for fun and testing
{ "resource": "" }
c173961
validation
// NewEventLog returns an initialized EventLog with the given family and title.
{ "resource": "" }
c173962
validation
// Printf formats its arguments with fmt.Sprintf and adds the // result to the event log.
{ "resource": "" }
c173963
validation
// Errorf is like Printf, but it marks this event as an error.
{ "resource": "" }
c173964
validation
// SetLogger replaces the default logger with a new // one that writes to 'out', has 'prefix', and flags 'flag'
{ "resource": "" }
c173965
validation
// Inside the handler, use traces to capture request specific events and timings // and the el member to log service specific events - like failures
{ "resource": "" }
c173966
validation
// TitleFromContext is a convenience function that returns the Trace's title from a context // or an empty string if none exists
{ "resource": "" }
c173967
validation
// NewContext returns a new context.Context and Trace with the given family and title. The trace will // be stored in the context.
{ "resource": "" }
c173968
validation
// New creates a new client with your personal API key.
{ "resource": "" }
c173969
validation
// NewWithClient creates a new client with your personal API key and the given http Client
{ "resource": "" }
c173970
validation
// Devices fetches a list of devices from PushBullet.
{ "resource": "" }
c173971
validation
// Device fetches an device with a given nickname from PushBullet.
{ "resource": "" }
c173972
validation
// PushNote sends a note to the specific device with the given title and body
{ "resource": "" }
c173973
validation
// PushLink sends a link to the specific device with the given title and url
{ "resource": "" }
c173974
validation
// PushSMS sends an SMS to the specific user from the device with the given title and url
{ "resource": "" }
c173975
validation
// Me returns the user object for the pushbullet user
{ "resource": "" }
c173976
validation
// Push pushes the data to a specific device registered with PushBullet. The // 'data' parameter is marshaled to JSON and sent as the request body. Most // users should call one of PusNote, PushLink, PushAddress, or PushList.
{ "resource": "" }
c173977
validation
// PushNote pushes a note with title and body to a specific PushBullet device.
{ "resource": "" }
c173978
validation
// PushNoteToChannel pushes a note with title and body to a specific PushBullet channel.
{ "resource": "" }
c173979
validation
// PushLink pushes a link with a title and url to a specific PushBullet device.
{ "resource": "" }
c173980
validation
// PushLinkToChannel pushes a link with a title and url to a specific PushBullet device.
{ "resource": "" }
c173981
validation
// PushSMS sends an SMS message with pushbullet
{ "resource": "" }
c173982
validation
// Subscription fetches an subscription with a given channel tag from PushBullet.
{ "resource": "" }
c173983
validation
// PushNote sends a note to the specific Channel with the given title and body
{ "resource": "" }
c173984
validation
// PushNote sends a link to the specific Channel with the given title, url and body
{ "resource": "" }
c173985
validation
// NewCachedLoader creates a Loader that will cache the provided namespace on initialization // and return data from that cache on Get
{ "resource": "" }
c173986
validation
// Import takes a json byte array and inserts the key value pairs into consul prefixed by the namespace
{ "resource": "" }
c173987
validation
// Initialize loads the consul KV's from the namespace into cache for later retrieval
{ "resource": "" }
c173988
validation
// Get fetches the raw config from cache
{ "resource": "" }
c173989
validation
// MustGetString fetches the config and parses it into a string. Panics on failure.
{ "resource": "" }
c173990
validation
// MustGetBool fetches the config and parses it into a bool. Panics on failure.
{ "resource": "" }
c173991
validation
// MustGetInt fetches the config and parses it into an int. Panics on failure.
{ "resource": "" }
c173992
validation
// MustGetDuration fetches the config and parses it into a duration. Panics on failure.
{ "resource": "" }
c173993
validation
// NewRandomDNSBalancer will return a random balancer.DNS that looks up dns in consul.
{ "resource": "" }
c173994
validation
// writeServiceToCache locks specifically to alleviate load on consul some additional lock time // is preferable to extra consul calls
{ "resource": "" }
c173995
validation
// Convert param string like "param1=value1;param2=value2" to mesos.Labels
{ "resource": "" }
c173996
validation
// SetClockSeq sets the clock sequence to the lower 14 bits of seq. Setting to // -1 causes a new sequence to be generated.
{ "resource": "" }
c173997
validation
//Returns paste link string and nil if everything is ok
{ "resource": "" }
c173998
validation
//Returns raw paste text
{ "resource": "" }
c173999
validation
//ExecAndWait will execute the command using the given executor and wait until completion
{ "resource": "" }