_id stringlengths 2 7 | title stringclasses 1 value | partition stringclasses 3 values | text stringlengths 6 2.61k | language stringclasses 1 value | meta_information dict |
|---|---|---|---|---|---|
c180200 | test | // PadRightF is the filter form of Padright | {
"resource": ""
} | ||
c180201 | test | // Pipe pipes s through one or more string filters. | {
"resource": ""
} | ||
c180202 | test | // QuoteItems quotes all items in array, mostly for debugging. | {
"resource": ""
} | ||
c180203 | test | // ReplaceF is the filter form of strings.Replace. | {
"resource": ""
} | ||
c180204 | test | // ReplacePatternF is the filter form of ReplaceRegexp. | {
"resource": ""
} | ||
c180205 | test | // Reverse a string | {
"resource": ""
} | ||
c180206 | test | // RightF is the Filter version of Right. | {
"resource": ""
} | ||
c180207 | test | // Slice slices a string. If end is negative then it is the from the end
// of the string. | {
"resource": ""
} | ||
c180208 | test | // SliceF is the filter for Slice. | {
"resource": ""
} | ||
c180209 | test | // SliceContains determines whether val is an element in slice. | {
"resource": ""
} | ||
c180210 | test | // SliceIndexOf gets the indx of val in slice. Returns -1 if not found. | {
"resource": ""
} | ||
c180211 | test | // Slugify converts s into a dasherized string suitable for URL segment. | {
"resource": ""
} | ||
c180212 | test | // StripPunctuation strips puncation from string. | {
"resource": ""
} | ||
c180213 | test | // StripTags strips all of the html tags or tags specified by the parameters | {
"resource": ""
} | ||
c180214 | test | // Substr returns a substring of s starting at index of length n. | {
"resource": ""
} | ||
c180215 | test | // SubstrF is the filter form of Substr. | {
"resource": ""
} | ||
c180216 | test | // TemplateWithDelimiters is string template with user-defineable opening and closing delimiters. | {
"resource": ""
} | ||
c180217 | test | // ToArgv converts string s into an argv for exec. | {
"resource": ""
} | ||
c180218 | test | // ToBool fuzzily converts truthy values. | {
"resource": ""
} | ||
c180219 | test | // ToBoolOr parses s as a bool or returns defaultValue. | {
"resource": ""
} | ||
c180220 | test | // ToIntOr parses s as an int or returns defaultValue. | {
"resource": ""
} | ||
c180221 | test | // ToFloat32Or parses as a float32 or returns defaultValue on error. | {
"resource": ""
} | ||
c180222 | test | // ToFloat64Or parses s as a float64 or returns defaultValue. | {
"resource": ""
} | ||
c180223 | test | // UnescapeHTML is an alias for html.UnescapeString. | {
"resource": ""
} | ||
c180224 | test | // WrapHTML wraps s within HTML tag having attributes attrs. Note,
// WrapHTML does not escape s value. | {
"resource": ""
} | ||
c180225 | test | // WrapHTMLF is the filter form of WrapHTML. | {
"resource": ""
} | ||
c180226 | test | // ReapChildren is a long-running routine that blocks waiting for child
// processes to exit and reaps them, reporting reaped process IDs to the
// optional pids channel and any errors to the optional errors channel.
//
// The optional reapLock will be used to prevent reaping during periods
// when you know your application is waiting for subprocesses to return.
// You need to use care in order to prevent the reaper from stealing your
// return values from uses of packages like Go's exec. We use an RWMutex
// so that we don't serialize all of the application's execution of sub
// processes with each other, but we do serialize them with reaping. The
// application should get a read lock when it wants to do a wait. | {
"resource": ""
} | ||
c180227 | test | // SdNotify sends a specified string to the systemd notification socket. | {
"resource": ""
} | ||
c180228 | test | // NewAuthenticator constructs a new Authenticator from a store and policy. | {
"resource": ""
} | ||
c180229 | test | // Endpoint returns a handler for the common token and authorize endpoint. | {
"resource": ""
} | ||
c180230 | test | // Unique is a helper to get a unique list of object ids. | {
"resource": ""
} | ||
c180231 | test | // Contains returns true if a list of object ids contains the specified id. | {
"resource": ""
} | ||
c180232 | test | // Includes returns true if a list of object ids includes another list of object
// ids. | {
"resource": ""
} | ||
c180233 | test | // Require will check if the specified flags are set on the specified model and
// panic if one is missing. | {
"resource": ""
} | ||
c180234 | test | // Enqueue will enqueue a job using the specified name and data. If a delay
// is specified the job will not be dequeued until the specified time has passed. | {
"resource": ""
} | ||
c180235 | test | // A is a short-hand function to construct an authorizer. It will also add tracing
// code around the execution of the authorizer. | {
"resource": ""
} | ||
c180236 | test | // Run will authorize immediately and return the provided list of enforcers. | {
"resource": ""
} | ||
c180237 | test | // And will match and run both authorizers and return immediately if one does not
// return a set of enforcers. The two successfully returned enforcer sets are
// merged into one and returned. | {
"resource": ""
} | ||
c180238 | test | // Or will match and run the first authorizer and return its enforcers on success.
// If no enforcers are returned it will match and run the second authorizer and
// return its enforcers. | {
"resource": ""
} | ||
c180239 | test | // Enqueue will enqueue a job using the specified name and data. If a delay
// is specified the job will not dequeued until the specified time has passed. | {
"resource": ""
} | ||
c180240 | test | // Callback is a factory to create callbacks that can be used to enqueue jobs
// during request processing. | {
"resource": ""
} | ||
c180241 | test | // NewWatcher creates and returns a new watcher. | {
"resource": ""
} | ||
c180242 | test | // Add will add a stream to the watcher. | {
"resource": ""
} | ||
c180243 | test | // Action returns an action that should be registered in the group under
// the "watch" name. | {
"resource": ""
} | ||
c180244 | test | // Write will return true when this operation does write data. | {
"resource": ""
} | ||
c180245 | test | // String returns the name of the operation. | {
"resource": ""
} | ||
c180246 | test | // Query returns the composite query of Selector and Filter. | {
"resource": ""
} | ||
c180247 | test | // Respond will encode the provided value as JSON and write it to the client. | {
"resource": ""
} | ||
c180248 | test | // EnsureApplication will ensure that an application with the provided name
// exists and returns its key. | {
"resource": ""
} | ||
c180249 | test | // EnsureFirstUser ensures the existence of a first user if no other has been
// created. | {
"resource": ""
} | ||
c180250 | test | // Callback will return a callback that authorizes operations using the strategy. | {
"resource": ""
} | ||
c180251 | test | // OpenStream will open a stream and continuously forward events to the specified
// receiver until the stream is closed. If a token is present it will be used to
// resume the stream. The provided opened function is called when the stream has
// been opened the first time. The passed manager is called with errors returned
// by the underlying change stream. The managers result is used to determine if
// the stream should be opened again.
//
// The stream automatically resumes on errors using an internally stored resume
// token. Applications that need more control should store the token externally
// and reopen the stream manually to resume from a specific position. | {
"resource": ""
} | ||
c180252 | test | // Close will close the stream. | {
"resource": ""
} | ||
c180253 | test | // AddTokenIndexes will add access token indexes to the specified indexer. | {
"resource": ""
} | ||
c180254 | test | // GetTokenData implements the flame.GenericToken interface. | {
"resource": ""
} | ||
c180255 | test | // SetTokenData implements the flame.GenericToken interface. | {
"resource": ""
} | ||
c180256 | test | // ValidSecret implements the flame.Client interface. | {
"resource": ""
} | ||
c180257 | test | // HashSecret will hash Secret and set SecretHash. | {
"resource": ""
} | ||
c180258 | test | // ValidPassword implements the flame.ResourceOwner interface. | {
"resource": ""
} | ||
c180259 | test | // HashPassword will hash Password and set PasswordHash. | {
"resource": ""
} | ||
c180260 | test | // MustCreateStore will dial the passed database and return a new store. It will
// panic if the initial connection failed. | {
"resource": ""
} | ||
c180261 | test | // CreateStore will dial the passed database and return a new store. It will
// return an error if the initial connection failed | {
"resource": ""
} | ||
c180262 | test | // C will return the collection associated to the passed model. | {
"resource": ""
} | ||
c180263 | test | // NewAssetServer constructs an asset server handler that serves an asset
// directory on a specified path and serves the index file for not found paths
// which is needed to run single page applications like Ember. | {
"resource": ""
} | ||
c180264 | test | // DefaultGrantStrategy grants only empty scopes. | {
"resource": ""
} | ||
c180265 | test | // DefaultTokenData adds the user's id to the token data claim. | {
"resource": ""
} | ||
c180266 | test | // GenerateToken returns a new token for the provided information. | {
"resource": ""
} | ||
c180267 | test | // ParseToken will parse the presented token and return its claims, if it is
// expired and eventual errors. | {
"resource": ""
} | ||
c180268 | test | // E is a short-hand function to create an enforcer. | {
"resource": ""
} | ||
c180269 | test | // MustGet returns the value of the given field. MustGet will panic if no field
// has been found. | {
"resource": ""
} | ||
c180270 | test | // MustSet will set the given field to the the passed valued. MustSet will panic
// if no field has been found. | {
"resource": ""
} | ||
c180271 | test | // NewGroup creates and returns a new group. | {
"resource": ""
} | ||
c180272 | test | // Add will add a controller to the group. | {
"resource": ""
} | ||
c180273 | test | // Endpoint will return an http handler that serves requests for this group. The
// specified prefix is used to parse the requests and generate urls for the
// resources. | {
"resource": ""
} | ||
c180274 | test | // Add will add an index to the internal index list. Fields that are prefixed
// with a dash will result in an descending index. See the MongoDB documentation
// for more details. | {
"resource": ""
} | ||
c180275 | test | // AddRaw will add a raw mgo.Index to the internal index list. | {
"resource": ""
} | ||
c180276 | test | // Ensure will ensure that the required indexes exist. It may fail early if some
// of the indexes are already existing and do not match the supplied index. | {
"resource": ""
} | ||
c180277 | test | // NewCatalog will create a new catalog. | {
"resource": ""
} | ||
c180278 | test | // Add will add the specified models to the catalog. | {
"resource": ""
} | ||
c180279 | test | // All returns a list of all registered models. | {
"resource": ""
} | ||
c180280 | test | // Visualize emits a string in dot format which when rendered with graphviz
// visualizes the models and their relationships. | {
"resource": ""
} | ||
c180281 | test | // NewErrorReporter returns a very basic reporter that writes errors and stack
// traces to the specified writer. | {
"resource": ""
} | ||
c180282 | test | // EnsureIndexes will ensure that the required indexes exist. | {
"resource": ""
} | ||
c180283 | test | // E is a short-hand function to construct a safe error. | {
"resource": ""
} | ||
c180284 | test | // Compose is a short-hand for chaining the specified middleware and handler
// together. | {
"resource": ""
} | ||
c180285 | test | // Includes returns true if a list of strings includes another list of strings. | {
"resource": ""
} | ||
c180286 | test | // Intersect will return the intersection of both lists. | {
"resource": ""
} | ||
c180287 | test | // E is a short-hand to construct an error. | {
"resource": ""
} | ||
c180288 | test | // RootTracer is a middleware that can be used to create root trace span for an
// incoming request. | {
"resource": ""
} | ||
c180289 | test | // NewTracerFromRequest returns a new tracer that has a root span derived from
// the specified request. A span previously added to the request context using
// Context is automatically used as the parent. | {
"resource": ""
} | ||
c180290 | test | // NewTracer returns a new tracer with the specified root span. | {
"resource": ""
} | ||
c180291 | test | // Push will add a new span on to the stack. Successful spans must be finished by
// calling Pop. If the code panics or an error is returned the last pushed span
// will be flagged with the error and a leftover spans are popped. | {
"resource": ""
} | ||
c180292 | test | // Last returns the last pushed span or the root span. | {
"resource": ""
} | ||
c180293 | test | // Tag adds a tag to the last pushed span. | {
"resource": ""
} | ||
c180294 | test | // Log adds a log to the last pushed span. | {
"resource": ""
} | ||
c180295 | test | // Context returns a new context with the latest span stored as a reference for
// handlers that will call NewTracerFromRequest or similar. | {
"resource": ""
} | ||
c180296 | test | // Pop finishes and removes the last pushed span. | {
"resource": ""
} | ||
c180297 | test | // Finish will finish all leftover spans and the root span if requested. | {
"resource": ""
} | ||
c180298 | test | // NewPool creates and returns a new pool. | {
"resource": ""
} | ||
c180299 | test | // Add will add the specified task and its queue to the pool. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.