_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c8900 | train | // New makes a new Mocker for the specified package directory. | {
"resource": ""
} | ||
c8901 | train | // Mock generates a mock for the specified interface name. | {
"resource": ""
} | ||
c8902 | train | // Stop stops the Supervisor.
//
// This function will not return until either all Services have stopped, or
// they timeout after the timeout value given to the Supervisor at
// creation. | {
"resource": ""
} | ||
c8903 | train | // NewClient initializes a client from a client config. | {
"resource": ""
} | ||
c8904 | train | // NewInClusterClient returns a client that uses the service account bearer token mounted
// into Kubernetes pods. | {
"resource": ""
} | ||
c8905 | train | // createConfigMap creates a configmap in the client's default namespace
// but does not return an error if a configmap of the same name already
// exists. | {
"resource": ""
} | ||
c8906 | train | // Eq selects labels which have the key and the key has the provide value. | {
"resource": ""
} | ||
c8907 | train | // In selects labels which have the key and the key has one of the provided values. | {
"resource": ""
} | ||
c8908 | train | // QueryParam can be used to manually set a URL query parameter by name. | {
"resource": ""
} | ||
c8909 | train | // Timeout declares the timeout for list and watch operations. Timeout
// is only accurate to the second. | {
"resource": ""
} | ||
c8910 | train | // loadClient parses a kubeconfig from a file and returns a Kubernetes
// client. It does not support extensions or client auth providers. | {
"resource": ""
} | ||
c8911 | train | // marshal encodes an object and returns the content type of that resource
// and the marshaled representation.
//
// marshal prefers protobuf encoding, but falls back to JSON. | {
"resource": ""
} | ||
c8912 | train | // unmarshal decoded an object given the content type of the encoded form. | {
"resource": ""
} | ||
c8913 | train | // Next decodes the next event from the watch stream. Errors are fatal, and
// indicate that the watcher should no longer be used, and must be recreated. | {
"resource": ""
} | ||
c8914 | train | // JSON marshaling logic for the Time type so it can be used for custom
// resources, which serialize to JSON. | {
"resource": ""
} | ||
c8915 | train | // Has returns true if the tree contains an element whose order is the same as that of key. | {
"resource": ""
} | ||
c8916 | train | // Get retrieves an element from the tree whose order is the same as that of key. | {
"resource": ""
} | ||
c8917 | train | // Min returns the minimum element in the tree. | {
"resource": ""
} | ||
c8918 | train | // Max returns the maximum element in the tree. | {
"resource": ""
} | ||
c8919 | train | // ReplaceOrInsert inserts item into the tree. If an existing
// element has the same order, it is removed from the tree and returned. | {
"resource": ""
} | ||
c8920 | train | // InsertNoReplace inserts item into the tree. If an existing
// element has the same order, both elements remain in the tree. | {
"resource": ""
} | ||
c8921 | train | // Rotation driver routines for 2-3-4 algorithm | {
"resource": ""
} | ||
c8922 | train | // DeleteMin deletes the minimum element in the tree and returns the
// deleted item or nil otherwise. | {
"resource": ""
} | ||
c8923 | train | // deleteMin code for LLRB 2-3 trees | {
"resource": ""
} | ||
c8924 | train | // DeleteMax deletes the maximum element in the tree and returns
// the deleted item or nil otherwise | {
"resource": ""
} | ||
c8925 | train | // Delete deletes an item from the tree whose key equals key.
// The deleted item is return, otherwise nil is returned. | {
"resource": ""
} | ||
c8926 | train | // AscendGreaterOrEqual will call iterator once for each element greater or equal to
// pivot in ascending order. It will stop whenever the iterator returns false. | {
"resource": ""
} | ||
c8927 | train | // DescendLessOrEqual will call iterator once for each element less than the
// pivot in descending order. It will stop whenever the iterator returns false. | {
"resource": ""
} | ||
c8928 | train | // WithValue adds custom state variables to the runtime context. | {
"resource": ""
} | ||
c8929 | train | // UnmarshalPayload has docs in request.go for UnmarshalPayload. | {
"resource": ""
} | ||
c8930 | train | // UnmarshalManyPayload has docs in request.go for UnmarshalManyPayload. | {
"resource": ""
} | ||
c8931 | train | // UnmarshalManyPayload converts an io into a set of struct instances using
// jsonapi tags on the type's struct fields. | {
"resource": ""
} | ||
c8932 | train | // assign will take the value specified and assign it to the field; if
// field is expecting a ptr assign will assign a ptr. | {
"resource": ""
} | ||
c8933 | train | // assign assigns the specified value to the field,
// expecting both values not to be pointer types. | {
"resource": ""
} | ||
c8934 | train | // Marshal does the same as MarshalPayload except it just returns the payload
// and doesn't write out results. Useful if you use your own JSON rendering
// library. | {
"resource": ""
} | ||
c8935 | train | // marshalOne does the same as MarshalOnePayload except it just returns the
// payload and doesn't write out results. Useful is you use your JSON rendering
// library. | {
"resource": ""
} | ||
c8936 | train | // marshalMany does the same as MarshalManyPayload except it just returns the
// payload and doesn't write out results. Useful is you use your JSON rendering
// library. | {
"resource": ""
} | ||
c8937 | train | // JSONAPILinks implements the Linkable interface for a blog | {
"resource": ""
} | ||
c8938 | train | // JSONAPIRelationshipLinks implements the RelationshipLinkable interface for a blog | {
"resource": ""
} | ||
c8939 | train | // JSONAPIRelationshipMeta implements the RelationshipMetable interface for a blog | {
"resource": ""
} | ||
c8940 | train | // Apply given transformation func for each line in string | {
"resource": ""
} | ||
c8941 | train | // Move cursor to given position | {
"resource": ""
} | ||
c8942 | train | // Move string to possition | {
"resource": ""
} | ||
c8943 | train | // Return carrier to start of line | {
"resource": ""
} | ||
c8944 | train | // Get console width | {
"resource": ""
} | ||
c8945 | train | // Get console height | {
"resource": ""
} | ||
c8946 | train | // Flush buffer and ensure that it will not overflow screen | {
"resource": ""
} | ||
c8947 | train | // DataTable can contain data for multiple graphs, we need to extract only 1 | {
"resource": ""
} | ||
c8948 | train | // Save stores the CSRF token in the session cookie. | {
"resource": ""
} | ||
c8949 | train | // RequestHeader allows you to change the request header the CSRF middleware
// inspects. The default is X-CSRF-Token. | {
"resource": ""
} | ||
c8950 | train | // CookieName changes the name of the CSRF cookie issued to clients.
//
// Note that cookie names should not contain whitespace, commas, semicolons,
// backslashes or control characters as per RFC6265. | {
"resource": ""
} | ||
c8951 | train | // parseOptions parses the supplied options functions and returns a configured
// csrf handler. | {
"resource": ""
} | ||
c8952 | train | // FailureReason makes CSRF validation errors available in the request context.
// This is useful when you want to log the cause of the error or report it to
// client. | {
"resource": ""
} | ||
c8953 | train | // envError stores a CSRF error in the request context. | {
"resource": ""
} | ||
c8954 | train | // Implements http.Handler for the csrf type. | {
"resource": ""
} | ||
c8955 | train | // unauthorizedhandler sets a HTTP 403 Forbidden status and writes the
// CSRF failure reason to the response. | {
"resource": ""
} | ||
c8956 | train | // json -> sexp. env is needed to handle symbols correctly | {
"resource": ""
} | ||
c8957 | train | // sexp -> json | {
"resource": ""
} | ||
c8958 | train | // json -> go | {
"resource": ""
} | ||
c8959 | train | // go -> json | {
"resource": ""
} | ||
c8960 | train | // msgpack -> sexp | {
"resource": ""
} | ||
c8961 | train | // msgpack -> go | {
"resource": ""
} | ||
c8962 | train | // with block comments, we've got to tell
// the parser about them, so it can recognize
// when another line is needed to finish a
// block comment. | {
"resource": ""
} | ||
c8963 | train | // SexpString satisfies the Sexp interface, producing a string presentation of the value. | {
"resource": ""
} | ||
c8964 | train | // LookupSymbolNonGlobal - closures use this to only find symbols below the global scope, to avoid copying globals it'll always be-able to ref | {
"resource": ""
} | ||
c8965 | train | // declare a new record type | {
"resource": ""
} | ||
c8966 | train | // detect SexpEnd values and return false on them to filter them out. | {
"resource": ""
} | ||
c8967 | train | // MergeFuncMap returns the union of the two given maps | {
"resource": ""
} | ||
c8968 | train | // CoreFunctions returns all of the core logic | {
"resource": ""
} | ||
c8969 | train | // handles arrays or hashes | {
"resource": ""
} | ||
c8970 | train | // the assignment function, = | {
"resource": ""
} | ||
c8971 | train | // helper used by dotGetSetHelper and sub-calls to check for private | {
"resource": ""
} | ||
c8972 | train | // "." dot operator | {
"resource": ""
} | ||
c8973 | train | // coerce numbers to uint64 | {
"resource": ""
} | ||
c8974 | train | // works over hashes and arrays | {
"resource": ""
} | ||
c8975 | train | // CloneFrom copys all the internals of src into p, effectively
// blanking out whatever p held and replacing it with a copy of src. | {
"resource": ""
} | ||
c8976 | train | // Starts launches a background goroutine that runs an
// infinite parsing loop. | {
"resource": ""
} | ||
c8977 | train | // reads Stdin only | {
"resource": ""
} | ||
c8978 | train | // time-stamped printf | {
"resource": ""
} | ||
c8979 | train | // complete phrases that start with '(' | {
"resource": ""
} | ||
c8980 | train | // Assignment creates a new assignment operator for infix
// processing. | {
"resource": ""
} | ||
c8981 | train | // PostfixAssign creates a new postfix assignment operator for infix
// processing. | {
"resource": ""
} | ||
c8982 | train | // Advance sets p.NextToken | {
"resource": ""
} | ||
c8983 | train | // chase parent pointers up the chain and check each of their immediate closures. | {
"resource": ""
} | ||
c8984 | train | // detect if inteface is holding anything | {
"resource": ""
} | ||
c8985 | train | // import a package, analagous to Golang. | {
"resource": ""
} | ||
c8986 | train | // like begin, but puts its contents in a new scope | {
"resource": ""
} | ||
c8987 | train | // set ShellCmd as used by SystemFunction | {
"resource": ""
} | ||
c8988 | train | // sys is a builder. shell out, return the combined output. | {
"resource": ""
} | ||
c8989 | train | // if pc is -1, don't show it. | {
"resource": ""
} | ||
c8990 | train | // scan the instruction stream to locate loop start | {
"resource": ""
} | ||
c8991 | train | // SplitStringFunction splits a string based on an arbitrary delimiter | {
"resource": ""
} | ||
c8992 | train | // NB at the moment this doesn't track comment and strings state,
// so it will fail if unbalanced '(' are found in either. | {
"resource": ""
} | ||
c8993 | train | // liner reads Stdin only. If noLiner, then we read from reader. | {
"resource": ""
} | ||
c8994 | train | // string -> time.Time | {
"resource": ""
} | ||
c8995 | train | // alternative. simpler, currently panics. | {
"resource": ""
} | ||
c8996 | train | // existing
// SourceExpressions, this should be called from a user func context | {
"resource": ""
} | ||
c8997 | train | // helper for SourceFileFunction recursion | {
"resource": ""
} | ||
c8998 | train | // pretty print a struct | {
"resource": ""
} | ||
c8999 | train | // compute key and value widths to assist alignment | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.