- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 2,028 for wsize (0.02 sec)
-
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
} } enum Topology { BALANCED { @Override Optional<BinaryNode> createTree(int size, Random rng) { if (size == 0) { return Optional.absent(); } else { int leftChildSize = (size - 1) / 2; int rightChildSize = size - 1 - leftChildSize; return Optional.of( new BinaryNode(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractIndexedListIterator.java
* size} * @throws IllegalArgumentException if {@code size} is negative */ protected AbstractIndexedListIterator(int size, int position) { checkPositionIndex(position, size); this.size = size; this.position = position; } @Override public final boolean hasNext() { return position < size; } @Override @ParametricNullness
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 3.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
val inflater = MessageInflater(false) val goldenValue = "Hello deflate!".repeat(100).encodeUtf8() val deflated = deflater.deflate(goldenValue) assertThat(deflated.size).isLessThan(goldenValue.size) val inflated = inflater.inflate(deflated) assertThat(inflated).isEqualTo(goldenValue) } @Test fun `inflate deflate empty message`() { val deflater = MessageDeflater(false)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 06 05:31:00 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
int numGoodQueries = (int) (numQueries * hitRate + 0.5); // add good queries int size = elementsInSet.size(); if (size > 0) { int minCopiesOfEachGoodQuery = numGoodQueries / size; int extras = numGoodQueries % size; for (int i = 0; i < minCopiesOfEachGoodQuery; i++) { queryList.addAll(elementsInSet); } List<Element> tmp = Lists.newArrayList(elementsInSet); shuffle(tmp, random);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java
sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator())); // some tests assume SEVERAL == 3 if (entries.size() >= 1) { a = entries.get(0); if (entries.size() >= 3) { c = entries.get(2); } } } @CollectionSize.Require(ZERO) public void testEmptyMapFirst() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/webconfig/CreateForm.java
@CustomSize(maxKey = "form.admin.max.input.size") public String urls; @CustomSize(maxKey = "form.admin.max.input.size") public String includedUrls; @CustomSize(maxKey = "form.admin.max.input.size") public String excludedUrls; @CustomSize(maxKey = "form.admin.max.input.size") public String includedDocUrls; @CustomSize(maxKey = "form.admin.max.input.size") public String excludedDocUrls;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java
assertEquals(expectedSize, multimap.size()); int size = 0; for (Entry<K, V> entry : multimap.entries()) { assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue())); size++; } assertEquals(expectedSize, size); int size2 = 0; for (Entry<K, Collection<V>> entry2 : multimap.asMap().entrySet()) { size2 += entry2.getValue().size(); } assertEquals(expectedSize, size2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/FilteredEntryMultimap.java
public Multimap<K, V> unfiltered() { return unfiltered; } @Override public Predicate<? super Entry<K, V>> entryPredicate() { return predicate; } @Override public int size() { return entries().size(); } private boolean satisfies(@ParametricNullness K key, @ParametricNullness V value) { return predicate.apply(immutableEntry(key, value)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0) -
src/archive/tar/tar_test.go
wantValid: true, wantInverted: []sparseEntry{{0, 5000}}, }, { in: []sparseEntry{{1, 0}}, size: 0, wantValid: false, }, { in: []sparseEntry{{-1, 0}}, size: 100, wantValid: false, }, { in: []sparseEntry{{0, -1}}, size: 100, wantValid: false, }, { in: []sparseEntry{{0, 0}}, size: -100, wantValid: false, }, {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
for (int i = 0; i < expected.size(); i++) { actual.add(q.pollFirst()); } assertEquals(expected, actual); } public void testCorrectOrdering_smallHeapsPollFirst() { for (int size = 2; size < 16; size++) { for (int attempts = 0; attempts < size * (size - 1); attempts++) { ArrayList<Integer> elements = createOrderedList(size);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0)