Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for nums (0.11 sec)

  1. guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
        // Predicate<Integer> p4 = Predicates.<Integer>in(nums);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      static BigInteger listProduct(List<BigInteger> nums) {
        return listProduct(nums, 0, nums.size());
      }
    
      static BigInteger listProduct(List<BigInteger> nums, int start, int end) {
        switch (end - start) {
          case 0:
            return BigInteger.ONE;
          case 1:
            return nums.get(start);
          case 2:
            return nums.get(start).multiply(nums.get(start + 1));
          case 3:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
        Predicate<Object> p2 = Predicates.<Object>in(nums);
        // The next two lines are not expected to compile.
        // Predicate<Integer> p3 = Predicates.in(nums);
        // Predicate<Integer> p4 = Predicates.<Integer>in(nums);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      static BigInteger listProduct(List<BigInteger> nums) {
        return listProduct(nums, 0, nums.size());
      }
    
      static BigInteger listProduct(List<BigInteger> nums, int start, int end) {
        switch (end - start) {
          case 0:
            return BigInteger.ONE;
          case 1:
            return nums.get(start);
          case 2:
            return nums.get(start).multiply(nums.get(start + 1));
          case 3:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. cmd/erasure-metadata-utils.go

    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    // Reads all `xl.meta` metadata as a FileInfo slice.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    							"num2": 2000,
    						},
    					}},
    				expectError{applyPatchOperation{
    					"update field num1 to different invalid value",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"nums": map[string]interface{}{
    							"num1": 2,
    							"num2": 2000,
    						},
    					}}},
    			},
    		},
    		{
    			Name: "MinProperties MaxProperties",
    			Operations: []ratchetingTestOperation{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  7. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    ":"oldstyle-nums","font-variant-numeric":t},".proportional-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"proportional-nums","font-variant-numeric":t},".tabular-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"tabular-nums","font-variant-numeric":t},".diagonal-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"diagonal-fractions","font-variant-numeric":t},".stacked-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
  8. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    			availableAfterAllocation := make(mapIntInt, len(numas))
    			for _, numa := range numas {
    				availableAfterAllocation[numa] = acc.details.CPUsInNUMANodes(numa).Size()
    			}
    			for _, numa := range combo {
    				availableAfterAllocation[numa] -= distribution
    			}
    
    			// Check if there are any remaining CPUs to distribute across the
    			// NUMA nodes once CPUs have been evenly distributed in groups of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc

    open class MyCustomTask : DefaultTask() {
        @TaskAction
        fun calculateSum() {
            // Custom logic to calculate the sum of two numbers
            val num1 = 5
            val num2 = 7
            val sum = num1 + num2
    
            // Print the result
            println("Sum: $sum")
        }
    }
    ----
    =====
    [.multi-language-sample]
    =====
    .MyCustomTask.groovy
    [source, groovy]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 12:58:46 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    	// Check if int is preserved.
    	unstructuredObj := gottenNoxuInstance.(*unstructured.Unstructured).Object
    	num := unstructuredObj["num"].(map[string]interface{})
    	num1 := num["num1"].(int64)
    	num2 := num["num2"].(int64)
    	if num1 != 9223372036854775807 || num2 != 1000000 {
    		t.Errorf("Expected %v, got %v, %v", `9223372036854775807, 1000000`, num1, num2)
    	}
    }
    
    func TestPatch(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top