_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c179200 | test | // isBoolean returns true if the type can be parsed from a single string | {
"resource": ""
} | ||
c179201 | test | // NewFromMap returns a new tree containing the keys
// from an existing map | {
"resource": ""
} | ||
c179202 | test | // Insert is used to add a newentry or update
// an existing entry. Returns if updated. | {
"resource": ""
} | ||
c179203 | test | // Delete is used to delete a key, returning the previous
// value and if it was deleted | {
"resource": ""
} | ||
c179204 | test | // DeletePrefix is used to delete the subtree under a prefix
// Returns how many nodes were deleted
// Use this to delete large subtrees efficiently | {
"resource": ""
} | ||
c179205 | test | // Get is used to lookup a specific key, returning
// the value and if it was found | {
"resource": ""
} | ||
c179206 | test | // recursiveWalk is used to do a pre-order walk of a node
// recursively. Returns true if the walk should be aborted | {
"resource": ""
} | ||
c179207 | test | // ToMap is used to walk the tree and convert it into a map | {
"resource": ""
} | ||
c179208 | test | // get IP type and calculate IP number; calculates index too if exists | {
"resource": ""
} | ||
c179209 | test | // read unsigned 32-bit integer | {
"resource": ""
} | ||
c179210 | test | // read unsigned 128-bit integer | {
"resource": ""
} | ||
c179211 | test | // populate record with message | {
"resource": ""
} | ||
c179212 | test | // for debugging purposes | {
"resource": ""
} | ||
c179213 | test | // Main draws a left hand and ear of a gopher. Afterwards it returns
// the filename. This should only be used during testing. | {
"resource": ""
} | ||
c179214 | test | // SaveToPdfFile creates and saves a pdf document to a file | {
"resource": ""
} | ||
c179215 | test | // CubicCurveTo adds a cubic bezier curve to the current path | {
"resource": ""
} | ||
c179216 | test | // ArcTo adds an arc to the path | {
"resource": ""
} | ||
c179217 | test | // Returns new Path with flipped y axes | {
"resource": ""
} | ||
c179218 | test | // NewGlyphCache initializes a GlyphCache | {
"resource": ""
} | ||
c179219 | test | // Fetch fetches a glyph from the cache, calling renderGlyph first if it doesn't already exist | {
"resource": ""
} | ||
c179220 | test | // renderGlyph renders a glyph then caches and returns it | {
"resource": ""
} | ||
c179221 | test | // Copy Returns a copy of a Glyph | {
"resource": ""
} | ||
c179222 | test | // Fill copies a glyph from the cache, and fills it | {
"resource": ""
} | ||
c179223 | test | // Main draws vertically spaced lines and returns the filename.
// This should only be used during testing. | {
"resource": ""
} | ||
c179224 | test | // Draw vertically spaced lines | {
"resource": ""
} | ||
c179225 | test | // Paint satisfies the Painter interface by painting ss onto an image.RGBA. | {
"resource": ""
} | ||
c179226 | test | // NewRGBAPainter creates a new RGBAPainter for the given image. | {
"resource": ""
} | ||
c179227 | test | // GetStringBounds returns the approximate pixel bounds of the string s at x, y.
// The the left edge of the em square of the first character of s
// and the baseline intersect at 0, 0 in the returned coordinates.
// Therefore the top and left coordinates may well be negative. | {
"resource": ""
} | ||
c179228 | test | // ClearRect fills the specified rectangle with a default transparent color | {
"resource": ""
} | ||
c179229 | test | // Add text element to svg and returns its expected width | {
"resource": ""
} | ||
c179230 | test | // Creates new group from current context
// attach it to svg and return | {
"resource": ""
} | ||
c179231 | test | // creates new mask attached to svg | {
"resource": ""
} | ||
c179232 | test | // Embed svg font definition to svg tree itself
// Or update existing if already exists for curent font data | {
"resource": ""
} | ||
c179233 | test | // GetFontName gets the current FontData with fontSize as a string | {
"resource": ""
} | ||
c179234 | test | /**
* Create a new Graphic context from an image
*/ | {
"resource": ""
} | ||
c179235 | test | // NewFolderFontCache creates FolderFontCache | {
"resource": ""
} | ||
c179236 | test | // NewSyncFolderFontCache creates SyncFolderFontCache | {
"resource": ""
} | ||
c179237 | test | // Main draws a rotated face of the gopher. Afterwards it returns
// the filename. This should only be used during testing. | {
"resource": ""
} | ||
c179238 | test | // NewPdf creates a new pdf document with the draw2d fontfolder, adds
// a page and set fill color to white. | {
"resource": ""
} | ||
c179239 | test | // clearRect draws a white rectangle | {
"resource": ""
} | ||
c179240 | test | // NewGraphicContext creates a new pdf GraphicContext | {
"resource": ""
} | ||
c179241 | test | // Clear draws a white rectangle over the whole page | {
"resource": ""
} | ||
c179242 | test | // GetStringBounds returns the approximate pixel bounds of the string s at x, y.
// The left edge of the em square of the first character of s
// and the baseline intersect at 0, 0 in the returned coordinates.
// Therefore the top and left coordinates may well be negative. | {
"resource": ""
} | ||
c179243 | test | // CreateStringPath creates a path from the string s at x, y, and returns the string width. | {
"resource": ""
} | ||
c179244 | test | // FillStringAt draws a string at x, y | {
"resource": ""
} | ||
c179245 | test | // overwrite StackGraphicContext methods
// SetStrokeColor sets the stroke color | {
"resource": ""
} | ||
c179246 | test | // SetFillColor sets the fill and text color | {
"resource": ""
} | ||
c179247 | test | // SetLineDash sets the line dash pattern | {
"resource": ""
} | ||
c179248 | test | // SetLineWidth sets the line width | {
"resource": ""
} | ||
c179249 | test | // Main draws "Hello World" and returns the filename. This should only be
// used during testing. | {
"resource": ""
} | ||
c179250 | test | // Draw "Hello World" | {
"resource": ""
} | ||
c179251 | test | // SaveToPngFile create and save an image to a file using PNG format | {
"resource": ""
} | ||
c179252 | test | // LoadFromPngFile Open a png file | {
"resource": ""
} | ||
c179253 | test | // Resource returns a resource filename for testing. | {
"resource": ""
} | ||
c179254 | test | // Output returns the output filename for testing. | {
"resource": ""
} | ||
c179255 | test | // Main draws the tiger | {
"resource": ""
} | ||
c179256 | test | // Draw a tiger | {
"resource": ""
} | ||
c179257 | test | // Main draws geometry and returns the filename. This should only be
// used during testing. | {
"resource": ""
} | ||
c179258 | test | // Bubble draws a text balloon. | {
"resource": ""
} | ||
c179259 | test | // Dash draws a line with a dash pattern | {
"resource": ""
} | ||
c179260 | test | // CubicCurve draws a cubic curve with its control points. | {
"resource": ""
} | ||
c179261 | test | // FillStroke first fills and afterwards strokes a path. | {
"resource": ""
} | ||
c179262 | test | // FillStyle demonstrates the difference between even odd and non zero winding rule. | {
"resource": ""
} | ||
c179263 | test | // PathTransform scales a path differently in horizontal and vertical direction. | {
"resource": ""
} | ||
c179264 | test | // Star draws many lines from a center. | {
"resource": ""
} | ||
c179265 | test | // Draw all figures in a nice 4x3 grid. | {
"resource": ""
} | ||
c179266 | test | // ConvertPath converts a paths to the pdf api | {
"resource": ""
} | ||
c179267 | test | // Main draws the different line caps and joins.
// This should only be used during testing. | {
"resource": ""
} | ||
c179268 | test | // Draw a line with an angle with specified line cap and join | {
"resource": ""
} | ||
c179269 | test | // DrawContour draws the given closed contour at the given sub-pixel offset. | {
"resource": ""
} | ||
c179270 | test | // DrawImage draws an image into dest using an affine transformation matrix, an op and a filter | {
"resource": ""
} | ||
c179271 | test | // Main draws the image frame and returns the filename.
// This should only be used during testing. | {
"resource": ""
} | ||
c179272 | test | // Draw the image frame with certain parameters. | {
"resource": ""
} | ||
c179273 | test | // Draw the droid on a certain position. | {
"resource": ""
} | ||
c179274 | test | // ChecksumString32S returns the checksum of the input data, without creating a copy, with the specific seed. | {
"resource": ""
} | ||
c179275 | test | // ChecksumString64S returns the checksum of the input data, without creating a copy, with the specific seed. | {
"resource": ""
} | ||
c179276 | test | // NewS32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the specific seed. | {
"resource": ""
} | ||
c179277 | test | // NewS64 creates a new hash.Hash64 computing the 64bit xxHash checksum starting with the specific seed. | {
"resource": ""
} | ||
c179278 | test | // borrowed from cespare | {
"resource": ""
} | ||
c179279 | test | // Checksum32S returns the checksum of the input bytes with the specific seed. | {
"resource": ""
} | ||
c179280 | test | // Checksum64S returns the 64bit xxhash checksum for a single input | {
"resource": ""
} | ||
c179281 | test | // Returns the current stage in the "daemonization process", that's kept in
// an environment variable. The variable is instrumented with a digital
// signature, to avoid misbehavior if it was present in the user's
// environment. The original value is restored after the last stage, so that
// there's no final effect o... | {
"resource": ""
} | ||
c179282 | test | // New returns plain glg instance | {
"resource": ""
} | ||
c179283 | test | // Get returns singleton glg instance | {
"resource": ""
} | ||
c179284 | test | // SetMode sets glg logging mode | {
"resource": ""
} | ||
c179285 | test | // SetPrefix set Print logger prefix | {
"resource": ""
} | ||
c179286 | test | // GetCurrentMode returns current logging mode | {
"resource": ""
} | ||
c179287 | test | // InitWriter is initialize glg writer | {
"resource": ""
} | ||
c179288 | test | // SetWriter sets writer to glg std writers | {
"resource": ""
} | ||
c179289 | test | // SetLevelColor sets the color for each level | {
"resource": ""
} | ||
c179290 | test | // SetLevelWriter sets writer to glg std writer per logging level | {
"resource": ""
} | ||
c179291 | test | // AddStdLevel adds std log level and returns LEVEL | {
"resource": ""
} | ||
c179292 | test | // EnableColor enables color output | {
"resource": ""
} | ||
c179293 | test | // EnableLevelColor enables color output | {
"resource": ""
} | ||
c179294 | test | // DisableLevelColor disables color output | {
"resource": ""
} | ||
c179295 | test | // RawString returns raw log string exclude time & tags | {
"resource": ""
} | ||
c179296 | test | // TagStringToLevel converts level string to Glg.LEVEL | {
"resource": ""
} | ||
c179297 | test | // Println outputs fixed line Print log | {
"resource": ""
} | ||
c179298 | test | // Fatal outputs Failed log and exit program | {
"resource": ""
} | ||
c179299 | test | // Fatalf outputs formatted Failed log and exit program | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.