Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 761 - 770 of 4,419 for getA (0.03 seconds)

  1. fastapi/.agents/skills/fastapi/SKILL.md

    from fastapi import FastAPI, Path, Query
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(
        item_id: Annotated[int, Path(ge=1, description="The item ID")],
        q: Annotated[str | None, Query(max_length=50)] = None,
    ):
        return {"message": "Hello World"}
    ```
    
    instead of:
    
    ```python
    # DO NOT DO THIS
    @app.get("/items/{item_id}")
    async def read_item(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

              }
            };
    
        cache.put(0, 10);
    
        assertThat(cache.get(0, loader)).isEqualTo(10);
        assertThat(cache.get(20, loader)).isEqualTo(1);
        assertThat(cache.get(34, loader)).isEqualTo(2);
    
        cache.invalidate(0);
        assertThat(cache.get(0, loader)).isEqualTo(3);
    
        cache.put(0, 10);
        cache.invalidateAll();
        assertThat(cache.get(0, loader)).isEqualTo(4);
      }
    
      @Test
      public void sizeConstraint() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantExtension.java

        @Input
        public String getBox() {
            return box.get();
        }
    
        public void setBox(String box) {
            // TODO: should verify this against the Vagrantfile, but would need to do so in afterEvaluate once vagrantfile is unmodifiable
            this.box.set(box);
        }
    
        @Input
        public Map<String, Object> getHostEnv() {
            return hostEnv.get();
        }
    
        public void hostEnv(String name, Object value) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.4K bytes
    - Click Count (0)
  4. docs_src/sql_databases/tutorial001_py310.py

        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: Session = Depends(get_session),
        offset: int = 0,
        limit: int = Query(default=100, le=100),
    ) -> list[Hero]:
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Oct 09 19:44:42 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

        public int getNegotiatedCapabilities() {
            return this.capabilities;
        }
    
        /**
         * Gets the negotiated send buffer size.
         *
         * @return negotiated send buffer size
         */
        public int getNegotiatedSendBufferSize() {
            return this.snd_buf_size;
        }
    
        /**
         * Gets the negotiated multiplex count.
         *
         * @return negotiated multiplex count
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            commandField.setAccessible(true);
            int command = (int) commandField.get(request);
            assertEquals(0x0006, command); // SMB2_CLOSE value
    
            // Verify file ID is set
            Field fileIdField = Smb2CloseRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
            byte[] storedFileId = (byte[]) fileIdField.get(request);
            assertArrayEquals(testFileId, storedFileId);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  7. internal/kms/config.go

    			Type:       MinKMS,
    			DefaultKey: env.Get(EnvKMSDefaultKey, ""),
    			conn: &kmsConn{
    				enclave:    env.Get(EnvKMSEnclave, ""),
    				defaultKey: env.Get(EnvKMSDefaultKey, ""),
    				client:     client,
    			},
    			latencyBuckets: defaultLatencyBuckets,
    			latency:        make([]atomic.Uint64, len(defaultLatencyBuckets)),
    		}, nil
    	case lookup(EnvKESEndpoint):
    		rawEndpoint := env.Get(EnvKESEndpoint, "")
    		if rawEndpoint == "" {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15K bytes
    - Click Count (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts

        implementation(localGroovy())
        testImplementation(testLibs.findLibrary("spock").get())
        testImplementation(testLibs.findLibrary("bytebuddy").get())
        testImplementation(testLibs.findLibrary("objenesis").get())
    
        testRuntimeOnly(testLibs.findLibrary("junitPlatform").get())
    }
    
    tasks.withType<GroovyCompile>().configureEach {
        groovyOptions.apply {
            encoding = "utf-8"
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  9. tests/test_request_params/test_path/test_required_str.py

    from inline_snapshot import Is, snapshot
    
    app = FastAPI()
    
    
    @app.get("/required-str/{p}")
    async def read_required_str(p: Annotated[str, Path()]):
        return {"p": p}
    
    
    @app.get("/required-alias/{p_alias}")
    async def read_required_alias(p: Annotated[str, Path(alias="p_alias")]):
        return {"p": p}
    
    
    @app.get("/required-validation-alias/{p_val_alias}")
    def read_required_validation_alias(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 09 15:35:43 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        synchronized (lock) {
          return cachingHashMap.isEmpty();
        }
      }
    
      @Override
      public @Nullable V get(@Nullable Object key) {
        Timestamped<V> value;
        synchronized (lock) {
          checkNotNull(key);
          value = cachingHashMap.get(key);
    
          if (value == null) {
            statsCounter.recordMisses(1);
            return null;
          }
          if (!isExpired(value)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
Back to Top