Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for S1 (0.03 sec)

  1. maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java

        private static class OptionComparator implements Comparator<Option> {
            public int compare(Option opt1, Option opt2) {
                String s1 = opt1.getOpt() != null ? opt1.getOpt() : opt1.getLongOpt();
                String s2 = opt2.getOpt() != null ? opt2.getOpt() : opt2.getLongOpt();
                return s1.compareToIgnoreCase(s2);
            }
        }
    
        private static class CLIManagerExtension extends CLIManager {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 09:06:12 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/hash/fnv/fnv.go

    		// Compute the multiplication
    		s0, s1 := bits.Mul64(prime128Lower, s[1])
    		s0 += s[1]<<prime128Shift + prime128Lower*s[0]
    		// Update the values
    		s[1] = s1
    		s[0] = s0
    		s[1] ^= uint64(c)
    	}
    	return len(data), nil
    }
    
    func (s *sum128a) Write(data []byte) (int, error) {
    	for _, c := range data {
    		s[1] ^= uint64(c)
    		// Compute the multiplication
    		s0, s1 := bits.Mul64(prime128Lower, s[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            logDeprecation();
            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: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/slices/iter_test.go

    	}
    
    	if want := [][]int{{1, 2}, {3, 4}}; !chunkEqual(got, want) {
    		t.Errorf("Chunk iteration did not stop, got %v, want %v", got, want)
    	}
    }
    
    func chunkEqual[Slice ~[]E, E comparable](s1, s2 []Slice) bool {
    	return EqualFunc(s1, s2, Equal[Slice])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. 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)
  6. src/slices/example_test.go

    	fmt.Println(clip)
    	fmt.Println(len(clip))
    	fmt.Println(cap(clip))
    	// Output:
    	// 10
    	// [0 1 2 3]
    	// 4
    	// 4
    }
    
    func ExampleConcat() {
    	s1 := []int{0, 1, 2, 3}
    	s2 := []int{4, 5, 6}
    	concat := slices.Concat(s1, s2)
    	fmt.Println(concat)
    	// Output:
    	// [0 1 2 3 4 5 6]
    }
    
    func ExampleContains() {
    	numbers := []int{0, 1, 2, 3}
    	fmt.Println(slices.Contains(numbers, 2))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/slices/sort_test.go

    	}
    	if !data.inOrder(false) {
    		t.Errorf("Stable wasn't stable on %d ints", n)
    	}
    }
    
    type S struct {
    	a int
    	b string
    }
    
    func cmpS(s1, s2 S) int {
    	return cmp.Compare(s1.a, s2.a)
    }
    
    func TestMinMax(t *testing.T) {
    	intCmp := func(a, b int) int { return a - b }
    
    	tests := []struct {
    		data    []int
    		wantMin int
    		wantMax int
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/decls0.go

    	a /* ERROR "redeclared" */ int
    
    	b /* ERROR "invalid recursive type" */ c
    	c d
    	d e
    	e b
    
    	t *t
    
    	U V
    	V *W
    	W U
    
    	P1 *S2
    	P2 P1
    
    	S0 struct {
    	}
    	S1 struct {
    		a, b, c int
    		u, v, a /* ERROR "redeclared" */ float32
    	}
    	S2 struct {
    		S0 // embedded field
    		S0 /* ERROR "redeclared" */ int
    	}
    	S3 struct {
    		x S2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/crypto/tls/testdata/Client-TLSv13-KeyUpdate

    00000200  a1 f0 5f 67 45 46 d3 8c  11 ff 21 62 7d ed f9 0e  |.._gEF....!b}...|
    00000210  2a ba b3 82 f5 6b c1 4a  4e cc 11 90 48 81 96 7a  |*....k.JN...H..z|
    00000220  df f9 22 ae 53 31 14 9d  c9 5c 85 e7 db a2 dd 02  |..".S1...\......|
    00000230  56 eb d0 fe 20 35 21 c9  33 63 b5 b7 a8 93 30 7f  |V... 5!.3c....0.|
    00000240  86 1f d1 af b1 ff 3e 9a  d1 a8 90 d9 9c 86 55 e8  |......>.......U.|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top