- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for SEP (0.07 sec)
-
src/strings/strings_test.go
begin := rand.Intn(len(s) + 1) end := begin + rand.Intn(len(s)+1-begin) sep := s[begin:end] if i%4 == 0 { pos := rand.Intn(len(sep) + 1) sep = sep[:pos] + "A" + sep[pos:] } want := simpleIndex(s, sep) res := Index(s, sep) if res != want { t.Errorf("Index(%s,%s) = %d; want %d", s, sep, res, want) } } } } } func TestIndexRune(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/bytes/bytes_test.go
func benchmarkIndexHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { Index(benchInputHard, sep) } } func benchmarkLastIndexHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { LastIndex(benchInputHard, sep) } } func benchmarkCountHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { Count(benchInputHard, sep) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// // list = [ f { sep f } [sep] ] close . func (p *parser) list(context string, sep, close token, f func() bool) Pos { if debug && (sep != _Comma && sep != _Semi || close != _Rparen && close != _Rbrace && close != _Rbrack) { panic("invalid sep or close argument for list") } done := false for p.tok != _EOF && p.tok != close && !done { done = f() // sep is optional before close
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/go/printer/nodes.go
if len(f.Names) > 0 { // named fields p.identList(f.Names, false) p.print(sep) p.expr(f.Type) extraTabs = 1 } else { // anonymous field p.expr(f.Type) extraTabs = 2 } if f.Tag != nil { if len(f.Names) > 0 && sep == vtab { p.print(sep) } p.print(sep) p.expr(f.Tag) extraTabs = 0 } if f.Comment != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/go/go_test.go
} } func TestMultipleGOPATHEntriesReportedSeparately(t *testing.T) { tg := testgo(t) defer tg.cleanup() tg.parallel() sep := string(filepath.ListSeparator) tg.setenv("GOPATH", filepath.Join(tg.pwd(), "testdata", "a")+sep+filepath.Join(tg.pwd(), "testdata", "b")) tg.runFail("install", "foo/quxx") if tg.grepCountBoth(`testdata[/\\].[/\\]src[/\\]foo[/\\]quxx`) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 81.1K bytes - Viewed (0) -
src/cmd/dist/build.go
} if goarch == "riscv64" { xprintf(format, "GORISCV64", goriscv64) } xprintf(format, "GOWORK", "off") if *path { sep := ":" if gohostos == "windows" { sep = ";" } xprintf(format, "PATH", fmt.Sprintf("%s%s%s", gorootBin, sep, os.Getenv("PATH"))) // Also include $DIST_UNMODIFIED_PATH with the original $PATH // for the internal needs of "dist banner", along with export
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
pkg/proxy/iptables/proxier.go
servicePortPolicyLocalChainNamePrefix = "KUBE-SVL-" serviceFirewallChainNamePrefix = "KUBE-FW-" serviceExternalChainNamePrefix = "KUBE-EXT-" servicePortEndpointChainNamePrefix = "KUBE-SEP-" ) // servicePortPolicyClusterChain returns the name of the KUBE-SVC-XXXX chain for a service, which is the // main iptables chain for that service, used for dispatching to endpoints when using `Cluster`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 65.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
) vocab_file = asset.Asset(asset_file) raw_vocab = io_ops.read_file(vocab_file) vocabs = ragged_string_ops.string_split_v2( string_ops.string_strip(raw_vocab), sep=',' ) # Initialize the vocab table. Each comma-separated word in vocab_file.txt # corresponds to the numeric identifiers in `values`. kv_init = lookup_ops.KeyValueTensorInitializer(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
src/go/build/build.go
} // hasSubdir reports if dir is within root by performing lexical analysis only. func hasSubdir(root, dir string) (rel string, ok bool) { const sep = string(filepath.Separator) root = filepath.Clean(root) if !strings.HasSuffix(root, sep) { root += sep } dir = filepath.Clean(dir) after, found := strings.CutPrefix(dir, root) if !found { return "", false } return filepath.ToSlash(after), true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
for i, uc := range uss.clients { nThreads := uc.nThreads if uc.split && !last { nThreads = nThreads / 2 } sep := uc.thinkDuration demands[i] = float64(nThreads) * float64(uc.initialSeats) * float64(uc.execDuration) / float64(sep+uc.execDuration) averages[i] = uss.execSeatsIntegrators[i].Reset().Average } fairAverages := uss.expectedAverages if fairAverages == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0)