Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 200 for Obj (0.01 sec)

  1. fastapi/encoders.py

            )
        if isinstance(obj, Enum):
            return obj.value
        if isinstance(obj, PurePath):
            return str(obj)
        if isinstance(obj, (str, int, float, type(None))):
            return obj
        if isinstance(obj, PydanticUndefinedType):
            return None
        if isinstance(obj, dict):
            encoded_dict = {}
            allowed_keys = set(obj.keys())
            if include is not None:
    Registered: 2025-12-28 07:19
    - Last Modified: 2025-12-27 12:54
    - 10.7K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/arch/arch.go

    package arch
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/obj/arm"
    	"cmd/internal/obj/arm64"
    	"cmd/internal/obj/loong64"
    	"cmd/internal/obj/mips"
    	"cmd/internal/obj/ppc64"
    	"cmd/internal/obj/riscv"
    	"cmd/internal/obj/s390x"
    	"cmd/internal/obj/wasm"
    	"cmd/internal/obj/x86"
    	"fmt"
    	"strings"
    )
    
    Registered: 2025-12-30 11:13
    - Last Modified: 2025-11-13 12:17
    - 21.7K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/asm.go

    	}
    	switch {
    	case target.Type == obj.TYPE_BRANCH:
    		// JMP 4(PC)
    		*targetAddr = obj.Addr{
    			Type:   obj.TYPE_BRANCH,
    			Offset: p.pc + 1 + target.Offset, // +1 because p.pc is incremented in append, below.
    		}
    	case target.Type == obj.TYPE_REG:
    		// JMP R1
    		*targetAddr = *target
    	case target.Type == obj.TYPE_MEM && (target.Name == obj.NAME_EXTERN || target.Name == obj.NAME_STATIC):
    		// JMP main·morestack(SB)
    Registered: 2025-12-30 11:13
    - Last Modified: 2025-10-21 15:13
    - 26.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/ObjectUtil.java

         *
         * @param obj the object
         * @return the hash code or 0
         */
        public static int hashCode(final Object obj) {
            return obj == null ? 0 : obj.hashCode();
        }
    
        /**
         * Returns the string representation of the specified object, or null if the object is null.
         *
         * @param obj the object
         * @return the string representation or null
         */
    Registered: 2025-12-20 08:55
    - Last Modified: 2025-07-31 08:16
    - 3K bytes
    - Viewed (0)
  5. cmd/object_api_suite_test.go

    	for i := 6; i <= 10; i++ {
    		key := "obj" + strconv.Itoa(i)
    		_, err = obj.PutObject(context.Background(), "bucket", key, mustGetPutObjReader(t, bytes.NewBufferString(uploadContent), int64(len(uploadContent)), "", ""), opts)
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    		}
    		result, err = obj.ListObjects(context.Background(), "bucket", "obj", "", "", 5)
    		if err != nil {
    Registered: 2025-12-28 19:28
    - Last Modified: 2025-08-29 02:39
    - 34.5K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        private final AnInterface i;
    
        public HasAnInterface(AnInterface i) {
          this.i = i;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof HasAnInterface) {
            HasAnInterface that = (HasAnInterface) obj;
            return i.equals(that.i);
          } else {
            return false;
          }
        }
    
        @Override
        public int hashCode() {
    Registered: 2025-12-26 12:43
    - Last Modified: 2025-10-28 16:03
    - 36.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/util/MemoryUtil.java

         *
         * @param obj the object to calculate size for
         * @return estimated size in bytes
         */
        public static long sizeOf(final Object obj) {
            if (obj == null) {
                return 0L;
            }
            if (obj instanceof String) {
                return ((String) obj).length() + 56L;
            }
            if (obj instanceof Number) {
                return 24L;
            }
    Registered: 2025-12-20 09:19
    - Last Modified: 2025-07-17 08:28
    - 5.3K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    			obj:       obj,
    			want:      lifecycle.DeleteAllVersionsAction,
    		},
    		{
    			// with object locking
    			ilm:       *delMarkerLc,
    			retention: &objectlock.Retention{LockEnabled: true},
    			obj:       delMarker,
    			want:      lifecycle.NoneAction,
    		},
    		{
    			// without object locking
    			ilm:       *delMarkerLc,
    			retention: &objectlock.Retention{},
    			obj:       delMarker,
    Registered: 2025-12-28 19:28
    - Last Modified: 2025-08-29 02:39
    - 12K bytes
    - Viewed (0)
  9. cmd/erasure-multipart-conditional_test.go

    	ctx := context.Background()
    
    	obj, fsDirs, err := prepareErasure16(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer obj.Shutdown(context.Background())
    	defer removeRoots(fsDirs)
    
    	z := obj.(*erasureServerPools)
    	xl := z.serverPools[0].sets[0]
    
    	bucket := "test-bucket"
    	object := "test-object"
    
    	err = obj.MakeBucket(ctx, bucket, MakeBucketOptions{})
    	if err != nil {
    		t.Fatal(err)
    Registered: 2025-12-28 19:28
    - Last Modified: 2025-10-24 04:05
    - 6.9K bytes
    - Viewed (0)
  10. cmd/erasure-object_test.go

    	defer cancel()
    
    	// Create an instance of xl backend.
    	obj, fsDirs, err := prepareErasure16(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Cleanup backend directories
    	defer obj.Shutdown(t.Context())
    	defer removeRoots(fsDirs)
    
    	z := obj.(*erasureServerPools)
    	xl := z.serverPools[0].sets[0]
    
    	// Create "bucket"
    	err = obj.MakeBucket(ctx, "bucket", MakeBucketOptions{})
    	if err != nil {
    Registered: 2025-12-28 19:28
    - Last Modified: 2025-08-29 02:39
    - 38.3K bytes
    - Viewed (0)
Back to top