- Sort Score
- Num 10 results
- Language All
Results 1071 - 1080 of 3,163 for rint (0.07 seconds)
-
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
// Sequence: 'a','b','\r','\n','c','\n' when(raf.read()).thenReturn((int) 'a', (int) 'b', (int) '\r', (int) '\n'); assertEquals("ab", raf.readLine()); when(raf.read()).thenReturn((int) 'c', (int) '\n'); assertEquals("c", raf.readLine()); when(raf.read()).thenReturn(-1); assertNull(raf.readLine()); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
docs/debugging/hash-set/main.go
// in the slices returned. func hashOrder(key string, cardinality int) []int { if cardinality <= 0 { // Returns an empty int slice for cardinality < 0. return nil } nums := make([]int, cardinality) keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable) start := int(keyCrc % uint32(cardinality)) for i := 1; i <= cardinality; i++ { nums[i-1] = 1 + ((start + i) % cardinality)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 3.7K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java
public int numTags = 2; private AllocationService strategy; private ClusterState initialClusterState; @Setup public void setUp() throws Exception { final String[] params = indicesShardsReplicasNodes.split("\\|"); int numIndices = toInt(params[0]); int numShards = toInt(params[1]); int numReplicas = toInt(params[2]);Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Apr 13 08:33:41 GMT 2021 - 6.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/StorageTests.java
} @Override protected String getItemEndpointSuffix() { return ITEM_ENDPOINT_SUFFIX; } @Override protected Map<String, Object> createTestParam(int id) { final Map<String, Object> requestBody = new HashMap<>(); return requestBody; } @Override protected Map<String, Object> getUpdateMap() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt
) constructor() : this(5, 5, TimeUnit.MINUTES) /** Returns the number of idle connections in the pool. */ fun idleConnectionCount(): Int = delegate.idleConnectionCount() /** Returns total number of connections in the pool. */ fun connectionCount(): Int = delegate.connectionCount() internal val connectionListener: ConnectionListener get() = delegate.connectionListener
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 3.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedAsList.java
@GwtIncompatible // ImmutableSortedSet.indexOf // TODO(cpovirk): consider manual binary search under GWT to preserve O(log N) lookup @Override public int indexOf(@Nullable Object target) { int index = delegateCollection().indexOf(target); // TODO(kevinb): reconsider if it's really worth making feeble attempts at // sanity for inconsistent comparators.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.5K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelParseException.java
public class ModelParseException extends IOException { /** * The one-based index of the line containing the error. */ private final int lineNumber; /** * The one-based index of the column containing the error. */ private final int columnNumber; /** * Creates a new parser exception with the specified details. * * @param message The error message, may be {@code null}.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 3.1K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/SettingsParseException.java
public class SettingsParseException extends IOException { /** * The one-based index of the line containing the error. */ private final int lineNumber; /** * The one-based index of the column containing the error. */ private final int columnNumber; /** * Creates a new parser exception with the specified details. * * @param message The error message, may be {@code null}.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 3.1K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
@Test void readRDataWireFormat_shouldHandleMultipleNames() throws Exception { // Test with maximum reasonable number of names int numNames = 10; int dataLength = 1 + (18 * numNames) + 6 + 6; byte[] src = new byte[dataLength]; int srcIndex = 0; Field rDataLengthField = NameServicePacket.class.getDeclaredField("rDataLength"); rDataLengthField.setAccessible(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When int size = request.size(); // Then // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 4 bytes for cancel structure int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 4 + 7) / 8) * 8;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0)