- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 378 for positive (0.07 sec)
-
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 1)); assertTrue(MinMaxPriorityQueue.isEvenLevel(i)); // 1 << 31 is negative because of overflow, 1 << 31 - 1 is positive // since isEvenLevel adds 1, we need to do - 2. assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 31) - 2)); assertTrue(MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE - 1));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* determined experimentally to match our desired probability of false positives. */ // NB: yes, this is surprisingly high, but that's what the experiments said was necessary // Raising this number slows the worst-case contains behavior, speeds up hashFloodingDetected, // and reduces the false-positive probability. static final int MAX_RUN_MULTIPLIER = 13; /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* equivalent {@link Long#compare} method instead. * * @param a the first {@code long} to compare * @param b the second {@code long} to compare * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is * greater than {@code b}; or zero if they are equal */ @InlineMe(replacement = "Long.compare(a, b)") public static int compare(long a, long b) { return Long.compare(a, b); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
if (right.balanceFactor() > 0) { right = right.rotateRight(); } return rotateLeft(); case 2: // requireNonNull is safe because left must exist in order to get a positive factor. requireNonNull(left); if (left.balanceFactor() < 0) { left = left.rotateLeft(); } return rotateRight(); default: recomputeHeight();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
public boolean apply(CharSequence input) { return (input.length() > 0) && (input.charAt(0) == 'a'); } }; @SuppressWarnings("UnnecessaryStringBuilder") // false positive in a weird case public void testIndexOf_genericPredicate() { List<CharSequence> sequences = new ArrayList<>(); sequences.add("bob"); sequences.add(new StringBuilder("charlie"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
* happen, as it is possible that higher level application logic prevents the cyclic lock * acquisition from occurring. One example of a false positive is: * * <pre> * LockA -> LockB -> LockC * LockA -> LockC -> LockB * </pre> * * <p><strong>ReadWriteLocks</strong> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 15:05:43 UTC 2025 - 35.9K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
checkNotNull(unit); checkState(refreshNanos == UNSET_INT, "refresh was already set to %s ns", refreshNanos); checkArgument(duration > 0, "duration must be positive: %s %s", duration, unit); this.refreshNanos = unit.toNanos(duration); return this; } @SuppressWarnings("GoodTime") // nanos internally, should be Duration long getRefreshNanos() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 51.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
public boolean apply(CharSequence input) { return (input.length() > 0) && (input.charAt(0) == 'a'); } }; @SuppressWarnings("UnnecessaryStringBuilder") // false positive in a weird case public void testIndexOf_genericPredicate() { List<CharSequence> sequences = new ArrayList<>(); sequences.add("bob"); sequences.add(new StringBuilder("charlie"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
cmd/utils.go
// of crashing. func ceilFrac(numerator, denominator int64) (ceil int64) { if denominator == 0 { // do nothing on invalid input return } // Make denominator positive if denominator < 0 { numerator = -numerator denominator = -denominator } ceil = numerator / denominator if numerator > 0 && numerator%denominator != 0 { ceil++ } return }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 33K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Test timestamps long lastModified = file.lastModified(); assertTrue(lastModified > 0, "Last modified time should be positive"); } @Test void testFileAttributes() throws Exception { SmbFile file = new SmbFile(baseUrl + "shared/attributes.txt", context); file.createNewFile();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0)