Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for enum2 (0.07 sec)

  1. fastapi/applications.py

    from enum import Enum
    from typing import (
        Any,
        Awaitable,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Type,
        TypeVar,
        Union,
    )
    
    from fastapi import routing
    from fastapi.datastructures import Default, DefaultPlaceholder
    from fastapi.exception_handlers import (
        http_exception_handler,
        request_validation_exception_handler,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

       * and values are the result of applying the provided mapping functions to the input elements. The
       * resulting implementation is specialized for enum key types. The returned map and its views will
       * iterate over keys in their enum definition order, not encounter order.
       *
       * <p>If the mapped keys contain duplicates, an {@code IllegalArgumentException} is thrown when
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

       * resulting implementation is specialized for enum key types. The returned map and its views will
       * iterate over keys in their enum definition order, not encounter order.
       *
       * <p>If the mapped keys contain duplicates, the values are merged using the specified merging
       * function.
       *
       * @since 21.0
       */
      public static <T extends @Nullable Object, K extends Enum<K>, V>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    		inc:   ord.coprimes[i/ord.count%uint32(len(ord.coprimes))],
    	}
    }
    
    func (enum *randomEnum) done() bool {
    	return enum.i == enum.count
    }
    
    func (enum *randomEnum) next() {
    	enum.i++
    	enum.pos = (enum.pos + enum.inc) % enum.count
    }
    
    func (enum *randomEnum) position() uint32 {
    	return enum.pos
    }
    
    func gcd(a, b uint32) uint32 {
    	for b != 0 {
    		a, b = b, a%b
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

      }
    
      boolean usesKeyReferences() {
        return keyStrength != Strength.STRONG;
      }
    
      boolean usesValueReferences() {
        return valueStrength != Strength.STRONG;
      }
    
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

      }
    
      boolean usesKeyReferences() {
        return keyStrength != Strength.STRONG;
      }
    
      boolean usesValueReferences() {
        return valueStrength != Strength.STRONG;
      }
    
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_pods.go

    	if err != nil {
    		return 0, 0, fmt.Errorf("error parsing line %q: %w", input, err)
    	}
    
    	num2, err := strconv.ParseUint(parts[3], 10, 32)
    	if err != nil {
    		return 0, 0, fmt.Errorf("error parsing line %q: %w", input, err)
    	}
    
    	return uint32(num1), uint32(num2), nil
    }
    
    // getKubeletMappings returns the range of IDs that can be used to configure user namespaces.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			},
    		},
    		{name: "enums",
    			obj: map[string]interface{}{"enumStr": "Pending"},
    			schema: objectTypePtr(map[string]schema.Structural{"enumStr": {
    				Generic: schema.Generic{
    					Type: "string",
    				},
    				ValueValidation: &schema.ValueValidation{
    					Enum: []schema.JSON{
    						{Object: "Pending"},
    						{Object: "Available"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  9. api/maven-api-model/src/main/mdo/maven.mdo

      |
      | o need to clean up all the descriptions, matching anything to the current project-descriptor.xml file and
      |   improving on that
      |
      | o use enums where appropriate (eg dependency scope)
      |
      | o a number of elements have a groupId/artifactId and sometimes version. It would be good to have them all extend one
      |   definition of these types
      |
    -->
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 13:29:46 UTC 2024
    - 115.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      let options = [
        Option<"fold_transpose_in_ops_", "fold-transpose-in-ops", "bool", /*default=*/"true",
               "Whether to fold transposes in ops which can support folding.">,
        Option<"direction_", "direction", "enum MoveTransposeDirection",
               /*default=*/"MoveTransposeDirection::kBegin", "Move transposes to the beginning or"
               " the end of the block where they are defined.",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
Back to top