Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 215 for runcom (0.15 sec)

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

      }
    
      private static void runLeastOfComparison(int iterations, int elements, int seeds) {
        Random random = new Random(42);
        Ordering<Integer> ordering = Ordering.natural();
    
        for (int i = 0; i < iterations; i++) {
          List<Integer> list = Lists.newArrayList();
          for (int j = 0; j < elements; j++) {
            list.add(random.nextInt(10 * i + j + 1));
          }
    
          for (int seed = 1; seed < seeds; seed++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      private static void runLeastOfComparison(int iterations, int elements, int seeds) {
        Random random = new Random(42);
        Ordering<Integer> ordering = Ordering.natural();
    
        for (int i = 0; i < iterations; i++) {
          List<Integer> list = Lists.newArrayList();
          for (int j = 0; j < elements; j++) {
            list.add(random.nextInt(10 * i + j + 1));
          }
    
          for (int seed = 1; seed < seeds; seed++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

    package com.google.common.math;
    
    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

    package com.google.common.math;
    
    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/tests/FileAttributesTest.java

                    if ( ( getContext().getConfig().getCapabilities() & SmbConstants.CAP_NT_SMBS ) == 0 ) {
                        // only have second precision
                        // there seems to be some random factor (adding one second)
                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
                        Assert.assertTrue("Have set time correctly", diff < 2);
                    }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top