Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 4,515 for fromP2 (0.04 seconds)

  1. fastapi/security/http.py

    import binascii
    from base64 import b64decode
    from typing import Annotated, Optional
    
    from annotated_doc import Doc
    from fastapi.exceptions import HTTPException
    from fastapi.openapi.models import HTTPBase as HTTPBaseModel
    from fastapi.openapi.models import HTTPBearer as HTTPBearerModel
    from fastapi.security.base import SecurityBase
    from fastapi.security.utils import get_authorization_scheme_param
    from pydantic import BaseModel
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/Files.java

       * @throws IllegalArgumentException if {@code from.equals(to)}
       */
      public static void move(File from, File to) throws IOException {
        checkNotNull(from);
        checkNotNull(to);
        checkArgument(!from.equals(to), "Source %s and destination %s must be different", from, to);
    
        if (!from.renameTo(to)) {
          copy(from, to);
          if (!from.delete()) {
            if (!to.delete()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 25 20:24:13 GMT 2025
    - 32.8K bytes
    - Click Count (0)
  3. fastapi/utils.py

    from fastapi.exceptions import FastAPIDeprecationWarning, PydanticV1NotSupportedError
    from pydantic import BaseModel
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    from ._compat import v2
    
    if TYPE_CHECKING:  # pragma: nocover
        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    _CLONED_TYPES_CACHE: MutableMapping[type[BaseModel], type[BaseModel]] = (
        WeakKeyDictionary()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinNullabilityChangesTest.kt

                """
            ) {
                assertHasErrors(
                    "Method com.example.Source.foo(): From non-null returning to null returning breaking change.",
                    "Method com.example.Source.getSomeVal(): From non-null returning to null returning breaking change.",
                    "Method com.example.Source.getSomeVar(): From non-null returning to null returning breaking change."
                )
                assertHasWarnings(
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Feb 04 09:55:47 GMT 2025
    - 5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

       */
      private static void movePivotToStartOfSlice(double[] array, int from, int to) {
        int mid = (from + to) >>> 1;
        // We want to make a swap such that either array[to] <= array[from] <= array[mid], or
        // array[mid] <= array[from] <= array[to]. We know that from < to, so we know mid < to
        // (although it's possible that mid == from, if to == from + 1). Note that the postcondition
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 30.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
        builder.weigher(constantWeigher(42)).build(CacheLoader.from(Suppliers.ofInstance(null)));
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testMaximumWeight_withoutWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
        assertThrows(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/io/CharStreams.java

       * close or flush either object.
       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue
      public static long copy(Readable from, Appendable to) throws IOException {
        // The most common case is that from is a Reader (like InputStreamReader or StringReader) so
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. tests/test_compat.py

    from typing import Union
    
    from fastapi import FastAPI, UploadFile
    from fastapi._compat import (
        Undefined,
        is_uploadfile_sequence_annotation,
    )
    from fastapi._compat.shared import is_bytes_sequence_annotation
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    from pydantic.fields import FieldInfo
    
    from .utils import needs_py310
    
    
    def test_model_field_default_required():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. fastapi/concurrency.py

    from collections.abc import AsyncGenerator
    from contextlib import AbstractContextManager
    from contextlib import asynccontextmanager as asynccontextmanager
    from typing import TypeVar
    
    import anyio.to_thread
    from anyio import CapacityLimiter
    from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool  # noqa
    from starlette.concurrency import run_in_threadpool as run_in_threadpool  # noqa
    from starlette.concurrency import (  # noqa
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/io/Resources.java

              }
            });
      }
    
      /**
       * Copies all bytes from a URL to an output stream.
       *
       * @param from the URL to read from
       * @param to the output stream
       * @throws IOException if an I/O error occurs
       */
      public static void copy(URL from, OutputStream to) throws IOException {
        asByteSource(from).copyTo(to);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
Back to Top