Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1741 - 1750 of 3,731 for get2 (0.16 seconds)

  1. docs_src/query_params/tutorial002_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: str, q: str | None = None):
        if q:
            return {"item_id": item_id, "q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 219 bytes
    - Click Count (0)
  2. docs_src/query_params_str_validations/tutorial012_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[list[str], Query()] = ["foo", "bar"]):
        query_items = {"q": q}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 227 bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java

            for (Lifecycle lifecycle : defaultLifeCycles.getLifeCycles()) {
                org.apache.maven.lifecycle.mapping.Lifecycle lifecycleConfiguration =
                        lifecycleMappingForPackaging.getLifecycles().get(lifecycle.getId());
    
                Map<String, LifecyclePhase> phaseToGoalMapping = null;
    
                if (lifecycleConfiguration != null) {
                    phaseToGoalMapping = lifecycleConfiguration.getLifecyclePhases();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9K bytes
    - Click Count (0)
  4. internal/config/identity/openid/jwt_test.go

    		},
    	}
    
    	u, err := url.Parse("http://127.0.0.1:8443/?Token=invalid")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var claims jwtgo.MapClaims
    	if err = cfg.Validate(t.Context(), DummyRoleARN, u.Query().Get("Token"), "", "", claims); err == nil {
    		t.Fatal(err)
    	}
    }
    
    func TestDefaultExpiryDuration(t *testing.T) {
    	testCases := []struct {
    		reqURL    string
    		duration  time.Duration
    		expectErr bool
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  5. tests/association_generics_test.go

    	}
    	var got1, got2 User
    	if err := DB.Preload("Pets").First(&got1, u1.ID).Error; err != nil {
    		t.Fatalf("load u1: %v", err)
    	}
    	if err := DB.Preload("Pets").First(&got2, u2.ID).Error; err != nil {
    		t.Fatalf("load u2: %v", err)
    	}
    	if len(got1.Pets) != 1 || got1.Pets[0].Name != "x" {
    		t.Fatalf("u1 pet not updated: %+v", got1.Pets)
    	}
    	if len(got2.Pets) != 1 || got2.Pets[0].Name != "x" {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Sep 12 05:42:26 GMT 2025
    - 37.9K bytes
    - Click Count (0)
  6. docs_src/query_params/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    @app.get("/items/")
    async def read_item(skip: int = 0, limit: int = 10):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 250 bytes
    - Click Count (0)
  7. guava/src/com/google/common/base/Optional.java

       *     RuntimeException}) is discouraged
       */
      public abstract T get();
    
      /**
       * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
       * value should be required because the instance is known to be present, use {@link #get()}
       * instead. For a default value of {@code null}, use {@link #orNull}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

                                .computeIfAbsent(PROJECT_INDEX, () -> new ProjectIndex(session.getProjects()));
    
                        int index = projectIndex.getIndices().get(projectId);
    
                        MavenProject forkedProject = projectIndex.getProjects().get(projectId);
    
                        forkedProjects.add(forkedProject);
    
                        MavenProject executedProject = forkedProject.clone();
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 12 14:55:55 GMT 2025
    - 21K bytes
    - Click Count (0)
  9. cmd/bucket-replication-stats.go

    		ActiveWorkers: r.ActiveWorkers(),
    		Metrics:       r.srStats.get(),
    		Proxied:       r.pCache.getSiteStats(),
    		ReplicaSize:   atomic.LoadInt64(&r.srStats.ReplicaSize),
    		ReplicaCount:  atomic.LoadInt64(&r.srStats.ReplicaCount),
    	}
    	return m
    }
    
    // Get replication metrics for a bucket from this node since this node came up.
    func (r *ReplicationStats) Get(bucket string) BucketReplicationStats {
    	if r == nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  10. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

                }
                return "Success";
            });
    
            final String result = fesenClient.get(c -> mockFuture);
    
            assertEquals("Success", result);
            assertEquals(6, attemptCount.get()); // Initial attempt + 5 retries
        }
    
        /**
         * Test: Retry logic fails after exceeding maxRetryCount
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Jan 12 06:25:38 GMT 2026
    - 16.9K bytes
    - Click Count (0)
Back to Top