_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17700
train
// preCmp compares the pre release items `a` and `b` following semver rules.
{ "resource": "" }
c17701
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Plugin_Handshake_Result.
{ "resource": "" }
c17702
train
// String returns a readable string representation of a ServiceGenerator_Generate_Args // struct.
{ "resource": "" }
c17703
train
// Equals returns true if all the fields of this ServiceGenerator_Generate_Args match the // provided ServiceGenerator_Generate_Args. // // This function performs a deep comparison.
{ "resource": "" }
c17704
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of ServiceGenerator_Generate_Args.
{ "resource": "" }
c17705
train
// Equals returns true if all the fields of this ServiceGenerator_Generate_Result match the // provided ServiceGenerator_Generate_Result. // // This function performs a deep comparison.
{ "resource": "" }
c17706
train
// FormatAnnotations formats a collection of annotations into a string.
{ "resource": "" }
c17707
train
// generateTags parses the annotation on the thrift field and creates the resulting go tag
{ "resource": "" }
c17708
train
// getIncludedScope retrieves an included scope from the given scope.
{ "resource": "" }
c17709
train
// AddRootService adds a service as a root service to this request.
{ "resource": "" }
c17710
train
// addModule adds the module for the given Thrift file to the request.
{ "resource": "" }
c17711
train
// NewClient builds a new multiplexing client. // // name is the name of the service for which requests are being sent through // this client.
{ "resource": "" }
c17712
train
// NewNamespace creates a new namespace.
{ "resource": "" }
c17713
train
// For the reader, we keep track of the read offset manually everywhere so // that we can implement lazy collections without extra allocations // fixedWidth returns the encoded size of a value of the given type. If the // type's width depends on the value, -1 is returned.
{ "resource": "" }
c17714
train
// copyN copies n bytes starting at offset off into the given Writer.
{ "resource": "" }
c17715
train
// ReadValue reads a value off the given type off the wire starting at the // given offset. // // Returns the Value, the new offset, and an error if there was a decode error.
{ "resource": "" }
c17716
train
// DeterminePackageName determines the name of the package at the given import // path.
{ "resource": "" }
c17717
train
// compileEnum compiles the given Enum AST into an EnumSpec.
{ "resource": "" }
c17718
train
// LookupItem retrieves the item with the given name from the enum. // // Returns true or false indicating whether the result is valid or not.
{ "resource": "" }
c17719
train
// compileBaseType compiles a base type reference in the AST to a primitive // TypeSpec.
{ "resource": "" }
c17720
train
// Put adds the given service to the multiplexer.
{ "resource": "" }
c17721
train
// Handle handles the given request, dispatching to one of the // registered services.
{ "resource": "" }
c17722
train
// Handle receives and handles a request for the Plugin service.
{ "resource": "" }
c17723
train
// swapQuotes replaces all single quotes with double quotes and all double // quotes with single quotes.
{ "resource": "" }
c17724
train
// EvaluateValue ensures that the given Value is fully evaluated. Lazy lists // are spinned and any errors raised by them are returned.
{ "resource": "" }
c17725
train
// Import the given import path and return the imported name for this package.
{ "resource": "" }
c17726
train
// FormatType formats the given api.Type into a Go type, importing packages // necessary to reference this type.
{ "resource": "" }
c17727
train
// Generates a Go file with the given name using the provided template and // template data.
{ "resource": "" }
c17728
train
// Get retrieves whatever value the given Value contains.
{ "resource": "" }
c17729
train
// NewValueBool constructs a new Value that contains a boolean.
{ "resource": "" }
c17730
train
// NewValueI8 constructs a new Value that contains a byte
{ "resource": "" }
c17731
train
// NewValueDouble constructs a new Value that contains a double.
{ "resource": "" }
c17732
train
// NewValueI16 constructs a new Value that contains a 16-bit integer.
{ "resource": "" }
c17733
train
// NewValueI32 constructs a new Value that contains a 32-bit integer.
{ "resource": "" }
c17734
train
// NewValueI64 constructs a new Value that contains a 64-bit integer.
{ "resource": "" }
c17735
train
// NewValueBinary constructs a new Value that contains a binary string.
{ "resource": "" }
c17736
train
// NewValueString constructs a new Value that contains a string.
{ "resource": "" }
c17737
train
// Write writes the given frame to the Writer.
{ "resource": "" }
c17738
train
// Close closes the given Writeer.
{ "resource": "" }
c17739
train
//RegisterWriter is used to register a io writer
{ "resource": "" }
c17740
train
//DefaultConfig is a function which retuns config object with default configuration
{ "resource": "" }
c17741
train
//Init is a function which initializes all config struct variables
{ "resource": "" }
c17742
train
//NewLoggerExt is a function which is used to write new logs
{ "resource": "" }
c17743
train
//Dial is a function
{ "resource": "" }
c17744
train
//Write is a function used to write
{ "resource": "" }
c17745
train
//unixSyslog is a function
{ "resource": "" }
c17746
train
//NewLoggerExt is a function which returns logger struct object
{ "resource": "" }
c17747
train
//Session is a function which returns logger details for that session
{ "resource": "" }
c17748
train
//WithData which adds data to the logger object
{ "resource": "" }
c17749
train
// SetLogLevel set logger level, current just support file output
{ "resource": "" }
c17750
train
// Find the sink need to log
{ "resource": "" }
c17751
train
//FormatLogLevel is a function which returns string format of log level
{ "resource": "" }
c17752
train
//MarshalJSON is a function which returns data in JSON format
{ "resource": "" }
c17753
train
//Log is a method which returns log level and log
{ "resource": "" }
c17754
train
// getTimeStamp get time stamp
{ "resource": "" }
c17755
train
// CopyFile copy file
{ "resource": "" }
c17756
train
// RunLogRotate initialize log rotate
{ "resource": "" }
c17757
train
// checkPassLagerDefinition check pass lager definition
{ "resource": "" }
c17758
train
// Close closes the shared library handle. All symbols // loaded from the library will become invalid.
{ "resource": "" }
c17759
train
// AddSource adds new Source to Staert, give it by reference
{ "resource": "" }
c17760
train
// LoadConfig check which command is called and parses config // It returns the the parsed config or an error if it fails
{ "resource": "" }
c17761
train
// parseConfigAllSources getConfig for a flaeg.Command run sources Parse func in the raw
{ "resource": "" }
c17762
train
// NewKvSource creates a new KvSource
{ "resource": "" }
c17763
train
// Parse uses valkeyrie and mapstructure to fill the structure
{ "resource": "" }
c17764
train
// StoreConfig stores the config into the KV Store
{ "resource": "" }
c17765
train
// ListRecursive lists all key value children under key // Replaced by ListValuedPairWithPrefix // Deprecated
{ "resource": "" }
c17766
train
// ListValuedPairWithPrefix lists all key value children under key
{ "resource": "" }
c17767
train
// NewServerCodecContext is NewServerCodec with given context provided // within parameters for compatible RPC methods.
{ "resource": "" }
c17768
train
// ServeConnContext is ServeConn with given context provided // within parameters for compatible RPC methods.
{ "resource": "" }
c17769
train
// Batch is an internal RPC method used to process batch requests.
{ "resource": "" }
c17770
train
// Notify try to invoke the named function. It return error only in case // it wasn't able to send request.
{ "resource": "" }
c17771
train
// NewClientWithCodec returns a new Client using the given rpc.ClientCodec.
{ "resource": "" }
c17772
train
// FromContext creates a new Goon object from the given appengine Context. // Useful with profiling packages like appstats.
{ "resource": "" }
c17773
train
// Key is the same as KeyError, except nil is returned on error or if the key // is incomplete.
{ "resource": "" }
c17774
train
// Kind returns src's datastore Kind or "" on error.
{ "resource": "" }
c17775
train
// KeyError returns the key of src based on its properties.
{ "resource": "" }
c17776
train
// Put saves the entity src into the datastore based on src's key k. If k // is an incomplete key, the returned key will be a unique key generated by // the datastore.
{ "resource": "" }
c17777
train
// FlushLocalCache clears the local memory cache.
{ "resource": "" }
c17778
train
// Get loads the entity based on dst's key into dst // If there is no such entity for the key, Get returns // datastore.ErrNoSuchEntity.
{ "resource": "" }
c17779
train
// Delete deletes the entity for the given key.
{ "resource": "" }
c17780
train
// DeleteMulti is a batch version of Delete.
{ "resource": "" }
c17781
train
// serializeStruct takes a struct and serializes it to portable bytes.
{ "resource": "" }
c17782
train
// serializeProperties takes a slice of properties and serializes it to portable bytes.
{ "resource": "" }
c17783
train
// deserializeStruct takes portable bytes b, generated by serializeStruct, and assigns correct values to struct dst.
{ "resource": "" }
c17784
train
// deserializeProperties takes a slice of properties and assigns correct values to struct dst.
{ "resource": "" }
c17785
train
// getStructKey returns the key of the struct based in its reflected or // specified kind and id. The second return parameter is true if src has a // string id.
{ "resource": "" }
c17786
train
// Count returns the number of results for the query.
{ "resource": "" }
c17787
train
// Run runs the query.
{ "resource": "" }
c17788
train
// our avatar image is square
{ "resource": "" }
c17789
train
// New creates an instance of InitialsAvatar
{ "resource": "" }
c17790
train
// NewWithConfig provides config for LRU Cache.
{ "resource": "" }
c17791
train
// DrawToBytes draws an image base on the name and size. // Only initials of name will be draw. // The size is the side length of the square image. Image is encoded to bytes. // // You can optionaly specify the encoding of the file. the supported values are png and jpeg for // png images and jpeg images respectively. i...
{ "resource": "" }
c17792
train
// Is it Chinese characters?
{ "resource": "" }
c17793
train
// parseRegistrant do parse registrant info
{ "resource": "" }
c17794
train
// IsNotFound returns domain is not found
{ "resource": "" }
c17795
train
// IsLimitExceeded returns is query limit
{ "resource": "" }
c17796
train
// ClearName returns cleared key name
{ "resource": "" }
c17797
train
// FindKeyName returns the mapper value by key
{ "resource": "" }
c17798
train
// RemoveDuplicateField remove the duplicate field
{ "resource": "" }
c17799
train
// FixDomainStatus returns fixed domain status
{ "resource": "" }