- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for Labs (1.2 sec)
-
internal/s3select/sql/value.go
case opEq: return left == right case opIneq: return left != right } // This case does not happen return false } func floatCompare(op string, left, right float64) bool { diff := math.Abs(left - right) switch op { case opLt: return left < right case opLte: return left <= right case opGt: return left > right case opGte: return left >= right case opEq:
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 25 20:31:19 GMT 2022 - 20.2K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance.go
return true } pfi := float64(poolStats.InitFreeSpace+poolStats.Bytes) / float64(poolStats.InitCapacity) // Mark pool rebalance as done if within 5% from PercentFreeGoal. if diff := math.Abs(pfi - r.PercentFreeGoal); diff <= 0.05 { r.PoolStats[poolIdx].Info.Status = rebalCompleted r.PoolStats[poolIdx].Info.EndTime = time.Now() return true } return false }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 26 19:29:28 GMT 2024 - 27.2K bytes - Viewed (0) -
internal/s3select/json/record.go
// See golang.org/issue/6384 and golang.org/issue/14135. // Like fmt %g, but the exponent cutoffs are different // and exponents themselves are not padded to two digits. abs := math.Abs(f) fmt := byte('f') if abs != 0 { if abs < 1e-6 || abs >= 1e21 { fmt = 'e' } } dst = strconv.AppendFloat(dst, f, fmt, -1, 64) if fmt == 'e' { // clean up e-09 to e-9 n := len(dst)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 25 20:31:19 GMT 2022 - 5.2K bytes - Viewed (0) -
misc/cgo/gmp/gmp.go
// Neg sets z = -x and returns z. func (z *Int) Neg(x *Int) *Int { x.doinit() z.doinit() C.mpz_neg(&z.i[0], &x.i[0]) return z } // Abs sets z to the absolute value of x and returns z. func (z *Int) Abs(x *Int) *Int { x.doinit() z.doinit() C.mpz_abs(&z.i[0], &x.i[0]) return z } /* * functions without a clear receiver */ // CmpInt compares x and y. The result is //
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Viewed (0) -
src/cmd/cgo/internal/cgotest/overlaydir.go
func OverlayDir(dstRoot, srcRoot string) error { dstRoot = filepath.Clean(dstRoot) if err := os.MkdirAll(dstRoot, 0777); err != nil { return err } srcRoot, err := filepath.Abs(srcRoot) if err != nil { return err } return filepath.Walk(srcRoot, func(srcPath string, info os.FileInfo, err error) error { if err != nil || srcPath == srcRoot { return err }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon May 22 20:56:09 GMT 2023 - 1.7K bytes - Viewed (0) -
misc/ios/go_ios_exec.go
} return subdir, true, nil } for _, p := range filepath.SplitList(build.Default.GOPATH) { pabs, err := filepath.EvalSymlinks(p) if err != nil { return "", false, err } if !strings.HasPrefix(cwd, pabs) { continue } subdir, err := filepath.Rel(pabs, cwd) if err == nil { return subdir, false, nil } } return "", false, fmt.Errorf(
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 23.4K bytes - Viewed (0) -
schema/index_test.go
Name5 int64 `gorm:"index:,class:FULLTEXT,comment:hello \\, world,where:age > 10"` Name6 int64 `gorm:"index:profile,comment:hello \\, world,where:age > 10"` Age int64 `gorm:"index:profile,expression:ABS(age),option:WITH PARSER parser_name"` OID int64 `gorm:"index:idx_id;index:idx_oid,unique"` MemberNumber string `gorm:"index:idx_id,priority:1"` Name7 string `gorm:"index:type"`
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 8K bytes - Viewed (0) -
internal/s3select/sql/evaluate.go
for i := range aA { if !cmp(aA[i], bA[i]) { return false } } return true } // Try as numbers aF, aOK := a.ToFloat() bF, bOK := b.ToFloat() diff := math.Abs(aF - bF) return aOK && bOK && diff < floatCmpTolerance } var rhs Value var err error var eltVal *Value switch { case e.JPathExpr != nil: eltVal, err = e.JPathExpr.evalNode(r, tableAlias)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Dec 23 07:19:11 GMT 2023 - 12K bytes - Viewed (0) -
cmd/server-main.go
var globalLoggerOutput io.WriteCloser func initializeLogRotate(ctx *cli.Context) (io.WriteCloser, error) { lgDir := ctx.String("log-dir") if lgDir == "" { return os.Stderr, nil } lgDirAbs, err := filepath.Abs(lgDir) if err != nil { return nil, err } lgSize := ctx.Int("log-size") output, err := logger.NewDir(logger.Options{ Directory: lgDirAbs, MaximumFileSize: int64(lgSize),
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 15:54:03 GMT 2024 - 34.9K bytes - Viewed (1) -
cmd/data-scanner.go
// Parameters are the same as in the constructor. func (d *dynamicSleeper) Update(factor float64, maxWait time.Duration) error { d.mu.Lock() defer d.mu.Unlock() if math.Abs(d.factor-factor) < 1e-10 && d.maxSleep == maxWait { return nil } // Update values and cycle waiting. xioutil.SafeClose(d.cycle) d.factor = factor d.maxSleep = maxWait d.cycle = make(chan struct{})
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 11:18:58 GMT 2024 - 47.6K bytes - Viewed (0)