_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c173500 | validation | // stop the stopwatch | {
"resource": ""
} | ||
c173501 | validation | // Function decorator to monitor the execution of an anonymous function
// returns an array of the returned Values | {
"resource": ""
} | ||
c173502 | validation | // Function decorator
// to monitor a reflected function | {
"resource": ""
} | ||
c173503 | validation | // LogRequest logs a goanna request | {
"resource": ""
} | ||
c173504 | validation | // CommonLogHandler returns a handler that serves HTTP requests
// If a logger is not provided, stdout will be used | {
"resource": ""
} | ||
c173505 | validation | // ServeHTTP logs the request and response data to Common Log Format | {
"resource": ""
} | ||
c173506 | validation | // Extract username from the request url | {
"resource": ""
} | ||
c173507 | validation | // UrlFor returns the relative URL for the route name | {
"resource": ""
} | ||
c173508 | validation | // UrlFor returns the avsolute URL for the route name.
// UrlBase is used for the URL Host and Scheme | {
"resource": ""
} | ||
c173509 | validation | // Parse parses the JSON-encoded data and stores the result
// into the value pointed at by c.
// Panics if unsuccessful | {
"resource": ""
} | ||
c173510 | validation | // LoadFromEnv iterates through a
// struct's fields and tries to find matching
// environment variables.
// Returns a map of environment key and values that were
// successfully set into the struct | {
"resource": ""
} | ||
c173511 | validation | // RegexPath returns a handler that serves HTTP requests
// with the first match of the the given regex from the request URL's Path
// and invoking the handler h. RegexPath handles a
// request for a path that doesn't match by
// replying with an HTTP 404 not found error. | {
"resource": ""
} | ||
c173512 | validation | // CacheControl decorates a handler and adds Cache-Control headers | {
"resource": ""
} | ||
c173513 | validation | // transform YAML to JSON | {
"resource": ""
} | ||
c173514 | validation | // DiscoverWalk will make HTTPS requests to find discovery meta tags and
// optionally will use HTTP if insecure is set. Based on the response of the
// discoverFn it will continue to recurse up the tree. | {
"resource": ""
} | ||
c173515 | validation | // DiscoverEndpoints will make HTTPS requests to find the ac-discovery meta
// tags and optionally will use HTTP if insecure is set. It will not give up
// until it has exhausted the path or found an image discovery. | {
"resource": ""
} | ||
c173516 | validation | // JSONFieldsFromStruct returns the names of JSON fields associated
// with the given struct. Returns nil if v is not a struct | {
"resource": ""
} | ||
c173517 | validation | // StructFieldFromJSONName returns the struct field name on the
// given struct value. Empty value means the field is either not
// public, or does not exist.
//
// This can be used to map JSON field names to actual struct fields. | {
"resource": ""
} | ||
c173518 | validation | // Enumerate lists each word in the Dictionary alphabetically. | {
"resource": ""
} | ||
c173519 | validation | // Release returns the message to the pool for re-use. | {
"resource": ""
} | ||
c173520 | validation | // Wrap returns an error that wraps err, optionally annotating
// with the message text. | {
"resource": ""
} | ||
c173521 | validation | // causer detects whether e wraps another error, and if so
// returns an Error that also implements the Causer interface. | {
"resource": ""
} | ||
c173522 | validation | // From creates a new context based on ctx. See the Context example. | {
"resource": ""
} | ||
c173523 | validation | // With returns a context.Context with the keyvals attached. | {
"resource": ""
} | ||
c173524 | validation | // Format implements the fmt.Formatter interface. If
// the context is printed with "%+v", then it prints
// using the String method of the wrapped context. | {
"resource": ""
} | ||
c173525 | validation | // NewWriter creates writer that logs messages to out. If the output writer is a terminal
// device, the output will be formatted for improved readability. | {
"resource": ""
} | ||
c173526 | validation | // Levels returns a list of levels and their associated actions. | {
"resource": ""
} | ||
c173527 | validation | // SetLevel sets an individual level and its associated display effect. | {
"resource": ""
} | ||
c173528 | validation | // Suppress instructs the writer to suppress any message with the specified level. | {
"resource": ""
} | ||
c173529 | validation | // IsSuppressed reports true if level should be suppressed. | {
"resource": ""
} | ||
c173530 | validation | // Handle registers a handler that will be called for every logging
// event. The function receives a message, which is a structured
// representation of the log message text.
//
// This function is useful for registering handlers that send log
// information to external sources. | {
"resource": ""
} | ||
c173531 | validation | // SetOutput sets the output destination for log messages. | {
"resource": ""
} | ||
c173532 | validation | // Enumerate lists the items in a `Directory` | {
"resource": ""
} | ||
c173533 | validation | // All tests whether or not all items present in an Enumerable meet a criteria. | {
"resource": ""
} | ||
c173534 | validation | // All tests whether or not all items present meet a criteria. | {
"resource": ""
} | ||
c173535 | validation | // Any tests an Enumerable to see if there are any elements present. | {
"resource": ""
} | ||
c173536 | validation | // Anyp tests an Enumerable to see if there are any elements present that meet a criteria. | {
"resource": ""
} | ||
c173537 | validation | // AsEnumerable allows for easy conversion of a slice to a re-usable Enumerable object. | {
"resource": ""
} | ||
c173538 | validation | // First retrieves just the first item in the list, or returns an error if there are no elements in the array. | {
"resource": ""
} | ||
c173539 | validation | // Merge takes the results of this Enumerator and others, and funnels them into
// a single Enumerator. The order of in which they will be combined is non-deterministic. | {
"resource": ""
} | ||
c173540 | validation | // ParallelSelect creates an Enumerable which will use all logically available CPUs to
// execute a Transform. | {
"resource": ""
} | ||
c173541 | validation | // ParallelSelect will execute a Transform across all logical CPUs available to the current process. | {
"resource": ""
} | ||
c173542 | validation | // Reverse returns items in the opposite order it encountered them in. | {
"resource": ""
} | ||
c173543 | validation | // Select creates a reusable stream of transformed values. | {
"resource": ""
} | ||
c173544 | validation | // Select iterates over a list and returns a transformed item. | {
"resource": ""
} | ||
c173545 | validation | // SelectMany allows for unfolding of values. | {
"resource": ""
} | ||
c173546 | validation | // SelectMany allows for flattening of data structures. | {
"resource": ""
} | ||
c173547 | validation | // Single retreives the only element from a list, or returns nil and an error. | {
"resource": ""
} | ||
c173548 | validation | // Singlep retrieces the only element from a list that matches a criteria. If
// no match is found, or two or more are found, `Singlep` returns nil and an
// error. | {
"resource": ""
} | ||
c173549 | validation | // Skip creates a reusable stream which will skip the first `n` elements before iterating
// over the rest of the elements in an Enumerable. | {
"resource": ""
} | ||
c173550 | validation | // splitN creates N Enumerators, each will be a subset of the original Enumerator and will have
// distinct populations from one another. | {
"resource": ""
} | ||
c173551 | validation | // Take retreives just the first `n` elements from an Enumerable. | {
"resource": ""
} | ||
c173552 | validation | // Take retreives just the first 'n' elements from an Enumerator. | {
"resource": ""
} | ||
c173553 | validation | // TakeWhile creates a reusable stream which will halt once some criteria is no longer met. | {
"resource": ""
} | ||
c173554 | validation | // TakeWhile continues returning items as long as 'criteria' holds true. | {
"resource": ""
} | ||
c173555 | validation | // Tee creates two Enumerators which will have identical contents as one another. | {
"resource": ""
} | ||
c173556 | validation | // ToSlice places all iterated over values in a Slice for easy consumption. | {
"resource": ""
} | ||
c173557 | validation | // Where creates a reusable means of filtering a stream. | {
"resource": ""
} | ||
c173558 | validation | // Where iterates over a list and returns only the elements that satisfy a
// predicate. | {
"resource": ""
} | ||
c173559 | validation | // ReleaseBuffer returns a buffer to the pool to be re-used. | {
"resource": ""
} | ||
c173560 | validation | // NewStack instantiates a new FILO structure. | {
"resource": ""
} | ||
c173561 | validation | // Enumerate peeks at each element in the stack without mutating it. | {
"resource": ""
} | ||
c173562 | validation | // IsEmpty tests the Stack to determine if it is populate or not. | {
"resource": ""
} | ||
c173563 | validation | // Push adds an entry to the top of the Stack. | {
"resource": ""
} | ||
c173564 | validation | // Pop returns the entry at the top of the Stack then removes it. | {
"resource": ""
} | ||
c173565 | validation | // Peek returns the entry at the top of the Stack without removing it. | {
"resource": ""
} | ||
c173566 | validation | // Size returns the number of entries populating the Stack. | {
"resource": ""
} | ||
c173567 | validation | // NewLinkedList instantiates a new LinkedList with the entries provided. | {
"resource": ""
} | ||
c173568 | validation | // AddBack creates an entry in the LinkedList that is logically at the back of the list. | {
"resource": ""
} | ||
c173569 | validation | // Enumerate creates a new instance of Enumerable which can be executed on. | {
"resource": ""
} | ||
c173570 | validation | // Get finds the value from the LinkedList.
// pos is expressed as a zero-based index begining from the 'front' of the list. | {
"resource": ""
} | ||
c173571 | validation | // IsEmpty tests the list to determine if it is populate or not. | {
"resource": ""
} | ||
c173572 | validation | // Length returns the number of elements present in the LinkedList. | {
"resource": ""
} | ||
c173573 | validation | // PeekBack returns the entry logicall stored at the back of the list without removing it. | {
"resource": ""
} | ||
c173574 | validation | // PeekFront returns the entry logically stored at the front of this list without removing it. | {
"resource": ""
} | ||
c173575 | validation | // RemoveFront returns the entry logically stored at the front of this list and removes it. | {
"resource": ""
} | ||
c173576 | validation | // RemoveBack returns the entry logically stored at the back of this list and removes it. | {
"resource": ""
} | ||
c173577 | validation | // Sort rearranges the positions of the entries in this list so that they are
// ascending. | {
"resource": ""
} | ||
c173578 | validation | // Sorta rearranges the position of string entries in this list so that they
// are ascending. | {
"resource": ""
} | ||
c173579 | validation | // Sorti rearranges the position of integer entries in this list so that they
// are ascending. | {
"resource": ""
} | ||
c173580 | validation | // String prints upto the first fifteen elements of the list in string format. | {
"resource": ""
} | ||
c173581 | validation | // Swap switches the positions in which two values are stored in this list.
// x and y represent the indexes of the items that should be swapped. | {
"resource": ""
} | ||
c173582 | validation | // merge takes two sorted lists and merges them into one sorted list.
// Behavior is undefined when you pass a non-sorted list as `left` or `right` | {
"resource": ""
} | ||
c173583 | validation | // split breaks a list in half. | {
"resource": ""
} | ||
c173584 | validation | // Add places an item at the back of the Queue. | {
"resource": ""
} | ||
c173585 | validation | // Enumerate peeks at each element of this queue without mutating it. | {
"resource": ""
} | ||
c173586 | validation | // IsEmpty tests the Queue to determine if it is populate or not. | {
"resource": ""
} | ||
c173587 | validation | // Length returns the number of items in the Queue. | {
"resource": ""
} | ||
c173588 | validation | // Next removes and returns the next item in the Queue. | {
"resource": ""
} | ||
c173589 | validation | // Peek returns the next item in the Queue without removing it. | {
"resource": ""
} | ||
c173590 | validation | // ToSlice converts a Queue into a slice. | {
"resource": ""
} | ||
c173591 | validation | // EnableVirtualTerminalProcessing configures the terminal to accept ANSI
// sequences. This is a no-op for all operating systems other than Windows. | {
"resource": ""
} | ||
c173592 | validation | // unquote the input. If possible the unquoted value points to the same
// backing array as input. Otherwise it points to buf. The remainder is
// the unused portion of buf. | {
"resource": ""
} | ||
c173593 | validation | // countScalars returns the count of items in input up to but
// not including the first non-scalar item. A scalar is a single
// value item, ie not a keyvalser. | {
"resource": ""
} | ||
c173594 | validation | // IsTerminal returns true if the writer is a terminal. | {
"resource": ""
} | ||
c173595 | validation | // Add appends an entry to the logical end of the List. | {
"resource": ""
} | ||
c173596 | validation | // AddAt injects values beginning at `pos`. If multiple values
// are provided in `entries` they are placed in the same order
// they are provided. | {
"resource": ""
} | ||
c173597 | validation | // Enumerate lists each element present in the collection | {
"resource": ""
} | ||
c173598 | validation | // Get retreives the value stored in a particular position of the list.
// If no item exists at the given position, the second parameter will be
// returned as false. | {
"resource": ""
} | ||
c173599 | validation | // IsEmpty tests to see if this List has any elements present. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.