_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c171700
validation
// UnmarshalJSON sets the Date from JSON
{ "resource": "" }
c171701
validation
// UnmarshalEasyJSON sets the Date from a easyjson.Lexer
{ "resource": "" }
c171702
validation
// SetBSON sets the Date from raw bson data
{ "resource": "" }
c171703
validation
// DeepCopy copies the receiver into a new Date.
{ "resource": "" }
c171704
validation
// DateTimeValue returns the value of the DateTime pointer passed in or // the default value if the pointer is nil.
{ "resource": "" }
c171705
validation
// NewSeededFormats creates a new formats registry
{ "resource": "" }
c171706
validation
// Add adds a new format, return true if this was a new item instead of a replacement
{ "resource": "" }
c171707
validation
// GetType gets the type for the specified name
{ "resource": "" }
c171708
validation
// DelByName removes the format by the specified name, returns true when an item was actually removed
{ "resource": "" }
c171709
validation
// DelByType removes the specified format, returns true when an item was actually removed
{ "resource": "" }
c171710
validation
// ContainsName returns true if this registry contains the specified name
{ "resource": "" }
c171711
validation
// ContainsFormat returns true if this registry contains the specified format
{ "resource": "" }
c171712
validation
// Parse a string into the appropriate format representation type. // // E.g. parsing a string a "date" will return a Date type.
{ "resource": "" }
c171713
validation
// Sequence returns a filter that is the concatenation of all filter arguments. // The output of a filter is fed as input to the next filter.
{ "resource": "" }
c171714
validation
// Contents returns a slice that contains all items that are // the output of filters.
{ "resource": "" }
c171715
validation
// Items emits items.
{ "resource": "" }
c171716
validation
// Repeat emits n copies of s.
{ "resource": "" }
c171717
validation
// Numbers emits the integers x..y
{ "resource": "" }
c171718
validation
// Uniq squashes adjacent identical items in arg.In into a single output.
{ "resource": "" }
c171719
validation
// UniqWithCount squashes adjacent identical items in arg.In into a single // output prefixed with the count of identical items followed by a space.
{ "resource": "" }
c171720
validation
// Reverse yields items in the reverse of the order it received them.
{ "resource": "" }
c171721
validation
// SampleWithSeed picks n pseudo-randomly chosen input items. It uses // seed as the argument for its random number generation and therefore // different executions of SampleWithSeed with the same arguments will // chose the same items.
{ "resource": "" }
c171722
validation
// First yields the first n items that it receives.
{ "resource": "" }
c171723
validation
// Last yields the last n items that it receives.
{ "resource": "" }
c171724
validation
// DropLast yields all items except for the last n items that it receives.
{ "resource": "" }
c171725
validation
// Text sets the next sort key to sort by column n in lexicographic // order. Column 0 means the entire string. Items that do not have // column n sort to the front.
{ "resource": "" }
c171726
validation
// TextDecreasing sets the next sort key to sort by column n in // reverse lexicographic order. Column 0 means the entire // string. Items that do not have column n sort to the end.
{ "resource": "" }
c171727
validation
// Num sets the next sort key to sort by column n in numeric // order. Column 0 means the entire string. Items that do not have // column n sort to the front. Items whose column n is not a number // sort to the end.
{ "resource": "" }
c171728
validation
// NumDecreasing sets the next sort key to sort by column n in reverse // numeric order. Column 0 means the entire string. Items that do not // have column n sort to the end. Items whose column n is not a // number sort to the front.
{ "resource": "" }
c171729
validation
// By adds a sort key to sort by the output of the specified less function.
{ "resource": "" }
c171730
validation
// flipLast reverses the comparison order for the last sort key.
{ "resource": "" }
c171731
validation
// RunFilter sorts items by the specified sorting keys. It implements // the Filter interface.
{ "resource": "" }
c171732
validation
// RunFilter yields contents of a filesystem tree. It implements the // Filter interface.
{ "resource": "" }
c171733
validation
// Grep emits every input x that matches the regular expression r.
{ "resource": "" }
c171734
validation
// GrepNot emits every input x that does not match the regular expression r.
{ "resource": "" }
c171735
validation
// LimitArgs adjusts x so that no more than n input items are passed to // a single command execution. If not called, an unspecified number // of input items may be handled via a single command execution.
{ "resource": "" }
c171736
validation
// Cat emits each line from each named file in order. If no arguments // are specified, Cat copies its input to its output.
{ "resource": "" }
c171737
validation
// ReadLines emits each line found in reader.
{ "resource": "" }
c171738
validation
// Return ```true``` if the line is a comment.
{ "resource": "" }
c171739
validation
// Return a new instance of ```HostsLine```.
{ "resource": "" }
c171740
validation
// Return ```true``` if hosts file is writable.
{ "resource": "" }
c171741
validation
// Flush any changes made to hosts file.
{ "resource": "" }
c171742
validation
// Add an entry to the hosts file.
{ "resource": "" }
c171743
validation
// Remove an entry from the hosts file.
{ "resource": "" }
c171744
validation
// Return a new instance of ``Hosts``.
{ "resource": "" }
c171745
validation
// NewOpenAPISchemaFor returns the OpenAPISchema object ready to validate objects of given GroupVersion
{ "resource": "" }
c171746
validation
// Validate is the primary entrypoint into this class
{ "resource": "" }
c171747
validation
// FlattenToV1 expands any List-type objects into their members, and // cooerces everything to v1.Unstructured. Panics if coercion // encounters an unexpected object type.
{ "resource": "" }
c171748
validation
// ParseVersion parses version.Info into a ServerVersion struct
{ "resource": "" }
c171749
validation
// FetchVersion fetches version information from discovery client, and parses
{ "resource": "" }
c171750
validation
// SetMetaDataAnnotation sets an annotation value
{ "resource": "" }
c171751
validation
// SetMetaDataLabel sets an annotation value
{ "resource": "" }
c171752
validation
// ResourceNameFor returns a lowercase plural form of a type, for // human messages. Returns lowercased kind if discovery lookup fails.
{ "resource": "" }
c171753
validation
// FqName returns "namespace.name"
{ "resource": "" }
c171754
validation
// String implements the Stringer interface
{ "resource": "" }
c171755
validation
// RegistryRepoName returns the "repository" as used in the registry URL
{ "resource": "" }
c171756
validation
// RegistryURL returns the deduced base URL of the registry for this image
{ "resource": "" }
c171757
validation
// ParseImageName parses a docker image into an ImageName struct.
{ "resource": "" }
c171758
validation
// NewRegistryResolver returns a resolver that looks up a docker // registry to resolve digests
{ "resource": "" }
c171759
validation
// NewLogFormatter creates a new log.Formatter customised for writer
{ "resource": "" }
c171760
validation
// NewMemcachedDiscoveryClient creates a new DiscoveryClient that // caches results in memory
{ "resource": "" }
c171761
validation
// ClientForResource returns the ResourceClient for a given object
{ "resource": "" }
c171762
validation
// Formats the supplied Diff as a unified-diff-like text with infinite context and optionally colorizes it.
{ "resource": "" }
c171763
validation
// See also feature request for golang reflect pkg at
{ "resource": "" }
c171764
validation
// Arbitrary numbers used to do a simple topological sort of resources.
{ "resource": "" }
c171765
validation
// New Lexer from the input string
{ "resource": "" }
c171766
validation
// NextToken from the source input
{ "resource": "" }
c171767
validation
// InnerText gets the raw string representation of the block's contents.
{ "resource": "" }
c171768
validation
// Parse the string and return an AST or an error
{ "resource": "" }
c171769
validation
// NewHelperMap containing all of the "default" helpers from "plush.Helpers".
{ "resource": "" }
c171770
validation
// AddMany helpers at the same time.
{ "resource": "" }
c171771
validation
// RunScript allows for "pure" plush scripts to be executed.
{ "resource": "" }
c171772
validation
// NewTemplate from the input string. Adds all of the // global helper functions from "Helpers", this function does not // cache the template.
{ "resource": "" }
c171773
validation
// Parse the template this can be called many times // as a successful result is cached and is used on subsequent // uses.
{ "resource": "" }
c171774
validation
// Render a string with the current context
{ "resource": "" }
c171775
validation
// BlockWith executes the block of template associated with // the helper, think the block inside of an "if" or "each" // statement, but with it's own context.
{ "resource": "" }
c171776
validation
// Export all the known values in the context. // Note this can't reach up into other implemenations // of context.Context.
{ "resource": "" }
c171777
validation
// NewContextWithContext returns a new plush.Context given another context
{ "resource": "" }
c171778
validation
// Aggregate merges similar goroutines into buckets. // // The buckets are ordered in library provided order of relevancy. You can // reorder at your chosing.
{ "resource": "" }
c171779
validation
// less does reverse sort.
{ "resource": "" }
c171780
validation
// Private stuff.
{ "resource": "" }
c171781
validation
// hasPathPrefix returns true if any of s is the prefix of p.
{ "resource": "" }
c171782
validation
// getFiles returns all the source files deduped and ordered.
{ "resource": "" }
c171783
validation
// splitPath splits a path into its components. // // The first item has its initial path separator kept.
{ "resource": "" }
c171784
validation
// isFile returns true if the path is a valid file.
{ "resource": "" }
c171785
validation
// rootedIn returns a root if the file split in parts is rooted in root.
{ "resource": "" }
c171786
validation
// findRoots sets member GOROOT and GOPATHs.
{ "resource": "" }
c171787
validation
// String is the fully qualified function name. // // Sadly Go is a bit confused when the package name doesn't match the directory // containing the source file and will use the directory name instead of the // real package name.
{ "resource": "" }
c171788
validation
// Name is the naked function name.
{ "resource": "" }
c171789
validation
// PkgName is the package name for this function reference.
{ "resource": "" }
c171790
validation
// IsExported returns true if the function is exported.
{ "resource": "" }
c171791
validation
// IsPtr returns true if we guess it's a pointer. It's only a guess, it can be // easily be confused by a bitmask.
{ "resource": "" }
c171792
validation
// equal returns true only if both arguments are exactly equal.
{ "resource": "" }
c171793
validation
// similar returns true if the two Args are equal or almost but not quite // equal.
{ "resource": "" }
c171794
validation
// merge merges two similar Args, zapping out differences.
{ "resource": "" }
c171795
validation
// equal returns true only if both calls are exactly equal.
{ "resource": "" }
c171796
validation
// similar returns true if the two Call are equal or almost but not quite // equal.
{ "resource": "" }
c171797
validation
// merge merges two similar Call, zapping out differences.
{ "resource": "" }
c171798
validation
// PkgSrc is one directory plus the file name of the source file.
{ "resource": "" }
c171799
validation
// updateLocations initializes LocalSrcPath and IsStdlib.
{ "resource": "" }