Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 261 for S1 (0.02 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy

            def black = withValues("black")
            def cat = withValues("cat")
    
            when:
            def zipped = providerFactory.zip(
                    providerFactory.zip(big, black) { s1, s2 -> "$s1 $s2" } ,
                    cat) { s1, s2 -> "${s1.capitalize()} ${s2}"}
    
            then:
            zipped instanceof Provider
            zipped.get() == 'Big black cat'
        }
    
        def "can zip two providers and use null to remove the value"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

        private static int compareStrings(String s1, String s2) {
            if (s1 == null && s2 == null) {
                return 0;
            }
    
            if (s1 == null /* && s2 != null */) {
                return -1;
            }
    
            if (
            /* s1 != null && */ s2 == null) {
                return 1;
            }
    
            return s1.compareTo(s2);
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. src/runtime/libfuzzer.go

    //  2. s1: first string used in the comparison
    //  3. s2: second string used in the comparison
    //  4. result: an integer representing the comparison result. 0 indicates
    //     equality (comparison will ignored by libfuzzer), non-zero indicates a
    //     difference (comparison will be taken into consideration).
    //
    //go:nosplit
    func libfuzzerHookStrCmp(s1, s2 string, fakePC int) {
    	if s1 != s2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 23 01:12:02 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/decls3.go

    	_ = struct{}{}.Foo /* ERROR "no field or method" */
    	_ = S0{}.A
    	_ = S0{}.D /* ERROR "no field or method" */
    	_ = S1{}.A
    	_ = S1{}.B
    	_ = S1{}.S0
    	_ = S1{}.C
    	_ = S2{}.A
    	_ = S2{}.S1
    	_ = S2{}.B
    	_ = S2{}.C
    	_ = S2{}.D /* ERROR "no field or method" */
    	_ = S3{}.S1 /* ERROR "ambiguous selector S3{}.S1" */
    	_ = S3{}.A
    	_ = S3{}.B /* ERROR "ambiguous selector S3{}.B" */
    	_ = S3{}.D
    	_ = S3{}.E
    	_ = S4{}.A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. pkg/test/framework/tools/featuresgen/cmd/root_test.go

    	m := make(map[any]any)
    
    	err := yaml.Unmarshal([]byte(testYaml), &m)
    	if err != nil {
    		t.Errorf(err.Error())
    	}
    
    	s1 := readVal(m, make([]string, 0))
    
    	sort.Strings(s1)
    
    	if strings.Join(s1, "\n") != expectedResult {
    		t.Errorf("Expected '%s' got '%s'", expectedResult, strings.Join(s1, "\n"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. 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)
  7. test/fixedbugs/bug515.go

    // license that can be found in the LICENSE file.
    
    // Caused a gofrontend crash.
    
    //go:build gccgo
    
    package p
    
    //go:notinheap
    type S1 struct{}
    
    type S2 struct {
    	r      interface{ Read([]byte) (int, error) }
    	s1, s2 []byte
    	p      *S1
    	n      uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 06:22:23 UTC 2022
    - 392 bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/ssa/fuse.go

    		s1, ss1 = b, s1
    	} else {
    		ss1 = s1.Succs[0].b
    		i1 = s1.Succs[0].i
    	}
    	if ss0 != ss1 {
    		if s0.Kind == BlockPlain && isEmpty(s0) && s1.Kind == BlockPlain && isEmpty(s1) {
    			// Two special cases where both s0, s1 and ss are empty blocks.
    			if s0 == ss1 {
    				s0, ss0 = b, ss1
    			} else if ss0 == s1 {
    				s1, ss1 = b, ss0
    			} else {
    				return false
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/device_compilation_cluster_signature_test.cc

      std::vector<DeviceCompilationClusterSignature> signatures = {s1, s2, s3};
      for (int i = 0; i < signatures.size(); ++i) {
        for (int j = 0; j < signatures.size(); ++j) {
          EXPECT_EQ(i == j, signatures[i] == signatures[j])
              << "s1: " << signatures[i].HumanString() << "\n"
              << "s2: " << signatures[j].HumanString();
          EXPECT_EQ(i == j,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top