_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c177800
test
// XzDecompressor is a DecompressorFunc for the xz compression algorithm.
{ "resource": "" }
c177801
test
// DetectCompression returns a DecompressorFunc if the input is recognized as a compressed format, nil otherwise. // Because it consumes the start of input, other consumers must use the returned io.Reader instead to also read from the beginning.
{ "resource": "" }
c177802
test
// newImageDestination creates a new ImageDestination for the specified image reference.
{ "resource": "" }
c177803
test
// mountBlob tries to mount blob srcDigest from srcRepo to the current destination.
{ "resource": "" }
c177804
test
// bicTransportScope returns a BICTransportScope appropriate for ref.
{ "resource": "" }
c177805
test
// newBICLocationReference returns a BICLocationReference appropriate for ref.
{ "resource": "" }
c177806
test
// parseBICLocationReference returns a repository for encoded lr.
{ "resource": "" }
c177807
test
// NewSourceFromStream returns a tarfile.Source for the specified inputStream, // which can be either compressed or uncompressed. The caller can close the // inputStream immediately after NewSourceFromFile returns.
{ "resource": "" }
c177808
test
// readTarComponent returns full contents of componentPath.
{ "resource": "" }
c177809
test
// ensureCachedDataIsPresent loads data necessary for any of the public accessors.
{ "resource": "" }
c177810
test
// loadTarManifest loads and decodes the manifest.json.
{ "resource": "" }
c177811
test
// Close removes resources associated with an initialized Source, if any.
{ "resource": "" }
c177812
test
// newImageDestination returns a types.ImageDestination for the specified image reference.
{ "resource": "" }
c177813
test
// imageLoadGoroutine accepts tar stream on reader, sends it to c, and reports error or success by writing to statusChannel
{ "resource": "" }
c177814
test
// NewReference returns an OCI reference for a file and a image.
{ "resource": "" }
c177815
test
// createOCIRef creates the oci reference of the image
{ "resource": "" }
c177816
test
// creates the temporary directory and copies the tarred content to it
{ "resource": "" }
c177817
test
// destructivelyPrioritizeReplacementCandidatesWithMax is destructivelyPrioritizeReplacementCandidates with a parameter for the // number of entries to limit, only to make testing simpler.
{ "resource": "" }
c177818
test
// newImageDestination returns an ImageDestination for writing to an existing ostree.
{ "resource": "" }
c177819
test
// resolveExistingPathToFullyExplicit is the same as ResolvePathToFullyExplicit, // but without the special case for missing final component.
{ "resource": "" }
c177820
test
// newImageDestination returns an ImageDestination for writing to a directory.
{ "resource": "" }
c177821
test
// returns true if directory is empty
{ "resource": "" }
c177822
test
// deletes the contents of a directory
{ "resource": "" }
c177823
test
// GetRepositoryTags list all tags available in the repository. The tag // provided inside the ImageReference will be ignored.
{ "resource": "" }
c177824
test
// DefaultCache returns the default BlobInfoCache implementation appropriate for sys.
{ "resource": "" }
c177825
test
// uncompressedDigestLocked implements types.BlobInfoCache.UncompressedDigest, but must be called only with mem.mutex held.
{ "resource": "" }
c177826
test
// Close removes resources associated with an initialized ImageDestination, if any // Close deletes the temp directory of the oci-archive image
{ "resource": "" }
c177827
test
// PutManifest writes manifest to the destination
{ "resource": "" }
c177828
test
// Commit marks the process of storing the image as successful and asks for the image to be persisted // after the directory is made, it is tarred up into a file and the directory is deleted
{ "resource": "" }
c177829
test
// tar converts the directory at src and saves it to dst
{ "resource": "" }
c177830
test
// ParseStoreReference takes a name or an ID, tries to figure out which it is // relative to the given store, and returns it in a reference object.
{ "resource": "" }
c177831
test
// chooseDigestFromManifestList parses blob as a schema2 manifest list, // and returns the digest of the image appropriate for the current environment.
{ "resource": "" }
c177832
test
// ChooseManifestInstanceFromManifestList returns a digest of a manifest appropriate // for the current system from the manifest available from src.
{ "resource": "" }
c177833
test
// manifestSchema1FromComponents builds a new manifestSchema1 from the supplied data.
{ "resource": "" }
c177834
test
// manifestDigest returns a digest of the manifest, from instanceDigest if non-nil; or from the supplied reference, // or finally, from a fetched manifest.
{ "resource": "" }
c177835
test
// deleteImage deletes the named image from the registry, if supported.
{ "resource": "" }
c177836
test
// Schema1FromComponents creates an Schema1 manifest instance from the supplied data.
{ "resource": "" }
c177837
test
// initialize initializes ExtractedV1Compatibility and verifies invariants, so that the rest of this code can assume a minimally healthy manifest.
{ "resource": "" }
c177838
test
// ToSchema2Config builds a schema2-style configuration blob using the supplied diffIDs.
{ "resource": "" }
c177839
test
// Digest returns the a digest of a docker manifest, with any necessary implied transformations like stripping v1s1 signatures.
{ "resource": "" }
c177840
test
// MatchesDigest returns true iff the manifest matches expectedDigest. // Error may be set if this returns false. // Note that this is not doing ConstantTimeCompare; by the time we get here, the cryptographic signature must already have been verified, // or we are not using a cryptographic channel and the attacker can ...
{ "resource": "" }
c177841
test
// NormalizedMIMEType returns the effective MIME type of a manifest MIME type returned by a server, // centralizing various workarounds.
{ "resource": "" }
c177842
test
// FromBlob returns a Manifest instance for the specified manifest blob and the corresponding MIME type
{ "resource": "" }
c177843
test
// There is no directory.ParseReference because it is rather pointless. // Callers who need a transport-independent interface will go through // dirTransport.ParseReference; callers who intentionally deal with directories // can use directory.NewReference. // NewReference returns a directory reference for a specified p...
{ "resource": "" }
c177844
test
// layerPath returns a path for a layer tarball within a directory using our conventions.
{ "resource": "" }
c177845
test
// signaturePath returns a path for a signature within a directory using our conventions.
{ "resource": "" }
c177846
test
// New creates a new Pool of workers that starts with n workers. You must // provide a constructor function that creates new Worker types and when you // change the size of the pool the constructor will be called to create each new // Worker.
{ "resource": "" }
c177847
test
// NewFunc creates a new Pool of workers where each worker will process using // the provided func.
{ "resource": "" }
c177848
test
// ProcessTimed will use the Pool to process a payload and synchronously return // the result. If the timeout occurs before the job has finished the worker will // be interrupted and ErrJobTimedOut will be returned. ProcessTimed can be // called safely by any goroutines.
{ "resource": "" }
c177849
test
// SetSize changes the total number of workers in the Pool. This can be called // by any goroutine at any time unless the Pool has been stopped, in which case // a panic will occur.
{ "resource": "" }
c177850
test
// GetSize returns the current size of the pool.
{ "resource": "" }
c177851
test
// Returns the Top-Left Point of the rectangle
{ "resource": "" }
c177852
test
// Returns the Bottom-Right Point of the rectangle
{ "resource": "" }
c177853
test
// Returns a CvBox2D
{ "resource": "" }
c177854
test
// Finds box vertices
{ "resource": "" }
c177855
test
// Prototype for CV_FOURCC so that swig can generate wrapper without mixing up the define
{ "resource": "" }
c177856
test
// Merge creates one multichannel array out of several single-channel ones.
{ "resource": "" }
c177857
test
// Split divides a multi-channel array into several single-channel arrays.
{ "resource": "" }
c177858
test
// AddWeighted calculates the weighted sum of two images.
{ "resource": "" }
c177859
test
// Calculates the per-element bit-wise conjunction of two arrays.
{ "resource": "" }
c177860
test
// Calculates the per-element bit-wise conjunction of two arrays with a mask.
{ "resource": "" }
c177861
test
// Calculates the per-element bit-wise conjunction of an array and a scalar.
{ "resource": "" }
c177862
test
// Calculates the per-element bit-wise conjunction of an array and a scalar with a mask.
{ "resource": "" }
c177863
test
// Calculates the per-element bit-wise disjunction of two arrays.
{ "resource": "" }
c177864
test
// Calculates the per-element bit-wise disjunction of two arrays with a mask.
{ "resource": "" }
c177865
test
// Calculates the per-element bit-wise disjunction of an array and a scalar.
{ "resource": "" }
c177866
test
// Calculates the per-element bit-wise disjunction of an array and a scalar with a mask.
{ "resource": "" }
c177867
test
// Calculates the per-element sum of two arrays with a mask. // dst = src1 + src2
{ "resource": "" }
c177868
test
// Calculates the per-element sum of an array and a scalar. // dst = src + value
{ "resource": "" }
c177869
test
// Calculates the per-element sum of an array and a scalar with a mask. // dst = src + value
{ "resource": "" }
c177870
test
// Calculates the per-element difference between two arrays. // dst = src1 - src2
{ "resource": "" }
c177871
test
// Calculates the per-element difference between two arrays with a mask. // dst = src1 - src2
{ "resource": "" }
c177872
test
// Calculates the per-element difference between an array and a scalar. // dst = src - value
{ "resource": "" }
c177873
test
// Calculates the per-element difference between an array and a scalar with a mask. // dst = src - value
{ "resource": "" }
c177874
test
// Calculates the per-element difference between a scalar and an array. // dst = value - src
{ "resource": "" }
c177875
test
// Calculates the per-element difference between a scalar and an array with a mask. // dst = value - src
{ "resource": "" }
c177876
test
// Calculates the per-element absolute difference between two arrays.
{ "resource": "" }
c177877
test
// Calculates the per-element absolute difference between an array and a scalar.
{ "resource": "" }
c177878
test
// MeanStdDevWithMask calculates mean and standard deviation of pixel values with mask
{ "resource": "" }
c177879
test
// Creates a new sequence.
{ "resource": "" }
c177880
test
// Adds an element to the sequence end. // Returns a pointer to the element added.
{ "resource": "" }
c177881
test
// Removes element from the sequence end. // Copies the element into the paramter element.
{ "resource": "" }
c177882
test
// Adds an element to the sequence beginning. // Returns a pointer to the element added.
{ "resource": "" }
c177883
test
// Removes element from the sequence beginning. // Copies the element into the paramter element.
{ "resource": "" }
c177884
test
// Gets a pointer to the element at the index
{ "resource": "" }
c177885
test
// Removes an element from the middle of a sequence.
{ "resource": "" }
c177886
test
// Delay set delay between retry // default is 100ms
{ "resource": "" }
c177887
test
// BackOffDelay is a DelayType which increases delay between consecutive retries
{ "resource": "" }
c177888
test
// Error method return string representation of Error // It is an implementation of error interface
{ "resource": "" }
c177889
test
// Arguments adds the arguments to the args.
{ "resource": "" }
c177890
test
// BodyString sets the request body to the given string.
{ "resource": "" }
c177891
test
// BodyBytes sets the request body to the given buffer.
{ "resource": "" }
c177892
test
// Body sets the request body to the given reader.
{ "resource": "" }
c177893
test
// Option sets the given option.
{ "resource": "" }
c177894
test
// Header sets the given header.
{ "resource": "" }
c177895
test
// Send sends the request and return the response.
{ "resource": "" }
c177896
test
// Exec sends the request a request and decodes the response.
{ "resource": "" }
c177897
test
// Next waits for the next record and returns that.
{ "resource": "" }
c177898
test
// Cancel cancels the given subscription.
{ "resource": "" }
c177899
test
// FileList entries at the given path using the UnixFS commands
{ "resource": "" }