Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for read_text (0.07 sec)

  1. scripts/docs.py

        en_index = en_docs_path / "docs" / "index.md"
        content = en_index.read_text("utf-8")
        match_pre = re.search(r"</style>\n\n", content)
        match_start = re.search(r"<!-- sponsors -->", content)
        match_end = re.search(r"<!-- /sponsors -->", content)
        sponsors_data_path = en_docs_path / "data" / "sponsors.yml"
        sponsors = mkdocs.utils.yaml_load(sponsors_data_path.read_text(encoding="utf-8"))
        if not (match_start and match_end):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 08 11:01:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. scripts/mkdocs_hooks.py

    @lru_cache
    def get_missing_translation_content(docs_dir: str) -> str:
        docs_dir_path = Path(docs_dir)
        missing_translation_path = docs_dir_path.parent.parent / "missing-translation.md"
        return missing_translation_path.read_text(encoding="utf-8")
    
    
    @lru_cache
    def get_mkdocs_material_langs() -> List[str]:
        material_path = Path(material.__file__).parent
        material_langs_path = material_path / "templates" / "partials" / "languages"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 21:20:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. .github/actions/people/app/main.py

        people_path = Path("./docs/en/data/people.yml")
        github_sponsors_path = Path("./docs/en/data/github_sponsors.yml")
        people_old_content = people_path.read_text(encoding="utf-8")
        github_sponsors_old_content = github_sponsors_path.read_text(encoding="utf-8")
        new_people_content = yaml.dump(
            people, sort_keys=False, width=200, allow_unicode=True
        )
        new_github_sponsors_content = yaml.dump(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 19.2K bytes
    - Viewed (1)
  4. .github/actions/notify-translations/app/main.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.parse_raw(contents)
    
        # Avoid race conditions with multiple labels
        sleep_time = random.random() * 10  # random number between 0 and 10 seconds
        logging.info(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts

        inputs.property("jvmOpts", jvmOpts)
        doLast {
            val optsEnvVar = "DEFAULT_JVM_OPTS"
            scriptFile.writeText(scriptFile.readText().replace("$optsEnvVar='", "$optsEnvVar='$jvmOpts "))
            batchScript.writeText(batchScript.readText().replace("set $optsEnvVar=", "set $optsEnvVar=$jvmOpts "))
        }
    }
    
    fun Project.wrapperUpdateTask(name: String, label: String) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 17 08:58:33 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

         */
        public static String readText(final String path) {
            assertArgumentNotEmpty("path", path);
            return readText(path, Charset.defaultCharset().name());
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return 読み込んだテキスト
         */
        public static String readText(final File file) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. build-logic/cleanup/src/main/kotlin/gradlebuild/testing/services/BuildBucketProvider.kt

                println("Tests to be included:\n$content")
                IncludeTestClassProvider(readTestClasses(content))
            }
            parameters.excludeTestClasses.get().isNotBlank() -> {
                val content = parameters.repoRoot.file("test-splits/exclude-test-classes.properties").get().asFile.readText()
                println("Tests to be excluded:\n$content")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

                it.writeText(it.readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>"))
            }
            repoDir.get().asFileTree.matching { include("**/*.module") }.forEach {
                val content = it.readText()
                    .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Aug 08 14:54:27 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                            }
                        ]
                    }
                """)
            val actualFirstJson = loadChangesJson(firstAcceptedApiChangesFile.readText())
            val actualSecondJson = loadChangesJson(secondAcceptedApiChangesFile.readText())
    
            assertEquals(expectedFirstJson, actualFirstJson)
            assertEquals(expectedSecondJson, actualSecondJson)
        }
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 19 13:21:47 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top