Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for readText (2.07 sec)

  1. 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)
  2. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

                    writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>"))
                }
                localRepository.get().asFileTree.matching { include("**/*.module") }.forEach {
                    val content = it.readText()
                        .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 30 16:56:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

                        generateForFile(this)
                    }
                }
            }
        }
    
        private fun generateForFile(file: FileTreeElement) {
            val fileContent = file.file.readText()
            val relativePath = file.relativePath.toString()
            require(!fileContent.contains("'''")) {
                "The class with class='autoTested' can't contains triple quotes: $relativePath"
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

            val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid }
            val testCoverageAndBuckets: List<Map<String, Any>> = objectMapper.readValue(testBucketsJson.readText())
            testCoverageAndBuckets.associate { testCoverageAndBucket ->
                val testCoverage: TestCoverage = uuidToTestCoverage.getValue(testCoverageAndBucket["testCoverageUuid"].toString().toInt())
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Sep 24 08:38:33 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

            exceptions: List<String>,
        ): Boolean {
            srcRoot.walkTopDown().forEach { file ->
                if (file.extension == "groovy" || file.extension == "java") {
                    val originalText = file.readText()
                    val text =
                        originalText
                            .lineSequence()
                            .filterNot { it.trim().startsWith("//") }
                            .joinToString("\n")
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 16 01:27:05 UTC 2025
    - 14.6K 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)
  9. 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)
  10. docs_src/generate_clients/tutorial004_py39.py

    import json
    from pathlib import Path
    
    file_path = Path("./openapi.json")
    openapi_content = json.loads(file_path.read_text())
    
    for path_data in openapi_content["paths"].values():
        for operation in path_data.values():
            tag = operation["tags"][0]
            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 493 bytes
    - Viewed (0)
Back to top