_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c20700 | train | // NewSource create a scanner to read from data source | {
"resource": ""
} | ||
c20701 | train | // NewResultExecWriter a result writer for exect task | {
"resource": ""
} | ||
c20702 | train | // NewResultWriter for a plan | {
"resource": ""
} | ||
c20703 | train | // NewResultRows a resultwriter | {
"resource": ""
} | ||
c20704 | train | // NewResultBuffer create a result buffer to write temp tasks into results. | {
"resource": ""
} | ||
c20705 | train | // Result of exec task | {
"resource": ""
} | ||
c20706 | train | // NewJsonHandler creates a json file handler for paging new-line
// delimited rows of json file | {
"resource": ""
} | ||
c20707 | train | // Numeric returns true if field type has numeric values. | {
"resource": ""
} | ||
c20708 | train | // Exec may return ErrSkip.
//
// Execer implementation. To be used for queries that do not return any rows
// such as Create Index, Insert, Upset, Delete etc | {
"resource": ""
} | ||
c20709 | train | // Queryer implementation
// Query may return ErrSkip
// | {
"resource": ""
} | ||
c20710 | train | // Close closes the statement.
//
// As of Go 1.1, a Stmt will not be closed if it's in use
// by any queries. | {
"resource": ""
} | ||
c20711 | train | // Exec executes a query that doesn't return rows, such
// as an INSERT, UPDATE, DELETE | {
"resource": ""
} | ||
c20712 | train | // Query executes a query that may return rows, such as a SELECT | {
"resource": ""
} | ||
c20713 | train | // Application sets up a common entrypoint for a Bash application that
// uses exported Go functions. It uses the DEBUG environment variable
// to set debug on the Context, and SHELL for the Bash binary if it
// includes the string "bash". You can pass a loader function to use
// for the sourced files, and a boolean fo... | {
"resource": ""
} | ||
c20714 | train | // ApplicationWithPath functions as Application does while also
// allowing the developer to modify the specified bashPath. | {
"resource": ""
} | ||
c20715 | train | // Creates and initializes a new Context that will use the given Bash executable.
// The debug mode will leave the produced temporary BASH_ENV file for inspection. | {
"resource": ""
} | ||
c20716 | train | // Copies the current environment variables into the Context | {
"resource": ""
} | ||
c20717 | train | // Source adds a shell script to the Context environment. The loader argument can be nil
// which means it will use ioutil.Readfile and load from disk, but it exists so you
// can use the Asset function produced by go-bindata when including script files in
// your Go binary. Calls to Source adds files to the environmen... | {
"resource": ""
} | ||
c20718 | train | // Export adds an environment variable to the Context | {
"resource": ""
} | ||
c20719 | train | // Registers a function with the Context that will produce a Bash function in the environment
// that calls back into your executable triggering the function defined as fn. | {
"resource": ""
} | ||
c20720 | train | // Expects your os.Args to parse and handle any callbacks to Go functions registered with
// ExportFunc. You normally call this at the beginning of your program. If a registered
// function is found and handled, HandleFuncs will exit with the appropriate exit code for you. | {
"resource": ""
} | ||
c20721 | train | // MustAsset is like Asset but panics when Asset would return an error.
// It simplifies safe initialization of global variables. | {
"resource": ""
} | ||
c20722 | train | // createTrustedApplication creates a SecTrustedApplicationRef as a CFTypeRef.
// The returned SecTrustedApplicationRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20723 | train | // Convert converts Access to CFTypeRef.
// The returned CFTypeRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20724 | train | // SetAccess sets Access on Item | {
"resource": ""
} | ||
c20725 | train | // DeleteItemRef deletes a keychain item reference. | {
"resource": ""
} | ||
c20726 | train | // NewKeychain creates a new keychain file with a password | {
"resource": ""
} | ||
c20727 | train | // Status returns the status of the keychain | {
"resource": ""
} | ||
c20728 | train | // The returned SecKeychainRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20729 | train | // UnlockAtPath unlocks keychain at path | {
"resource": ""
} | ||
c20730 | train | // LockAtPath locks keychain at path | {
"resource": ""
} | ||
c20731 | train | // Convert Keychain to CFTypeRef.
// The returned CFTypeRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20732 | train | // Convert the keychainArray to a CFTypeRef.
// The returned CFTypeRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20733 | train | // SetMatchSearchList sets match type on keychains | {
"resource": ""
} | ||
c20734 | train | // AddGenericPassword adds generic password | {
"resource": ""
} | ||
c20735 | train | // DeleteGenericPassword deletes generic password | {
"resource": ""
} | ||
c20736 | train | // PromptAndWait is NOT thread-safe. | {
"resource": ""
} | ||
c20737 | train | // CFDateToTime will convert the given CFDateRef to a time.Time. | {
"resource": ""
} | ||
c20738 | train | // CFDataToBytes converts CFData to bytes. | {
"resource": ""
} | ||
c20739 | train | // CFStringToString converts a CFStringRef to a string. | {
"resource": ""
} | ||
c20740 | train | // CFTypeDescription returns type string for CFTypeRef. | {
"resource": ""
} | ||
c20741 | train | // Convert converts a CFTypeRef to a go instance. | {
"resource": ""
} | ||
c20742 | train | // RandBytes returns random bytes of length | {
"resource": ""
} | ||
c20743 | train | // CFDictionaryToMap converts CFDictionaryRef to a map. | {
"resource": ""
} | ||
c20744 | train | // CFArrayToArray converts a CFArrayRef to an array of CFTypes. | {
"resource": ""
} | ||
c20745 | train | // SetSecClass sets the security class | {
"resource": ""
} | ||
c20746 | train | // SetString sets a string attibute for a string key | {
"resource": ""
} | ||
c20747 | train | // SetData sets the data attribute | {
"resource": ""
} | ||
c20748 | train | // SetSynchronizable sets the synchronizable attribute | {
"resource": ""
} | ||
c20749 | train | // SetAccessible sets the accessible attribute | {
"resource": ""
} | ||
c20750 | train | // SetMatchLimit sets the match limit | {
"resource": ""
} | ||
c20751 | train | // NewGenericPassword creates a generic password item with the default keychain. This is a convenience method. | {
"resource": ""
} | ||
c20752 | train | // AddItem adds a Item to a Keychain | {
"resource": ""
} | ||
c20753 | train | // UpdateItem updates the queryItem with the parameters from updateItem | {
"resource": ""
} | ||
c20754 | train | // DeleteGenericPasswordItem removes a generic password item. | {
"resource": ""
} | ||
c20755 | train | // DeleteItem removes a Item | {
"resource": ""
} | ||
c20756 | train | // GetGenericPasswordAccounts returns generic password accounts for service. This is a convenience method. | {
"resource": ""
} | ||
c20757 | train | // GetGenericPassword returns password data for service and account. This is a convenience method.
// If item is not found returns nil, nil. | {
"resource": ""
} | ||
c20758 | train | // createAccess creates a SecAccessRef as CFTypeRef.
// The returned SecAccessRef, if non-nil, must be released via CFRelease. | {
"resource": ""
} | ||
c20759 | train | // QueryItemRef returns query result as CFTypeRef. You must release it when you are done. | {
"resource": ""
} | ||
c20760 | train | // QueryItem returns a list of query results. | {
"resource": ""
} | ||
c20761 | train | // NewClientCodec returns a new rpc.ClientCodec using MessagePack-RPC on conn. | {
"resource": ""
} | ||
c20762 | train | // NewServerCodec returns a new rpc.ServerCodec using MessagePack-RPC on conn. | {
"resource": ""
} | ||
c20763 | train | // NewCodec returns a MsgpackCodec that can be used as either a Client or Server
// rpc Codec using a default handle. It also provides controls for enabling and
// disabling buffering for both reads and writes. | {
"resource": ""
} | ||
c20764 | train | // NewCodecFromHandle returns a MsgpackCodec that can be used as either a Client
// or Server rpc Codec using the passed handle. It also provides controls for
// enabling and disabling buffering for both reads and writes. | {
"resource": ""
} | ||
c20765 | train | // XGoogHeader is for use by the Google Cloud Libraries only.
//
// XGoogHeader formats key-value pairs.
// The resulting string is suitable for x-goog-api-client header. | {
"resource": ""
} | ||
c20766 | train | // invoke implements Invoke, taking an additional sleeper argument for testing. | {
"resource": ""
} | ||
c20767 | train | // Pause returns the next time.Duration that the caller should use to backoff. | {
"resource": ""
} | ||
c20768 | train | // WithGRPCOptions allows passing gRPC call options during client creation. | {
"resource": ""
} | ||
c20769 | train | // Run runs a callback handler with a Redis lock. It may return ErrLockNotObtained
// if a lock was not successfully acquired. | {
"resource": ""
} | ||
c20770 | train | // New creates a new distributed locker on a given key. | {
"resource": ""
} | ||
c20771 | train | // IsLocked returns true if a lock is still being held. | {
"resource": ""
} | ||
c20772 | train | // LockWithContext is like Lock but allows to pass an additional context which allows cancelling
// lock attempts prematurely. | {
"resource": ""
} | ||
c20773 | train | // Unlock releases the lock | {
"resource": ""
} | ||
c20774 | train | // Field returns an entry field value by name or empty string and error if it
// does not exist. | {
"resource": ""
} | ||
c20775 | train | // FloatField returns an entry field value as float64. Return nil if field does not exist
// and conversion error if cannot cast a type. | {
"resource": ""
} | ||
c20776 | train | // SetField sets the value of a field | {
"resource": ""
} | ||
c20777 | train | // SetFloatField is a Float field value setter. It accepts float64, but still store it as a
// string in the same fields map. The precision is 2, its enough for log
// parsing task | {
"resource": ""
} | ||
c20778 | train | // SetUintField is a Integer field value setter. It accepts float64, but still store it as a
// string in the same fields map. | {
"resource": ""
} | ||
c20779 | train | // Merge two entries by updating values for master entry with given. | {
"resource": ""
} | ||
c20780 | train | // FieldsHash returns a hash of all fields | {
"resource": ""
} | ||
c20781 | train | // Partial returns a partial field entry with the specified fields | {
"resource": ""
} | ||
c20782 | train | // NewReader creates a reader for a custom log format. | {
"resource": ""
} | ||
c20783 | train | // NewParserReader creates a reader with the given parser | {
"resource": ""
} | ||
c20784 | train | // NewNginxReader creates a reader for the nginx log format. Nginx config parser will be used
// to get particular format from the conf file. | {
"resource": ""
} | ||
c20785 | train | // Read next parsed Entry from the log file. Return EOF if there are no Entries to read. | {
"resource": ""
} | ||
c20786 | train | // NewParser returns a new Parser, use given log format to create its internal
// strings parsing regexp. | {
"resource": ""
} | ||
c20787 | train | // ParseString parses a log file line using internal format regexp. If a line
// does not match the given format an error will be returned. | {
"resource": ""
} | ||
c20788 | train | // NewNginxParser parses the nginx conf file to find log_format with the given
// name and returns a parser for this format. It returns an error if cannot find
// the given log format. | {
"resource": ""
} | ||
c20789 | train | // MapReduce iterates over given file and map each it's line into Entry record using
// parser and apply reducer to the Entries channel. Execution terminates
// when result will be readed from reducer's output channel, but the mapper
// works and fills input Entries channel until all lines will be read from
// the five... | {
"resource": ""
} | ||
c20790 | train | // Filter checks a field value to be in desired datetime range. | {
"resource": ""
} | ||
c20791 | train | // Reduce implements the Reducer interface. Go through input and apply Filter. | {
"resource": ""
} | ||
c20792 | train | // Reduce redirects input Entries channel directly to the output without any
// modifications. It is useful when you want jast to read file fast
// using asynchronous with mapper routines. | {
"resource": ""
} | ||
c20793 | train | // Reduce simply counts entries and write a sum to the output channel | {
"resource": ""
} | ||
c20794 | train | // Reduce summarizes given Entry fields and return a map with result for each field. | {
"resource": ""
} | ||
c20795 | train | // NewChain creates a new chain of Reducers | {
"resource": ""
} | ||
c20796 | train | // Reduce applies a chain of reducers to the input channel of entries and merge results | {
"resource": ""
} | ||
c20797 | train | // NewGroupBy creates a new GroupBy Reducer | {
"resource": ""
} | ||
c20798 | train | // Reduce applies related reducers and group data by Fields. | {
"resource": ""
} | ||
c20799 | train | // Sends the allocated memory through the callback if it exists | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.