Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 685 for Dict (0.02 seconds)

  1. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

    import org.codelibs.fess.app.service.SynonymService;
    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.app.web.admin.dict.AdminDictAction;
    import org.codelibs.fess.app.web.base.FessAdminAction;
    import org.codelibs.fess.app.web.base.FessBaseAction;
    import org.codelibs.fess.dict.synonym.SynonymItem;
    import org.codelibs.fess.util.ComponentUtil;
    import org.codelibs.fess.util.RenderDataUtil;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 23.7K bytes
    - Click Count (1)
  2. docs/zh/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *}
    
    /// tip | 提示
    
    使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。
    
    ///
    
    #### 返回枚举成员 { #return-enumeration-members }
    
    即使嵌套在 JSON 请求体里(例如,`dict`),也可以从路径操作返回枚举成员。
    
    返回给客户端之前,会把枚举成员转换为对应的值(本例中为字符串):
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *}
    
    客户端中的 JSON 响应如下:
    
    ```JSON
    {
      "model_name": "alexnet",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/custom-response.md

    You can return it directly.
    
    It accepts the following parameters:
    
    * `content` - A `str` or `bytes`.
    * `status_code` - An `int` HTTP status code.
    * `headers` - A `dict` of strings.
    * `media_type` - A `str` giving the media type. E.g. `"text/html"`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/util/ResourceUtil.java

         * @return the Path object pointing to the dictionary directory
         */
        public static Path getDictionaryPath(final String... names) {
            return getPath("WEB-INF/", "dict", names);
        }
    
        /**
         * Gets the path to thumbnail files directory.
         *
         * @param names the path components to append to the thumbnails directory
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/path-params.md

    ///
    
    #### Return *enumeration members* { #return-enumeration-members }
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    When raising an `HTTPException`, you can pass any value that can be converted to JSON as the parameter `detail`, not only `str`.
    
    You could pass a `dict`, a `list`, etc.
    
    They are handled automatically by **FastAPI** and converted to JSON.
    
    ///
    
    ## Add custom headers { #add-custom-headers }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  7. scripts/translate.py

    )
    
    general_prompt_path = Path(__file__).absolute().parent / "general-llm-prompt.md"
    general_prompt = general_prompt_path.read_text(encoding="utf-8")
    
    app = typer.Typer()
    
    
    @lru_cache
    def get_langs() -> dict[str, str]:
        return yaml.safe_load(Path("docs/language_names.yml").read_text(encoding="utf-8"))
    
    
    def generate_lang_path(*, lang: str, path: Path) -> Path:
        en_docs_path = Path("docs/en/docs")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/response-model.md

    有些情況下,你需要或想要回傳的資料與你宣告的型別不完全相同。
    
    例如,你可能想要回傳一個 dictionary 或資料庫物件,但把回應宣告為一個 Pydantic 模型。這樣 Pydantic 模型就會替你回傳的物件(例如 dictionary 或資料庫物件)處理所有的資料文件、驗證等。
    
    如果你加了回傳型別註解,工具與編輯器會(正確地)抱怨你的函式回傳的型別(例如 dict)與你宣告的(例如 Pydantic 模型)不同。
    
    在這些情況下,你可以使用「路徑操作裝飾器」參數 `response_model`,而不是函式的回傳型別。
    
    你可以在任何「路徑操作」上使用 `response_model` 參數:
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * 等等。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            coordinatorHelper.addEventHandler("config_updated", event -> received.set("config"));
            coordinatorHelper.addEventHandler("dict_updated", event -> received.set("dict"));
    
            final EventInfo configEvent = new EventInfo();
            configEvent.name = "config_updated";
            coordinatorHelper.dispatchEvent(configEvent);
            assertEquals("config", received.get());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/first-steps.md

    /// note | 참고
    
    차이점을 모르겠다면 [Async: *"바쁘신 경우"*](../async.md#in-a-hurry)를 확인하세요.
    
    ///
    
    ### 5 단계: 콘텐츠 반환 { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    `dict`, `list`, 단일값을 가진 `str`, `int` 등을 반환할 수 있습니다.
    
    Pydantic 모델을 반환할 수도 있습니다(나중에 더 자세히 살펴봅니다).
    
    JSON으로 자동 변환되는 객체들과 모델들(ORM 등을 포함해서)이 많이 있습니다. 가장 마음에 드는 것을 사용하십시오, 이미 지원되고 있을 것입니다.
    
    ### 6 단계: 배포하기 { #step-6-deploy-it }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15K bytes
    - Click Count (0)
Back to Top