Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 381 for valueDoc (0.17 sec)

  1. utils/utils.go

    	}
    	return false
    }
    
    func AssertEqual(x, y interface{}) bool {
    	if reflect.DeepEqual(x, y) {
    		return true
    	}
    	if x == nil || y == nil {
    		return false
    	}
    
    	xval := reflect.ValueOf(x)
    	yval := reflect.ValueOf(y)
    	if xval.Kind() == reflect.Ptr && xval.IsNil() ||
    		yval.Kind() == reflect.Ptr && yval.IsNil() {
    		return false
    	}
    
    	if valuer, ok := x.(driver.Valuer); ok {
    		x, _ = valuer.Value()
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/fixture/PrettyCalculatorSpec.groovy

    class PrettyCalculatorSpec extends Specification {
    
        def "knows percentage change"() {
            expect:
            percentChange(Amount.valueOf(current, Duration.SECONDS), Amount.valueOf(previous, Duration.SECONDS)) == percent
    
            where:
            current  | previous | percent
            1        | 1        | 0
            3        | 1        | 200
            1        | 3        | -66.67
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertThrows(
            UnsupportedOperationException.class,
            () -> map.put(TypeToken.of(Integer.class), Integer.valueOf(5)));
      }
    
      public void testPutAllThrows() {
        assertThrows(
            UnsupportedOperationException.class,
            () -> map.putAll(ImmutableMap.of(TypeToken.of(Integer.class), Integer.valueOf(5))));
      }
    
      public void testEntrySetMutationThrows() {
        map.putInstance(String.class, "test");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/NumberUtil.java

            } else {
                int baseExponent = (Long.SIZE - 1 - Long.numberOfLeadingZeros(bytes)) / BASE_LOG2;
                BigDecimal roundedBase = BigDecimal.valueOf(1L << (baseExponent * BASE_LOG2));
                BigDecimal result = BigDecimal.valueOf(bytes).divide(roundedBase, MC).setScale(FRACTIONAL_DIGIT_COUNT, FLOOR).stripTrailingZeros();
                return result.toPlainString() + UNITS.get(baseExponent);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java

        /**
         * @throws Exception
         */
        public void testToBoolean() throws Exception {
            assertEquals("1", Boolean.TRUE, BooleanConversionUtil.toBoolean(Integer.valueOf(1)));
            assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0)));
            assertEquals("3", Boolean.FALSE, BooleanConversionUtil.toBoolean("0"));
            assertEquals("4", Boolean.TRUE, BooleanConversionUtil.toBoolean("1"));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

          is_argmax ? mhlo::ComparisonDirection::GT : mhlo::ComparisonDirection::LT;
      if (is_float) {
        mhlo::OrOp value_or = llvm::dyn_cast_or_null<mhlo::OrOp>(
            value_select.getOperand(0).getDefiningOp());
        if (!value_or) return failure();
    
        mhlo::CompareOp value_gt = llvm::dyn_cast_or_null<mhlo::CompareOp>(
            value_or.getLhs().getDefiningOp());
        if (!value_gt || value_gt.getComparisonDirection() != compare_direction ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */
      private static BigInteger oldSlowFactorial(int n) {
        if (n <= 20) {
          return BigInteger.valueOf(LongMath.factorial(n));
        } else {
          int k = 20;
          return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n));
        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Enums.java

        } catch (NoSuchFieldException impossible) {
          throw new AssertionError(impossible);
        }
      }
    
      /**
       * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
       * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing
       * user input or falling back to a default enum constant. For example, {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types.go

    // yet exported.
    package typesinternal
    
    import (
    	"go/token"
    	"go/types"
    	"reflect"
    	"unsafe"
    )
    
    func SetUsesCgo(conf *types.Config) bool {
    	v := reflect.ValueOf(conf).Elem()
    
    	f := v.FieldByName("go115UsesCgo")
    	if !f.IsValid() {
    		f = v.FieldByName("UsesCgo")
    		if !f.IsValid() {
    			return false
    		}
    	}
    
    	addr := unsafe.Pointer(f.UnsafeAddr())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

       * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer`
       * gets translated back to `Integer.valueOf` because that is the only thing J2KT can support. And
       * anyway, it's nice to avoid `Integer.valueOf` because the Android toolchain optimizes multiple
       * `Integer.valueOf` calls into one! So we stick with the deprecated `Integer` constructor.
       */
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top