Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 491 - 500 of 1,188 for clear (0.1 seconds)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

       *
       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /*
         * Each insertion is expected to reduce the # of clear bits by a factor of
         * `numHashFunctions/bitSize`. So, after n insertions, expected bitCount is `bitSize * (1 - (1 -
         * numHashFunctions/bitSize)^n)`. Solving that for n, and approximating `ln x` as `x - 1` when x
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 10 22:28:12 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  2. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
      public int countIn(int reps) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
      public int countIn(int reps) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/app/pager/SearchLogPagerTest.java

    public class SearchLogPagerTest extends UnitFessTestCase {
    
        public void test_SearchLogPager() {
            SearchLogPager searchLogPager = new SearchLogPager();
    
            searchLogPager.clear();
            assertEquals(0, searchLogPager.getAllRecordCount());
            assertEquals(0, searchLogPager.getAllPageCount());
            assertEquals(false, searchLogPager.isExistPrePage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 12:58:11 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       *
       * @return an iterator over the elements contained in this collection
       */
      @Override
      public Iterator<E> iterator() {
        return new QueueIterator();
      }
    
      @Override
      public void clear() {
        for (int i = 0; i < size; i++) {
          queue[i] = null;
        }
        size = 0;
      }
    
      @Override
      @J2ktIncompatible // Incompatible return type change. Use inherited (unoptimized) implementation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 34K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            assertThat(list.remove("1"), is(true));
            assertThat(list.remove(null), is(true));
            list.clear();
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            list.remove(1);
            assertThat(list.get(0), is("1"));
            assertThat(list.get(1), is("3"));
    
            list.clear();
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  7. cmd/xl-storage-format-v2.go

    								changed = true
    								version.ObjectV2.PartIndices[i] = nil
    							}
    							clearField = clearField && len(version.ObjectV2.PartIndices[i]) == 0
    						}
    					}
    					if changed {
    						// All empty, clear.
    						if clearField {
    							version.ObjectV2.PartIndices = nil
    						}
    
    						// Reindex since it was changed.
    						meta, err := version.MarshalMsg(make([]byte, 0, len(ver.meta)+10))
    						if err == nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 65.6K bytes
    - Click Count (1)
  8. docs_src/app_testing/tutorial004_py310.py

    items = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
        yield
        # clean up items
        items.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/entity/ChatSession.java

                return messages != null ? messages.size() : 0;
            }
        }
    
        /**
         * Clears all messages in this session and updates the last accessed timestamp.
         */
        public void clearMessages() {
            synchronized (messagesLock) {
                if (messages != null) {
                    messages.clear();
                }
            }
            this.lastAccessedAt = LocalDateTime.now();
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

          }
          val c = input[pos]
          if (c == '/' || c == '\\') {
            // Absolute path: reset to the default "/".
            encodedPathSegments.clear()
            encodedPathSegments.add("")
            pos++
          } else {
            // Relative path: clear everything after the last '/'.
            encodedPathSegments[encodedPathSegments.size - 1] = ""
          }
    
          // Read path segments.
          var i = pos
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 63.5K bytes
    - Click Count (0)
Back to Top