Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 27 for rateK (0.02 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * <p>Rate limiters are often used to restrict the rate at which some physical or logical resource
     * is accessed. This is in contrast to {@link java.util.concurrent.Semaphore} which restricts the
     * number of concurrent accesses instead of the rate (note though that concurrency and rate are
     * closely related, e.g. see <a href="http://en.wikipedia.org/wiki/Little%27s_law">Little's
     * Law</a>).
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:05:27 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/filter/RateLimitFilter.java

                }
                sendBlockedResponse(httpResponse);
                return;
            }
    
            // Check rate limit
            if (!rateLimitHelper.allowRequest(clientIp)) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Rate limit exceeded: clientIp={}", clientIp);
                }
                sendRateLimitResponse(httpResponse, rateLimitHelper.getRetryAfterSeconds());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/RateLimitHelper.java

            if (logger.isInfoEnabled()) {
                logger.info("RateLimitHelper initialized: windowMs={}, blockDurationMs={}", windowMs, blockDurationMs);
            }
        }
    
        /**
         * Check if rate limiting is enabled.
         * @return true if rate limiting is enabled
         */
        public boolean isEnabled() {
            return ComponentUtil.getFessConfig().isRateLimitEnabled();
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/llm/LlmExceptionTest.java

        }
    
        @Test
        public void test_constructorWithMessageAndErrorCode() {
            final LlmException exception = new LlmException("Rate limit exceeded", LlmException.ERROR_RATE_LIMIT);
            assertEquals("Rate limit exceeded", exception.getMessage());
            assertEquals(LlmException.ERROR_RATE_LIMIT, exception.getErrorCode());
            assertNull(exception.getCause());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 05 04:19:06 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  7. scripts/people.py

            now = datetime.now(tz=timezone.utc)
    
            # Handle primary rate limits
            primary_limit_wait_time = 0.0
            if self.remaining_points <= self.last_query_cost:
                primary_limit_wait_time = (self.reset_at - now).total_seconds() + 2
                logging.warning(
                    f"Approaching GitHub API rate limit, remaining points: {self.remaining_points}, "
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:51:24 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/llm/LlmException.java

     *
     * @author FessProject
     */
    public class LlmException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        /** Error code for rate limit (HTTP 429). */
        public static final String ERROR_RATE_LIMIT = "rate_limit";
    
        /** Error code for authentication failure (HTTP 401/403). */
        public static final String ERROR_AUTH = "auth_error";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  9. src/main/resources/fess_config.properties

    #                                                                           Rate Limiting
    #                                                                           ==============
    # Whether rate limiting is enabled.
    rate.limit.enabled=false
    # Maximum number of requests allowed per window.
    rate.limit.requests.per.window=100
    # Window size in milliseconds.
    rate.limit.window.ms=60000
    # Duration in milliseconds to block IP when limit exceeded.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 59.3K bytes
    - Click Count (0)
  10. CLAUDE.md

    - Role-based query filtering via `RoleQueryHelper`
    - Authentication: Local (UserService), LDAP, OIDC, SAML, SPNEGO, Entra ID
    - Security features: AES encryption, SHA256 digest, LDAP injection prevention, password policy, rate limiting
    
    ## Naming Conventions
    
    | Element | Convention | Example |
    |---------|------------|---------|
    | Classes | PascalCase | `UserService`, `FessBaseAction` |
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 09:48:10 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top