- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 1,621 for integers (0.1 seconds)
-
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
assertEquals(2, pair.length, String.format("Error mapping at index %d should contain two integers", i)); } } @Test @DisplayName("Known DOS error is correctly mapped to NTSTATUS") void testKnownMapping() { final int dosErr = 0x00010001; final int expectedNt = 0xc0000002; Optional<Integer> actual = findNtStatus(dosErr);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
BigInteger halfSquare = sqrtFloor.pow(2).add(sqrtFloor); /* * We wish to test whether or not x <= (sqrtFloor + 0.5)^2 = halfSquare + 0.25. Since both x * and halfSquare are integers, this is equivalent to testing whether or not x <= * halfSquare. */ return (halfSquare.compareTo(x) >= 0) ? sqrtFloor : sqrtFloor.add(BigInteger.ONE); } throw new AssertionError();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
long result = (long) a + (long) b; if (result > Integer.MAX_VALUE || result < Integer.MIN_VALUE) { failedValidations.incrementAndGet(); integerOverflowsPrevented.incrementAndGet(); log.warn("Integer overflow in addition: {} + {} = {}", a, b, result); throw new SmbException("Integer overflow detected"); } return (int) result; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
} try { parseInteger(spec, Integer.parseInt(value)); } catch (NumberFormatException e) { throw new IllegalArgumentException( format("key %s value set to %s, must be integer", key, value), e); } } } /** Base class for parsing integers. */ private abstract static class LongParser implements ValueParser {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
} try { parseInteger(spec, Integer.parseInt(value)); } catch (NumberFormatException e) { throw new IllegalArgumentException( format("key %s value set to %s, must be integer", key, value), e); } } } /** Base class for parsing integers. */ private abstract static class LongParser implements ValueParser {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Funnels.java
} } /** * Returns a funnel for integers. * * @since 13.0 */ public static Funnel<Integer> integerFunnel() { return IntegerFunnel.INSTANCE; } private enum IntegerFunnel implements Funnel<Integer> { INSTANCE; @Override public void funnel(Integer from, PrimitiveSink into) { into.putInt(from); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 7.2K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LongMath.java
* href="http://mathworld.wolfram.com/PrimeNumber.html">prime number</a>: an integer <i>greater * than one</i> that cannot be factored into a product of <i>smaller</i> positive integers. * Returns {@code false} if {@code n} is zero, one, or a composite number (one which <i>can</i> be * factored into smaller positive integers). * * <p>To test larger numbers, use {@link BigInteger#isProbablePrime}. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 09 23:01:02 GMT 2026 - 46.8K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedBytes.java
for (int i = fromIndex; i < toIndex; i++) { array[i] = flip(array[i]); } } /** * Sorts the elements of {@code array} in descending order, interpreting them as unsigned 8-bit * integers. * * @since 23.1 */ public static void sortDescending(byte[] array) { checkNotNull(array); sortDescending(array, 0, array.length); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 21K bytes - Click Count (0) -
docs/en/docs/tutorial/body-nested-models.md
Keep in mind that JSON only supports `str` as keys. But Pydantic has automatic data conversion. This means that, even though your API clients can only send strings as keys, as long as those strings contain pure integers, Pydantic will convert them and validate them. And the `dict` you receive as `weights` will actually have `int` keys and `float` values. /// ## Recap { #recap }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 6.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
* Contains methods for reading and writing various data types (integers, strings, timestamps) * in SMB protocol format, handling endianness and data type conversions. * * @author mbechler */ public class SMBUtil { /** * Private constructor to prevent instantiation of utility class. */ private SMBUtil() { } /** * Writes a 16-bit integer value to a byte array in little-endian format
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8K bytes - Click Count (0)