_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c181000 | test | // Parse parses the environment flags from os.Environ. Must be called
// after all flags are defined and before flags are accessed by the
// program. | {
"resource": ""
} | ||
c181001 | test | // WriteStringToFile writes the string to the file at the provided path. | {
"resource": ""
} | ||
c181002 | test | // ReadFileToString reads the file at the provided path to a string. | {
"resource": ""
} | ||
c181003 | test | // LineReader returns a channel that reads the contents of a reader
// line-by-line. | {
"resource": ""
} | ||
c181004 | test | // LineReaderFrom returns a channel that reads the contents of a file
// line-by-line. | {
"resource": ""
} | ||
c181005 | test | // FileExists returns a flag indicating whether a provided file path exists. | {
"resource": ""
} | ||
c181006 | test | // FileExistsInPath returns a flag indicating whether the provided file exists
// in the current path. | {
"resource": ""
} | ||
c181007 | test | // GetPathParts returns the absolute directory path, the file name, and the
// absolute path of the provided path string. | {
"resource": ""
} | ||
c181008 | test | // GetThisPathParts returns the same information as GetPathParts for the
// current executable. | {
"resource": ""
} | ||
c181009 | test | // RandomString generates a random set of characters with the given lenght. | {
"resource": ""
} | ||
c181010 | test | // ParseAddress parses a standard golang network address and returns the
// protocol and path. | {
"resource": ""
} | ||
c181011 | test | // HomeDir returns the home directory of the user that owns the current process. | {
"resource": ""
} | ||
c181012 | test | // IsTCPPortAvailable returns a flag indicating whether or not a TCP port is
// available. | {
"resource": ""
} | ||
c181013 | test | // RandomTCPPort gets a free, random TCP port between 1025-65535. If no free
// ports are available -1 is returned. | {
"resource": ""
} | ||
c181014 | test | // HashString works like hash but accept string as an input. | {
"resource": ""
} | ||
c181015 | test | // Context gets implements RPCServer interface. | {
"resource": ""
} | ||
c181016 | test | // NewDaemon allocates new daemon instance using given options. | {
"resource": ""
} | ||
c181017 | test | // Close implements io.Closer interface. | {
"resource": ""
} | ||
c181018 | test | // NewAccessTokenContext returns a new Context that carries token value. | {
"resource": ""
} | ||
c181019 | test | // AccessTokenFromContext returns the token value stored in context, if any. | {
"resource": ""
} | ||
c181020 | test | // RandomAccessToken generate Access Token with given key and generated hash of length 64. | {
"resource": ""
} | ||
c181021 | test | // Init allocates new logger based on given options. | {
"resource": ""
} | ||
c181022 | test | // Start implements storage interface. | {
"resource": ""
} | ||
c181023 | test | // Get implements storage interface. | {
"resource": ""
} | ||
c181024 | test | // List implements storage interface. | {
"resource": ""
} | ||
c181025 | test | // Exists implements storage interface. | {
"resource": ""
} | ||
c181026 | test | // Abandon implements storage interface. | {
"resource": ""
} | ||
c181027 | test | // SetValue implements storage interface. | {
"resource": ""
} | ||
c181028 | test | // Delete implements storage interface. | {
"resource": ""
} | ||
c181029 | test | // Setup implements storage interface. | {
"resource": ""
} | ||
c181030 | test | // TearDown implements storage interface. | {
"resource": ""
} | ||
c181031 | test | // initJaeger returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout. | {
"resource": ""
} | ||
c181032 | test | // Build constructs a double array from given keywords. | {
"resource": ""
} | ||
c181033 | test | // Read loads a double array. | {
"resource": ""
} | ||
c181034 | test | // Get if possible returns node for a given bucket id. | {
"resource": ""
} | ||
c181035 | test | // ExternalNodes returns all available nodes except host. | {
"resource": ""
} | ||
c181036 | test | // GetOther returns node for given access token.
// Returns false if cluster is nil, has only one element or if node that was found has same listen address as current one. | {
"resource": ""
} | ||
c181037 | test | // GoString implements fmt GoStringer interface. | {
"resource": ""
} | ||
c181038 | test | // Scan satisfy sql.Scanner interface. | {
"resource": ""
} | ||
c181039 | test | // Value satisfy driver.Valuer interface. | {
"resource": ""
} | ||
c181040 | test | // Has checks if the given key is set. | {
"resource": ""
} | ||
c181041 | test | // New will create an ActionBar object | {
"resource": ""
} | ||
c181042 | test | // RegisterAction register global action | {
"resource": ""
} | ||
c181043 | test | // Actions register actions | {
"resource": ""
} | ||
c181044 | test | // Render will return the HTML of the bar, used this function to render the bar in frontend page's template or layout | {
"resource": ""
} | ||
c181045 | test | // FuncMap will return helper to render inline edit button | {
"resource": ""
} | ||
c181046 | test | // EditMode return whether current mode is `Preview` or `Edit` | {
"resource": ""
} | ||
c181047 | test | // SwitchMode is handle to store switch status in cookie | {
"resource": ""
} | ||
c181048 | test | // InlineEdit using to make inline edit resource shown as slideout | {
"resource": ""
} | ||
c181049 | test | // Error returns a string representation of error e. | {
"resource": ""
} | ||
c181050 | test | // ParseFile parses the netrc file identified by filename and returns the set of
// machine information and macros defined in it. The ``default'' machine,
// which is intended to be used when no machine name matches, is identified
// by an empty machine name. There can be only one ``default'' machine.
//
// If there is... | {
"resource": ""
} | ||
c181051 | test | // FindMachine parses the netrc file identified by filename and returns
// the Machine named by name. If no Machine with name name is found, the
// ``default'' machine is returned. | {
"resource": ""
} | ||
c181052 | test | // New returns a pointer to an instance of kace loaded with a common
// initialsms trie based on the provided map. Before conversion to a
// trie, the provided map keys are all upper cased. | {
"resource": ""
} | ||
c181053 | test | // Camel returns a camelCased string. | {
"resource": ""
} | ||
c181054 | test | // Pascal returns a PascalCased string. | {
"resource": ""
} | ||
c181055 | test | // Snake returns a snake_cased string with all lowercase letters. | {
"resource": ""
} | ||
c181056 | test | // SnakeUpper returns a SNAKE_CASED string with all upper case letters. | {
"resource": ""
} | ||
c181057 | test | // Kebab returns a kebab-cased string with all lowercase letters. | {
"resource": ""
} | ||
c181058 | test | // KebabUpper returns a KEBAB-CASED string with all upper case letters. | {
"resource": ""
} | ||
c181059 | test | // isPathSafe checks if the passed in path conforms to a whitelist. | {
"resource": ""
} | ||
c181060 | test | // Start is called on start of a request | {
"resource": ""
} | ||
c181061 | test | // ParseAuthHeaders parses authentication headers from HTTP request
// it currently detects Bearer and Basic auth types | {
"resource": ""
} | ||
c181062 | test | // Tracer sets a request tracer constructor | {
"resource": ""
} | ||
c181063 | test | // HTTPClient is a functional parameter that sets the internal
// HTTPClient of the roundtrip client wrapper | {
"resource": ""
} | ||
c181064 | test | // BasicAuth sets username and password for HTTP client | {
"resource": ""
} | ||
c181065 | test | // BearerAuth sets token for HTTP client | {
"resource": ""
} | ||
c181066 | test | // CookieJar sets HTTP cookie jar for this client | {
"resource": ""
} | ||
c181067 | test | // SanitizerEnabled will enable the input sanitizer which passes the URL
// path through a strict whitelist. | {
"resource": ""
} | ||
c181068 | test | // OpenFile opens file using HTTP protocol and uses `Range` headers
// to seek to various positions in the file, this means that server
// has to support the flags `Range` and `Content-Range` | {
"resource": ""
} | ||
c181069 | test | // RoundTrip collects response and error assuming fn has done
// HTTP roundtrip | {
"resource": ""
} | ||
c181070 | test | // SetAuthHeader sets client's authorization headers if client
// was configured to work with authorization | {
"resource": ""
} | ||
c181071 | test | // FileName returns HTTP file name | {
"resource": ""
} | ||
c181072 | test | // newBuffersFromFiles wraps the specified files with a reader
// that caches data into a memory buffer | {
"resource": ""
} | ||
c181073 | test | // newFileBuffer creates a buffer for reading from the specified File file | {
"resource": ""
} | ||
c181074 | test | // rewind resets this fileBuffer to read from the beginning | {
"resource": ""
} | ||
c181075 | test | // This is useful with kingpin option parser | {
"resource": ""
} | ||
c181076 | test | // This is useful with survey prompting library | {
"resource": ""
} | ||
c181077 | test | // String is required for kingpin to generate usage with this datatype | {
"resource": ""
} | ||
c181078 | test | // TriggerIncidentKey triggers an incident using the default client with a
// given incident key only if that incident has been resolved or if that
// incident doesn't exist yet. | {
"resource": ""
} | ||
c181079 | test | // TriggerWithDetails triggers an incident using the default client with a
// description string and a key-value map that will be saved as the incident's
// "details". | {
"resource": ""
} | ||
c181080 | test | // TriggerIncidentKeyWithDetails triggers an incident using the default client
// with a given incident key only if that incident has been resolved or if that
// incident doesn't exist yet. | {
"resource": ""
} | ||
c181081 | test | // Merge will attempt to merge the data from src into dst. They shoud be either both maps or both structs.
// The structs do not need to have the same structure, but any field name that exists in both
// structs will must be the same type. | {
"resource": ""
} | ||
c181082 | test | // recursively set the Source attribute of the Options | {
"resource": ""
} | ||
c181083 | test | // dst must be a pointer type | {
"resource": ""
} | ||
c181084 | test | // Do executes the function in a transaction. | {
"resource": ""
} | ||
c181085 | test | // NewFile is a convenience function which creates and opens a file | {
"resource": ""
} | ||
c181086 | test | // RunBenchmarks executes the benchmarks based upon the given criteria
//
// Returns a resultset | {
"resource": ""
} | ||
c181087 | test | // String implements String from the Stringer interface and
// allows results to be serialized to a sting | {
"resource": ""
} | ||
c181088 | test | // Tabulate transforms the ResultsSets and returns a slice of Row | {
"resource": ""
} | ||
c181089 | test | // AmazonRequest is an example to benchmark a call to googles homepage | {
"resource": ""
} | ||
c181090 | test | // WriteTabularData writes the given results to the given output stream | {
"resource": ""
} | ||
c181091 | test | // Reduce reduces the ResultSet into buckets defined by the given interval | {
"resource": ""
} | ||
c181092 | test | // NewSemaphore is used to create a new semaphore, initalised with a capacity
// this controls the number of locks which can be active at any one time. | {
"resource": ""
} | ||
c181093 | test | // Release unlocks the semaphore and allows new lock instances to be called without
// blocking if the number of locks currently equal the capacity.
// It is important to call Release at the end of any operation which aquires a lock. | {
"resource": ""
} | ||
c181094 | test | // Resize allows dynamic resizing of the semaphore, it can be used if it desired
// to increase the current number of allowable concurent processes. | {
"resource": ""
} | ||
c181095 | test | // AddOutput adds an output writer to Bench | {
"resource": ""
} | ||
c181096 | test | // RunBenchmarks runs the benchmarking for the given function | {
"resource": ""
} | ||
c181097 | test | // We start by dealing with each of the primitive types in turn.
// BOOLEAN | {
"resource": ""
} | ||
c181098 | test | // INTEGER
// checkInteger returns nil if the given bytes are a valid DER-encoded
// INTEGER and an error otherwise. | {
"resource": ""
} | ||
c181099 | test | // parseInt64 treats the given bytes as a big-endian, signed integer and
// returns the result. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.