Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1211 - 1220 of 4,419 for getA (0.27 seconds)

  1. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentSkipListMap;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * A microbenchmark that tests the performance of get() and iteration on various map
     * implementations. Forked from {@link SetContainsBenchmark}.
     *
     * @author Nicholaus Shupe
     */
    @NullUnmarked
    public class MapBenchmark {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/ForwardingLoadingCache.java

      @Override
      protected abstract LoadingCache<K, V> delegate();
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public V get(K key) throws ExecutionException {
        return delegate().get(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public V getUnchecked(K key) {
        return delegate().getUnchecked(key);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 3K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_body_updates/test_tutorial002.py

    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  4. docs_src/app_testing/tutorial003_py310.py

    @app.on_event("startup")
    async def startup_event():
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
        with TestClient(app) as client:
            response = client.get("/items/foo")
            assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 528 bytes
    - Click Count (0)
  5. docs_src/dependencies/tutorial001_02_an_py310.py

        return {"q": q, "skip": skip, "limit": limit}
    
    
    CommonsDep = Annotated[dict, Depends(common_parameters)]
    
    
    @app.get("/items/")
    async def read_items(commons: CommonsDep):
        return commons
    
    
    @app.get("/users/")
    async def read_users(commons: CommonsDep):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 447 bytes
    - Click Count (0)
  6. docs_src/path_params_numeric_validations/tutorial004_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=1)], q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 317 bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            }
    
            return leaseKey;
        }
    
        /**
         * Get cache entry for a directory
         *
         * @param directoryPath directory path
         * @return cache entry or null
         */
        public DirectoryCacheEntry getCacheEntry(String directoryPath) {
            DirectoryCacheEntry entry = directoryCache.get(directoryPath);
    
            // Check if cache entry is valid
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  8. tests/test_return_none_stringified_annotations.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    def test_no_content():
        app = FastAPI()
    
        @app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT)
        def return_no_content() -> "None":
            return
    
        client = TestClient(app)
        response = client.get("/no-content")
        assert response.status_code == http.HTTPStatus.NO_CONTENT, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Sep 20 18:44:43 GMT 2025
    - 431 bytes
    - Click Count (0)
  9. cmd/admin-handlers-idp-openid.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminOpenIDNotEnabled), r.URL)
    		return
    	}
    
    	userList := r.Form["users"]
    	isAll := r.Form.Get("all") == "true"
    	selfOnly := !isAll && len(userList) == 0
    	cfgName := r.Form.Get("configName")
    	allConfigs := r.Form.Get("allConfigs") == "true"
    	if cfgName == "" && !allConfigs {
    		cfgName = madmin.Default
    	}
    
    	if isAll && len(userList) > 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Sep 06 17:38:46 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingResult.java

            modelIds.add(modelId);
    
            return this;
        }
    
        @Override
        public Model getRawModel() {
            return rawModels.get(modelIds.get(0));
        }
    
        @Override
        public Model getRawModel(String modelId) {
            return rawModels.get(modelId);
        }
    
        public DefaultModelBuildingResult setRawModel(String modelId, Model rawModel) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top