Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 4,515 for fromP2 (0.05 seconds)

  1. android/guava/src/com/google/common/net/HostSpecifier.java

      private HostSpecifier(String canonicalForm) {
        this.canonicalForm = canonicalForm;
      }
    
      /**
       * Returns a {@code HostSpecifier} built from the provided {@code specifier}, which is already
       * known to be valid. If the {@code specifier} might be invalid, use {@link #from(String)}
       * instead.
       *
       * <p>The specifier must be in one of these formats:
       *
       * <ul>
       *   <li>A domain name, like {@code google.com}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6K bytes
    - Click Count (0)
  2. tests/test_router_events.py

    from collections.abc import AsyncGenerator
    from contextlib import asynccontextmanager
    from typing import Union
    
    import pytest
    from fastapi import APIRouter, FastAPI, Request
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class State(BaseModel):
        app_startup: bool = False
        app_shutdown: bool = False
        router_startup: bool = False
        router_shutdown: bool = False
        sub_router_startup: bool = False
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild.start-scripts.gradle.kts

        startScriptsDir = layout.buildDirectory.dir("startScripts")
        launcherJar.from(tasks.jar)
        agentJars.from(resolveAgentsClasspath)
        // The trick below is to use the templates from the current code instead of the wrapper. It does not cover the case where the generation logic is updated though.
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jul 02 12:28:02 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_background_tasks/test_tutorial001.py

    import os
    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.background_tasks.tutorial001_py39 import app
    
    client = TestClient(app)
    
    
    def test():
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***")
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 583 bytes
    - Click Count (0)
  5. docs_src/path_operation_configuration/tutorial002_py39.py

    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
    
    
    @app.post("/items/", response_model=Item, tags=["items"])
    async def create_item(item: Item):
        return item
    
    
    @app.get("/items/", tags=["items"])
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 575 bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

         * Creates an {@link java.io.InputStream} for reading bytes from a file on
         * an SMB server addressed by the <code>url</code> parameter. See {@link
         * jcifs.smb1.smb1.SmbFile} for a detailed description and examples of the smb
         * URL syntax.
         *
         * @param url An smb URL string representing the file to read from
         */
    
        /**
         * Creates an input stream for reading from the specified SMB URL
         *
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/path-params.md

    ### Create an `Enum` class { #create-an-enum-class }
    
    Import `Enum` and create a sub-class that inherits from `str` and from `Enum`.
    
    By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
    
    Then create class attributes with fixed values, which will be the available valid values:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts

        }
        val classpathManifest = tasks.register("classpathManifest", ClasspathManifest::class) {
            this.projectDependencies.from(runtimeClasspath.incoming.artifactView {
                componentFilter {
                    it is ProjectComponentIdentifier
                }
            }.files)
            this.externalDependencies.from(runtimeClasspath.incoming.artifactView {
                componentFilter {
                    externalComponents.contains(it)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri May 16 18:26:52 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/xml/SchemaUtil.java

     * @author koichik
     */
    public abstract class SchemaUtil {
    
        /**
         * Do not instantiate.
         */
        protected SchemaUtil() {
        }
    
        /**
         * Generates a {@link Schema} for W3C XML Schema from a file.
         *
         * @param schema
         *            W3C XML Schema file. Must not be {@literal null}.
         * @return {@link Schema}
         */
        public static Schema newW3cXmlSchema(final File schema) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  10. scripts/sponsors.py

    import logging
    import secrets
    import subprocess
    from collections import defaultdict
    from pathlib import Path
    from typing import Any
    
    import httpx
    import yaml
    from github import Github
    from pydantic import BaseModel, SecretStr
    from pydantic_settings import BaseSettings
    
    github_graphql_url = "https://api.github.com/graphql"
    
    
    sponsors_query = """
    query Q($after: String) {
      user(login: "tiangolo") {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 6.1K bytes
    - Click Count (0)
Back to Top