Search Options

Results per page
Sort
Preferred Languages
Advance

Results 821 - 830 of 1,875 for length (0.08 sec)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

          for (int i = 0; i < 6; i++) {
            Integer randomCodePoint = codePoints[rnd.nextInt(codePoints.length)];
            sb.appendCodePoint(randomCodePoint);
            utf8Length += utf8Lengths.get(randomCodePoint);
            if (utf8Length != Utf8.encodedLength(sb)) {
              StringBuilder repro = new StringBuilder();
              for (int j = 0; j < sb.length(); j++) {
                repro.append(" ").append((int) sb.charAt(j)); // GWT compatible
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        List<Object> values = new ArrayList<>(map.values());
        assertEquals(2 * entries.size(), alternatingKeysAndValues.length);
        assertEquals(2 * keys.size(), alternatingKeysAndValues.length);
        assertEquals(2 * values.size(), alternatingKeysAndValues.length);
        for (int i = 0; i < map.size(); i++) {
          Object expectedKey = alternatingKeysAndValues[2 * i];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // truncate metadata to 1/4 of length
              it.substring(0, it.length / 4)
            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.2") // not cached
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(2)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

                  public SampleElements<E> samples() {
                    return delegate.samples();
                  }
    
                  @Override
                  public E[] createArray(int length) {
                    return delegate.createArray(length);
                  }
    
                  @Override
                  public Iterable<E> order(List<E> insertionOrder) {
                    List<E> list = new ArrayList<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        abstract Table<String, Integer, Character> createTable();
    
        @Override
        @SuppressWarnings("unchecked")
        public Cell<String, Integer, Character>[] createArray(int length) {
          return (Cell<String, Integer, Character>[]) new Cell<?, ?, ?>[length];
        }
    
        @Override
        public List<Cell<String, Integer, Character>> order(
            List<Cell<String, Integer, Character>> insertionOrder) {
          return insertionOrder;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
      private void insert(E x) {
        items[putIndex] = x;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

                logger.debug("Create thumbnail task: {}", task);
            }
            return task;
        }
    
        /**
         * Sets the directory name length for thumbnail storage.
         * @param directoryNameLength The directory name length.
         */
        public void setDirectoryNameLength(final int directoryNameLength) {
            this.directoryNameLength = directoryNameLength;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          long x = longs[j];
          tmp += UnsignedLongs.toString(x).length();
          tmp += UnsignedLongs.toString(x, 16).length();
          tmp += UnsignedLongs.toString(x, 2).length();
        }
        return tmp;
      }
    
      private static long random() {
        return randomSource.nextLong();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(dest))) {
                final byte[] buf = new byte[1024];
                int length;
                while (-1 < (length = in.read(buf))) {
                    out.write(buf, 0, length);
                    out.flush();
                }
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

            parser.getFileConfig().ifPresent(c -> {
                logger.debug(c.toString());
            }).orElse(() -> fail());
            LabelType[] labelTypes = parser.getLabelTypes();
            assertEquals(3, labelTypes.length);
        }
    
        public void test_escape() {
            // https://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/admin_crawl/url_patterns.html#1076127
            assertEscapePattern("", "# Test");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top