Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1651 - 1660 of 1,810 for cause (0.03 seconds)

  1. src/test/java/org/codelibs/fess/helper/RelatedQueryHelperTest.java

            testData.add(createRelatedQuery("Java", new String[] { "Programming", "Tutorial" }, ""));
            mockBhv.setTestData(testData);
    
            relatedQueryHelper.load();
    
            // Test case insensitive matching
            String[] results = relatedQueryHelper.getRelatedQueries("java");
            assertEquals(2, results.length);
            assertEquals("Programming", results[0]);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Then
                assertEquals(4, read1);
                assertEquals(4, read2);
            }
        }
    
        @Nested
        @DisplayName("Edge case tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle maximum buffer index")
            void testMaxBufferIndex() throws SMBProtocolDecodingException {
                // Given
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                    LogLevelRecorder.Level level =
                            switch (logLevelThreshold.toLowerCase(Locale.ENGLISH)) {
                                case "warn", "warning" -> LogLevelRecorder.Level.WARN;
                                case "error" -> LogLevelRecorder.Level.ERROR;
                                default ->
                                    throw new IllegalArgumentException(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                String result = notification.toString();
                assertTrue(result.contains("oplockLevel=" + oplockLevel));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle minimum valid buffer size")
            void testMinimumBufferSize() throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/events.md

    因為這些程式碼分別在應用開始接收請求**之前**與**完成**處理請求之後執行,所以涵蓋了整個應用的**生命週期**(「lifespan」這個詞稍後會很重要 😉)。
    
    這對於為整個應用設定需要**共用**於多個請求的**資源**,以及在之後進行**清理**,非常有用。比如資料庫連線池、或載入一個共用的機器學習模型。
    
    ## 使用情境 { #use-case }
    
    先從一個**使用情境**開始,然後看看如何用這個機制解決。
    
    想像你有一些要用來處理請求的**機器學習模型**。🤖
    
    同一組模型會在多個請求間共用,所以不是每個請求或每個使用者各有一個模型。
    
    再想像一下,載入模型**需要一段時間**,因為它必須從**磁碟**讀取大量資料。所以你不想在每個請求都做一次。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  6. tests/test_schema_extra_examples.py

                    ],
                ),
            ):
                return item
    
        # TODO: enable these tests once/if Form(embed=False) is supported
        # TODO: In that case, define if File() should support example/examples too
        # @app.post("/form_example")
        # def form_example(firstname: str = Form(example="John")):
        #     return firstname
    
        # @app.post("/form_examples")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

     *
     * <p>For example, the subclass could pass a {@link java.util.TreeMap} during construction, and
     * {@link #createCollection()} could return a {@link java.util.TreeSet}, in which case the
     * multimap's iterators would propagate through the keys and values in sorted order.
     *
     * <p>Keys and values may be null, as long as the underlying collection classes support null
     * elements.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 12 15:51:57 GMT 2025
    - 46.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/config/BaseConfiguration.java

         */
        protected final int initChannelBindingPolicy(String policy) {
            if (policy == null)
                return 1; // preferred
            switch (policy.toLowerCase()) {
            case "disabled":
                return 0;
            case "required":
                return 2;
            default:
                return 1; // preferred
            }
        }
    
        @Override
        public boolean isUseDirectoryLeasing() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/net/HostAndPort.java

        }
      }
    
      /**
       * Provide a default port if the parsed string contained only a host.
       *
       * <p>You can chain this after {@link #fromString(String)} to include a port in case the port was
       * omitted from the input string. If a port was already provided, then this method is a no-op.
       *
       * @param defaultPort a port number, from [0..65535]
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/SmbConstants.java

         */
        int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK = 0x01;
        /**
         * Receive buffer has been posted flag.
         */
        int FLAGS_RECEIVE_BUFFER_POSTED = 0x02;
        /**
         * Path names are case-insensitive flag.
         */
        int FLAGS_PATH_NAMES_CASELESS = 0x08;
        /**
         * Path names are canonicalized flag.
         */
        int FLAGS_PATH_NAMES_CANONICALIZED = 0x10;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
Back to Top