Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 159 for Lazy (0.04 sec)

  1. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private var client = clientTestRule.newClientBuilder().build()
    
      private lateinit var server: MockWebServer
    
      val request by lazy { Request(server.url("/")) }
    
      @BeforeEach
      fun setup(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun suspendCall() {
        runTest {
          server.enqueue(MockResponse(body = "abc"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

        }
        HashCode actual = hasher.hash();
    
        assertEquals(expected, actual);
      }
    
      private static final String TQBFJOTLD = "The quick brown fox jumps over the lazy dog";
      private static final String TQBFJOTLDP = "The quick brown fox jumps over the lazy dog.";
    
      private static final ImmutableTable<HashFunction, String, String> KNOWN_HASHES =
          ImmutableTable.<HashFunction, String, String>builder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0xd9963a56, scsiReadCommand);
      }
    
      // Known values from http://www.evanjones.ca/crc32c.html
      public void testSomeOtherKnownValues() {
        assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8));
        assertCrc(0xE3069283, "123456789".getBytes(UTF_8));
        assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8));
        assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0xd9963a56, scsiReadCommand);
      }
    
      // Known values from http://www.evanjones.ca/crc32c.html
      public void testSomeOtherKnownValues() {
        assertCrc(0x22620404, "The quick brown fox jumps over the lazy dog".getBytes(UTF_8));
        assertCrc(0xE3069283, "123456789".getBytes(UTF_8));
        assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8));
        assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      }
    
      public void testExplicit_ordering_dupes() {
        SortedSet<String> set =
            ImmutableSortedSet.orderedBy(STRING_LENGTH)
                .add("in", "the", "quick", "brown", "fox", "jumped", "over", "a", "lazy", "dog")
                .build();
        assertThat(set).containsExactly("a", "in", "the", "over", "quick", "jumped").inOrder();
      }
    
      public void testExplicit_contains() {
        SortedSet<String> set =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThrows(UnsupportedOperationException.class, () -> lazyStackTrace(e).set(0, null));
    
        // Now we test a property that holds only for the lazy implementation.
    
        if (!lazyStackTraceIsLazy()) {
          return;
        }
    
        e.setStackTrace(new StackTraceElement[0]);
        assertThat(lazyStackTrace(e)).containsExactly((Object[]) originalStackTrace).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Striped.java

      /**
       * If there are at least this many stripes, we assume the memory usage of a ConcurrentMap will be
       * smaller than a large array. (This assumes that in the lazy case, most stripes are unused. As
       * always, if many stripes are in use, a non-lazy striped makes more sense.)
       */
      private static final int LARGE_LAZY_CUTOFF = 1024;
    
      private Striped() {}
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThrows(UnsupportedOperationException.class, () -> lazyStackTrace(e).set(0, null));
    
        // Now we test a property that holds only for the lazy implementation.
    
        if (!lazyStackTraceIsLazy()) {
          return;
        }
    
        e.setStackTrace(new StackTraceElement[0]);
        assertThat(lazyStackTrace(e)).containsExactly((Object[]) originalStackTrace).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      const ParallelDevice& device_;
      std::vector<TensorHandlePtr> tensors_;
      // Parallel tensors are immutable but compute their shape lazily unless it is
      // provided on construction. The optional has a value if the lazy computation
      // has been completed or the shape was provided on construction.
      mutable absl::optional<std::vector<int64_t>> shape_;
      const TF_DataType dtype_;
    };
    
    template <typename DataType>
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/MoreObjects.java

       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
       * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for
       * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier)
       * first.or(supplier)}.
       *
       * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
       * instead.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top