Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,197 for Fill (0.15 sec)

  1. docs/en/docs/advanced/testing-database.md

    # Testing a Database
    
    !!! info
        These docs are about to be updated. 🎉
    
        The current version assumes Pydantic v1, and SQLAlchemy versions less than 2.0.
    
        The new docs will include Pydantic v2 and will use <a href="https://sqlmodel.tiangolo.com/" class="external-link" target="_blank">SQLModel</a> (which is also based on SQLAlchemy) once it is updated to use Pydantic v2 as well.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

        return List(elements.size / 2) { Header(elements[it * 2]!!, elements[it * 2 + 1]!!) }
      }
    
      @JvmStatic
      fun repeat(
        c: Char,
        count: Int,
      ): String {
        val array = CharArray(count)
        Arrays.fill(array, c)
        return String(array)
      }
    
      /**
       * Okio buffers are internally implemented as a linked list of arrays. Usually this implementation
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      }
    
      private static String newTestString(Random random, BitSet bitSet, int percentMatching) {
        final String allMatchingChars = allMatchingChars(bitSet);
        final char[] result = new char[STRING_LENGTH];
        // Fill with matching chars.
        for (int i = 0; i < result.length; i++) {
          result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length()));
        }
        // Replace some of chars by non-matching.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      }
    
      private static String newTestString(Random random, BitSet bitSet, int percentMatching) {
        final String allMatchingChars = allMatchingChars(bitSet);
        final char[] result = new char[STRING_LENGTH];
        // Fill with matching chars.
        for (int i = 0; i < result.length; i++) {
          result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length()));
        }
        // Replace some of chars by non-matching.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  5. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            These advantages can take
            [many forms](https://github.com/google/guava/wiki/PhilosophyExplained#utility), but taking
            the time to discuss them in detail will make it much clearer why this feature should be
            added to Guava.
    
    
            Please fill out the following fields to give us a better understanding of your proposed
            feature and its potential value for other Guava users.
    
      - type: textarea
        attributes:
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * multiset itself).
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      private void assertCleanup(
          LoadingCache<Integer, String> cache,
          CountingRemovalListener<Integer, String> removalListener) {
    
        // initialSize will most likely be 2, but it's possible for the GC to have already run, so we'll
        // observe a size of 1
        long initialSize = cache.size();
        assertTrue(initialSize == 1 || initialSize == 2);
    
        // wait up to 5s
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      private void assertCleanup(
          LoadingCache<Integer, String> cache,
          CountingRemovalListener<Integer, String> removalListener) {
    
        // initialSize will most likely be 2, but it's possible for the GC to have already run, so we'll
        // observe a size of 1
        long initialSize = cache.size();
        assertTrue(initialSize == 1 || initialSize == 2);
    
        // wait up to 5s
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      int componentLength;
    
      private Iterable<String> components;
    
      @BeforeExperiment
      void setUp() {
        String component = Strings.repeat("a", componentLength);
        String[] raw = new String[count];
        Arrays.fill(raw, component);
        components = Arrays.asList(raw);
      }
    
      /** {@link Joiner} with a string delimiter. */
      @Benchmark
      int joinerWithStringDelimiter(int reps) {
        int dummy = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashSet.java

          delegate.clear(); // invalidate any iterators left over!
          table = null;
          size = 0;
        } else {
          Arrays.fill(requireElements(), 0, size, null);
          CompactHashing.tableClear(requireTable());
          Arrays.fill(requireEntries(), 0, size, 0);
          this.size = 0;
        }
      }
    
      @J2ktIncompatible
      private void writeObject(ObjectOutputStream stream) throws IOException {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top