Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for 9800000 (0.19 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

      @GwtIncompatible // Too slow in GWT (~3min fully optimized)
      public void testDivideRemainderEuclideanProperty() {
        // Use a seed so that the test is deterministic:
        Random r = new Random(0L);
        for (int i = 0; i < 1000000; i++) {
          int dividend = r.nextInt();
          int divisor = r.nextInt();
          // Test that the Euclidean property is preserved:
          assertThat(
                  dividend
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      absl::MutexLock lock(&mu_);
      return cache_size_;
    }
    
    void RamFileBlockCache::Prune() {
      while (!stop_pruning_thread_.WaitForNotificationWithTimeout(
          absl::Microseconds(1000000))) {
        absl::MutexLock lock(&mu_);
        uint64_t now = timer_seconds_();
        while (!lra_list_.empty()) {
          auto it = block_map_.find(lra_list_.back());
          if (now - it->second->timestamp <= max_staleness_) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      public void testSetFuture_stackOverflow() {
        SettableFuture<String> orig = SettableFuture.create();
        SettableFuture<String> prev = orig;
        for (int i = 0; i < 100000; i++) {
          SettableFuture<String> curr = SettableFuture.create();
          prev.setFuture(curr);
          prev = curr;
        }
        // prev represents the 'innermost' future
        prev.set("done");
    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)
  4. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

      @GwtIncompatible // Too slow in GWT (~3min fully optimized)
      public void testDivideRemainderEuclideanProperty() {
        // Use a seed so that the test is deterministic:
        Random r = new Random(0L);
        for (int i = 0; i < 1000000; i++) {
          int dividend = r.nextInt();
          int divisor = r.nextInt();
          // Test that the Euclidean property is preserved:
          assertThat(
                  dividend
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

              double z = aa.addAndGet(i, y);
              assertBitEquals(x + y, z);
              assertBitEquals(x + y, aa.get(i));
            }
          }
        }
      }
    
      static final long COUNTDOWN = 100000;
    
      class Counter extends CheckedRunnable {
        final AtomicDoubleArray aa;
        volatile long counts;
    
        Counter(AtomicDoubleArray a) {
          aa = a;
        }
    
        public void realRun() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/MathTesting.java

        for (int exponent : asList(2, 3, 4, 9, 15, 16, 17, 24, 25, 30)) {
          int x = 1 << exponent;
          intValues.add(x, x + 1, x - 1);
        }
        intValues.add(9999).add(10000).add(10001).add(1000000); // near powers of 10
        intValues.add(5792).add(5793); // sqrt(2^25) rounded up and down
        POSITIVE_INTEGER_CANDIDATES = intValues.build();
        NEGATIVE_INTEGER_CANDIDATES =
            ImmutableList.copyOf(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        /**
         * 
         */
        public static final int FILE_NOP_RECALL = 0x400000;
        /**
         * 
         */
        public static final int FILE_OPEN_FOR_FREE_SPACE_QUERY = 0x800000;
    
        private byte securityFlags;
        private byte requestedOplockLevel = SMB2_OPLOCK_LEVEL_NONE;
        private int impersonationLevel = SMB2_IMPERSONATION_LEVEL_IMPERSONATION;
        private long smbCreateFlags;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 09:52:11 GMT 2019
    - 14.3K bytes
    - Viewed (0)
  8. src/bytes/buffer_test.go

    		}
    	}
    }
    
    func TestGrow(t *testing.T) {
    	x := []byte{'x'}
    	y := []byte{'y'}
    	tmp := make([]byte, 72)
    	for _, growLen := range []int{0, 100, 1000, 10000, 100000} {
    		for _, startLen := range []int{0, 100, 1000, 10000, 100000} {
    			xBytes := Repeat(x, startLen)
    
    			buf := NewBuffer(xBytes)
    			// If we read, this affects buf.off, which is good to test.
    			readBytes, _ := buf.Read(tmp)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/DES.java

        private static byte[] bytebit = {
            (byte)0x80, (byte)0x40, (byte)0x20, (byte)0x10,
            (byte)0x08, (byte)0x04, (byte)0x02, (byte)0x01
        };
        private static int[] bigbyte = {
            0x800000, 0x400000, 0x200000, 0x100000,
            0x080000, 0x040000, 0x020000, 0x010000,
            0x008000, 0x004000, 0x002000, 0x001000,
            0x000800, 0x000400, 0x000200, 0x000100,
            0x000080, 0x000040, 0x000020, 0x000010,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 21.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

              double z = aa.updateAndGet(i, value -> value - y);
              assertBitEquals(x - y, z);
              assertBitEquals(x - y, aa.get(i));
            }
          }
        }
      }
    
      static final long COUNTDOWN = 100000;
    
      class Counter extends CheckedRunnable {
        final AtomicDoubleArray aa;
        volatile long counts;
    
        Counter(AtomicDoubleArray a) {
          aa = a;
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top