Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 194 for runcom (0.15 sec)

  1. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        final int min;
        final int max;
    
        private ListSizeDistribution(int min, int max) {
          this.min = min;
          this.max = max;
        }
    
        public int chooseSize(Random random) {
          return random.nextInt(max - min + 1) + min;
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        final int min;
        final int max;
    
        private ListSizeDistribution(int min, int max) {
          this.min = min;
          this.max = max;
        }
    
        public int chooseSize(Random random) {
          return random.nextInt(max - min + 1) + min;
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testRemovalNotification_get_basher() throws InterruptedException {
        int nTasks = 1000;
        int nThreads = 100;
        final int getsPerTask = 1000;
        final int nUniqueKeys = 10000;
        final Random random = new Random(); // Randoms.insecureRandom();
    
        QueuingRemovalListener<String, String> removalListener = queuingRemovalListener();
        final AtomicInteger computeCount = new AtomicInteger();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
        // Test
        MappedByteBuffer map = Files.map(file, MapMode.READ_WRITE);
        map.put(expectedBytes);
    
        // Verify
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        Helpers.testComparator(javaImpl, ordered);
        assertThat(SerializableTester.reserialize(javaImpl)).isSameInstanceAs(javaImpl);
      }
    
      public void testLexicographicalComparatorLongInputs() {
        Random rnd = new Random();
        for (Comparator<byte[]> comparator :
            Arrays.asList(
                UnsignedBytes.lexicographicalComparator(),
                UnsignedBytes.lexicographicalComparatorJavaImpl())) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          populateProb1();
          populateProb2();
          populateChars1();
          populateChars2();
        }
    
        private final Random random;
    
        public CharSamples(Random random) {
          this.random = random;
        }
    
        public int nextCodePoint() {
          int needle = random.nextInt(sum);
          int l = 0;
          int r = prob.length - 1;
          int c = prob.length / 2;
          int lv = prob[l];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteStreams.copy(inChannel, outChannel);
        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
    
      public void testCopyFileChannel() throws IOException {
        final int chunkSize = 14407; // Random prime, unlikely to match any internal chunk size
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactHashSet.java

          int expectedSize) {
        return new CompactHashSet<>(expectedSize);
      }
    
      /**
       * Maximum allowed false positive probability of detecting a hash flooding attack given random
       * input.
       */
      @VisibleForTesting(
          )
      static final double HASH_FLOODING_FPP = 0.001;
    
      /**
       * Maximum allowed length of a hash table bucket before falling back to a j.u.LinkedHashSet based
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

       * result is chosen from those possibilities uniformly at random.
       *
       * <p>Zero is treated as having log2 == 0.
       */
      static double randomDouble(int maxExponent) {
        double result = RANDOM_SOURCE.nextDouble();
        result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1));
        return RANDOM_SOURCE.nextBoolean() ? result : -result;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        long seed = new Random().nextLong();
        Random random = new Random(seed);
        insertRandomly(elements, q, random);
        return seed;
      }
    
      private static void insertRandomly(
          ArrayList<Integer> elements, MinMaxPriorityQueue<Integer> q, Random random) {
        while (!elements.isEmpty()) {
          int selectedIndex = random.nextInt(elements.size());
    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)
Back to top