- Sort Score
- Num 10 results
- Language All
Results 461 - 470 of 653 for 1020 (0.05 seconds)
-
guava-tests/test/com/google/common/math/IntMathTest.java
// Check the first 100,000 integers for (int i = 0; i < 100000; i++) { assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); } // Then check 1000 deterministic pseudo-random int values. Random rand = new Random(1); for (int i = 0; i < 1000; i++) { int n = rand.nextInt(Integer.MAX_VALUE); assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
assertTrue(data.hasResponseBody()); assertNotNull(data.getResponseBody()); try (InputStream is = data.getResponseBody()) { byte[] buffer = new byte[1024]; int bytesRead = is.read(buffer); String result = new String(buffer, 0, bytesRead, StandardCharsets.UTF_8); assertEquals(content, result); } } finally {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
"64, FILE_NOTIFY_CHANGE_CREATION", "128, FILE_NOTIFY_CHANGE_EA", "256, FILE_NOTIFY_CHANGE_SECURITY", "512, FILE_NOTIFY_CHANGE_STREAM_NAME", "1024, FILE_NOTIFY_CHANGE_STREAM_SIZE", "2048, FILE_NOTIFY_CHANGE_STREAM_WRITE" }) void testCompletionFilterConstants(int value, String description) { // Given & When request.setCompletionFilter(value);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
guava/src/com/google/common/math/PairedStatsAccumulator.java
if (value > 0.0) { return value; } else { return Double.MIN_VALUE; } } private static double ensureInUnitRange(double value) { return Doubles.constrainToRange(value, -1.0, 1.0); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 10.4K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
@Test public void testLargeThreshold() throws IOException { // Test with very large threshold ContentOutputStream cos = new ContentOutputStream(1024 * 1024, Curl.tmpDir); cos.write(new byte[1000]); assertTrue(cos.isInMemory()); cos.close(); } @Test public void testMultipleGetFile() throws IOException { // Calling getFile() multiple times should return the same fileCreated: Sat Dec 20 09:13:53 GMT 2025 - Last Modified: Wed Nov 12 14:01:04 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
* * @return interface score */ public int getScore() { int score = linkSpeed; // Base score is link speed if (rssCapable) score += 1000; // Prefer RSS-capable if (rdmaCapable) score += 2000; // Prefer RDMA-capable // Note: No IPv4 preference bonus to keep base score equal to link speed return score; }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 9.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/search/SearchAction.java
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 14K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
String nonceHex = bytesToHex(nonce); nonceSet.add(nonceHex); } // Verify that secure nonces provide excellent diversity // With 100 nonces and 16 random bytes, we should have all unique nonces assertEquals(100, nonceSet.size(), "Secure nonces should all be unique"); } @Test @DisplayName("Should reject null message in encryptMessage")
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
src/main/java/jcifs/Configuration.java
* * @return lease timeout in milliseconds * @since 2.2 */ int getLeaseTimeout(); /** * Property {@code jcifs.smb.client.maxLeases} (int, default 1000) * * @return maximum number of concurrent leases * @since 2.2 */ int getMaxLeases(); /** * Property {@code jcifs.smb.client.leaseVersion} (int, default 2) *Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 25.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
public FailoverState(String channelId) { this.channelId = channelId; this.failureTime = System.currentTimeMillis(); this.retryCount = 0; this.nextRetryTime = failureTime + 1000; // Initial 1 second delay } /** * Get channel ID * * @return channel identifier */ public String getChannelId() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 11.6K bytes - Click Count (0)