Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 287 for value_or (0.21 sec)

  1. callbacks/helper_test.go

    	vm = make(visitMap)
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded {
    		t.Fatalf("loaded should be true")
    	}
    
    	// t1 already exist but t2 not
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf([]*testM{&t1, &t2, &t3})); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 05 02:22:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/report/AmbiguousBindingReporter.java

            this(reference.getType().toString(), reference.getDescription(), ImmutableList.of(
                    new Provider(String.valueOf(path1), String.valueOf(creator1)),
                    new Provider(String.valueOf(path2), String.valueOf(creator2))
            ));
        }
    
        public AmbiguousBindingReporter(String referenceType, String referenceDescription, List<Provider> providers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/go/ast/example_test.go

    	//     33  .  .  .  .  .  .  .  Lparen: 4:9
    	//     34  .  .  .  .  .  .  .  Args: []ast.Expr (len = 1) {
    	//     35  .  .  .  .  .  .  .  .  0: *ast.BasicLit {
    	//     36  .  .  .  .  .  .  .  .  .  ValuePos: 4:10
    	//     37  .  .  .  .  .  .  .  .  .  Kind: STRING
    	//     38  .  .  .  .  .  .  .  .  .  Value: "\"Hello, World!\""
    	//     39  .  .  .  .  .  .  .  .  }
    	//     40  .  .  .  .  .  .  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      @GwtIncompatible
      public void testRoundToDouble_smallPositive() {
        new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxPreciselyRepresentable() {
        new RoundToDoubleTester(BigInteger.valueOf(1L << 53))
            .setExpectation(Math.pow(2, 53), values())
            .test();
      }
    
      @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

            denominatorAccum *= q;
            numeratorBits += bits;
          }
        }
        return accum
            .multiply(BigInteger.valueOf(numeratorAccum))
            .divide(BigInteger.valueOf(denominatorAccum));
      }
    
      // Returns true if BigInteger.valueOf(x.longValue()).equals(x).
      @GwtIncompatible // TODO
      static boolean fitsInLong(BigInteger x) {
        return x.bitLength() <= Long.SIZE - 1;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

        depart();
        capture(ptr);
      }
      T* get() const { return value_; }
      T* operator->() const { return value_; }
      T& operator*() const { return *value_; }
    
      bool operator==(T* p) const { return value_ == p; }
      bool operator!=(T* p) const { return value_ != p; }
      template <typename U>
      bool operator==(linked_ptr<U> const& ptr) const {
        return value_ == ptr.get();
      }
      template <typename U>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Amount.java

            normalised = units.scaleTo(value, units.getBaseUnits());
        }
    
        public static <Q> Amount<Q> valueOf(long value, Units<Q> units) {
            return valueOf(BigDecimal.valueOf(value), units);
        }
    
        /**
         * Returns null if the given value is null.
         */
        @Nullable
        public static <Q> Amount<Q> valueOf(@Nullable BigDecimal value, Units<Q> units) {
            if (value == null) {
                return null;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. schema/utils.go

    	for _, rel := range rels {
    		reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1)
    
    		appendToResults := func(value reflect.Value) {
    			if _, isZero := rel.Field.ValueOf(ctx, value); !isZero {
    				result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value))
    				switch result.Kind() {
    				case reflect.Struct:
    					reflectResults = reflect.Append(reflectResults, result.Addr())
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    
    // Broadcasts the 1D value tensor 'value_1d' to the shape of 'result_type'. If
    // 'shape_value' is initialized, creates a dynamic broadcast, otherwise creates
    // a static broadcast.
    Value broadcastToFeatureDim(Location loc, RankedTensorType result_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/CompositeTestResults.java

            if (getRunTestCount() == 0) {
                return null;
            }
    
            BigDecimal runTests = BigDecimal.valueOf(getRunTestCount());
            BigDecimal successful = BigDecimal.valueOf(getRunTestCount() - getFailureCount());
    
            return successful.divide(runTests, 2, RoundingMode.DOWN).multiply(BigDecimal.valueOf(100)).intValue();
        }
    
        protected void failed(TestResult failedTest) {
            failures.add(failedTest);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top