- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for DUP (0.57 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/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/cmd/go/scriptconds_test.go
// number of net tests that can run concurrently so that the overall number // of network connections won't exceed the limit. _, dup := scriptNetEnabled.LoadOrStore(t, true) if !dup { // Acquire a net token for this test until the test completes. netTestSem <- struct{}{} t.Cleanup(func() { <-netTestSem scriptNetEnabled.Delete(t) }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0) -
src/net/tcpsock_plan9.go
ln.fd.ctl.Close() return err } if err := ln.fd.ctl.Close(); err != nil { return err } return nil } func (ln *TCPListener) file() (*os.File, error) { f, err := ln.dup() if err != nil { return nil, err } return f, nil } func (sl *sysListener) listenTCP(ctx context.Context, laddr *TCPAddr) (*TCPListener, error) { fd, err := listenPlan9(ctx, sl.network, laddr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.3K bytes - Viewed (0)