Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for Shuffle (0.4 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                  return null;
                }
              });
        }
        assertEquals(allTasks.size() + 1, barrier.getParties());
        for (int i = 0; i < 1000; i++) {
          Collections.shuffle(allTasks);
          final AbstractFuture<String> future = new AbstractFuture<String>() {};
          currentFuture.set(future);
          for (Callable<?> task : allTasks) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_test.go

    		}
    		buf = xlMetaV2TrimData(buf)
    
    		vers = append(vers, metaCacheEntry{
    			name:     "a",
    			metadata: buf,
    		})
    	}
    
    	// Shuffle...
    	for i := 0; i < 100; i++ {
    		rng := rand.New(rand.NewSource(int64(i)))
    		rng.Shuffle(len(vers), func(i, j int) {
    			vers[i], vers[j] = vers[j], vers[i]
    		})
    		var entries []chan metaCacheEntry
    		for _, v := range vers {
    			v.cached = nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  3. common-protos/k8s.io/api/flowcontrol/v1beta2/generated.proto

      // +optional
      optional int32 queues = 1;
    
      // `handSize` is a small positive number that configures the
      // shuffle sharding of requests into queues.  When enqueuing a request
      // at this priority level the request's flow identifier (a string
      // pair) is hashed and the hash value is used to shuffle the list
      // of queues and deal a hand of the size specified here.  The
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/flowcontrol/v1alpha1/generated.proto

      // +optional
      optional int32 queues = 1;
    
      // `handSize` is a small positive number that configures the
      // shuffle sharding of requests into queues.  When enqueuing a request
      // at this priority level the request's flow identifier (a string
      // pair) is hashed and the hash value is used to shuffle the list
      // of queues and deal a hand of the size specified here.  The
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        for (int attempts = 0; attempts < reduceIterationsIfGwt(1000); attempts++) {
          ArrayList<Integer> elements = createOrderedList(10);
          Collections.shuffle(elements, random);
          MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create(elements);
          Collections.shuffle(elements, random);
          for (Integer element : elements) {
            assertThat(queue.remove(element)).isTrue();
            assertIntact(queue);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/flowcontrol/v1beta1/generated.proto

      // +optional
      optional int32 queues = 1;
    
      // `handSize` is a small positive number that configures the
      // shuffle sharding of requests into queues.  When enqueuing a request
      // at this priority level the request's flow identifier (a string
      // pair) is hashed and the hash value is used to shuffle the list
      // of queues and deal a hand of the size specified here.  The
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/flowcontrol/v1beta3/generated.proto

      // +optional
      optional int32 queues = 1;
    
      // `handSize` is a small positive number that configures the
      // shuffle sharding of requests into queues.  When enqueuing a request
      // at this priority level the request's flow identifier (a string
      // pair) is hashed and the hash value is used to shuffle the list
      // of queues and deal a hand of the size specified here.  The
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        for (int attempts = 0; attempts < reduceIterationsIfGwt(1000); attempts++) {
          ArrayList<Integer> elements = createOrderedList(10);
          Collections.shuffle(elements, random);
          MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create(elements);
          Collections.shuffle(elements, random);
          for (Integer element : elements) {
            assertThat(queue.remove(element)).isTrue();
            assertIntact(queue);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/QuantilesTest.java

          indexes.add(index);
          expectedBuilder.put(index, expectedLargeDatasetPercentile(index));
        }
        Random random = new Random(770683168895677741L);
        Collections.shuffle(indexes, random);
        assertThat(percentiles().indexes(Ints.toArray(indexes)).compute(PSEUDORANDOM_DATASET))
            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
            .containsExactlyEntriesIn(expectedBuilder.buildOrThrow());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/QuantilesTest.java

          indexes.add(index);
          expectedBuilder.put(index, expectedLargeDatasetPercentile(index));
        }
        Random random = new Random(770683168895677741L);
        Collections.shuffle(indexes, random);
        assertThat(percentiles().indexes(Ints.toArray(indexes)).compute(PSEUDORANDOM_DATASET))
            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
            .containsExactlyEntriesIn(expectedBuilder.buildOrThrow());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
Back to top