Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 319 for Lines (0.02 seconds)

  1. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

                while ((line = reader.readLine()) != null) {
                    // Remove comments
                    final String replacedLine = line.replaceAll("#.*$", StringUtil.EMPTY).trim();
    
                    // Skip empty lines or comment lines
                    if (replacedLine.length() == 0) {
                        if (updater != null) {
                            updater.write(line);
                        }
                        continue;
                    }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  2. tests/test_sse.py

        assert response.headers["cache-control"] == "no-cache"
        assert response.headers["x-accel-buffering"] == "no"
    
        lines = response.text.strip().split("\n")
        data_lines = [line for line in lines if line.startswith("data: ")]
        assert len(data_lines) == 3
        assert '"name":"Plumbus"' in data_lines[0] or '"name": "Plumbus"' in data_lines[0]
        assert (
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/server-sent-events.md

    # Server-Sent Events(SSE) { #server-sent-events-sse }
    
    你可以使用 Server-Sent Events(SSE)把資料串流傳送給用戶端。
    
    這與[串流 JSON Lines](stream-json-lines.md)類似,但使用瀏覽器原生支援、透過 [`EventSource` API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) 的 `text/event-stream` 格式。
    
    /// info
    
    在 FastAPI 0.135.0 新增。
    
    ///
    
    ## 什麼是 Server-Sent Events? { #what-are-server-sent-events }
    
    SSE 是一種透過 HTTP 從伺服器向用戶端串流傳送資料的標準。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  4. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratorTask.kt

        @TaskAction
        fun generate() {
            val markdownFile = outputFile.asFile.get()
            val head = if (markdownFile.exists()) {
                val content = markdownFile.readText().lines()
                val markerPos = content.indexOfFirst { it.contains(markerComment) }
                require(markerPos >= 0) { "Could not locate the generated diagram in $markdownFile" }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/io/LineIterator.java

    import java.io.Reader;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * An {@link Iterator} that iterates over lines read from a {@link BufferedReader}.
     * <p>
     * Usage example:
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.io.LineIterator.*;
     *
     * BufferedReader reader = ...;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. ADDING_NEW_LANGUAGE.md

    src/main/resources/
    ├── fess_label.properties           # Base English labels (fallback)
    ├── fess_label_[locale].properties  # Language-specific labels (~1,056 lines)
    ├── fess_message.properties         # Base English messages (fallback)
    └── fess_message_[locale].properties # Language-specific messages (~200 lines)
    ```
    
    ### Naming Convention
    
    - **Language only**: `fess_label_en.properties`, `fess_label_ja.properties`
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 11:36:30 GMT 2025
    - 10.4K bytes
    - Click Count (1)
  7. internal/mountinfo/mountinfo_linux.go

    	for {
    		line, err := scanner.ReadString('\n')
    		if err == io.EOF {
    			break
    		}
    
    		fields := strings.Fields(line)
    		if len(fields) != expectedNumFieldsPerLine {
    			// ignore incorrect lines.
    			continue
    		}
    
    		// Freq should be an integer.
    		if _, err := strconv.Atoi(fields[4]); err != nil {
    			return nil, err
    		}
    
    		// Pass should be an integer.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/resources/checkstyle.xml

          because they are *always* public. -->
        <module name="RedundantModifier" />
        <!-- Checks that all java files have a package declaration and that it
          lines up with the directory structure. -->
        <module name="PackageDeclaration" />
    
        <!-- Checks that a local variable or a parameter does not shadow a field that is defined in the same class. -->
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTestData.kt

     * JavaScript parser `urltestparser.js` with which this class attempts to be compatible.
     *
     * Each line of the `urltestdata.txt` file specifies a test. Lines look like this:
     *
     * ```
     * http://example\t.\norg http://example.org/foo/bar s:http h:example.org p:/
     * ```
     */
    class WebPlatformUrlTestData {
      var input: String? = null
      var base: String? = null
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/advanced/stream-data.md

    # 串流資料 { #stream-data }
    
    如果你要串流可用 JSON 結構化的資料,應該[串流 JSON Lines](../tutorial/stream-json-lines.md)。
    
    但如果你想串流純二進位資料或字串,以下是做法。
    
    /// info
    
    已在 FastAPI 0.134.0 新增。
    
    ///
    
    ## 使用情境 { #use-cases }
    
    當你想串流純字串時可以用這個機制,例如直接轉發來自 AI LLM 服務的輸出。
    
    你也可以用它來串流大型二進位檔案,邊讀邊將每個區塊(chunk)串流出去,而不必一次把整個檔案載入記憶體。
    
    你也可以用同樣方式串流視訊或音訊,甚至可以在處理的同時即時產生並傳送。
    
    ## 使用 `yield` 的 `StreamingResponse` { #a-streamingresponse-with-yield }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top