Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 646 for Floats (0.05 seconds)

  1. tests/test_arbitrary_types.py

        )
    
        class FakeNumpyArray:
            def __init__(self):
                self.data = [1.0, 2.0, 3.0]
    
        FakeNumpyArrayPydantic = Annotated[
            FakeNumpyArray,
            WithJsonSchema(TypeAdapter(list[float]).json_schema()),
            PlainSerializer(lambda v: v.data),
        ]
    
        class MyModel(BaseModel):
            model_config = ConfigDict(arbitrary_types_allowed=True)
            custom_field: FakeNumpyArrayPydantic
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/cache/LongAdder.java

      @Override
      public int intValue() {
        return (int) sum();
      }
    
      /** Returns the {@link #sum} as a {@code float} after a widening primitive conversion. */
      @Override
      public float floatValue() {
        return (float) sum();
      }
    
      /** Returns the {@link #sum} as a {@code double} after a widening primitive conversion. */
      @Override
      public double doubleValue() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. internal/s3select/sql/parser.go

    	Timestamp1 *PrimaryTerm `parser:" @@ \",\" "`
    	Timestamp2 *PrimaryTerm `parser:" @@ \")\" "`
    }
    
    // LitValue represents a literal value parsed from the sql
    type LitValue struct {
    	Float   *float64       `parser:"(  @Float"`
    	Int     *float64       `parser:" | @Int"` // To avoid value out of range, use float64 instead
    	String  *LiteralString `parser:" | @LitString"`
    	Boolean *Boolean       `parser:" | @(\"TRUE\" | \"FALSE\")"`
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/CoreExtension.java

        private String artifactId;
    
        /**
         * The version of the extension.
         */
        private String version;
    
        /**
         * The class loading strategy: 'self-first' (the default),
         * 'parent-first' (loads classes from the parent, then from the
         * extension) or 'plugin' (follows the rules from extensions
         * defined as plugins).
         */
        private String classLoadingStrategy = "self-first";
    
        // -----------/
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  5. internal/s3select/simdj/record.go

    	case simdjson.TypeFloat:
    		v, err := iter.Float()
    		if err != nil {
    			return nil, err
    		}
    		return sql.FromFloat(v), nil
    	case simdjson.TypeInt:
    		v, err := iter.Int()
    		if err != nil {
    			return nil, err
    		}
    		return sql.FromInt(v), nil
    	case simdjson.TypeUint:
    		v, err := iter.Int()
    		if err != nil {
    			// Can't fit into int, convert to float.
    			v, err := iter.Float()
    			return sql.FromFloat(v), err
    		}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  6. cmd/metrics-v3-api.go

    	}
    	for name, value := range httpStats.TotalS3Canceled.APIStats {
    		m.Set(apiRequestsCanceledTotal, float64(value), "name", name, "type", "s3")
    	}
    	return nil
    }
    
    // loadAPIRequestsTTFBMetrics - loads S3 TTFB metrics.
    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsTTFBMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	renameLabels := map[string]string{"api": "name"}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 17:13:00 GMT 2024
    - 9.4K bytes
    - Click Count (0)
  7. docs/en/docs/index.md

    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 25 11:01:37 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  8. docs_src/pydantic_v1_in_v2/tutorial001_an_py310.py

    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 16:45:54 GMT 2025
    - 124 bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(primitives)
            .containsExactly(
                boolean.class,
                byte.class,
                char.class,
                double.class,
                float.class,
                int.class,
                long.class,
                short.class,
                void.class);
    
        assertThrows(UnsupportedOperationException.class, () -> primitives.remove(boolean.class));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 3K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/io/PropertiesUtil.java

            try {
                props.load(reader);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Loads the specified file into the {@link Properties} using the given encoding (wraps exception handling).
         *
         * @param props
         *            Property set. Must not be {@literal null}.
         * @param file
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top