Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,561 for weigher (0.52 sec)

  1. android/guava/src/com/google/common/cache/Weigher.java

    public interface Weigher<K, V> {
    
      /**
       * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
       * relative to each other.
       *
       * @return the weight of the entry; must be non-negative
       */
      int weigh(K key, V value);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/TestingWeighers.java

      /** Returns a {@link Weigher} that returns the given {@code constant} for every request. */
      static Weigher<Object, Object> constantWeigher(int constant) {
        return new ConstantWeigher(constant);
      }
    
      /** Returns a {@link Weigher} that uses the integer key as the weight. */
      static Weigher<Integer, Object> intKeyWeigher() {
        return new IntKeyWeigher();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java

            long weightC = comparator.getProjectWeight(projectC);
            long weightX = comparator.getProjectWeight(projectX);
    
            // Project A should have the highest weight as it's at the root
            assertTrue(weightA > weightB, "Project A should have weight > Project B");
            assertTrue(weightA > weightC, "Project A should have weight > Project C");
            assertTrue(weightB > weightX, "Project B should have weight > Project X");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

        }
    
        public static String key(String groupId, String artifactId, String version) {
            notBlank(groupId, "groupId can neither be null, empty nor blank");
            notBlank(artifactId, "artifactId can neither be null, empty nor blank");
            notBlank(version, "version can neither be null, empty nor blank");
    
            return groupId + ":" + artifactId + ":" + version;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java

     * <ul>
     * <li>Project D: weight = 1 (no downstream dependencies)</li>
     * <li>Project B: weight = 2 (1 + max(D=1))</li>
     * <li>Project C: weight = 2 (1 + max(D=1))</li>
     * <li>Project A: weight = 3 (1 + max(B=2, C=2))</li>
     * </ul>
     * <p>Build order: A (weight=3), then B and C (weight=2, ordered by project ID), then D (weight=1)
     * <p>If projects have identical weights and IDs, the order is deterministic but may not preserve
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

       * array nor its contents can be null, but it is not useful to force the use of {@code
       * requireNonNull} or the like just to assert that.
       *
       * <p>{@code EqualsTester} will always check that every object it is given returns false from
       * {@code equals(null)}, so it is neither useful nor allowed to include a null value in any
       * equality group.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RoutePlanner.kt

       * non-null, it should be reported to the user should all further attempts fail.
       *
       * The two values are independent: results can contain both (recoverable error), neither
       * (success), just an exception (permanent failure), or just a plan (non-exceptional retry).
       */
      data class ConnectResult(
        val plan: Plan,
        val nextPlan: Plan? = null,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-nested-models.md

    This means that, even though your API clients can only send strings as keys, as long as those strings contain pure integers, Pydantic will convert them and validate them.
    
    And the `dict` you receive as `weights` will actually have `int` keys and `float` values.
    
    ///
    
    ## Recap { #recap }
    
    With **FastAPI** you have the maximum flexibility provided by Pydantic models, while keeping your code simple, short and elegant.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     * ===========================
     *
     * This is UTF-8 character data. It is indexed into by b2b3 in the ranges dataset.
     *
     * Mappings may overlap.
     *
     * ASCII-Only
     * ==========
     *
     * Neither the section index nor the ranges data use bit 0x80 anywhere. That means the data is
     * strictly ASCII. This is intended to make it efficient to encode this data as a string, and to
     * index into it as a string.
     *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/body-nested-models.md

    /// tip | 팁
    
    JSON은 오직 `str`형 키만 지원한다는 것을 염두에 두세요.
    
    하지만 Pydantic은 자동 데이터 변환이 있습니다.
    
    즉, API 클라이언트가 문자열을 키로 보내더라도 해당 문자열이 순수한 정수를 포함하는한 Pydantic은 이를 변환하고 검증합니다.
    
    그러므로 `weights`로 받은 `dict`는 실제로 `int` 키와 `float` 값을 가집니다.
    
    ///
    
    ## 요약
    
    **FastAPI**를 사용하면 Pydantic 모델이 제공하는 최대 유연성을 확보하면서 코드를 간단하고 짧게, 그리고 우아하게 유지할 수 있습니다.
    
    물론 아래의 이점도 있습니다:
    
    * 편집기 지원 (자동완성이 어디서나!)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top