Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 641 for Limits (0.05 seconds)

  1. docs_src/dependencies/tutorial001_02_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    CommonsDep = Annotated[dict, Depends(common_parameters)]
    
    
    @app.get("/items/")
    async def read_items(commons: CommonsDep):
        return commons
    
    
    @app.get("/users/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 447 bytes
    - Click Count (0)
  2. docs/uk/docs/tutorial/query-params.md

    Query — це набір пар ключ-значення, що йдуть після символу `?` в URL, розділені символами `&`.
    
    Наприклад, в URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...параметрами query є:
    
    * `skip`: зі значенням `0`
    * `limit`: зі значенням `10`
    
    Оскільки вони є частиною URL, вони «природно» є рядками.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  3. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int joinerWithCharacterDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy ^= JOINER_ON_CHARACTER.join(components).length();
        }
        return dummy;
      }
    
      /**
       * Mimics what the {@link Joiner} class does internally when no extra options like ignoring {@code
       * null} values are used.
       */
      @Benchmark
      int joinerInlined(int reps) {
        int dummy = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 27 16:19:35 GMT 2024
    - 5K bytes
    - Click Count (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            if ((s.length() > 1) && s.startsWith("0")) {
                return null;
            }
            return tryParseInt(s);
        }
    
        private static Integer tryParseInt(String s) {
            // for performance, check digits instead of relying later on catching NumberFormatException
            if (!isDigits(s)) {
                return null;
            }
    
            try {
                long longValue = Long.parseLong(s);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/Java8Compatibility.java

     */
    @GwtIncompatible
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
      static void limit(Buffer b, int limit) {
        b.limit(limit);
      }
    
      static void position(Buffer b, int position) {
        b.position(position);
      }
    
      private Java8Compatibility() {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  6. cmd/metacache-walk.go

    	// Should never contain a slash.
    	FilterPrefix string
    
    	// ForwardTo will forward to the given object path.
    	ForwardTo string
    
    	// Limit the number of returned objects if > 0.
    	Limit int
    
    	// DiskID contains the disk ID of the disk.
    	// Leave empty to not check disk ID.
    	DiskID string
    }
    
    // supported FS for Nlink optimization in readdir.
    const (
    	xfs  = "XFS"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/query-params.md

    Например, в этом URL-адресе:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...параметры запроса такие:
    
    * `skip`: со значением `0`
    * `limit`: со значением `10`
    
    Будучи частью URL-адреса, они "по умолчанию" являются строками.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

       */
      private fun findRangesOffset(
        codePoint: Int,
        position: Int,
        limit: Int,
      ): Int {
        val target = codePoint and 0x7f
        val offset =
          binarySearch(
            position = position,
            limit = limit,
          ) { index ->
            val entryIndex = index * 4
            val b0 = ranges[entryIndex].code
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 9K bytes
    - Click Count (0)
  9. docs_src/dependencies/tutorial002_py310.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 624 bytes
    - Click Count (0)
  10. docs_src/dependencies/tutorial004_py310.py

        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends()):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 607 bytes
    - Click Count (0)
Back to Top