Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for write_text (0.59 seconds)

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

  1. docs_src/generate_clients/tutorial004_py310.py

            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 493 bytes
    - Click Count (0)
  2. scripts/docs.py

            raise typer.Abort()
        new_path.mkdir()
        new_config_path: Path = Path(new_path) / mkdocs_name
        new_config_path.write_text("INHERIT: ../en/mkdocs.yml\n", encoding="utf-8")
        new_llm_prompt_path: Path = new_path / "llm-prompt.md"
        new_llm_prompt_path.write_text("", encoding="utf-8")
        print(f"Successfully initialized: {new_path}")
        update_languages()
    
    
    @app.command()
    def build_lang(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  3. scripts/translation_fixer.py

                lang_code=lang_code,
                auto_fix=True,
                path=str(path),
            )
    
            # Write back the fixed document
            doc_lines.append("")  # Ensure file ends with a newline
            path.write_text("\n".join(doc_lines), encoding="utf-8")
    
        except ValueError as e:
            print(f"Error processing {path}: {e}")
            return False
        return True
    
    
    @cli.command()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  4. scripts/people.py

        if old_content == new_content:
            logging.info(f"The content hasn't changed for {content_path}")
            return False
        content_path.write_text(new_content, encoding="utf-8")
        logging.info(f"Updated {content_path}")
        return True
    
    
    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:51:24 GMT 2026
    - 15K bytes
    - Click Count (0)
  5. build-logic-commons/publishing/src/main/kotlin/gradlebuild.kotlin-dsl-plugin-bundle.gradle.kts

        // This should be unified with publish-public-libraries if possible
        doLast {
            repoDir.get().asFileTree.matching { include("**/maven-metadata.xml") }.forEach {
                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 {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 13 11:01:20 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/PreparePatchRelease.kt

            val major = currentVersion.split(".")[0].toInt()
    
            val previousReleasedVersion = fetchVersionFromGradleServices(major, currentVersion)
            versionFile.asFile.get().writeText(patchVersion)
            updateReleasedVersionFile(releasedVersionsFile.asFile.get(), previousReleasedVersion)
            println("Updated version.txt: $currentVersion -> $patchVersion")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  7. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratePlatformsDataTask.kt

                    uses = platform.uses.map { use -> allPlatforms.single { it.id == use }.name },
                )
            }
            outputFile.get().asFile.writeText(Gson().toJson(data))
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 1.6K bytes
    - Click Count (0)
  8. build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratePackageInfoDataTask.kt

                results.add(packageName to packageInfoFile.relativeTo(baseDir).path)
            }
    
            val outputData = results.groupBy(keySelector = { it.first }, valueTransform = { it.second })
            outputFile.get().asFile.writeText(Gson().toJson(outputData))
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 30 15:37:56 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateFixedIssuesInReleaseNotes.kt

                content.substring(0, introStart) + newSection + "\n" + content.substring(listEnd)
            } else {
                newSection + "\n" + content
            }
    
            notesFile.writeText(newContent)
            println("Fixed issues section updated in $notesFile")
        }
    
        private
        fun findEndOfListSection(content: String, startAfterIntro: Int): Int {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:49:33 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. src/main/webapp/js/chat.js

            }
        }
    
        /**
         * Copy text to clipboard
         */
        function copyToClipboard(text, button) {
            if (navigator.clipboard && navigator.clipboard.writeText) {
                navigator.clipboard.writeText(text).then(function() {
                    showCopySuccess(button);
                }).catch(function() {
                    showCopyError(button);
                });
            } else {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top