- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for partition (0.08 seconds)
-
guava-tests/test/com/google/common/collect/ListsTest.java
List<List<Integer>> partitions = partition(source, 1); assertEquals(1, partitions.size()); assertEquals(singletonList(1), partitions.get(0)); } public void testPartition_1_2() { List<Integer> source = singletonList(1); List<List<Integer>> partitions = partition(source, 2); assertEquals(1, partitions.size()); assertEquals(singletonList(1), partitions.get(0)); } public void testPartition_2_1() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 35.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
assertEquals(1, Iterables.size(partitions)); assertEquals(singletonList(1), partitions.iterator().next()); } public void testPartition_view() { List<Integer> list = asList(1, 2); Iterable<List<Integer>> partitions = Iterables.partition(list, 2); // Changes before the partition is retrieved are reflected list.set(0, 3);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Iterables.java
* <p><b>Note:</b> if {@code iterable} is a {@link List}, use {@link Lists#partition(List, int)} * instead. * * @param iterable the iterable to return a partitioned view of * @param size the desired size of each partition (the last may be smaller) * @return an iterable of unmodifiable lists containing the elements of {@code iterable} divided * into partitions * @throws IllegalArgumentException if {@code size} is nonpositiveCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 18:35:28 GMT 2025 - 43.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Lists.java
*/ public static <T extends @Nullable Object> List<List<T>> partition(List<T> list, int size) { checkNotNull(list); checkArgument(size > 0); return (list instanceof RandomAccess) ? new RandomAccessPartition<>(list, size) : new Partition<>(list, size); } private static class Partition<T extends @Nullable Object> extends AbstractList<List<T>> { final List<T> list;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 42.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* <p><b>Note:</b> if {@code iterable} is a {@link List}, use {@link Lists#partition(List, int)} * instead. * * @param iterable the iterable to return a partitioned view of * @param size the desired size of each partition (the last may be smaller) * @return an iterable of unmodifiable lists containing the elements of {@code iterable} divided * into partitions * @throws IllegalArgumentException if {@code size} is nonpositiveCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 43.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
PairedStatsAccumulator accumulator = new PairedStatsAccumulator(); List<List<Double>> xPartitions = Lists.partition(xValues, partitionSize); List<List<Double>> yPartitions = Lists.partition(yValues, partitionSize); for (int index = 0; index < xPartitions.size(); index++) { accumulator.addAll(createPairedStatsOf(xPartitions.get(index), yPartitions.get(index))); } return accumulator; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 23.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/projects/StageProject.kt
stage.flameGraphs.map { createFlameGraphs(model, stage, it) } val (topLevelCoverage, allCoverage) = stage.functionalTests.partition { it.testType == TestType.SOAK } val topLevelFunctionalTests = topLevelCoverage .map { FunctionalTest(model, it.asConfigurationId(model), it.asName(), it.asName(), it, stage = stage) }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Oct 16 00:34:25 GMT 2025 - 12.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
} } } /** * Partitions the contents of buffer in the range [left, right] around the pivot element * previously stored in buffer[pivotValue]. Returns the new index of the pivot element, * pivotNewIndex, so that everything in [left, pivotNewIndex] is ≤ pivotValue and everything in * (pivotNewIndex, right] is greater than pivotValue. */ private int partition(int left, int right, int pivotIndex) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.3K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt
val Project.testDistributionServerUrl: Provider<String> get() = gradleProperty(TEST_DISTRIBUTION_SERVER_URL) // Controls the test distribution partition size. The test classes smaller than this value will be merged into a "partition" val Project.maxTestDistributionPartitionSecond: Long? get() = systemProperty(TEST_DISTRIBUTION_PARTITION_SIZE).orNull?.toLong() val Project.maxParallelForks: Int
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Dec 18 22:01:30 GMT 2025 - 17.7K bytes - Click Count (0) -
docs/smb3-features/06-witness-protocol-design.md
// Implementation would store registration details for recovery } } ``` ### 8.2 Network Partition Handling ```java public class WitnessNetworkPartitionHandler { public void handleNetworkPartition() { log.warn("Network partition detected - witness notifications may be delayed"); // Switch to more aggressive connection retryCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0)