Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for file_content (0.12 seconds)

  1. docs_src/dependencies/tutorial011_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 504 bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/admin/StorageTests.java

        }
    
        @Test
        void testUpload_ok() {
            // Create a test file content
            String fileContent = "Test file content for storage upload";
    
            // Upload file
            Response response = given().header("Authorization", getTestToken())
                    .multiPart("file", NAME_PREFIX + "test.txt", fileContent.getBytes())
                    .when()
                    .put(getApiPath() + "/upload/");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  3. docs_src/dependencies/tutorial011_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 544 bytes
    - Click Count (0)
  4. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

    /**
     * Returns the trimmed contents of the file at the given [path] after
     * marking the file as a build logic input.
     */
    fun Project.trimmedContentsOfFile(path: String): Provider<String> =
        providers.fileContents(repoRoot().file(path)).asText.map { it.trim() }
    
    // TODO Simplify the buildTimestamp() calculation if possible
    fun Project.buildTimestamp(): Provider<String> =
        providers.of(BuildTimestampValueSource::class) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:46:35 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleReleaseNotesPlugin.java

                task.getReleaseNotes().set(extension.getReleaseNotes().getMarkdownFile());
                task.getMilestone().convention(project.getProviders().fileContents(project.getIsolated().getRootProject().getProjectDirectory().file("version.txt")).getAsText().map(String::trim));
            });
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:49:33 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  6. docs/tr/docs/advanced/advanced-dependencies.md

    Bu class'tan bir instance'ı şöyle oluşturabiliriz:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    Böylece dependency'mizi "parametreleştirmiş" oluruz; artık içinde `"bar"` vardır ve bu değer `checker.fixed_content` attribute'u olarak durur.
    
    ## Instance'ı dependency olarak kullanma { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  7. docs/ru/docs/advanced/advanced-dependencies.md

    Мы можем создать экземпляр этого класса так:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    Так мы «параметризуем» нашу зависимость: теперь внутри неё хранится "bar" в атрибуте `checker.fixed_content`.
    
    ## Используем экземпляр как зависимость { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14.1K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    And that way we are able to "parameterize" our dependency, that now has `"bar"` inside of it, as the attribute `checker.fixed_content`.
    
    ## Use the instance as a dependency { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9K bytes
    - Click Count (0)
  9. docs/es/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    Y de esa manera podemos "parametrizar" nuestra dependencia, que ahora tiene `"bar"` dentro de ella, como el atributo `checker.fixed_content`.
    
    ## Usar la instance como una dependencia { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  10. docs/pt/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    E deste modo nós podemos "parametrizar" a nossa dependência, que agora possui `"bar"` dentro dele, como o atributo `checker.fixed_content`.
    
    ## Utilize a instância como dependência { #use-the-instance-as-a-dependency }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 9.9K bytes
    - Click Count (0)
Back to Top