Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 950 for compute (0.08 sec)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

      //
      // 1) Optimal k = b * ln2
      // 2) p = (1 - e ^ (-kn/m))^k
      // 3) For optimal k: p = 2 ^ (-k) ~= 0.6185^b
      // 4) For optimal k: m = -nlnp / ((ln2) ^ 2)
    
      /**
       * Computes the optimal number of hash functions (k) for a given false positive probability (p).
       *
       * <p>See http://en.wikipedia.org/wiki/File:Bloom_filter_fp_probability.svg for the formula.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    @GwtIncompatible
    @J2ktIncompatible
    @NullMarked
    public final class ArbitraryInstances {
    
      private static final Ordering<Field> BY_FIELD_NAME =
          new Ordering<Field>() {
            @Override
            public int compare(Field left, Field right) {
              return left.getName().compareTo(right.getName());
            }
          };
    
      /**
       * Returns a new {@code MatchResult} that corresponds to a successful match. Apache Harmony (used
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Chars.java

       * equivalent {@link Character#compare} method instead.
       *
       * @param a the first {@code char} to compare
       * @param b the second {@code char} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      @InlineMe(replacement = "Character.compare(a, b)")
      public static int compare(char a, char b) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Shorts.java

       * equivalent {@link Short#compare} method instead.
       *
       * @param a the first {@code short} to compare
       * @param b the second {@code short} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      @InlineMe(replacement = "Short.compare(a, b)")
      public static int compare(short a, short b) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Shorts.java

       * equivalent {@link Short#compare} method instead.
       *
       * @param a the first {@code short} to compare
       * @param b the second {@code short} to compare
       * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is
       *     greater than {@code b}; or zero if they are equal
       */
      @InlineMe(replacement = "Short.compare(a, b)")
      public static int compare(short a, short b) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

                Set<String> sessionIds = processHelper.getRunningSessionIdSet();
                assertTrue(sessionIds.contains(sessionId));
    
                // Wait a bit for the process to complete
                Thread.sleep(100);
    
                // Clean up
                processHelper.destroyProcess(sessionId);
            } catch (Exception e) {
                fail("Unexpected exception: " + e.getMessage());
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

                Pattern.compile("^user-agent:\\s*([^\\t\\n\\x0B\\f\\r]+)\\s*$", Pattern.CASE_INSENSITIVE);
    
        /** Pattern for parsing disallow records. */
        protected static final Pattern DISALLOW_RECORD = Pattern.compile("^disallow:\\s*([^\\s]*)\\s*$", Pattern.CASE_INSENSITIVE);
    
        /** Pattern for parsing allow records. */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. tests/tests_all.sh

      go mod tidy
      cd ..
    fi
    
    # SqlServer for Mac M1
    if [[ -z $GITHUB_ACTION && -d tests ]]; then
      cd tests
      if [[ $(uname -a) == *" arm64" ]]; then
        MSSQL_IMAGE=mcr.microsoft.com/azure-sql-edge docker compose up -d --wait
        go install github.com/microsoft/go-sqlcmd/cmd/sqlcmd@latest || true
        for query in \
          "IF DB_ID('gorm') IS NULL CREATE DATABASE gorm" \
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/NullsFirstOrdering.java

        this.ordering = ordering;
      }
    
      @Override
      public int compare(@Nullable T left, @Nullable T right) {
        if (left == right) {
          return 0;
        }
        if (left == null) {
          return RIGHT_IS_GREATER;
        }
        if (right == null) {
          return LEFT_IS_GREATER;
        }
        return ordering.compare(left, right);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            } catch (Exception e) {
                // Expected
            }
            long duration = System.currentTimeMillis() - startTime;
    
            // Test should complete in under 1 second (much less than the original 25+ seconds)
            assertTrue("Test should complete quickly (duration: " + duration + "ms)", duration < 1000);
        }
    
        // Fast mock implementations to minimize overhead
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top