_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c19500 | train | // IncSendChanRefCount increments SendChanRefCount.
// The count is needed when multiple senders are connected
// to the same receiver. When the network is terminated and
// senders need to close their output port, this counter
// can help to avoid closing the same channel multiple times. | {
"resource": ""
} | ||
c19501 | train | // DecSendChanRefCount decrements SendChanRefCount
// It returns true if the RefCount has reached 0 | {
"resource": ""
} | ||
c19502 | train | // getInPort returns the inport with given name as reflect.Value channel. | {
"resource": ""
} | ||
c19503 | train | // getOutPort returns the outport with given name as reflect.Value channel. | {
"resource": ""
} | ||
c19504 | train | // MapInPort adds an inport to the net and maps it to a contained proc's port. | {
"resource": ""
} | ||
c19505 | train | // AddIIP adds an Initial Information packet to the network | {
"resource": ""
} | ||
c19506 | train | // RemoveIIP detaches an IIP from specific process and port | {
"resource": ""
} | ||
c19507 | train | // sendIIPs sends Initial Information Packets upon network start | {
"resource": ""
} | ||
c19508 | train | // NewGraph returns a new initialized empty graph instance | {
"resource": ""
} | ||
c19509 | train | // AddGraph adds a new blank graph instance to a network. That instance can
// be modified then at run-time. | {
"resource": ""
} | ||
c19510 | train | // AddNew creates a new process instance using component factory and adds it to the network. | {
"resource": ""
} | ||
c19511 | train | // Remove deletes a process from the graph. First it stops the process if running.
// Then it disconnects it from other processes and removes the connections from
// the graph. Then it drops the process itself. | {
"resource": ""
} | ||
c19512 | train | // DefaultAccounting returns the Accounting with default settings | {
"resource": ""
} | ||
c19513 | train | // NewAccounting returns the Accounting with default settings | {
"resource": ""
} | ||
c19514 | train | // FormatMoneyInt only supports int type value. It is faster than FormatMoney,
// because it does not do any runtime type evaluation. | {
"resource": ""
} | ||
c19515 | train | // FormatMoneyDecimal only supports decimal.Decimal value. It is faster than FormatMoney,
// because it does not do any runtime type evaluation. | {
"resource": ""
} | ||
c19516 | train | // FormatNumberInt only supports int value. It is faster than FormatNumber,
// because it does not do any runtime type evaluation. | {
"resource": ""
} | ||
c19517 | train | // FormatNumberFloat64 only supports float64 value.
// It is faster than FormatNumber, because it does not do any runtime type evaluation. | {
"resource": ""
} | ||
c19518 | train | // FormatNumberDecimal only supports decimal.Decimal value.
// It is faster than FormatNumber, because it does not do any runtime type evaluation. | {
"resource": ""
} | ||
c19519 | train | // BaseCommand provides the basic flags vars for running a service | {
"resource": ""
} | ||
c19520 | train | // ServeGRPC creates and runs a blocking gRPC server | {
"resource": ""
} | ||
c19521 | train | // Shutdown gracefully shuts down the gRPC and metrics servers | {
"resource": ""
} | ||
c19522 | train | // SnakeCaseName returns a snake_cased_type name of the service | {
"resource": ""
} | ||
c19523 | train | // Address Gets a logical addr for a ServerConfig | {
"resource": ""
} | ||
c19524 | train | // NewService creates a new service with a given name | {
"resource": ""
} | ||
c19525 | train | // Name sets the name for the service | {
"resource": ""
} | ||
c19526 | train | // AddUnaryInterceptor adds a unary interceptor to the RPC server | {
"resource": ""
} | ||
c19527 | train | // AddStreamInterceptor adds a stream interceptor to the RPC server | {
"resource": ""
} | ||
c19528 | train | // URLForService returns a service URL via a registry or a simple DNS name
// if not available via the registry | {
"resource": ""
} | ||
c19529 | train | // ContextClientInterceptor passes around headers for tracing and linkerd | {
"resource": ""
} | ||
c19530 | train | // MustGetwd returns current working directory and fails otherwise | {
"resource": ""
} | ||
c19531 | train | // MergeEnv merges args into env, overwriting entries. | {
"resource": ""
} | ||
c19532 | train | // ExecuteConcurrent executes all actions in a tree concurrently.
// Each Action will wait until its dependant actions are complete. | {
"resource": ""
} | ||
c19533 | train | // RunCommand detects the project root, parses flags and runs the Command. | {
"resource": ""
} | ||
c19534 | train | // NewContext creates a gb.Context for the project root. | {
"resource": ""
} | ||
c19535 | train | // Untar extracts the contents of r to the destination dest.
// dest must not aleady exist. | {
"resource": ""
} | ||
c19536 | train | // ImportPaths returns the import paths to use for the given command line. | {
"resource": ""
} | ||
c19537 | train | // matchPackages returns all the packages that can be found under the srcdir directory.
// The pattern is a path including "...". | {
"resource": ""
} | ||
c19538 | train | // BuildPackage returns an Action representing the steps required to
// build this package. | {
"resource": ""
} | ||
c19539 | train | // BuildDependencies returns a slice of Actions representing the steps required
// to build all dependant packages of this package. | {
"resource": ""
} | ||
c19540 | train | // GOOS configures the Context to use goos as the target os. | {
"resource": ""
} | ||
c19541 | train | // GOARCH configures the Context to use goarch as the target arch. | {
"resource": ""
} | ||
c19542 | train | // Tags configured the context to use these additional build tags | {
"resource": ""
} | ||
c19543 | train | // Gcflags appends flags to the list passed to the compiler. | {
"resource": ""
} | ||
c19544 | train | // Ldflags appends flags to the list passed to the linker. | {
"resource": ""
} | ||
c19545 | train | // WithRace enables the race detector and adds the tag "race" to
// the Context build tags. | {
"resource": ""
} | ||
c19546 | train | // NewContext returns a new build context from this project.
// By default this context will use the gc toolchain with the
// host's GOOS and GOARCH values. | {
"resource": ""
} | ||
c19547 | train | // NewPackage creates a resolved Package for p. | {
"resource": ""
} | ||
c19548 | train | // Pkgdir returns the path to precompiled packages. | {
"resource": ""
} | ||
c19549 | train | // ResolvePackage resolves the package at path using the current context. | {
"resource": ""
} | ||
c19550 | train | // loadPackage recursively resolves path as a package. If successful loadPackage
// records the package in the Context's internal package cache. | {
"resource": ""
} | ||
c19551 | train | // Destroy removes the temporary working files of this context. | {
"resource": ""
} | ||
c19552 | train | // ctxString returns a string representation of the unique properties
// of the context. | {
"resource": ""
} | ||
c19553 | train | // processSignals setups signal handler. | {
"resource": ""
} | ||
c19554 | train | // Copypath copies the contents of src to dst, excluding any file or
// directory that starts with a period. | {
"resource": ""
} | ||
c19555 | train | // Copyfile copies file to destination creating destination directory if needed | {
"resource": ""
} | ||
c19556 | train | // rungcc1 invokes gcc to compile cfile into ofile | {
"resource": ""
} | ||
c19557 | train | // gccld links the o files from rungcc1 into a single _cgo_.o. | {
"resource": ""
} | ||
c19558 | train | // rungcc3 links all previous ofiles together with libgcc into a single _all.o. | {
"resource": ""
} | ||
c19559 | train | // libgcc returns the value of gcc -print-libgcc-file-name. | {
"resource": ""
} | ||
c19560 | train | // envList returns the value of the given environment variable broken
// into fields, using the default value when the variable is empty. | {
"resource": ""
} | ||
c19561 | train | // Return the flags to use when invoking the C or C++ compilers, or cgo. | {
"resource": ""
} | ||
c19562 | train | // call pkg-config and return the cflags and ldflags. | {
"resource": ""
} | ||
c19563 | train | // runcgo1 invokes the cgo tool to process pkg.CgoFiles. | {
"resource": ""
} | ||
c19564 | train | // runcgo2 invokes the cgo tool to create _cgo_import.go | {
"resource": ""
} | ||
c19565 | train | // cgoworkdir returns the cgo working directory for this package. | {
"resource": ""
} | ||
c19566 | train | // gccCmd returns a gcc command line prefix. | {
"resource": ""
} | ||
c19567 | train | // gxxCmd returns a g++ command line prefix. | {
"resource": ""
} | ||
c19568 | train | // ccompilerCmd returns a command line prefix for the given environment
// variable and using the default command when the variable is empty. | {
"resource": ""
} | ||
c19569 | train | // linkCmd returns the name of the binary to use for linking for the given
// environment variable and using the default command when the variable is
// empty. | {
"resource": ""
} | ||
c19570 | train | // stripext strips the extension from a filename.
// The extension is defined by filepath.Ext. | {
"resource": ""
} | ||
c19571 | train | // addDepfileDeps inserts into the Context's importer list
// a set of importers for entries in the depfile. | {
"resource": ""
} | ||
c19572 | train | // newPackage creates a resolved Package without setting pkg.Stale. | {
"resource": ""
} | ||
c19573 | train | // complete indicates if this is a pure Go package | {
"resource": ""
} | ||
c19574 | train | // Binfile returns the destination of the compiled target of this command. | {
"resource": ""
} | ||
c19575 | train | // objfile returns the name of the object file for this package | {
"resource": ""
} | ||
c19576 | train | // pkgpath returns the destination for object cached for this Package. | {
"resource": ""
} | ||
c19577 | train | // isStale returns true if the source pkg is considered to be stale with
// respect to its installed version. | {
"resource": ""
} | ||
c19578 | train | // difference returns the symetric difference of a and b. | {
"resource": ""
} | ||
c19579 | train | // ParseFile parses path into a tagged key value map.
// See Parse for the syntax of the file. | {
"resource": ""
} | ||
c19580 | train | // checkStackTracer checks for specific error returned by
// NewNotFoundResponder function or Debug Responder method. | {
"resource": ""
} | ||
c19581 | train | // responderForKey returns a responder for a given key. | {
"resource": ""
} | ||
c19582 | train | // responderForKeyUsingRegexp returns the first responder matching a given key using regexps. | {
"resource": ""
} | ||
c19583 | train | // RegisterNoResponder is used to register a responder that will be called if no other responder is
// found. The default is ConnectionFailure. | {
"resource": ""
} | ||
c19584 | train | // GetTotalCallCount returns the totalCallCount. | {
"resource": ""
} | ||
c19585 | train | // Times returns a Responder callable n times before returning an
// error. If the Responder is called more than n times and fn is
// passed and non-nil, it acts as the fn parameter of
// NewNotFoundResponder, allowing to dump the stack trace to localize
// the origin of the call. | {
"resource": ""
} | ||
c19586 | train | // Encode hashes an array of int to a string containing at least MinLength characters taken from the Alphabet.
// Use Decode using the same Alphabet and Salt to get back the array of int. | {
"resource": ""
} | ||
c19587 | train | // Decode unhashes the string passed to an array of int.
// It is symmetric with Encode if the Alphabet and Salt are the same ones which were used to hash.
// MinLength has no effect on Decode. | {
"resource": ""
} | ||
c19588 | train | // DecodeInt64 unhashes the string passed to an array of int64.
// It is symmetric with EncodeInt64 if the Alphabet and Salt are the same ones which were used to hash.
// MinLength has no effect on DecodeInt64. | {
"resource": ""
} | ||
c19589 | train | // UnmarshalJSON converts the string to a CharsetID | {
"resource": ""
} | ||
c19590 | train | // UnmarshalJSON converts the string to a LangID | {
"resource": ""
} | ||
c19591 | train | // Build fills the structs with data from the config file | {
"resource": ""
} | ||
c19592 | train | // GetVersionString returns a string representation of the version | {
"resource": ""
} | ||
c19593 | train | // WriteSyso creates a resource file from the version info and optionally an icon.
// arch must be an architecture string accepted by coff.Arch, like "386" or "amd64" | {
"resource": ""
} | ||
c19594 | train | // WriteHex creates a hex file for debugging version info | {
"resource": ""
} | ||
c19595 | train | // New returns gql handler state based on given schema | {
"resource": ""
} | ||
c19596 | train | // Handler is the simplest | {
"resource": ""
} | ||
c19597 | train | // Serve app on given listener | {
"resource": ""
} | ||
c19598 | train | // GetTypeByString returns a ServiceType associated with
// given typeName and nil, if type is known, otherwise
// instantiates a ServiceType with given typeName
// but returns ErrServiceTypeNotFound | {
"resource": ""
} | ||
c19599 | train | // SPAIndex serves an index file or handler on any unregistered route | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.