_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c14300
train
// PostForm returns the first value for the named component from POST and PUT body parameters. // If key is not present, it returns the specified default value or an empty string.
{ "resource": "" }
c14301
train
// Next calls the rest of the handlers associated with the current route. // If any of these handlers returns an error, Next will return the error and skip the following handlers. // Next is normally used when a handler needs to do some postprocessing after the rest of the handlers // are executed.
{ "resource": "" }
c14302
train
// Read populates the given struct variable with the data from the current request. // If the request is NOT a GET request, it will check the "Content-Type" header // and find a matching reader from DataReaders to read the request data. // If there is no match or if the request is a GET request, it will use DefaultForm...
{ "resource": "" }
c14303
train
// negotiateLanguage negotiates the acceptable language according to the Accept-Language HTTP header.
{ "resource": "" }
c14304
train
// ReadFormData populates the data variable with the data from the given form values.
{ "resource": "" }
c14305
train
// DefaultJWTTokenHandler stores the parsed JWT token in the routing context with the key named "JWT".
{ "resource": "" }
c14306
train
// NewJWT creates a new JWT token and returns it as a signed string that may be sent to the client side. // The signingMethod parameter is optional. It defaults to the HS256 algorithm.
{ "resource": "" }
c14307
train
// New creates a new Router object.
{ "resource": "" }
c14308
train
// ServeHTTP handles the HTTP request. // It is required by http.Handler
{ "resource": "" }
c14309
train
// Use appends the specified handlers to the router and shares them with all routes.
{ "resource": "" }
c14310
train
// NotFound specifies the handlers that should be invoked when the router cannot find any route matching a request. // Note that the handlers registered via Use will be invoked first in this case.
{ "resource": "" }
c14311
train
// Find determines the handlers and parameters to use for a specified method and path.
{ "resource": "" }
c14312
train
// HTTPHandlerFunc adapts a http.HandlerFunc into a routing.Handler.
{ "resource": "" }
c14313
train
// newStore creates a new store.
{ "resource": "" }
c14314
train
// Add adds a new data item with the given parametric key. // The number of parameters in the key is returned.
{ "resource": "" }
c14315
train
// Get returns the data item matching the given concrete key. // If the data item was added to the store with a parametric key before, the matching // parameter names and values will be returned as well.
{ "resource": "" }
c14316
train
// add adds a new data item to the tree rooted at the current node. // The number of parameters in the key is returned.
{ "resource": "" }
c14317
train
// addChild creates static and param nodes to store the given data
{ "resource": "" }
c14318
train
// get returns the data item with the key matching the tree rooted at the current node
{ "resource": "" }
c14319
train
// safeSet will fixup b.set to be non-nil and return the field value
{ "resource": "" }
c14320
train
// wordsNeeded calculates the number of words needed for i bits
{ "resource": "" }
c14321
train
// New creates a new BitSet with a hint that length bits will be required
{ "resource": "" }
c14322
train
// extendSetMaybe adds additional words to incorporate new bits if needed
{ "resource": "" }
c14323
train
// Set bit i to 1
{ "resource": "" }
c14324
train
// Clear bit i to 0
{ "resource": "" }
c14325
train
// SetTo sets bit i to value
{ "resource": "" }
c14326
train
// Flip bit at i
{ "resource": "" }
c14327
train
// Shrink shrinks BitSet to desired length in bits. It clears all bits > length // and reduces the size and length of the set. // // A new slice is allocated to store the new bits, so you may see an increase in // memory usage until the GC runs. Normally this should not be a problem, but if you // have an extremely lar...
{ "resource": "" }
c14328
train
// InsertAt takes an index which indicates where a bit should be // inserted. Then it shifts all the bits in the set to the left by 1, starting // from the given index position, and sets the index position to 0. // // Depending on the size of your BitSet, and where you are inserting the new entry, // this method could ...
{ "resource": "" }
c14329
train
// ClearAll clears the entire BitSet
{ "resource": "" }
c14330
train
// Clone this BitSet
{ "resource": "" }
c14331
train
// Copy into a destination BitSet // Returning the size of the destination BitSet // like array copy
{ "resource": "" }
c14332
train
// Equal tests the equvalence of two BitSets. // False if they are of different sizes, otherwise true // only if all the same bits are set
{ "resource": "" }
c14333
train
// DifferenceCardinality computes the cardinality of the differnce
{ "resource": "" }
c14334
train
// IntersectionCardinality computes the cardinality of the union
{ "resource": "" }
c14335
train
// UnionCardinality computes the cardinality of the uniton of the base set // and the compare set.
{ "resource": "" }
c14336
train
// SymmetricDifferenceCardinality computes the cardinality of the symmetric difference
{ "resource": "" }
c14337
train
// Clean last word by setting unused bits to 0
{ "resource": "" }
c14338
train
// All returns true if all bits are set, false otherwise. Returns true for // empty sets.
{ "resource": "" }
c14339
train
// None returns true if no bit is set, false otherwise. Retursn true for // empty sets.
{ "resource": "" }
c14340
train
// IsSuperSet returns true if this is a superset of the other set
{ "resource": "" }
c14341
train
// IsStrictSuperSet returns true if this is a strict superset of the other set
{ "resource": "" }
c14342
train
// DumpAsBits dumps a bit set as a string of bits
{ "resource": "" }
c14343
train
// BinaryStorageSize returns the binary storage requirements
{ "resource": "" }
c14344
train
// WriteTo writes a BitSet to a stream
{ "resource": "" }
c14345
train
// ReadFrom reads a BitSet from a stream written using WriteTo
{ "resource": "" }
c14346
train
// MarshalBinary encodes a BitSet into a binary form and returns the result.
{ "resource": "" }
c14347
train
// UnmarshalBinary decodes the binary form generated by MarshalBinary.
{ "resource": "" }
c14348
train
// MarshalJSON marshals a BitSet as a JSON structure
{ "resource": "" }
c14349
train
// UnmarshalJSON unmarshals a BitSet from JSON created using MarshalJSON
{ "resource": "" }
c14350
train
// Get returns new byte buffer with zero length. // // The byte buffer may be returned to the pool via Put after the use // in order to minimize GC overhead.
{ "resource": "" }
c14351
train
// Put releases byte buffer obtained via Get to the pool. // // The buffer mustn't be accessed after returning to the pool.
{ "resource": "" }
c14352
train
// ReadFrom implements io.ReaderFrom. // // The function appends all the data read from r to b.
{ "resource": "" }
c14353
train
// WriteTo implements io.WriterTo.
{ "resource": "" }
c14354
train
// Write implements io.Writer - it appends p to ByteBuffer.B
{ "resource": "" }
c14355
train
// WriteByte appends the byte c to the buffer. // // The purpose of this function is bytes.Buffer compatibility. // // The function always returns nil.
{ "resource": "" }
c14356
train
// WriteString appends s to ByteBuffer.B.
{ "resource": "" }
c14357
train
// Set sets ByteBuffer.B to p.
{ "resource": "" }
c14358
train
// SetString sets ByteBuffer.B to s.
{ "resource": "" }
c14359
train
// Print is fmt.Print which supports emoji
{ "resource": "" }
c14360
train
// Println is fmt.Println which supports emoji
{ "resource": "" }
c14361
train
// Fprint is fmt.Fprint which supports emoji
{ "resource": "" }
c14362
train
// Fprintf is fmt.Fprintf which supports emoji
{ "resource": "" }
c14363
train
// Sprintf is fmt.Sprintf which supports emoji
{ "resource": "" }
c14364
train
// Errorf is fmt.Errorf which supports emoji
{ "resource": "" }
c14365
train
// InitConfigLinuxResourcesCPU initializes CPU of Linux resources
{ "resource": "" }
c14366
train
// GetPidsData gets cgroup pids data
{ "resource": "" }
c14367
train
// Determine if a new syscall rule should be appended, overwrite an existing rule // or if no action should be taken at all
{ "resource": "" }
c14368
train
// GetPidsData gets cgroup pid ints data
{ "resource": "" }
c14369
train
// LastCap return last cap of system
{ "resource": "" }
c14370
train
// RemoveAllSeccompRules removes all seccomp syscall rules
{ "resource": "" }
c14371
train
// RemoveAllMatchingRules will remove any syscall rules that match the specified action
{ "resource": "" }
c14372
train
// FindCgroup gets cgroup root mountpoint
{ "resource": "" }
c14373
train
// GetSubsystemPath gets path of subsystem
{ "resource": "" }
c14374
train
// NewFromFile loads the template specified in a file into a // configuration Generator.
{ "resource": "" }
c14375
train
// NewFromTemplate loads the template from io.Reader into a // configuration Generator.
{ "resource": "" }
c14376
train
// createEnvCacheMap creates a hash map with the ENV variables given by the config
{ "resource": "" }
c14377
train
// Save writes the configuration into w.
{ "resource": "" }
c14378
train
// SaveToFile writes the configuration into a file.
{ "resource": "" }
c14379
train
// SetVersion sets g.Config.Version.
{ "resource": "" }
c14380
train
// SetRootPath sets g.Config.Root.Path.
{ "resource": "" }
c14381
train
// SetRootReadonly sets g.Config.Root.Readonly.
{ "resource": "" }
c14382
train
// SetHostname sets g.Config.Hostname.
{ "resource": "" }
c14383
train
// SetOCIVersion sets g.Config.Version.
{ "resource": "" }
c14384
train
// ClearAnnotations clears g.Config.Annotations.
{ "resource": "" }
c14385
train
// AddAnnotation adds an annotation into g.Config.Annotations.
{ "resource": "" }
c14386
train
// RemoveAnnotation remove an annotation from g.Config.Annotations.
{ "resource": "" }
c14387
train
// SetProcessConsoleSize sets g.Config.Process.ConsoleSize.
{ "resource": "" }
c14388
train
// SetProcessUID sets g.Config.Process.User.UID.
{ "resource": "" }
c14389
train
// SetProcessUsername sets g.Config.Process.User.Username.
{ "resource": "" }
c14390
train
// SetProcessGID sets g.Config.Process.User.GID.
{ "resource": "" }
c14391
train
// SetProcessCwd sets g.Config.Process.Cwd.
{ "resource": "" }
c14392
train
// SetProcessNoNewPrivileges sets g.Config.Process.NoNewPrivileges.
{ "resource": "" }
c14393
train
// SetProcessTerminal sets g.Config.Process.Terminal.
{ "resource": "" }
c14394
train
// SetProcessApparmorProfile sets g.Config.Process.ApparmorProfile.
{ "resource": "" }
c14395
train
// SetProcessArgs sets g.Config.Process.Args.
{ "resource": "" }
c14396
train
// ClearProcessEnv clears g.Config.Process.Env.
{ "resource": "" }
c14397
train
// AddProcessEnv adds name=value into g.Config.Process.Env, or replaces an // existing entry with the given name.
{ "resource": "" }
c14398
train
// AddMultipleProcessEnv adds multiple name=value into g.Config.Process.Env, or replaces // existing entries with the given name.
{ "resource": "" }
c14399
train
// addEnv looks through adds ENV to the Process and checks envMap for // any duplicates // This is called by both AddMultipleProcessEnv and AddProcessEnv
{ "resource": "" }