Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for read_text (0.04 sec)

  1. scripts/docs.py

                ("'t", "t"),  # don't -> dont
                ("**", ""),  # **FastAPI**s -> FastAPIs
            ],
        )
    
    
    def get_en_config() -> dict[str, Any]:
        return mkdocs.utils.yaml_load(en_config_path.read_text(encoding="utf-8"))
    
    
    def get_lang_paths() -> list[Path]:
        return sorted(docs_path.iterdir())
    
    
    def lang_callback(lang: Optional[str]) -> Union[str, None]:
        if lang is None:
            return None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  2. scripts/translate.py

        lang_prompt_content = lang_prompt_path.read_text(encoding="utf-8")
    
        en_docs_path = Path("docs/en/docs")
        assert str(en_path).startswith(str(en_docs_path)), (
            f"Path must be inside {en_docs_path}"
        )
        out_path = generate_lang_path(lang=language, path=en_path)
        out_path.parent.mkdir(parents=True, exist_ok=True)
        original_content = en_path.read_text(encoding="utf-8")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  3. scripts/people.py

                users[user] = user_data
                users_list.append(user_data)
        return users_list
    
    
    def update_content(*, content_path: Path, new_content: Any) -> bool:
        old_content = content_path.read_text(encoding="utf-8")
    
        new_content = yaml.dump(new_content, sort_keys=False, width=200, allow_unicode=True)
        if old_content == new_content:
            logging.info(f"The content hasn't changed for {content_path}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. scripts/notify_translations.py

        if not settings.github_event_path.is_file():
            raise RuntimeError(
                f"No github event file available at: {settings.github_event_path}"
            )
        contents = settings.github_event_path.read_text()
        github_event = PartialGitHubEvent.model_validate_json(contents)
        logging.info(f"Using GitHub event: {github_event}")
        number = (
            github_event.pull_request and github_event.pull_request.number
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

         * @param path
         *            The file path. Must not be {@literal null} or empty.
         * @return The text read from the file.
         */
        public static String readText(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, Charset.defaultCharset().name());
        }
    
        /**
         * Reads text from a file using the default encoding.
         *
         * @param file
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                try (BufferedReader reader =
                        new BufferedReader(new InputStreamReader(new GZIPInputStream(new ByteArrayInputStream(decode)), Constants.UTF_8))) {
                    return ReaderUtil.readText(reader);
                } catch (final IOException e) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to decode similar document hash: hash={}", hash, e);
                    }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                                .duplicateTermRemoved(replaceDuplication)
                                .spaceChars(spaceChars)
                                .execute();
                    }
                    return ReaderUtil.readText(reader);
                }
            } catch (final TikaException e) {
                throw e;
            } catch (final Exception e) {
                throw new ExtractException("Failed to read a content.", e);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 30.8K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            if (mappingMetadata == null || mappingMetadata.sourceAsMap().isEmpty()) {
                final AcknowledgedResponse putMappingResponse = fesenClient.get(c -> {
                    final String source = FileUtil.readText("mapping/" + mappingName + ".json");
                    return c.admin().indices().preparePutMapping(index).setSource(source, XContentType.JSON).execute();
                });
                if (putMappingResponse.isAcknowledged()) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:40:57 UTC 2025
    - 34.3K bytes
    - Viewed (0)
Back to top