_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5300 | train | // ListContainers implements container.Manager. | {
"resource": ""
} | ||
c5301 | train | // getContainerSpec generates a spec for creating a new container.
// It sources an image based on the input series, and transforms the input
// config objects into LXD configuration, including cloud init user data. | {
"resource": ""
} | ||
c5302 | train | // getImageSources returns a list of LXD remote image sources based on the
// configuration that was passed into the container manager. | {
"resource": ""
} | ||
c5303 | train | // networkDevicesFromConfig uses the input container network configuration to
// create a map of network device configuration in the LXD format.
// If there are no interfaces in the input config, but there is a bridge device
// name, return a single "eth0" device with the bridge as its parent.
// The last fall-back is ... | {
"resource": ""
} | ||
c5304 | train | // LXDProfileNames implements container.LXDProfileManager | {
"resource": ""
} | ||
c5305 | train | // Maps the concrete value of val to its dynamic type using reflect.TypeOf,
// It returns the TypeMapper registered in. | {
"resource": ""
} | ||
c5306 | train | // Maps the given reflect.Type to the given reflect.Value and returns
// the Typemapper the mapping has been registered in. | {
"resource": ""
} | ||
c5307 | train | // Levels sets which levels to sent to sls | {
"resource": ""
} | ||
c5308 | train | // newFileWriter create a FileLogWriter returning as LoggerInterface. | {
"resource": ""
} | ||
c5309 | train | // WriteMsg write logger message into file. | {
"resource": ""
} | ||
c5310 | train | // Log10 sets z to the common logarithm of x and returns z. | {
"resource": ""
} | ||
c5311 | train | // Log sets z to the natural logarithm of x and returns z. | {
"resource": ""
} | ||
c5312 | train | // Value implements driver.Valuer. | {
"resource": ""
} | ||
c5313 | train | // Length returns the number of digits in x. | {
"resource": ""
} | ||
c5314 | train | // BigLength returns the number of digits in x. | {
"resource": ""
} | ||
c5315 | train | // Abs returns the absolute value of x. | {
"resource": ""
} | ||
c5316 | train | // CmpBits compares x and y. | {
"resource": ""
} | ||
c5317 | train | // Words returns a little-endian slice of big.Words representing the uint64. | {
"resource": ""
} | ||
c5318 | train | // Add sets z to x + y and returns z.
//
// x is assumed to be unsigned. | {
"resource": ""
} | ||
c5319 | train | // Sub sets z to x - y and returns z.
//
// x is assumed to be unsigned. | {
"resource": ""
} | ||
c5320 | train | // Set sets z to the 128-bit integer represented by z1 and z0. | {
"resource": ""
} | ||
c5321 | train | // add sets z to x + y and returns z. | {
"resource": ""
} | ||
c5322 | train | // sub sets z to x - y and returns z. | {
"resource": ""
} | ||
c5323 | train | // addVW sets z to x + y and returns the carry. | {
"resource": ""
} | ||
c5324 | train | // E sets z to the mathematical constant e and returns z. | {
"resource": ""
} | ||
c5325 | train | // Pi sets z to the mathematical constant pi and returns z. | {
"resource": ""
} | ||
c5326 | train | // pi sets z to the mathematical constant pi and returns z. | {
"resource": ""
} | ||
c5327 | train | // PowOfTenBig returns true if x is a power of 10. | {
"resource": ""
} | ||
c5328 | train | // Floor sets z to the greatest integer value less than or equal to x and returns
// z. | {
"resource": ""
} | ||
c5329 | train | // Ceil sets z to the least integer value greater than or equal to x and returns
// z. | {
"resource": ""
} | ||
c5330 | train | // allZeros returns true if every character in b is '0'. | {
"resource": ""
} | ||
c5331 | train | // formatCompact formats the compact decimal, x, as an unsigned integer. | {
"resource": ""
} | ||
c5332 | train | // formatSci returns the scientific version of b. | {
"resource": ""
} | ||
c5333 | train | // formatPlain returns the plain string version of b. | {
"resource": ""
} | ||
c5334 | train | // alias returns z if z != x, otherwise a newly-allocated big.Int. | {
"resource": ""
} | ||
c5335 | train | // bigScalex sets z to the big.Int equivalient of scalex. | {
"resource": ""
} | ||
c5336 | train | // Sqrt sets z to the square root of x and returns z. | {
"resource": ""
} | ||
c5337 | train | // Err returns non-nil if there are any trapped exceptional conditions. | {
"resource": ""
} | ||
c5338 | train | // WithContext is shorthand to create a Big decimal from a Context. | {
"resource": ""
} | ||
c5339 | train | // WithPrecision is shorthand to create a Big decimal with a given precision. | {
"resource": ""
} | ||
c5340 | train | // Add sets z to x + y and returns z. | {
"resource": ""
} | ||
c5341 | train | // mul is the implementation of Mul. | {
"resource": ""
} | ||
c5342 | train | // Quantize sets z to the number equal in value and sign to z with the scale, n.
//
// In order to perform truncation, set the Context's RoundingMode to ToZero. | {
"resource": ""
} | ||
c5343 | train | // Reduce reduces a finite z to its most simplest form. | {
"resource": ""
} | ||
c5344 | train | // simpleReduce is the same as Reduce, but it does not round prior to reducing
// the decimal. | {
"resource": ""
} | ||
c5345 | train | // Rem sets z to the remainder x % y. See QuoRem for more details. | {
"resource": ""
} | ||
c5346 | train | // RoundToInt rounds z down to an integral value. | {
"resource": ""
} | ||
c5347 | train | // Set sets z to x and returns z. The result might be rounded, even if z == x. | {
"resource": ""
} | ||
c5348 | train | // SetString sets z to the value of s, returning z and a bool indicating success.
// See Big.SetString for valid formats. | {
"resource": ""
} | ||
c5349 | train | // Sub sets z to x - y and returns z. | {
"resource": ""
} | ||
c5350 | train | // CmpTotalAbs is like CmpTotal but instead compares the absolute values of x
// and y. | {
"resource": ""
} | ||
c5351 | train | // CopyAbs is like Abs, but no flags are changed and the result is not rounded. | {
"resource": ""
} | ||
c5352 | train | // CopyNeg is like Neg, but no flags are changed and the result is not rounded. | {
"resource": ""
} | ||
c5353 | train | // Max returns the greater of the provided values.
//
// The result is undefined if no values are are provided. | {
"resource": ""
} | ||
c5354 | train | // MaxAbs returns the greater of the absolute value of the provided values.
//
// The result is undefined if no values are provided. | {
"resource": ""
} | ||
c5355 | train | // Min returns the lesser of the provided values.
//
// The result is undefined if no values are are provided. | {
"resource": ""
} | ||
c5356 | train | // MinAbs returns the lesser of the absolute value of the provided values. The
// result is undefined if no values are provided. | {
"resource": ""
} | ||
c5357 | train | // maxfor sets z to 999...n with the provided sign. | {
"resource": ""
} | ||
c5358 | train | // NextMinus sets z to the smallest representable number that's smaller than x
// and returns z. If x is negative infinity the result will be negative infinity.
// If the result is zero its sign will be negative and its scale will be MinScale. | {
"resource": ""
} | ||
c5359 | train | // NextPlus sets z to the largest representable number that's larger than x and
// returns z. If x is positive infinity the result will be positive infinity. If
// the result is zero it will be positive and its scale will be MaxScale. | {
"resource": ""
} | ||
c5360 | train | // SetSignbit sets z to -z if sign is true, otherwise to +z. | {
"resource": ""
} | ||
c5361 | train | // Wallis sets z to the result of the continued fraction provided by the
// Generator and returns z. The fraction is evaluated in a top-down manner,
// using the recurrence algorithm discovered by John Wallis. For more information
// on continued fraction representations, see the Lentz function. | {
"resource": ""
} | ||
c5362 | train | // ParseCases returns a slice of test cases in .fptest form read from r. | {
"resource": ""
} | ||
c5363 | train | // ShortString returns the same as String, except long data values are capped at
// length digits. | {
"resource": ""
} | ||
c5364 | train | // IsNaN returns two booleans indicating whether the data is a NaN value and
// whether it's signaling or not. | {
"resource": ""
} | ||
c5365 | train | // IsInf returns a boolean indicating whether the data is an Infinity and an
// int indicating the signedness of the Infinity. | {
"resource": ""
} | ||
c5366 | train | // CheckNaNs checks if either x or y is NaN. If so, it follows the rules of NaN
// handling set forth in the GDA specification. The second argument, y, may be
// nil. It returns true if either condition is a NaN. | {
"resource": ""
} | ||
c5367 | train | // Abs sets z to the absolute value of x and returns z. | {
"resource": ""
} | ||
c5368 | train | // cmp is the implementation for both Cmp and CmpAbs. | {
"resource": ""
} | ||
c5369 | train | // Copy sets z to a copy of x and returns z. | {
"resource": ""
} | ||
c5370 | train | // copyAbs sets z to a copy of |x| and returns z. | {
"resource": ""
} | ||
c5371 | train | // CopySign sets z to x with the sign of y and returns z. It accepts NaN values. | {
"resource": ""
} | ||
c5372 | train | // Float64 returns x as a float64 and a bool indicating whether x can fit into
// a float64 without truncation, overflow, or underflow. Special values are
// considered exact; however, special values that occur because the magnitude of
// x is too large to be represented as a float64 are not. | {
"resource": ""
} | ||
c5373 | train | // Float sets z to x and returns z. z is allowed to be nil. The result is
// undefined if z is a NaN value. | {
"resource": ""
} | ||
c5374 | train | // Int64 returns x as an int64, truncating towards zero. The returned boolean
// indicates whether the conversion to an int64 was successful. | {
"resource": ""
} | ||
c5375 | train | // Uint64 returns x as a uint64, truncating towards zero. The returned boolean
// indicates whether the conversion to a uint64 was successful. | {
"resource": ""
} | ||
c5376 | train | // IsNormal returns true if x is normal. | {
"resource": ""
} | ||
c5377 | train | // IsSubnormal returns true if x is subnormal. | {
"resource": ""
} | ||
c5378 | train | // IsInt reports whether x is an integer. Infinity and NaN values are not
// integers. | {
"resource": ""
} | ||
c5379 | train | // Neg sets z to -x and returns z. If x is positive infinity, z will be set to
// negative infinity and visa versa. If x == 0, z will be set to zero as well.
// NaN will result in an error. | {
"resource": ""
} | ||
c5380 | train | // Precision returns the precision of x. That is, it returns the number of
// digits in the unscaled form of x. x == 0 has a precision of 1. The result is
// undefined if x is not finite. | {
"resource": ""
} | ||
c5381 | train | // Rat sets z to x and returns z. z is allowed to be nil. The result is undefined if
// x is an infinity or NaN value. | {
"resource": ""
} | ||
c5382 | train | // Scan implements fmt.Scanner. | {
"resource": ""
} | ||
c5383 | train | // SetBigMantScale sets z to the given value and scale. | {
"resource": ""
} | ||
c5384 | train | // SetFloat sets z to exactly x and returns z. | {
"resource": ""
} | ||
c5385 | train | // SetFloat64 sets z to exactly x. | {
"resource": ""
} | ||
c5386 | train | // SetInf sets z to -Inf if signbit is set or +Inf is signbit is not set, and
// returns z. | {
"resource": ""
} | ||
c5387 | train | // SetMantScale sets z to the given value and scale. | {
"resource": ""
} | ||
c5388 | train | // setNaN is an internal NaN-setting method that panics when the OperatingMode
// is Go. | {
"resource": ""
} | ||
c5389 | train | // SetNaN sets z to a signaling NaN if signal is true or quiet NaN otherwise and
// returns z. No conditions are raised. | {
"resource": ""
} | ||
c5390 | train | // SetRat sets z to to the possibly rounded value of x and return z. | {
"resource": ""
} | ||
c5391 | train | // SetScale sets z's scale to scale and returns z. | {
"resource": ""
} | ||
c5392 | train | // ord returns similar to Sign except -Inf is -2 and +Inf is +2. | {
"resource": ""
} | ||
c5393 | train | // Signbit reports whether x is negative, negative zero, negative infinity, or
// negative NaN. | {
"resource": ""
} | ||
c5394 | train | // String returns the string representation of x. It's equivalent to the %s verb
// discussed in the Format method's documentation. Special cases depend on the
// OperatingMode. | {
"resource": ""
} | ||
c5395 | train | // validate ensures x's internal state is correct. There's no need for it to
// have good performance since it's for debug == true only. | {
"resource": ""
} | ||
c5396 | train | // Digits generates a string of N random digits, padded with zeros if necessary. | {
"resource": ""
} | ||
c5397 | train | // BoundedDigits generates a string of N random digits, padded with zeros if necessary.
// The output is restricted to the given range. | {
"resource": ""
} | ||
c5398 | train | // Title returns a random title, gender decides the gender of the name | {
"resource": ""
} | ||
c5399 | train | // FirstName returns a random first name, gender decides the gender of the name | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.