Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 732 for MARK (0.13 sec)

  1. tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py

    
    @app.get("/check-class")
    async def check_gzip_request(request: Request):
        return {"request_class": type(request).__name__}
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize("compress", [True, False])
    def test_gzip_request(compress):
        n = 1000
        headers = {}
        body = [1] * n
        data = json.dumps(body).encode()
        if compress:
            data = gzip.compress(data)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 886 bytes
    - Viewed (0)
  2. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

        override fun read(b: ByteArray): Int = inputStream.read(b)
    
        override fun markSupported(): Boolean = inputStream.markSupported()
    
        override fun mark(readlimit: Int) = inputStream.mark(readlimit)
    
        override fun reset() = inputStream.reset()
    
        override fun read(): Int = inputStream.read()
    
        override fun readChar(): Char = readContext.readInt().toChar()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ToolingModelContract.java

    import java.lang.annotation.ElementType;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Annotation used to mark TAPI model interfaces. On the client side such interfaces
     * are instantiated via Java dynamic proxies, and we use this annotation when we want
     * these proxies to have richer behaviour than just implementing the base interface.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 08:48:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_first_steps/test_tutorial001.py

    import pytest
    from fastapi.testclient import TestClient
    
    from docs_src.first_steps.tutorial001 import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(path, expected_status, expected_response):
        response = client.get(path)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerThreadRegistry.java

         * Starts a new lease for the current thread. Marks the reservation of a lease. Blocks until a lease is available.
         *
         * <p>Note that the caller must call {@link WorkerLeaseRegistry.WorkerLeaseCompletion#leaseFinish()} to mark the completion of the lease and to release the lease for other threads to use.
         *
         * <p>It is generally better to use {@link WorkerThreadRegistry#runAsWorkerThread(Runnable)} instead of this method.</p>
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/init/kubelet.go

    	}
    
    	// Write env file with flags for the kubelet to use. We do not need to write the --register-with-taints for the control-plane,
    	// as we handle that ourselves in the mark-control-plane phase
    	// TODO: Maybe we want to do that some time in the future, in order to remove some logic from the mark-control-plane phase?
    	if err := kubeletphase.WriteKubeletDynamicEnvFile(&data.Cfg().ClusterConfiguration, &data.Cfg().NodeRegistration, false, data.KubeletDir()); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Aug 20 09:18:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/loopreschedchecks.go

    func backedges(f *Func) []Edge {
    	edges := []Edge{}
    	mark := make([]markKind, f.NumBlocks())
    	stack := []backedgesState{}
    
    	mark[f.Entry.ID] = notExplored
    	stack = append(stack, backedgesState{f.Entry, 0})
    
    	for len(stack) > 0 {
    		l := len(stack)
    		x := stack[l-1]
    		if x.i < len(x.b.Succs) {
    			e := x.b.Succs[x.i]
    			stack[l-1].i++
    			s := e.b
    			if mark[s.ID] == notFound {
    				mark[s.ID] = notExplored
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RootComponentResolutionIntegrationTest.groovy

    was also selected as a variant. Configurations should not act as both a resolution root and a variant simultaneously. Depending on the resolved configuration in this manner has been deprecated. This will fail with an error in Gradle 9.0. Be sure to mark configurations meant for resolution as canBeConsumed=false or use the 'resolvable(String)' configuration factory method to create them. Consult the upgrading guide for further information: https://docs.gradle.org/current/userguide/upgrading_versio...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 23 22:33:17 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/async-tests.md

    βž– πŸ’ͺ βš™οΈ πŸ” πŸ”’ πŸ‘† πŸ’― πŸ’ͺ ⚠, πŸ–Ό, πŸ•β” πŸ‘† πŸ”¬ πŸ‘† πŸ’½ πŸ”. 🌈 πŸ‘† πŸ’š πŸ’― πŸ“¨ πŸ“¨ πŸ‘† FastAPI 🈸 &amp; ‴️ βœ” πŸ‘ˆ πŸ‘† πŸ‘©β€πŸ’» βͺ ✍ β˜‘ πŸ’½ πŸ’½, βͺ βš™οΈ πŸ” πŸ’½ πŸ—ƒ.
    
    ➑️ πŸ‘€ ❔ πŸ‘₯ πŸ’ͺ βš’ πŸ‘ˆ πŸ‘·.
    
    ## pytest.mark.anyio
    
    πŸš₯ πŸ‘₯ πŸ’š πŸ€™ πŸ” πŸ”’ πŸ‘† πŸ’―, πŸ‘† πŸ’― πŸ”’ βœ”οΈ πŸ”. AnyIO 🚚 πŸ‘Œ πŸ“ πŸ‘‰, πŸ‘ˆ βœ” πŸ‘₯ βœ” πŸ‘ˆ πŸ’― πŸ”’ πŸ€™ πŸ”.
    
    ## πŸ‡ΈπŸ‡²
    
    πŸš₯ πŸ‘† **FastAPI** 🈸 βš™οΈ 😐 `def` πŸ”’ ↩️ `async def`, ⚫️ `async` 🈸 πŸ”˜.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/plist.go

    			q.Link = p
    
    			if p.Link == nil {
    				break // Reached the end, don't bother marking the end
    			}
    			if isRestartable(p.Link) {
    				// Next Prog is also restartable. No need to mark the end
    				// of this sequence. We'll just go ahead mark the next one.
    				continue
    			}
    			p = Appendp(p, newprog)
    			p.As = APCDATA
    			p.From.Type = TYPE_CONST
    			p.From.Offset = abi.PCDATA_UnsafePoint
    			p.To.Type = TYPE_CONST
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top