Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 355 for obj (0.17 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, UndefinedType):
            return None
        if isinstance(obj, dict):
            encoded_dict = {}
            allowed_keys = set(obj.keys())
            if include is not None:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. 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() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
    	if obj.Name == "" {
    		return nil
    	}
    	var rules []Rule
    	for _, rule := range lc.Rules {
    		if rule.Status == Disabled {
    			continue
    		}
    		if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
    			continue
    		}
    		if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) {
    			continue
    		}
    		if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/MemoryUtil.java

        }
    
        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;
            }
            if (obj instanceof Date) {
                return 32L;
            }
            if (obj instanceof LocalDateTime) {
                return 80L;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/arm.go

    // in the usual way by the opcode itself. Asm must use AMRC for both instructions, so
    // we return the opcode for MRC so that asm doesn't need to import obj/arm.
    func ARMMRCOffset(op obj.As, cond string, x0, x1, x2, x3, x4, x5 int64) (offset int64, op0 obj.As, ok bool) {
    	op1 := int64(0)
    	if op == arm.AMRC {
    		op1 = 1
    	}
    	bits, ok := ParseARMCondition(cond)
    	if !ok {
    		return
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java

         *
         * @param obj The object to create a string representation for, may be <code>null</code>.
         * @return The string representation, never <code>null</code>.
         */
        private String toString(Object obj) {
            String str;
            if (obj != null && obj.getClass().isArray()) {
                int n = Array.getLength(obj);
                StringBuilder buf = new StringBuilder(256);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            }
    
            @Override
            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
                if (null == obj || !getClass().equals(obj.getClass())) {
                    return false;
                }
                GavCacheKey that = (GavCacheKey) obj;
                return Objects.equals(this.gav, that.gav) && Objects.equals(this.tag, that.tag);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/arch/arm64.go

    			if a.Type == obj.TYPE_MEM {
    				a.Index = arm64.REG_UXTW + Rnum
    			} else {
    				a.Reg = arm64.REG_UXTW + Rnum
    			}
    		case "UXTX":
    			if a.Type == obj.TYPE_MEM {
    				return errors.New("invalid shift for the register offset addressing mode")
    			}
    			a.Reg = arm64.REG_UXTX + Rnum
    		case "SXTB":
    			if a.Type == obj.TYPE_MEM {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
  9. src/cmd/api/main_test.go

    		}
    	case *types.Var:
    		if w.isDeprecated(obj) {
    			w.emitf("var %s //deprecated", obj.Name())
    		}
    		w.emitf("var %s %s", obj.Name(), w.typeString(obj.Type()))
    	case *types.TypeName:
    		w.emitType(obj)
    	case *types.Func:
    		w.emitFunc(obj)
    	default:
    		panic("unknown object: " + obj.String())
    	}
    }
    
    func (w *Walker) emitType(obj *types.TypeName) {
    	name := obj.Name()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    	if addr.Type != obj.TYPE_CONST || addr.Name != 0 || addr.Reg != 0 || addr.Index != 0 {
    		p.errorf("%s: expected immediate constant; found %s", op, obj.Dconv(prog, addr))
    	}
    	return addr.Offset
    }
    
    // getRegister checks that addr represents a register and returns its value.
    func (p *Parser) getRegister(prog *obj.Prog, op obj.As, addr *obj.Addr) int16 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
Back to top