Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 202 for S1 (0.06 sec)

  1. src/cmd/link/internal/ld/elf_test.go

    			continue
    		}
    		if s.Addr == 0 || s.Size == 0 {
    			continue
    		}
    		secs = append(secs, s)
    	}
    
    	secOverlaps := func(s1, s2 *elf.Section) bool {
    		st1 := s1.Addr
    		st2 := s2.Addr
    		en1 := s1.Addr + s1.Size
    		en2 := s2.Addr + s2.Size
    		return max(st1, st2) < min(en1, en2)
    	}
    
    	// Sort by address
    	sort.SliceStable(secs, func(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
         * Same behavior as Groovy minus operator between Strings
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TableCollectors.java

                state.put(
                    rowFunction.apply(input),
                    columnFunction.apply(input),
                    valueFunction.apply(input),
                    mergeFunction),
            (s1, s2) -> s1.combine(s2, mergeFunction),
            state -> state.toTable());
      }
    
      static <
              T extends @Nullable Object,
              R extends @Nullable Object,
              C extends @Nullable Object,
              V,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/ecdsa_test.go

    	if err != nil {
    		t.Errorf("error signing: %s", err)
    		return
    	}
    
    	hashed = []byte("testing...")
    	r1, s1, err := Sign(zeroReader, priv, hashed)
    	if err != nil {
    		t.Errorf("error signing: %s", err)
    		return
    	}
    
    	if s0.Cmp(s1) == 0 {
    		// This should never happen.
    		t.Errorf("the signatures on two different messages were the same")
    	}
    
    	if r0.Cmp(r1) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

    // as different.  Two NULLs are equal.
    //
    //    * {ASSERT|EXPECT}_STREQ(s1, s2):     Tests that s1 == s2
    //    * {ASSERT|EXPECT}_STRNE(s1, s2):     Tests that s1 != s2
    //    * {ASSERT|EXPECT}_STRCASEEQ(s1, s2): Tests that s1 == s2, ignoring case
    //    * {ASSERT|EXPECT}_STRCASENE(s1, s2): Tests that s1 != s2, ignoring case
    //
    // For wide or narrow string objects, you can use the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  6. pkg/proxy/config/api_test.go

    	_, ctx := klogtesting.NewTestContext(t)
    	service1v1 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "s1"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 10}}}}
    	service1v2 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "s1"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 20}}}}
    	service2 := &v1.Service{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/strings/strings_test.go

    	for times := 0; times < 10; times++ {
    		for strLen := 5 + rand.Intn(5); strLen < 140; strLen += 10 { // Arbitrary
    			s1 := make([]byte, strLen)
    			for i := range s1 {
    				s1[i] = chars[rand.Intn(len(chars))]
    			}
    			s := string(s1)
    			for i := 0; i < 50; i++ {
    				begin := rand.Intn(len(s) + 1)
    				end := begin + rand.Intn(len(s)+1-begin)
    				sep := s[begin:end]
    				if i%4 == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  8. src/runtime/map_benchmark_test.go

    	// long strings, same length, differ in first few
    	// and last few bytes.
    	m := make(map[string]bool)
    	s1 := "foo" + strings.Repeat("-", 100) + "bar"
    	s2 := "goo" + strings.Repeat("-", 100) + "ber"
    	m[s1] = true
    	m[s2] = true
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		_ = m[s1]
    	}
    }
    
    type BigKey [3]int64
    
    func BenchmarkBigKeyMap(b *testing.B) {
    	m := make(map[BigKey]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. src/log/slog/logger_test.go

    }
    func (h discardHandler) WithGroup(name string) Handler {
    	return h
    }
    
    // concat returns a new slice with the elements of s1 followed
    // by those of s2. The slice has no additional capacity.
    func concat[T any](s1, s2 []T) []T {
    	s := make([]T, len(s1)+len(s2))
    	copy(s, s1)
    	copy(s[len(s1):], s2)
    	return s
    }
    
    // This is a simple benchmark. See the benchmarks subdirectory for more extensive ones.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderTest.groovy

            return new DefaultProvider<String>({ value })
        }
    
        @Override
        Class<String> type() {
            return String
        }
    
        @Override
        String someValue() {
            return "s1"
        }
    
        @Override
        String someOtherValue() {
            return "other1"
        }
    
        @Override
        String someOtherValue2() {
            return "other2"
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:32 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top