Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2871 - 2880 of 2,994 for createId (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/xl-storage-format_test.go

    	}
    
    	compareXLMetaV1(t, unMarshalXLMeta, jsoniterXLMeta)
    }
    
    // Test the predicted part size from the part index
    func TestGetPartSizeFromIdx(t *testing.T) {
    	// Create test cases
    	testCases := []struct {
    		totalSize    int64
    		partSize     int64
    		partIndex    int
    		expectedSize int64
    	}{
    		// Total size is zero
    		{0, 10, 1, 0},
    		// part size 2MiB, total size 4MiB
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  2. src/bufio/scan_test.go

    		"",
    	}
    	testNoNewline(text, lines, t)
    }
    
    var testError = errors.New("testError")
    
    // Test the correct error is returned when the split function errors out.
    func TestSplitError(t *testing.T) {
    	// Create a split function that delivers a little data, then a predictable error.
    	numSplits := 0
    	const okCount = 7
    	errorSplit := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    		if atEOF {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Do some asynchronous stuff to create the burgers
        return burgers
    ```
    
    ...而不是 `def`:
    
    ```Python hl_lines="2"
    # This is not asynchronous
    def get_sequential_burgers(number: int):
        # Do some sequential stuff to create the burgers
        return burgers
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                    byte[] bytes = sums.get(extension).getBytes(StandardCharsets.UTF_8);
                    Files.write(
                            Paths.get(temp.getAbsolutePath()), bytes, StandardOpenOption.APPEND, StandardOpenOption.CREATE);
    
                    temporaryFiles.add(temp);
                    wagon.put(temp, remotePath + "." + extension);
                }
            } catch (ConnectionException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/entity/SearchRequestParamsTest.java

            @Override
            public String getServletPath() {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public jakarta.servlet.http.HttpSession getSession(boolean create) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public jakarta.servlet.http.HttpSession getSession() {
                throw new UnsupportedOperationException();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 26.5K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/body.md

    ///
    
    ## Pydanticの `BaseModel` をインポート { #import-pydantics-basemodel }
    
    まず、`pydantic` から `BaseModel` をインポートする必要があります:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## データモデルの作成 { #create-your-data-model }
    
    次に、`BaseModel` を継承するクラスとしてデータモデルを宣言します。
    
    すべての属性に標準のPython型を使用します:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/settings.md

    ---> 100%
    ```
    
    </div>
    
    当你用以下方式安装 `all` 扩展时,它也会被一并安装:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    ---> 100%
    ```
    
    </div>
    
    ### 创建 `Settings` 对象 { #create-the-settings-object }
    
    从 Pydantic 导入 `BaseSettings` 并创建一个子类,这与创建 Pydantic 模型非常相似。
    
    与 Pydantic 模型一样,用类型注解声明类属性,也可以指定默认值。
    
    你可以使用与 Pydantic 模型相同的验证功能和工具,例如不同的数据类型,以及使用 `Field()` 进行附加验证。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/job/CrawlJob.java

            }
    
            final StringBuilder resultBuf = new StringBuilder(100);
            final boolean runAll = webConfigIds == null && fileConfigIds == null && dataConfigIds == null;
    
            if (sessionId == null) { // create session id
                final SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
                sessionId = sdf.format(new Date());
            }
            resultBuf.append("Session Id: ").append(sessionId).append("\n");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/advanced-dependencies.md

    接著,我們可以用 `__init__` 來宣告這個實例的參數,用以「參數化」這個相依:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[9] *}
    
    在這裡,**FastAPI** 完全不會接觸或在意 `__init__`,我們會直接在自己的程式碼中使用它。
    
    ## 建立一個實例 { #create-an-instance }
    
    我們可以這樣建立該類別的實例:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[18] *}
    
    如此一來我們就能「參數化」相依,現在它內部含有 `"bar"`,作為屬性 `checker.fixed_content`。
    
    ## 將實例作為相依使用 { #use-the-instance-as-a-dependency }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/advanced/generate-clients.md

    * [liblab](https://developers.liblab.com/tutorials/sdk-for-fastapi?utm_source=fastapi)
    
    其中有些方案也可能是開源或提供免費方案,讓你不需財務承諾就能試用。其他商業的 SDK 產生器也不少,你可以在網路上找到。🤓
    
    ## 建立 TypeScript SDK { #create-a-typescript-sdk }
    
    先從一個簡單的 FastAPI 應用開始:
    
    {* ../../docs_src/generate_clients/tutorial001_py310.py hl[7:9,12:13,16:17,21] *}
    
    注意這些 *路徑操作* 為請求與回應的有效載荷定義了所用的模型,使用了 `Item` 與 `ResponseMessage` 這兩個模型。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
Back to Top