Search Options

Results per page
Sort
Preferred Languages
Advance

Results 701 - 710 of 3,152 for get2 (0.04 sec)

  1. docs_src/security/tutorial004_an_py39.py

        )
        return Token(access_token=access_token, token_type="bearer")
    
    
    @app.get("/users/me/", response_model=User)
    async def read_users_me(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: Annotated[User, Depends(get_current_active_user)],
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

                        form.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s))
                                .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n")));
                        form.virtualHosts = stream(entity.getVirtualHosts())
                                .get(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).collect(Collectors.joining("\n")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. internal/bpool/bpool_test.go

    	}
    
    	// Check with width cap
    	if bp.WidthCap() != capWidth {
    		t.Fatalf("bytepool capWidth invalid: got %v want %v", bp.WidthCap(), capWidth)
    	}
    
    	// Check that retrieved buffer are of the expected width
    	b := bp.Get()
    	if len(b) != width {
    		t.Fatalf("bytepool length invalid: got %v want %v", len(b), width)
    	}
    	if cap(b) != capWidth {
    		t.Fatalf("bytepool cap invalid: got %v want %v", cap(b), capWidth)
    	}
    
    	bp.Put(b)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_updates/test_tutorial001_py39.py

    @needs_py39
    @needs_pydanticv2
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "get": {
                        "responses": {
                            "200": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                .collect(toImmutableList()),
            n -> n * log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. internal/cachevalue/cache_test.go

    		func(ctx context.Context) (time.Time, error) {
    			return time.Now(), nil
    		},
    	)
    
    	t1, _ := cache.Get()
    
    	t2, _ := cache.Get()
    
    	if !t1.Equal(t2) {
    		t.Fatalf("expected time to be equal: %s != %s", t1, t2)
    	}
    
    	time.Sleep(3 * time.Second)
    	t3, _ := cache.Get()
    
    	if t1.Equal(t3) {
    		t.Fatalf("expected time to be un-equal: %s == %s", t1, t3)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/searchlist/ApiAdminSearchlistAction.java

            }
    
            throwValidationErrorApi(messages -> messages.addErrorsInvalidQueryUnknown(GLOBAL));
            return null; // ignore
        }
    
        // GET /api/admin/searchlist/doc/{doc_id}
        @Execute
        public JsonResponse<ApiResult> get$doc(final String id) {
            return asJson(new ApiDocResponse().doc(searchEngineClient.getDocument(fessConfig.getIndexDocumentUpdateIndex(), builder -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 09:03:45 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

          for (V value : sampleValues()) {
            resetContainer();
    
            List<V> values = multimap().get(key);
            List<V> expectedValues = copyToList(values);
    
            assertTrue(multimap().put(key, value));
            expectedValues.add(value);
    
            assertGet(key, expectedValues);
            assertEquals(value, values.get(values.size() - 1));
          }
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. tests/test_custom_schema_fields.py

            }
        },
    }
    
    
    def test_custom_response_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json()["components"]["schemas"]["Item"] == item_schema
    
    
    def test_response():
        # For coverage
        response = client.get("/foo")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/FluentFuture.java

       * that {@link #get} calls exactly the implementation of {@link AbstractFuture#get}.
       */
      abstract static class TrustedFuture<V extends @Nullable Object> extends FluentFuture<V>
          implements AbstractFuture.Trusted<V> {
        @CanIgnoreReturnValue
        @Override
        @ParametricNullness
        public final V get() throws InterruptedException, ExecutionException {
          return super.get();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top