- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for Dup (0.23 sec)
-
src/crypto/md5/gen.go
Shift4 []int Table1 []uint32 Table2 []uint32 Table3 []uint32 Table4 []uint32 } var funcs = template.FuncMap{ "dup": dup, "relabel": relabel, "rotate": rotate, "idx": idx, "seq": seq, } func dup(count int, x []int) []int { var out []int for i := 0; i < count; i++ { out = append(out, x...) } return out } func relabel(s string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiTokenizerFactory.java
nBestCost = settings.getAsInt(NBEST_COST, -1); nBestExamples = settings.get(NBEST_EXAMPLES); } private static String parse(String rule, Set<String> dup) { String[] values = CSVUtil.parse(rule); if (dup.add(values[0]) == false) { throw new IllegalArgumentException("Found duplicate term [" + values[0] + "] in user dictionary."); } return rule; }
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.7K bytes - Viewed (0) -
src/expvar/expvar.go
if _, ok := v.m.Load(key); !ok { if _, dup := v.m.LoadOrStore(key, av); !dup { v.addKey(key) return } } v.m.Store(key, av) } // Add adds delta to the *[Int] value stored under the given map key. func (v *Map) Add(key string, delta int64) { i, ok := v.m.Load(key) if !ok { var dup bool i, dup = v.m.LoadOrStore(key, new(Int)) if !dup { v.addKey(key) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 21:32:11 UTC 2024 - 9.1K bytes - Viewed (0) -
src/image/gif/writer.go
// translated such that its top-left corner is (0, 0), so that the single // frame completely fills the overall GIF's bounds. if pm.Rect.Min != (image.Point{}) { dup := *pm dup.Rect = dup.Rect.Sub(dup.Rect.Min) pm = &dup } return EncodeAll(w, &GIF{ Image: []*image.Paletted{pm}, Delay: []int{0}, Config: image.Config{ ColorModel: pm.Palette, Width: b.Dx(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:38:09 UTC 2024 - 11.9K bytes - Viewed (0) -
src/net/file_plan9.go
if n < 3 || comp[0][0:3] != "net" { return nil, syscall.EPLAN9 } name := comp[2] switch file := comp[n-1]; file { case "ctl", "clone": fd, err := syscall.Dup(int(f.Fd()), -1) if err != nil { return nil, os.NewSyscallError("dup", err) } defer close(fd) dir := netdir + "/" + comp[n-2] ctl = os.NewFile(uintptr(fd), dir+"/"+file) ctl.Seek(0, io.SeekStart) var buf [16]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/go/scriptcmds_test.go
t, ok := tbFromContext(state.Context()) if !ok { return nil, errors.New("script Context unexpectedly missing testing.TB key") } _, dup := scriptGoInvoked.LoadOrStore(t, true) if !dup { t.Cleanup(func() { scriptGoInvoked.Delete(t) }) } return cmd.Run(state, s...) }) } // scriptStale checks that the named build targets are stale.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 18:33:17 UTC 2024 - 3.3K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/sha3.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/work.txt
stderr '^go: -mod may only be set to readonly or vendor when in workspace mode' env GOWORK=off go list -mod=mod all env GOWORK= # Test that duplicates in the use list return an error cp go.work go.work.backup cp go.work.dup go.work ! go run example.com/b stderr 'go.work:6: path .* appears multiple times in workspace' cp go.work.backup go.work cp go.work.d go.work go work use # update go version go run example.com/d
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 2.6K bytes - Viewed (0) -
src/internal/poll/fd_plan9.go
func (fd *FD) RawWrite(f func(uintptr) bool) error { return errors.New("not implemented") } func DupCloseOnExec(fd int) (int, string, error) { nfd, err := syscall.Dup(int(fd), -1) if err != nil { return 0, "dup", err } // Plan9 has no syscall.CloseOnExec but // its forkAndExecInChild closes all fds // not related to the fork+exec. return nfd, "", nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.4K bytes - Viewed (0) -
src/net/net_fake.go
ffd.incomingEmpty <- true case syscall.SOCK_DGRAM: ffd.queue = newPacketQueue(defaultBuffer) default: return wrapErr(syscall.EINVAL) } fd.fakeNetFD = ffd if _, dup := sockets.LoadOrStore(ffd.fakeAddr, fd); dup { fd.fakeNetFD = nil return wrapErr(syscall.EADDRINUSE) } return nil } func fakeConnect(ctx context.Context, fd *netFD, laddr, raddr sockaddr) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 19:24:21 UTC 2024 - 26.4K bytes - Viewed (0)