- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for Shuffle (0.22 sec)
-
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(
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Jul 26 14:45:36 GMT 2017 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/GraphMutationTest.java
assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes AbstractGraphTest.validateGraph(graph); Collections.shuffle(nodeList, gen); for (Integer node : nodeList) { assertThat(graph.addNode(node)).isTrue(); } Collections.shuffle(edgeList, gen); for (EndpointPair<Integer> edge : edgeList) { assertThat(graph.putEdge(edge.nodeU(), edge.nodeV())).isTrue(); }
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Fri Aug 18 16:17:46 GMT 2017 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
Collections.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); } } Collections.shuffle(queryList, random); return queryList.toArray(new Element[0]);
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphMutationTest.java
assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes AbstractGraphTest.validateGraph(graph); Collections.shuffle(nodeList, gen); for (Integer node : nodeList) { assertThat(graph.addNode(node)).isTrue(); } Collections.shuffle(edgeList, gen); for (EndpointPair<Integer> edge : edgeList) { assertThat(graph.putEdge(edge.nodeU(), edge.nodeV())).isTrue(); }
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Fri Aug 18 16:17:46 GMT 2017 - 4.2K bytes - Viewed (0) -
cmd/erasure-metadata-utils.go
return shuffledPartsMetadata } // shuffleDisks - shuffle input disks slice depending on the // erasure distribution. Return shuffled slice of disks with // their expected distribution. func shuffleDisks(disks []StorageAPI, distribution []int) (shuffledDisks []StorageAPI) { if distribution == nil { return disks } shuffledDisks = make([]StorageAPI, len(disks)) // Shuffle disks for expected distribution.
Go - Registered: Sun Mar 24 19:28:08 GMT 2024 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 10.6K bytes - Viewed (0) -
android/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(
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Wed Jul 26 14:45:36 GMT 2017 - 4.5K bytes - Viewed (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;
JavaScript - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat May 08 17:50:56 GMT 2021 - 6.6K bytes - Viewed (0) -
android/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
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4K bytes - Viewed (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
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
Collections.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); } } Collections.shuffle(queryList, random); return queryList.toArray(new Element[0]);
Java - Registered: Fri Mar 22 12:43:11 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 4.2K bytes - Viewed (0)