Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,064 for needle (0.06 seconds)

  1. src/bytes/example_test.go

    	}
    	if !bytes.Equal(a, b) {
    		// a not equal b
    	}
    }
    
    func ExampleCompare_search() {
    	// Binary search to find a matching byte slice.
    	var needle []byte
    	var haystack [][]byte // Assume sorted
    	_, found := slices.BinarySearchFunc(haystack, needle, bytes.Compare)
    	if found {
    		// Found it!
    	}
    }
    
    func ExampleContains() {
    	fmt.Println(bytes.Contains([]byte("seafood"), []byte("foo")))
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon May 12 16:07:54 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  2. src/bytes/bytes_test.go

    }
    
    func bmIndexRuneUnicode(rt *unicode.RangeTable, needle rune) func(b *testing.B, n int) {
    	var rs []rune
    	for _, r16 := range rt.R16 {
    		for r := rune(r16.Lo); r <= rune(r16.Hi); r += rune(r16.Stride) {
    			if r != needle {
    				rs = append(rs, r)
    			}
    		}
    	}
    	for _, r32 := range rt.R32 {
    		for r := rune(r32.Lo); r <= rune(r32.Hi); r += rune(r32.Stride) {
    			if r != needle {
    				rs = append(rs, r)
    			}
    		}
    	}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
  3. ci/official/utilities/setup_macos.sh

    # Libtensorflow archives) to GCS buckets. TFCI Mac VMs need to authenticate as
    # a service account that has the right permissions to be able to do so.
    set +x
    if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then
      # Python 3.12 removed the module `imp` which is needed by gcloud CLI so we set
      # `CLOUDSDK_PYTHON` to Python 3.11 which is the system Python on TFCI Mac
      # VMs.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Oct 06 22:42:26 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  4. docs/en/docs/how-to/custom-docs-ui-assets.md

    ### Include the custom docs { #include-the-custom-docs }
    
    Now you can create the *path operations* for the custom docs.
    
    You can reuse FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments:
    
    * `openapi_url`: the URL where the HTML page for the docs can get the OpenAPI schema for your API. You can use here the attribute `app.openapi_url`.
    * `title`: the title of your API.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/references/dependencies.md

    * The logic depends on external resources or could block in any other way
    * Other dependencies need their results (it's a sub-dependency)
    * The logic can be shared by multiple endpoints to do things like error early, authentication, etc.
    * They need to handle cleanup (e.g., DB sessions, file handles), using dependencies with `yield`
    * Their logic needs input data from the request, like headers, query parameters, etc.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            // 1. Creating a new Smb2CreateRequest with reconnect context
            // 2. Adding lease context if needed
            // 3. Sending the request through the appropriate transport
            // 4. Processing the response
    
            // For now, we'll return false to indicate that the concrete implementation
            // needs to be provided by the calling code
            log.warn("performReconnection called but no concrete implementation available. "
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 8.5K bytes
    - Click Count (1)
  7. .github/workflows/pre-commit.yml

              # To be able to commit it needs to fetch the head of the branch, not the
              # merge commit
              ref: ${{ github.head_ref }}
              # And it needs the full history to be able to compute diffs
              fetch-depth: 0
              # A token other than the default GITHUB_TOKEN is needed to be able to trigger CI
              token: ${{ secrets.PRE_COMMIT }}
          # pre-commit lite ci needs the default checkout configs to work
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:02:57 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  8. docs/bucket/replication/README.md

    replica modification sync are all enabled. If you are using older mc versions, the ARN needs to be generated as a separate step before adding a replication rule.
    
    > NOTE: If you are using a mc version below `RELEASE.2022-12-24T15-21-38Z`, the --remote-bucket flag needs an ARN generated by `mc admin bucket remote add` command. For  mc versions RELEASE.2021-09-02T09-21-27Z and older, the remote target ARN needs to be passed in the --arn flag and actual remote bucket name in --remote-bucket flag...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/extra-models.md

    This is useful if you don't know the valid field/attribute names (that would be needed for a Pydantic model) beforehand.
    
    In this case, you can use `dict`:
    
    {* ../../docs_src/extra_models/tutorial005_py310.py hl[6] *}
    
    ## Recap { #recap }
    
    Use multiple Pydantic models and inherit freely for each case.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/body.md

    # Request Body { #request-body }
    
    When you need to send data from a client (let's say, a browser) to your API, you send it as a **request body**.
    
    A **request** body is data sent by the client to your API. A **response** body is the data your API sends to the client.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top