Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 401 for toRule (0.04 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt

      }
    
      private inline fun <T> assertOnFileDescriptor(
        content: String? = null,
        fn: (FileDescriptor) -> T,
      ): T =
        assertOnPath(content) {
          FileInputStream(filePath.toFile()).use { fis ->
            fn(fis.fd)
          }
        }
    
      private inline fun <T> assertOnPath(
        content: String? = null,
        fn: (okio.Path) -> T,
      ): T {
        FileSystem.SYSTEM.write(filePath) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 14:16:29 GMT 2025
    - 3.8K bytes
    - Click Count (1)
  2. docs/zh/docs/fastapi-cli.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with the
                 following code:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/index.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with
                 the following code:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Mar 31 08:15:11 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. misc/go_android_exec/main.go

    		if modDir != "" {
    			// In module mode, the user may reasonably expect the entire module
    			// to be present. Copy it over.
    			deviceModDir := path.Join(deviceGopath, "src", modPath)
    			if err := adb("exec-out", "mkdir", "-p", path.Dir(deviceModDir)); err != nil {
    				return 0, err
    			}
    			// We use a single recursive 'adb push' of the module root instead of
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Click Count (0)
  5. docs/en/docs/virtual-environments.md

    //// tab | `venv`
    
    To create a virtual environment, you can use the `venv` module that comes with Python.
    
    <div class="termy">
    
    ```console
    $ python -m venv .venv
    ```
    
    </div>
    
    /// details | What that command means
    
    * `python`: use the program called `python`
    * `-m`: call a module as a script, we'll tell it which module next
    * `venv`: use the module called `venv` that normally comes installed with Python
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 05:09:25 GMT 2025
    - 22.8K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/fastapi-cli.md

     ╭─ <font color="#8AE234"><b>Python module file</b></font> ─╮
     │                      │
     │  🐍 main.py          │
     │                      │
     ╰──────────────────────╯
    
    <font color="#3465A4">INFO    </font> Importing module <font color="#4E9A06">main</font>
    <font color="#3465A4">INFO    </font> Found importable FastAPI app
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. buildSrc/src/main/kotlin/JavaModules.kt

        // Patch the compileKotlinJvm output classes into the compilation so exporting packages works correctly.
        options.compilerArgs.addAll(
          listOf(
            "--patch-module",
            "$moduleName=${compileKotlinTask.destinationDirectory.get().asFile}",
          ),
        )
    
        classpath = compileKotlinTask.libraries
        modularity.inferModulePath.set(true)
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  8. okcurl/build.gradle.kts

      testApi(libs.assertk)
      testImplementation(kotlin("test"))
    }
    
    configure<AnimalSnifferExtension> {
      isIgnoreFailures = true
    }
    
    tasks.jar {
      manifest {
        attributes("Automatic-Module-Name" to "okhttp3.curl")
        attributes("Main-Class" to "okhttp3.curl.MainCommandLineKt")
      }
    }
    
    tasks.shadowJar {
      mergeServiceFiles()
    }
    
    tasks.withType<Test> {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 22 20:31:49 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_events/test_tutorial001.py

    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="app", scope="module")
    def get_app():
        with pytest.warns(DeprecationWarning):
            from docs_src.events.tutorial001_py39 import app
        yield app
    
    
    def test_events(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/items/foo")
            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
    - 3.6K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    context.installationSettingsPath != null ? context.installationSettingsPath.toFile() : null);
            request.setProjectSettingsFile(
                    context.projectSettingsPath != null ? context.projectSettingsPath.toFile() : null);
            request.setUserSettingsFile(context.userSettingsPath != null ? context.userSettingsPath.toFile() : null);
    
            request.setTopDirectory(context.invokerRequest.topDirectory());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
Back to Top