- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 35 for shuffled (0.07 seconds)
-
cmd/erasure-metadata-utils.go
func shuffleWithDist[T any](input []T, distribution []int) []T { if distribution == nil { return input } shuffled := make([]T, len(input)) for index := range input { blockIndex := distribution[index] shuffled[blockIndex-1] = input[index] } return shuffled } // Return shuffled partsMetadata depending on distribution. func shufflePartsMetadata(partsMetadata []FileInfo, distribution []int) []FileInfo {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.7K bytes - Click Count (0) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateAgpVersionsTest.groovy
"9.11.0-alpha01", "9.11.0-beta01", "9.11.0-rc01", "9.12.0-alpha01", "9.12.0-beta01", "9.13.0-alpha01", ].shuffled() when: def selected = UpdateAgpVersions.selectVersionsFrom(gradleVersion, minimumSupported, allVersions) then: selected == selection where:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Oct 24 09:10:28 GMT 2025 - 4.2K bytes - Click Count (0) -
cmd/erasure-metadata-utils_test.go
if err != nil { removeRoots(disks) t.Fatal(err) } defer removeRoots(disks) z := objLayer.(*erasureServerPools) testShuffleDisks(t, z) } // Test shuffleDisks which returns shuffled slice of disks for their actual distribution. func testShuffleDisks(t *testing.T, z *erasureServerPools) { disks := z.serverPools[0].GetDisks(0)() distribution := []int{16, 14, 12, 10, 8, 6, 4, 2, 1, 3, 5, 7, 9, 11, 13, 15}Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
} List<Element> tmp = new ArrayList<>(elementsInSet); shuffle(tmp, random); queryList.addAll(tmp.subList(0, extras)); } // now add bad queries while (queryList.size() < numQueries) { Element candidate = newElement(); if (!elementsInSet.contains(candidate)) { queryList.add(candidate); } } shuffle(queryList, random); return queryList.toArray(new Element[0]); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/NetworkMutationTest.java
AbstractNetworkTest.validateNetwork(network); Collections.shuffle(nodeList, gen); for (Integer node : nodeList) { assertThat(network.addNode(node)).isTrue(); } Collections.shuffle(edgeList, gen); for (Object edge : edgeList) { assertThat( network.addEdge(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
} List<Element> tmp = new ArrayList<>(elementsInSet); shuffle(tmp, random); queryList.addAll(tmp.subList(0, extras)); } // now add bad queries while (queryList.size() < numQueries) { Element candidate = newElement(); if (!elementsInSet.contains(candidate)) { queryList.add(candidate); } } shuffle(queryList, random); return queryList.toArray(new Element[0]); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/en/docs/js/custom.js
} return true; }); } window.addEventListener("scroll", loadVisibleTermynals); createTermynals(); loadVisibleTermynals(); } function shuffle(array) { var currentIndex = array.length, temporaryValue, randomIndex; while (0 !== currentIndex) { randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1;Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 22 15:11:52 GMT 2025 - 6.3K bytes - Click Count (2) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java
if (line.startsWith("\t")) { data.add(new String[] {k, line.trim()}); } else { k = line; } } Collections.shuffle(data); Graph g = new Graph(); data.parallelStream().forEach(s -> { try { g.addEdge(s[0], s[1]); } catch (Exception e) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 2K bytes - Click Count (0) -
api/go1.22.txt
pkg math/rand/v2, func NewZipf(*Rand, float64, float64, uint64) *Zipf #61716 pkg math/rand/v2, func NormFloat64() float64 #61716 pkg math/rand/v2, func Perm(int) []int #61716 pkg math/rand/v2, func Shuffle(int, func(int, int)) #61716 pkg math/rand/v2, func Uint32() uint32 #61716 pkg math/rand/v2, func Uint32N(uint32) uint32 #61716 pkg math/rand/v2, func Uint64() uint64 #61716 pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Jan 24 20:54:27 GMT 2024 - 7.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
this.striped = impl.get(numStripes); stripes = new int[numStripes]; for (int i = 0; i < numStripes; i++) { stripes[i] = i; } List<Integer> asList = Ints.asList(stripes); Collections.shuffle(asList, new Random(0xdeadbeef)); // do bulk gets with exactly 10 keys (possibly <10 stripes) (or less if numStripes is smaller) bulkGetSet = ImmutableList.copyOf(limit(cycle(asList), 10)); } @Footprint
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4K bytes - Click Count (0)