Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for Shuffle (0.24 sec)

  1. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  4. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  5. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  9. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  10. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 08 17:50:56 GMT 2021
    - 6.6K bytes
    - Viewed (0)
Back to top