- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for duplicates (0.17 sec)
-
internal/hash/checksum.go
var res *Checksum for _, header := range trailing { var duplicates bool switch { case strings.EqualFold(header, ChecksumCRC32C.Key()): duplicates = res != nil res = NewChecksumWithType(ChecksumCRC32C|ChecksumTrailing, "") case strings.EqualFold(header, ChecksumCRC32.Key()): duplicates = res != nil res = NewChecksumWithType(ChecksumCRC32|ChecksumTrailing, "")
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 11.9K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
name string args args want []string }{ { name: "No duplicates", args: args{ports: []string{"1234", "2345"}}, want: []string{"1234", "2345"}, }, { name: "Sequential Duplicates", args: args{ports: []string{"1234", "1234", "2345", "2345"}}, want: []string{"1234", "2345"}, }, { name: "Mixed Duplicates", args: args{ports: []string{"1234", "2345", "1234", "2345"}},
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
cmd/postpolicyform_test.go
success: false, }, // no duplicates, shall be parsed properly. {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 8.9K bytes - Viewed (0) -
cmd/handler-utils.go
if v == nil { bugLogIf(ctx, errInvalidArgument) return errInvalidArgument } nv := make(textproto.MIMEHeader, len(v)) for k, kv := range v { // Canonicalize all headers, to remove any duplicates. nv[http.CanonicalHeaderKey(k)] = kv } // Save all supported headers. for _, supportedHeader := range supportedHeaders { value, ok := nv[http.CanonicalHeaderKey(supportedHeader)] if ok {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 15.5K bytes - Viewed (3) -
internal/logger/logger.go
if l <= 1 { return l } for i := 1; i < l; i++ { if !data.Less(p, i) { continue } p++ if p < i { data.Swap(p, i) } } return p + 1 } // Remove any duplicates and return unique entries. func uniqueEntries(paths []string) []string { sort.Strings(paths) n := uniq(sort.StringSlice(paths)) return paths[:n] } // Init sets the trimStrings to possible GOPATHs
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 12.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
hi := lo if p.peek() == '-' { p.next() hi = p.registerNumber(p.next().String()) } if hi < lo { lo, hi = hi, lo } // Check there are no duplicates in the register list. for i := 0; lo <= hi && i < maxReg; i++ { if bits&(1<<lo) != 0 { p.errorf("register R%d already in list", lo) } bits |= 1 << lo lo++ } default:
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 36.9K bytes - Viewed (0) -
src/archive/zip/reader.go
isDup bool } type fileInfoDirEntry interface { fs.FileInfo fs.DirEntry } func (f *fileListEntry) stat() (fileInfoDirEntry, error) { if f.isDup { return nil, errors.New(f.name + ": duplicate entries in zip file") } if !f.isDir { return headerFileInfo{&f.file.FileHeader}, nil } return f, nil } // Only used for directories.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 27.7K bytes - Viewed (0) -
cmd/endpoint-ellipses.go
uniqueArgs := set.NewStringSet() for _, sargs := range setArgs { for _, arg := range sargs { if uniqueArgs.Contains(arg) { return nil, config.ErrInvalidErasureEndpoints(nil).Msg(fmt.Sprintf("Input args (%s) has duplicate ellipses", args)) } uniqueArgs.Add(arg) } } return setArgs, nil } // Override set drive count for manual distribution. const (
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 15:54:03 GMT 2024 - 14.7K bytes - Viewed (0) -
cmd/bucket-replication.go
} if oi.DeleteMarker && (validReplStatus || replicate) { dsc.Set(newReplicateTargetDecision(tgtArn, replicate, sync)) continue } // can be the case that other cluster is down and duplicate `mc rm --vid` // is issued - this still needs to be replicated back to the other target if !oi.VersionPurgeStatus.Empty() { replicate = oi.VersionPurgeStatus == Pending || oi.VersionPurgeStatus == Failed
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 112.2K bytes - Viewed (1) -
cmd/metacache-entries.go
if best.name > last { select { case <-ctxDone: return ctx.Err() case out <- *best: last = best.name } } else if serverDebugLog { console.Debugln("mergeEntryChannels: discarding duplicate", best.name, "<=", last) } // Replace entry we just sent. if err := selectFrom(bestIdx); err != nil { return err } } } // merge will merge other into m.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 16:43:43 GMT 2024 - 23.2K bytes - Viewed (0)