Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for obj (0.18 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/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)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/base/Predicates.java

        }
    
        @Override
        public int hashCode() {
          return ~predicate.hashCode();
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof NotPredicate) {
            NotPredicate<?> that = (NotPredicate<?>) obj;
            return predicate.equals(that.predicate);
          }
          return false;
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. 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"
    )
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    					console.Debugf(applyActionsLogPrefix+" lifecycle: %s v(%s) is locked, not deleting\n", obj.Name, obj.VersionID)
    				} else {
    					console.Debugf(applyActionsLogPrefix+" lifecycle: %s is locked, not deleting\n", obj.Name)
    				}
    			}
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    		if rcfg != nil && !obj.VersionPurgeStatus.Empty() && rcfg.HasActiveRules(obj.Name, true) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K 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(context.Background())
    	defer removeRoots(fsDirs)
    
    	z := obj.(*erasureServerPools)
    	xl := z.serverPools[0].sets[0]
    
    	// Create "bucket"
    	err = obj.MakeBucket(ctx, "bucket", MakeBucketOptions{})
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
Back to top