Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 1,544 for needle (0.06 seconds)

  1. docs_src/query_params/tutorial006_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_user_item(
        item_id: str, needy: str, skip: int = 0, limit: int | None = None
    ):
        item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 269 bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/query-params.md

    }
    ```
    
    由於 `needy` 是必填參數,你需要在 URL 中設定它:
    
    ```
    http://127.0.0.1:8000/items/foo-item?needy=sooooneedy
    ```
    
    ...這樣就會成功:
    
    ```JSON
    {
        "item_id": "foo-item",
        "needy": "sooooneedy"
    }
    ```
    
    當然,你可以同時定義部分參數為必填、部分有預設值、部分為選填:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    在此例中,有 3 個查詢參數:
    
    * `needy`,必填的 `str`。
    * `skip`,具有預設值 `0` 的 `int`。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  3. src/bufio/scan.go

    			// Shut it down.
    			s.start = 0
    			s.end = 0
    			return false
    		}
    		// Must read more data.
    		// First, shift data to beginning of buffer if there's lots of empty space
    		// or space is needed.
    		if s.start > 0 && (s.end == len(s.buf) || s.start > len(s.buf)/2) {
    			copy(s.buf, s.buf[s.start:s.end])
    			s.end -= s.start
    			s.start = 0
    		}
    		// Is the buffer full? If so, resize.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed May 21 18:05:26 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/LegacyComparable.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A class that implements {@code Comparable} without generics, such as those found in libraries
     * that support Java 1.4 and before. Our library needs to do the bare minimum to accommodate such
     * types, though their use may still require an explicit type parameter and/or warning suppression.
     *
     * @author Kevin Bourrillion
     */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  5. .ci/scripts/packaging-test.sh

      # The GCE defaults disable IPv4 forwarding, which breaks the Docker
      # build. Workaround this by renaming the file so that it is executed
      # earlier than our own overrides.
      #
      # This ultimately needs to be fixed at the image level - see infra
      # issue 15654.
      sudo mv /etc/sysctl.d/99-gce.conf /etc/sysctl.d/98-gce.conf
    fi
    
    # Required by bats
    sudo touch /etc/is_vagrant_vm
    sudo useradd vagrant
    
    set -e
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu May 06 21:46:09 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  6. benchmarks/build.gradle

      // Dependencies of JMH
      runtimeOnly 'net.sf.jopt-simple:jopt-simple:4.6'
      runtimeOnly 'org.apache.commons:commons-math3:3.2'
    }
    
    // enable the JMH's BenchmarkProcessor to generate the final benchmark classes
    // needs to be added separately otherwise Gradle will quote it and javac will fail
    tasks.named("compileJava").configure {
      options.compilerArgs.addAll(["-processor", "org.openjdk.jmh.generators.BenchmarkProcessor"])
    }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 22:04:23 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

     *       }
     *     };
     *   }
     *
     *   @Override
     *   public void close() throws IOException {
     *     serverSocket.close();
     *     cleanable.clean();
     *   }
     * }
     * }
     *
     * <p>Some care is needed when using {@code Cleaner} to ensure that the callback passed to {@code
     * register} does not have a reference to the object (in this case, {@code MyServer}) that may be
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 19:26:59 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * as when it was first created.
       *
       * <p>The returned {@code RateLimiter} is intended for cases where the resource that actually
       * fulfills the requests (e.g., a remote server) needs "warmup" time, rather than being
       * immediately accessed at the stable (maximum) rate.
       *
       * <p>The returned {@code RateLimiter} starts in a "cold" state (i.e. the warmup period will
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:05:27 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  9. cmd/xl-storage-format-utils.go

    			return FileInfoVersions{}, err
    		}
    		versions, err = xlMeta.ListVersions(volume, path, allParts)
    	}
    	if err == nil && len(versions) == 0 {
    		// This special case is needed to handle len(xlMeta.versions) == 0
    		versions = []FileInfo{
    			{
    				Volume:   volume,
    				Name:     path,
    				Deleted:  true,
    				IsLatest: true,
    				ModTime:  timeSentinel1970,
    			},
    		}
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 08 15:29:58 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  10. .github/workflows/contributor-pr.yml

      unit-test:
        name: "${{ matrix.bucket.name }} (Unit Test)"
        permissions:
          contents: read
        runs-on: ubuntu-latest
        needs: build
        strategy:
          matrix:
            bucket: ${{ fromJson(needs.build.outputs.matrix) }}
          fail-fast: false
        steps:
          - name: git clone
            uses: actions/checkout@v6
          - name: setup java
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 22:06:44 GMT 2026
    - 5K bytes
    - Click Count (0)
Back to Top