- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 348 for counters (0.04 seconds)
-
guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java
strs -> new CountsHashCodeAndEquals( String.join("", strs), () -> counter.hashCode++, () -> counter.equals++, () -> counter.compareTo++))); assertEquals( result.get(0).delegateString.hashCode(), result.get(result.size() - 1).delegateString.hashCode()); return result;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
* exception is thrown, this exception is used as the result of the output {@code Future}. * * <p>Usage example: * * {@snippet : * // Falling back to a zero counter in case an exception happens when processing the RPC to fetch * // counters. * ListenableFuture<Integer> faultTolerantFuture = * fetchCounters().catching(FetchException.class, x -> 0, directExecutor()); * } *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 19.8K bytes - Click Count (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
long currentWindow = System.currentTimeMillis() / rateLimitWindow; String windowKey = key + "_" + currentWindow; AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0)); long currentCount = counter.incrementAndGet(); // Clean up old windows periodically if (currentCount == 1) { cleanupOldRateLimitCounters(currentWindow); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 26.6K bytes - Click Count (0) -
guava/src/com/google/common/cache/AbstractCache.java
private static long negativeToMaxValue(long value) { return (value >= 0) ? value : Long.MAX_VALUE; } /** Increments all counters by the values in {@code other}. */ public void incrementBy(StatsCounter other) { CacheStats otherStats = other.snapshot(); hitCount.add(otherStats.hitCount()); missCount.add(otherStats.missCount());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 9.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/pager/RelatedContentPager.java
public String createdTime; /** Version number for optimistic locking. */ public String versionNo; /** * Clears all pagination state and filter parameters. * Resets pagination counters to default values and clears all filter fields. */ public void clear() { allRecordCount = 0; allPageCount = 0; existPrePage = false; existNextPage = false;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 6.8K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/AbstractCache.java
private static long negativeToMaxValue(long value) { return (value >= 0) ? value : Long.MAX_VALUE; } /** Increments all counters by the values in {@code other}. */ public void incrementBy(StatsCounter other) { CacheStats otherStats = other.snapshot(); hitCount.add(otherStats.hitCount()); missCount.add(otherStats.missCount());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/resources/thumbnail/test_generate_thumbnail.sh
TEST_DIR="${SCRIPT_DIR}" OUTPUT_DIR="/tmp/thumbnail_test_$$" # Color codes for output RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' # No Color # Test counters TESTS_PASSED=0 TESTS_FAILED=0 # Create output directory mkdir -p "${OUTPUT_DIR}" # Cleanup function cleanup() { rm -rf "${OUTPUT_DIR}" } trap cleanup EXIT # Test functionCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 04 08:02:36 GMT 2025 - 7.9K bytes - Click Count (0) -
CLAUDE.md
- **Template Method**: `AbstractCrawlerClient`, `AbstractExtractor` - common logic with overrides - **DI**: LastaFlute container with `@Resource` and XML config ### Core Principles **Thread Safety**: `AtomicLong` for counters, `volatile` for status flags, synchronized blocks, thread-local storage via `CrawlingParameterUtil`
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Mar 12 03:39:20 GMT 2026 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
stats.recordRdmaSend(512, 500000); // 512B in 0.5ms stats.recordRdmaReceive(1536, 1500000); // 1.5KB in 1.5ms stats.recordError(); // Verify counters assertEquals(1, stats.getRdmaReads(), "Should have 1 read operation"); assertEquals(1, stats.getRdmaWrites(), "Should have 1 write operation");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 13.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
for (int i = 0; i < SIZE; i++) { aa.set(i, (double) COUNTDOWN); } Counter c1 = new Counter(aa); Counter c2 = new Counter(aa); Thread t1 = newStartedThread(c1); Thread t2 = newStartedThread(c2); awaitTermination(t1); awaitTermination(t2); assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts); } /** a deserialized serialized array holds same values */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 10.8K bytes - Click Count (0)