_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c7500 | train | // SetIPAddresses sets the IP addresses for the processing unit | {
"resource": ""
} | ||
c7501 | train | // ExposedServices returns the exposed services | {
"resource": ""
} | ||
c7502 | train | // DependentServices returns the external services. | {
"resource": ""
} | ||
c7503 | train | // ServicesListeningPort returns the port that should be used by the proxies. | {
"resource": ""
} | ||
c7504 | train | // UpdateDNSNetworks updates the set of FQDN names allowed by the policy | {
"resource": ""
} | ||
c7505 | train | // UpdateServiceCertificates updates the certificate and private key of the policy | {
"resource": ""
} | ||
c7506 | train | // ServiceCertificates returns the service certificate. | {
"resource": ""
} | ||
c7507 | train | // Scopes returns the scopes of the policy. | {
"resource": ""
} | ||
c7508 | train | // ToPublicPolicy converts the object to a marshallable object. | {
"resource": ""
} | ||
c7509 | train | // ToPrivatePolicy converts the object to a private object. | {
"resource": ""
} | ||
c7510 | train | // NewGenericSecretsDriver creates a new Kubernetes Secrets Driver. It
// always uses the incluster config to automatically derive all the
// necessary values. | {
"resource": ""
} | ||
c7511 | train | // Transform transforms the request of the SecretsDriver | {
"resource": ""
} | ||
c7512 | train | // ValueEqual return true if v1 and v2 is same value. If passed function, does
// extra checks otherwise just doing reflect.DeepEqual | {
"resource": ""
} | ||
c7513 | train | // Run executes statement in the specified environment. | {
"resource": ""
} | ||
c7514 | train | // RunContext executes statement in the specified environment with context. | {
"resource": ""
} | ||
c7515 | train | // newError makes VM error from error | {
"resource": ""
} | ||
c7516 | train | // newStringError makes VM error from string | {
"resource": ""
} | ||
c7517 | train | // equal returns true when lhsV and rhsV is same value. | {
"resource": ""
} | ||
c7518 | train | // appendSlice appends rhs to lhs
// function assumes lhsV and rhsV are slice or array | {
"resource": ""
} | ||
c7519 | train | // precedenceOfKinds returns the greater of two kinds
// string > float > int | {
"resource": ""
} | ||
c7520 | train | // toString converts all reflect.Value-s into string. | {
"resource": ""
} | ||
c7521 | train | // toBool converts all reflect.Value-s into bool. | {
"resource": ""
} | ||
c7522 | train | // toFloat64 converts all reflect.Value-s into float64. | {
"resource": ""
} | ||
c7523 | train | // toInt64 converts all reflect.Value-s into int64. | {
"resource": ""
} | ||
c7524 | train | // toInt converts all reflect.Value-s into int. | {
"resource": ""
} | ||
c7525 | train | // isHex returns true if the rune is a hex digits. | {
"resource": ""
} | ||
c7526 | train | // peek returns current rune in the code. | {
"resource": ""
} | ||
c7527 | train | // next moves offset to next. | {
"resource": ""
} | ||
c7528 | train | // pos returns the position of current. | {
"resource": ""
} | ||
c7529 | train | // scanIdentifier returns identifier beginning at current position. | {
"resource": ""
} | ||
c7530 | train | // scanNumber returns number beginning at current position. | {
"resource": ""
} | ||
c7531 | train | // scanRawString returns raw-string starting at current position. | {
"resource": ""
} | ||
c7532 | train | // scanString returns string starting at current position.
// This handles backslash escaping. | {
"resource": ""
} | ||
c7533 | train | // Lex scans the token and literals. | {
"resource": ""
} | ||
c7534 | train | // Error sets parse error. | {
"resource": ""
} | ||
c7535 | train | // Parse provides way to parse the code using Scanner. | {
"resource": ""
} | ||
c7536 | train | // ParseSrc provides way to parse the code from source. | {
"resource": ""
} | ||
c7537 | train | // DefineImport defines the vm import command that will import packages and package types when wanted | {
"resource": ""
} | ||
c7538 | train | // reflectValueSlicetoInterfaceSlice convert from a slice of reflect.Value to a interface slice
// returned in normal reflect.Value form | {
"resource": ""
} | ||
c7539 | train | // convertReflectValueToType trys to covert the reflect.Value to the reflect.Type
// if it can not, it returns the original rv and an error | {
"resource": ""
} | ||
c7540 | train | // convertSliceOrArray trys to covert the reflect.Value slice or array to the slice or array reflect.Type | {
"resource": ""
} | ||
c7541 | train | // convertMap trys to covert the reflect.Value map to the map reflect.Type | {
"resource": ""
} | ||
c7542 | train | // convertVMFunctionToType is for translating a runVMFunction into the correct type
// so it can be passed to a Go function argument with the correct static types
// it creates a translate function runVMConvertFunction | {
"resource": ""
} | ||
c7543 | train | // toSlice takes in a "generic" slice and converts and copies
// it's elements into the typed slice pointed at by ptr.
// Note that this is a costly operation. | {
"resource": ""
} | ||
c7544 | train | // funcExpr creates a function that reflect Call can use.
// When called, it will run runVMFunction, to run the function statements | {
"resource": ""
} | ||
c7545 | train | // anonCallExpr handles ast.AnonCallExpr which calls a function anonymously | {
"resource": ""
} | ||
c7546 | train | // checkIfRunVMFunction checking the number and types of the reflect.Type.
// If it matches the types for a runVMFunction this will return true, otherwise false | {
"resource": ""
} | ||
c7547 | train | // NewEnv creates new global scope. | {
"resource": ""
} | ||
c7548 | train | // NewEnv creates new child scope. | {
"resource": ""
} | ||
c7549 | train | // NewPackage creates a new env with a name | {
"resource": ""
} | ||
c7550 | train | // AddPackage creates a new env with a name that has methods and types in it. Created under the parent env | {
"resource": ""
} | ||
c7551 | train | // NewModule creates new module. | {
"resource": ""
} | ||
c7552 | train | // SetName sets a name of the scope. This means that the scope is module. | {
"resource": ""
} | ||
c7553 | train | // GetName returns module name. | {
"resource": ""
} | ||
c7554 | train | // Addr returns pointer value which specified symbol. It goes to upper scope until
// found or returns error. | {
"resource": ""
} | ||
c7555 | train | // Type returns type which specified symbol. It goes to upper scope until
// found or returns error. | {
"resource": ""
} | ||
c7556 | train | // Get returns value which specified symbol. It goes to upper scope until
// found or returns error. | {
"resource": ""
} | ||
c7557 | train | // Set modifies value which specified as symbol. It goes to upper scope until
// found or returns error. | {
"resource": ""
} | ||
c7558 | train | // DefineGlobal defines symbol in global scope. | {
"resource": ""
} | ||
c7559 | train | // defineGlobalValue defines symbol in global scope. | {
"resource": ""
} | ||
c7560 | train | // Define defines symbol in current scope. | {
"resource": ""
} | ||
c7561 | train | // defineValue defines symbol in current scope. | {
"resource": ""
} | ||
c7562 | train | // Delete deletes symbol in current scope. | {
"resource": ""
} | ||
c7563 | train | // DeleteGlobal deletes the first matching symbol found in current or parent scope. | {
"resource": ""
} | ||
c7564 | train | // DefineGlobalType defines type in global scope. | {
"resource": ""
} | ||
c7565 | train | // DefineGlobalReflectType defines type in global scope. | {
"resource": ""
} | ||
c7566 | train | // DefineType defines type in current scope. | {
"resource": ""
} | ||
c7567 | train | // DefineReflectType defines type in current scope. | {
"resource": ""
} | ||
c7568 | train | // String return the name of current scope. | {
"resource": ""
} | ||
c7569 | train | // Dump show symbol values in the scope. | {
"resource": ""
} | ||
c7570 | train | // Execute parses and runs source in current scope. | {
"resource": ""
} | ||
c7571 | train | // ExecuteContext parses and runs source in current scope. | {
"resource": ""
} | ||
c7572 | train | // RunContext runs statement in current scope. | {
"resource": ""
} | ||
c7573 | train | // Copy the state of the virtual machine environment | {
"resource": ""
} | ||
c7574 | train | // DeepCopy copy recursively the state of the virtual machine environment | {
"resource": ""
} | ||
c7575 | train | // AddAllowMethods is allowed to add custom methods | {
"resource": ""
} | ||
c7576 | train | // AddAllowHeaders is allowed to add custom headers | {
"resource": ""
} | ||
c7577 | train | // AddExposeHeaders is allowed to add custom expose headers | {
"resource": ""
} | ||
c7578 | train | // Validate is check configuration of user defined. | {
"resource": ""
} | ||
c7579 | train | // DefaultConfig returns a generic default configuration mapped to localhost. | {
"resource": ""
} | ||
c7580 | train | // Default returns the location middleware with default configuration. | {
"resource": ""
} | ||
c7581 | train | // New returns the location middleware with user-defined custom configuration. | {
"resource": ""
} | ||
c7582 | train | // MemProfileRate enables memory profiling at the preferred rate.
// It disables any previous profiling settings. | {
"resource": ""
} | ||
c7583 | train | // Stop stops the profile and flushes any unwritten data. | {
"resource": ""
} | ||
c7584 | train | // New returns a Limiter that will limit to the given RPS. | {
"resource": ""
} | ||
c7585 | train | // newCache returns a new cache. | {
"resource": ""
} | ||
c7586 | train | // registerConverter registers a converter function for a custom type. | {
"resource": ""
} | ||
c7587 | train | // get returns a cached structInfo, creating it if necessary. | {
"resource": ""
} | ||
c7588 | train | // create creates a structInfo with meta-data about a struct. | {
"resource": ""
} | ||
c7589 | train | // createField creates a fieldInfo for the given field. | {
"resource": ""
} | ||
c7590 | train | // converter returns the converter for a type. | {
"resource": ""
} | ||
c7591 | train | // fieldAlias parses a field tag to get a field alias. | {
"resource": ""
} | ||
c7592 | train | // parseTag splits a struct field's url tag into its name and comma-separated
// options. | {
"resource": ""
} | ||
c7593 | train | // Contains checks whether the tagOptions contains the specified option. | {
"resource": ""
} | ||
c7594 | train | // RegisterConverter registers a converter function for a custom type. | {
"resource": ""
} | ||
c7595 | train | // checkRequired checks whether required fields are empty
//
// check type t recursively if t has struct fields.
//
// src is the source map for decoding, we use it here to see if those required fields are included in src | {
"resource": ""
} | ||
c7596 | train | // findRequiredFields recursively searches the struct type t for required fields.
//
// canonicalPrefix and searchPrefix are used to resolve full paths in dotted notation
// for nested struct fields. canonicalPrefix is a complete path which never omits
// any embedded struct fields. searchPrefix is a user-friendly path... | {
"resource": ""
} | ||
c7597 | train | // isEmptyFields returns true if all of specified fields are empty. | {
"resource": ""
} | ||
c7598 | train | // isEmpty returns true if value is empty for specific type | {
"resource": ""
} | ||
c7599 | train | // NewEncoder returns a new Encoder with defaults. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.