_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c24800 | train | // NewBitVector creates and initializes a new bit vector with length
// elements, using data as its initial contents. | {
"resource": ""
} | ||
c24801 | train | // Returns the minimum number of bytes needed for storing the bit vector. | {
"resource": ""
} | ||
c24802 | train | // Panics if the given index is not within the bounds of the bit vector. | {
"resource": ""
} | ||
c24803 | train | // Append adds a bit to the end of a bit vector. | {
"resource": ""
} | ||
c24804 | train | // Element returns the bit in the ith index of the bit vector.
// Returned value is either 1 or 0. | {
"resource": ""
} | ||
c24805 | train | // Set changes the bit in the ith index of the bit vector to the value specified in
// bit. | {
"resource": ""
} | ||
c24806 | train | // Insert inserts bit into the supplied index of the bit vector. All
// bits in positions greater than or equal to index before the call will
// be shifted up by one. | {
"resource": ""
} | ||
c24807 | train | // Delete removes the bit in the supplied index of the bit vector. All
// bits in positions greater than or equal to index before the call will
// be shifted down by one. | {
"resource": ""
} | ||
c24808 | train | // Less reports whether the element with
// index i should sort before the element with index j in the UintSlice. | {
"resource": ""
} | ||
c24809 | train | // Swap swaps the positions of the elements indices i and j of the UintSlice. | {
"resource": ""
} | ||
c24810 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Uint32Slice. | {
"resource": ""
} | ||
c24811 | train | // Swap swaps the positions of the elements indices i and j of the Uint32Slice. | {
"resource": ""
} | ||
c24812 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Uint16Slice. | {
"resource": ""
} | ||
c24813 | train | // Swap swaps the positions of the elements indices i and j of the Uint16Slice. | {
"resource": ""
} | ||
c24814 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Uint8Slice. | {
"resource": ""
} | ||
c24815 | train | // Swap swaps the positions of the elements indices i and j of the Uint8Slice | {
"resource": ""
} | ||
c24816 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Int32Slice. | {
"resource": ""
} | ||
c24817 | train | // Swap swaps the positions of the elements indices i and j of the Int32Slice | {
"resource": ""
} | ||
c24818 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Int16Slice. | {
"resource": ""
} | ||
c24819 | train | // Swap swaps the positions of the elements indices i and j of the Int16Slice. | {
"resource": ""
} | ||
c24820 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Int8Slice. | {
"resource": ""
} | ||
c24821 | train | // Swap swaps the positions of the elements indices i and j of the Int8Slice. | {
"resource": ""
} | ||
c24822 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Float32Slice. | {
"resource": ""
} | ||
c24823 | train | // Swap swaps the positions of the elements indices i and j of the Float32Slice. | {
"resource": ""
} | ||
c24824 | train | // Less reports whether the element with
// index i should sort before the element with index j in the Float64Slice. | {
"resource": ""
} | ||
c24825 | train | // Swap swaps the positions of the elements indices i and j of the Float64Slice. | {
"resource": ""
} | ||
c24826 | train | // Swap swaps the positions of the elements indices i and j of the ByteArraySlice. | {
"resource": ""
} | ||
c24827 | train | // Less reports whether the element with
// index i should sort before the element with index j in the TimeSlice. | {
"resource": ""
} | ||
c24828 | train | // Swap swaps the positions of the elements indices i and j of the TimeSlice. | {
"resource": ""
} | ||
c24829 | train | // This returns true iff the data matches the provided checksum. | {
"resource": ""
} | ||
c24830 | train | // This creates a GetResponse from an error. | {
"resource": ""
} | ||
c24831 | train | // This creates a normal GetResponse. | {
"resource": ""
} | ||
c24832 | train | // This creates a MutateResponse from an error. | {
"resource": ""
} | ||
c24833 | train | // This creates a normal MutateResponse. | {
"resource": ""
} | ||
c24834 | train | // This creates a CountResponse from an error. | {
"resource": ""
} | ||
c24835 | train | // This creates a normal CountResponse. | {
"resource": ""
} | ||
c24836 | train | // This creates a VersionResponse from an error. | {
"resource": ""
} | ||
c24837 | train | // This creates a normal VersionResponse. | {
"resource": ""
} | ||
c24838 | train | // This creates a StatResponse from an error. | {
"resource": ""
} | ||
c24839 | train | // This creates a normal StatResponse. | {
"resource": ""
} | ||
c24840 | train | // Initializes the BaseShardManager. | {
"resource": ""
} | ||
c24841 | train | // This updates the shard manager to use new shard states. | {
"resource": ""
} | ||
c24842 | train | // This method assumes that m.rwMutex is locked. | {
"resource": ""
} | ||
c24843 | train | // this reads in a loop from socketRead putting batchSize bytes of work to copyTo until
// the socketRead is empty. Will always block until a full workSize of units have been copied | {
"resource": ""
} | ||
c24844 | train | // this simply copies data from the chan to the socketWrite writer | {
"resource": ""
} | ||
c24845 | train | // Convert Time to epoch seconds with subsecond precision. | {
"resource": ""
} | ||
c24846 | train | // Lock locks m for writing. It is a run-time error if rw is already locked for reading or writing. | {
"resource": ""
} | ||
c24847 | train | // Add adds delta, which may be negative, to the WaitGroup If the counter goes negative, Add panics. | {
"resource": ""
} | ||
c24848 | train | // Copy of time.runtimeNano. | {
"resource": ""
} | ||
c24849 | train | // Load returns the value stored in the map for a key, or nil if no
// value is present.
// The ok result indicates whether value was found in the map. | {
"resource": ""
} | ||
c24850 | train | // Store sets the value for a key. | {
"resource": ""
} | ||
c24851 | train | // LoadOrStore returns the existing value for the key if present.
// Otherwise, it stores and returns the given value.
// The loaded result is true if the value was loaded, false if stored. | {
"resource": ""
} | ||
c24852 | train | // MakeFunc wraps a function and gives access to the values of JavaScript's "this" and "arguments" keywords. | {
"resource": ""
} | ||
c24853 | train | // Keys returns the keys of the given JavaScript object. | {
"resource": ""
} | ||
c24854 | train | // MakeWrapper creates a JavaScript object which has wrappers for the exported methods of i. Use explicit getter and setter methods to expose struct fields to JavaScript. | {
"resource": ""
} | ||
c24855 | train | // NewArrayBuffer creates a JavaScript ArrayBuffer from a byte slice. | {
"resource": ""
} | ||
c24856 | train | // Copy of sync.runtime_Semacquire. | {
"resource": ""
} | ||
c24857 | train | // Copy of sync.runtime_Semrelease. | {
"resource": ""
} | ||
c24858 | train | // excludeExecutable excludes all executable implementation .go files.
// They have "executable_" prefix. | {
"resource": ""
} | ||
c24859 | train | // exclude returns files, excluding specified files. | {
"resource": ""
} | ||
c24860 | train | // ImportDir is like Import but processes the Go package found in the named
// directory. | {
"resource": ""
} | ||
c24861 | train | // hasGopathPrefix returns true and the length of the matched GOPATH workspace,
// iff file has a prefix that matches one of the GOPATH workspaces. | {
"resource": ""
} | ||
c24862 | train | // RlimitStack reports the current stack size limit in bytes. | {
"resource": ""
} | ||
c24863 | train | // convertArgs converts arguments into values for GopherJS arguments. | {
"resource": ""
} | ||
c24864 | train | // Copy of bytes.Equal. | {
"resource": ""
} | ||
c24865 | train | // Copy of bytes.IndexByte. | {
"resource": ""
} | ||
c24866 | train | // handleError handles err and returns an appropriate exit code.
// If browserErrors is non-nil, errors are written for presentation in browser. | {
"resource": ""
} | ||
c24867 | train | // printError prints err to Stderr with options. If browserErrors is non-nil, errors are also written for presentation in browser. | {
"resource": ""
} | ||
c24868 | train | // sprintError returns an annotated error string without trailing newline. | {
"resource": ""
} | ||
c24869 | train | // runNode runs script with args using Node.js in directory dir.
// If dir is empty string, current directory is used. | {
"resource": ""
} | ||
c24870 | train | // New creates a new image with the specified width and height, and fills it with the specified color. | {
"resource": ""
} | ||
c24871 | train | // Clone returns a copy of the given image. | {
"resource": ""
} | ||
c24872 | train | // Crop cuts out a rectangular region with the specified bounds
// from the image and returns the cropped image. | {
"resource": ""
} | ||
c24873 | train | // CropAnchor cuts out a rectangular region with the specified size
// from the image using the specified anchor point and returns the cropped image. | {
"resource": ""
} | ||
c24874 | train | // CropCenter cuts out a rectangular region with the specified size
// from the center of the image and returns the cropped image. | {
"resource": ""
} | ||
c24875 | train | // Paste pastes the img image to the background image at the specified position and returns the combined image. | {
"resource": ""
} | ||
c24876 | train | // PasteCenter pastes the img image to the center of the background image and returns the combined image. | {
"resource": ""
} | ||
c24877 | train | // OverlayCenter overlays the img image to the center of the background image and
// returns the combined image. Opacity parameter is the opacity of the img
// image layer, used to compose the images, it must be from 0.0 to 1.0. | {
"resource": ""
} | ||
c24878 | train | // Rotate rotates an image by the given angle counter-clockwise .
// The angle parameter is the rotation angle in degrees.
// The bgColor parameter specifies the color of the uncovered zone after the rotation. | {
"resource": ""
} | ||
c24879 | train | // parallel processes the data in separate goroutines. | {
"resource": ""
} | ||
c24880 | train | // clamp rounds and clamps float64 value to fit into uint8. | {
"resource": ""
} | ||
c24881 | train | // rgbToHSL converts a color from RGB to HSL. | {
"resource": ""
} | ||
c24882 | train | // hslToRGB converts a color from HSL to RGB. | {
"resource": ""
} | ||
c24883 | train | // resizeNearest is a fast nearest-neighbor resize, no filtering. | {
"resource": ""
} | ||
c24884 | train | // cropAndResize crops the image to the smallest possible size that has the required aspect ratio using
// the given anchor point, then scales it to the specified dimensions and returns the transformed image.
//
// This is generally faster than resizing first, but may result in inaccuracies when used on small source im... | {
"resource": ""
} | ||
c24885 | train | // resizeAndCrop resizes the image to the smallest possible size that will cover the specified dimensions,
// crops the resized image to the specified dimensions using the given anchor point and returns
// the transformed image. | {
"resource": ""
} | ||
c24886 | train | // Grayscale produces a grayscale version of the image. | {
"resource": ""
} | ||
c24887 | train | // Decode reads an image from r. | {
"resource": ""
} | ||
c24888 | train | // GIFQuantizer returns an EncodeOption that sets the quantizer that is used to produce
// a palette of the GIF-encoded image. | {
"resource": ""
} | ||
c24889 | train | // GIFDrawer returns an EncodeOption that sets the drawer that is used to convert
// the source image to the desired palette of the GIF-encoded image. | {
"resource": ""
} | ||
c24890 | train | // PNGCompressionLevel returns an EncodeOption that sets the compression level
// of the PNG-encoded image. Default is png.DefaultCompression. | {
"resource": ""
} | ||
c24891 | train | // fixOrientation applies a transform to img corresponding to the given orientation flag. | {
"resource": ""
} | ||
c24892 | train | // NewTLSTransport returns an initialized TLS-ecrypted Transport. | {
"resource": ""
} | ||
c24893 | train | // Open opens the transport, binding to the supplied address. | {
"resource": ""
} | ||
c24894 | train | // Dial opens a network connection. | {
"resource": ""
} | ||
c24895 | train | // Prepare prepares the tester for execution. | {
"resource": ""
} | ||
c24896 | train | // Once executes a single test request. | {
"resource": ""
} | ||
c24897 | train | // NumPeers returns the number of peers indicated by the config files
// within raftDir.
//
// This code makes assumptions about how the Raft module works. | {
"resource": ""
} | ||
c24898 | train | // JoinAllowed returns whether the config files within raftDir indicate
// that the node can join a cluster. | {
"resource": ""
} | ||
c24899 | train | // New returns a new Store. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.