Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for S1 (0.02 sec)

  1. src/slices/slices_test.go

    			t.Errorf("Equal(%v, %v, equalNaN[float64]) = %t, want %t", test.s1, test.s2, got, test.wantEqualNaN)
    		}
    	}
    
    	s1 := []int{1, 2, 3}
    	s2 := []int{2, 3, 4}
    	if EqualFunc(s1, s1, offByOne) {
    		t.Errorf("EqualFunc(%v, %v, offByOne) = true, want false", s1, s1)
    	}
    	if !EqualFunc(s1, s2, offByOne) {
    		t.Errorf("EqualFunc(%v, %v, offByOne) = false, want true", s1, s2)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/FileHierarchySetTest.groovy

            def single = from(dir1)
    
            expect:
            def s1 = single.plus(dir2)
            s1.contains(dir1)
            s1.contains(child)
            s1.contains(dir2)
            !s1.contains(dir3)
            !s1.contains(tooFew)
            !s1.contains(tooMany)
            !s1.contains(parent)
            flatten(s1) == [parent.path, "1:dir1", "1:dir2"]
    
            def s2 = single.plus(dir1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/unicode/utf8/utf8.go

    	xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xA0-0xAF
    	xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xB0-0xBF
    	xx, xx, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, // 0xC0-0xCF
    	s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, // 0xD0-0xDF
    	s2, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s4, s3, s3, // 0xE0-0xEF
    	s5, s6, s6, s6, s7, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xF0-0xFF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/util/manager/cache_based_manager_test.go

    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.RegisterPod(podWithSecrets("ns1", "name2", s1))
    	assert.Equal(t, 2, refs("ns1", "s1"))
    
    	manager.UnregisterPod(podWithSecrets("ns1", "name1", s1))
    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.UnregisterPod(podWithSecrets("ns1", "name1", s1))
    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.UnregisterPod(podWithSecrets("ns1", "name2", s1))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    @@ -29,54 +25,16 @@
     char *
     STRNCAT (char *s1, const char *s2, size_t n)
     {
    -  char c;
       char *s = s1;
     
       /* Find the end of S1.  */
    -  do
    -    c = *s1++;
    -  while (c != '\0');
    -
    -  /* Make S1 point before next character, so we can increment
    -     it while memory is read (wins on pipelined cpus).  */
    -  s1 -= 2;
    +  s1 += strlen (s1);
     
    -  if (n >= 4)
    -    {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  6. src/runtime/string_test.go

    func BenchmarkCompareStringEqual(b *testing.B) {
    	bytes := []byte("Hello Gophers!")
    	s1, s2 := string(bytes), string(bytes)
    	for i := 0; i < b.N; i++ {
    		if s1 != s2 {
    			b.Fatal("s1 != s2")
    		}
    	}
    }
    
    func BenchmarkCompareStringIdentical(b *testing.B) {
    	s1 := "Hello Gophers!"
    	s2 := s1
    	for i := 0; i < b.N; i++ {
    		if s1 != s2 {
    			b.Fatal("s1 != s2")
    		}
    	}
    }
    
    func BenchmarkCompareStringSameLength(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  7. src/net/http/pattern.go

    			if s2.s == "/" {
    				if s1.s != "" {
    					b.WriteString(s1.s)
    				} else {
    					b.WriteString("x")
    				}
    			}
    			return b.String()
    		}
    		if !s1.multi && s2.multi {
    			writeSegment(&b, s1)
    		} else if s1.wild && s2.wild {
    			// Both patterns will match whatever we put here; use
    			// the first wildcard name.
    			writeSegment(&b, s1)
    		} else if s1.wild && !s2.wild {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/c/ops_test.cc

      shape_inference::ShapeHandle s1;
    
      TF_Status* status = TF_NewStatus();
      TF_ShapeInferenceContextWithRankAtMost(C_CTX(&c), C_SHP(&in0), 3, C_SHP(&s1),
                                             status);
      EXPECT_EQ("[10,20,30]", c.DebugString(s1));
      EXPECT_EQ(TF_OK, TF_GetCode(status));
    
      TF_ShapeInferenceContextWithRankAtLeast(C_CTX(&c), C_SHP(&in0), 3, C_SHP(&s1),
                                              status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  9. src/slices/slices.go

    // returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2),
    // and +1 if len(s1) > len(s2).
    func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int {
    	for i, v1 := range s1 {
    		if i >= len(s2) {
    			return +1
    		}
    		v2 := s2[i]
    		if c := cmp(v1, v2); c != 0 {
    			return c
    		}
    	}
    	if len(s1) < len(s2) {
    		return -1
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/log/slog/handler_test.go

    			with: func(h Handler) Handler {
    				return h.WithAttrs([]Attr{Int("p1", 1)}).
    					WithGroup("s1").
    					WithAttrs([]Attr{Int("p2", 2)}).
    					WithGroup("s2").
    					WithAttrs([]Attr{Int("p3", 3)})
    			},
    			attrs:    attrs,
    			wantText: "msg=message p1=1 s1.p2=2 s1.s2.p3=3 s1.s2.a=one s1.s2.b=2",
    			wantJSON: `{"msg":"message","p1":1,"s1":{"p2":2,"s2":{"p3":3,"a":"one","b":2}}}`,
    		},
    		{
    			name:    "two with-groups",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top