Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for arbitrary (0.19 sec)

  1. tests/test_jsonable_encoder.py

    
    def test_encode_model_with_pure_path():
        class ModelWithPath(BaseModel):
            path: PurePath
    
            if PYDANTIC_V2:
                model_config = {"arbitrary_types_allowed": True}
            else:
    
                class Config:
                    arbitrary_types_allowed = True
    
        test_path = PurePath("/foo", "bar")
        obj = ModelWithPath(path=test_path)
        assert jsonable_encoder(obj) == {"path": str(test_path)}
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      @J2ktIncompatible // Ordering.arbitrary
      @GwtIncompatible // too slow
      public void testCombinationsExhaustively_startingFromArbitrary() {
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Object[] array = {1, "foo", new Object()};
    
        // There's no way to tell what the order should be except empirically
        Arrays.sort(array, arbitrary);
        testExhaustively(arbitrary, array);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      @J2ktIncompatible // Ordering.arbitrary
      @GwtIncompatible // too slow
      public void testCombinationsExhaustively_startingFromArbitrary() {
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Object[] array = {1, "foo", new Object()};
    
        // There's no way to tell what the order should be except empirically
        Arrays.sort(array, arbitrary);
        testExhaustively(arbitrary, array);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. SECURITY.md

    `SavedModel`, or equivalent on-disk format), the set of computation primitives
    available to TensorFlow is powerful enough that you should assume that the
    TensorFlow process effectively executes arbitrary code.
    
    The risk of loading untrusted checkpoints depends on the code or graph that you
    are working with. When loading untrusted checkpoints, the values of the traced
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 01 06:06:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  5. internal/config/identity/tls/config.go

    	// By default, MinIO always verify the client certificate.
    	//
    	// The client certificate verification should only be skipped
    	// when debugging or testing a setup since it allows arbitrary
    	// clients to obtain temp. credentials with arbitrary policy
    	// permissions - including admin permissions.
    	EnvIdentityTLSSkipVerify = "MINIO_IDENTITY_TLS_SKIP_VERIFY"
    )
    
    // Config contains the STS TLS configuration for generating temp.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. tests/test_inherited_custom_class.py

            with pytest.raises(TypeError):
                vars(asyncpg_uuid)
            return {"fast_uuid": asyncpg_uuid}
    
        class SomeCustomClass(BaseModel):
            model_config = {"arbitrary_types_allowed": True}
    
            a_uuid: MyUuid
    
            @field_serializer("a_uuid")
            def serialize_a_uuid(self, v):
                return str(v)
    
        @app.get("/get_custom_class")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          return method.invoke(delegate, args);
        }
    
        @Override
        public String toString() {
          return "some arbitrary string";
        }
      }
    
      private static class DelegatingInvocationHandlerWithEquals extends DelegatingInvocationHandler {
    
        DelegatingInvocationHandlerWithEquals(Object delegate) {
          super(delegate);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbTransportPool.java

         * 
         * @return whether any transport was still in use
         * 
         * @throws CIFSException
         * 
         */
        boolean close () throws CIFSException;
    
    
        /**
         * Authenticate arbitrary credentials represented by the
         * <tt>NtlmPasswordAuthentication</tt> object against the domain controller
         * specified by the <tt>UniAddress</tt> parameter. If the credentials are
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun May 17 09:02:44 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
        if (arbitrary != null) {
          return arbitrary;
        }
        if (type.getRawType() == Class.class) {
          // If parameter is Class<? extends Foo>, we return Foo.class
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          return method.invoke(delegate, args);
        }
    
        @Override
        public String toString() {
          return "some arbitrary string";
        }
      }
    
      private static class DelegatingInvocationHandlerWithEquals extends DelegatingInvocationHandler {
    
        DelegatingInvocationHandlerWithEquals(Object delegate) {
          super(delegate);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top