Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,413 for current (0.2 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheTesting.java

            for (ReferenceEntry<?, ?> current : segment.writeQueue) {
              assertTrue(entries.add(current));
              if (prev != null) {
                assertSame(prev, current.getPreviousInWriteQueue());
                assertSame(prev.getNextInWriteQueue(), current);
                assertThat(prev.getWriteTime()).isAtMost(current.getWriteTime());
              }
              Object key = current.getKey();
              if (key != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/autoscaling/v2beta2/generated.proto

    }
    
    // PodsMetricStatus indicates the current value of a metric describing each pod in
    // the current scale target (for example, transactions-processed-per-second).
    message PodsMetricStatus {
      // metric identifies the target metric by name and selector
      optional MetricIdentifier metric = 1;
    
      // current contains the current value for the given metric
      optional MetricValueStatus current = 2;
    }
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 21K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              return 0;
            }
            if (occurrences >= current) {
              if (countMap.remove(element, current)) {
                return current;
              }
            } else {
              // We know it's an "E" because it already exists in the map.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  4. docs_src/security/tutorial007_an_py39.py

    app = FastAPI()
    
    security = HTTPBasic()
    
    
    def get_current_username(
        credentials: Annotated[HTTPBasicCredentials, Depends(security)],
    ):
        current_username_bytes = credentials.username.encode("utf8")
        correct_username_bytes = b"stanleyjobson"
        is_correct_username = secrets.compare_digest(
            current_username_bytes, correct_username_bytes
        )
        current_password_bytes = credentials.password.encode("utf8")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_py310.py

    
    @app.get("/users/me/", response_model=User)
    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(
        current_user: User = Security(get_current_active_user, scopes=["items"]),
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. docs_src/security/tutorial005_an_py310.py

    @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, Security(get_current_active_user, scopes=["items"])],
    ):
        return [{"item_id": "Foo", "owner": current_user.username}]
    
    
    @app.get("/status/")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs_src/security/tutorial004_py310.py

    
    @app.get("/users/me/", response_model=User)
    async def read_users_me(current_user: User = Depends(get_current_active_user)):
        return current_user
    
    
    @app.get("/users/me/items/")
    async def read_own_items(current_user: User = Depends(get_current_active_user)):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            double z = a.getAndAdd(y);
            assertBitEquals(x, z);
            assertBitEquals(x + y, a.get());
          }
        }
      }
    
      /** addAndGet adds given value to current, and returns current value */
      public void testAddAndGet() {
        for (double x : VALUES) {
          for (double y : VALUES) {
            AtomicDouble a = new AtomicDouble(x);
            double z = a.addAndGet(y);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  9. docs_src/security/tutorial003.py

        return {"access_token": user.username, "token_type": "bearer"}
    
    
    @app.get("/users/me")
    async def read_users_me(current_user: User = Depends(get_current_active_user)):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              return 0;
            }
            if (occurrences >= current) {
              if (countMap.remove(element, current)) {
                return current;
              }
            } else {
              // We know it's an "E" because it already exists in the map.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top