- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 209 for Tidx (0.03 sec)
-
cmd/bucket-replication-metrics.go
s.buf[s.idx] = next if s.filledBuf { s.prevSMA += (next - prev) / float64(s.window) s.CAvg += (next - s.CAvg) / float64(s.window) } else { s.CAvg = s.simpleMovingAvg() s.prevSMA = s.CAvg } if s.idx == s.window-1 { s.filledBuf = true } s.idx = (s.idx + 1) % s.window } func (s *SMA) simpleMovingAvg() float64 { if s.filledBuf { return s.prevSMA } var tot float64
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
clause/update_test.go
}, { []clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `products`", nil, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Jun 02 01:18:01 UTC 2020 - 722 bytes - Viewed (0) -
internal/s3select/csv/record.go
index, found := r.nameIndexMap[name] if !found { // Check if index. if strings.HasPrefix(name, "_") { idx, err := strconv.Atoi(strings.TrimPrefix(name, "_")) if err != nil { return nil, fmt.Errorf("column %v not found", name) } // The position count starts at 1. idx-- if idx >= len(r.csvRecord) || idx < 0 { // If field index > number of columns, return null return sql.FromNull(), nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 4.1K bytes - Viewed (0) -
internal/s3select/sql/jsonpath.go
default: return nil, false, errKeyLookup } case p[0].Index != nil: idx := *p[0].Index arr, ok := v.([]interface{}) if !ok { return nil, false, errIndexLookup } if idx >= len(arr) { return nil, false, nil } return jsonpathEval(p[1:], arr[idx]) case p[0].ObjectWildcard: switch kvs := v.(type) { case jstream.KVS: if len(p[1:]) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.5K bytes - Viewed (0) -
clause/on_conflict.go
builder.WriteString("ON CONSTRAINT ") builder.WriteString(onConflict.OnConstraint) builder.WriteByte(' ') } else { if len(onConflict.Columns) > 0 { builder.WriteByte('(') for idx, column := range onConflict.Columns { if idx > 0 { builder.WriteByte(',') } builder.WriteQuoted(column) } builder.WriteString(`) `) } if len(onConflict.TargetWhere.Exprs) > 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Oct 07 05:46:20 UTC 2022 - 1.3K bytes - Viewed (0) -
clause/expression_test.go
Result: "create table `users` (`id` int, `name` text)", }} for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy) stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
docs/debugging/inspect/export.go
b, e := header.MarshalJSON() if e != nil { return e } var buf bytes.Buffer if _, e := msgp.UnmarshalAsJSON(&buf, meta); e != nil { return e } versions[idx] = version{ Idx: idx, Header: b, Metadata: buf.Bytes(), } return nil }) if e != nil { return nil, e } enc := json.NewEncoder(buf) if e := enc.Encode(struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 08 15:58:02 UTC 2022 - 9.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java
if (name == null || enc == null) { return null; } name = name.replaceAll("/+$", ""); final int idx = name.lastIndexOf('/'); if (idx >= 0) { name = name.substring(idx + 1); } try { return URLDecoder.decode(name, enc); } catch (final UnsupportedEncodingException e) { return name;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 5.2K bytes - Viewed (0) -
clause/set_test.go
clause.Set([]clause.Assignment{{clause.Column{Name: "name"}, "jinzhu"}}), }, "UPDATE `users` SET `name`=?", []interface{}{"jinzhu"}, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars) }) } } func TestAssignments(t *testing.T) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/NamingTest.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jun 06 10:48:05 UTC 2020 - 7K bytes - Viewed (0)