Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 501 for _clear (0.05 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
        hostAddresses[hostname] = addresses
        return this
      }
    
      /** Clears the results for `hostname`.  */
      fun clear(hostname: String): FakeDns {
        hostAddresses.remove(hostname)
        return this
      }
    
      @Throws(UnknownHostException::class)
      fun lookup(
        hostname: String,
        index: Int,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 20:20:29 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  2. docs_src/events/tutorial003_py310.py

    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
        ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model
        yield
        # Clean up the ML models and release the resources
        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
        result = ml_models["answer_to_everything"](x)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 569 bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            // Test with null regex
            cmdList.clear();
            execJob.testAddFessCustomSystemProperties(cmdList, null);
            assertEquals(0, cmdList.size());
    
            // Test with empty regex
            cmdList.clear();
            execJob.testAddFessCustomSystemProperties(cmdList, "");
            assertEquals(0, cmdList.size());
    
            // Clean up
            System.clearProperty("custom.prop.one");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

                }
            }
        }
    
        /**
         * Cleans up the crawled data for a given session.
         * Deletes URL queue data and access result data, and clears the URL filter.
         * @param sessionId The session ID to clean up.
         */
        public void cleanup(final String sessionId) {
            if (logger.isInfoEnabled()) {
                logger.info("Starting crawler cleanup: sessionId={}", sessionId);
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 17K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

                if (logger.isDebugEnabled()) {
                    logger.debug("Cannot clear session, not found. sessionId={}", sessionId);
                }
                return false;
            }
            // Verify ownership
            final String sessionUserId = session.getUserId();
            if (userId != null && !userId.equals(sessionUserId)) {
                logger.warn("Cannot clear session, userId mismatch. sessionId={}, requestUserId={}", sessionId, userId);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/chat/ChatAction.java

            });
        }
    
        /**
         * Clears the chat session.
         *
         * @param form the chat form containing the session ID to clear
         * @return the HTML response redirecting to the chat page
         */
        @Execute
        public HtmlResponse clear(final ChatForm form) {
            if (form.sessionId != null) {
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Mar 10 14:54:51 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  7. 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)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            last = null;
          }
        };
      }
    
      @Override
      public Iterator<E> iterator() {
        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public void clear() {
        countMap.clear();
      }
    
      @WeakOuter
      private final class EntrySet extends AbstractMultiset<E>.EntrySet {
        @Override
        ConcurrentHashMultiset<E> multiset() {
          return ConcurrentHashMultiset.this;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            last = null;
          }
        };
      }
    
      @Override
      public Iterator<E> iterator() {
        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public void clear() {
        countMap.clear();
      }
    
      @WeakOuter
      private final class EntrySet extends AbstractMultiset<E>.EntrySet {
        @Override
        ConcurrentHashMultiset<E> multiset() {
          return ConcurrentHashMultiset.this;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  10. 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)
Back to Top