diff --git a/docs/tutorials/flask-to-fastapi.mdx b/docs/tutorials/flask-to-fastapi.mdx index c093e28ee..314c92314 100644 --- a/docs/tutorials/flask-to-fastapi.mdx +++ b/docs/tutorials/flask-to-fastapi.mdx @@ -7,7 +7,7 @@ iconType: "solid" Migrating from [Flask](https://flask.palletsprojects.com/) to [FastAPI](https://fastapi.tiangolo.com/) involves several key changes to your codebase. This guide will walk you through using Codegen to automate this migration, handling imports, route decorators, static files, and template rendering. -You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/flask_to_fastapi_migration) +You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/flask_to_fastapi_migration) ## Overview diff --git a/docs/tutorials/python2-to-python3.mdx b/docs/tutorials/python2-to-python3.mdx index 040f38776..50abd5361 100644 --- a/docs/tutorials/python2-to-python3.mdx +++ b/docs/tutorials/python2-to-python3.mdx @@ -9,7 +9,7 @@ iconType: "solid" Migrating from Python 2 to Python 3 involves several syntax and API changes. This guide will walk you through using Codegen to automate this migration, handling print statements, string handling, iterators, and more. -You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/python2_to_python3). +You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/python2_to_python3). ## Overview diff --git a/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx b/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx index 654a5bbab..68894ab32 100644 --- a/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx +++ b/docs/tutorials/sqlalchemy-1.6-to-2.0.mdx @@ -9,7 +9,7 @@ iconType: "solid" Migrating from [SQLAlchemy](https://www.sqlalchemy.org/) 1.6 to 2.0 involves several API changes to support the new 2.0-style query interface. This guide will walk you through using Codegen to automate this migration, handling query syntax, session usage, and ORM patterns. -You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/examples/sqlalchemy_1.6_to_2.0). +You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/sqlalchemy_1.6_to_2.0). ## Overview diff --git a/docs/tutorials/training-data.mdx b/docs/tutorials/training-data.mdx index e6013ecdc..0f4608693 100644 --- a/docs/tutorials/training-data.mdx +++ b/docs/tutorials/training-data.mdx @@ -8,7 +8,7 @@ iconType: "solid" This guide demonstrates how to use Codegen to generate high-quality training data for large language models (LLMs) by extracting function implementations along with their dependencies and usages. This approach is similar to [word2vec](https://www.tensorflow.org/text/tutorials/word2vec) or [node2vec](https://snap.stanford.edu/node2vec/) - given the context of a function, learn to predict the function's implementation. -View the full code in our [examples repository](https://github.com/codegen-sh/codegen-examples/blob/main/examples/generate_training_data/run.py) +View the full code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/generate_training_data) This example works with both Python and Typescript repositories without modification @@ -232,4 +232,4 @@ def hop_through_imports(imp: Import) -> Symbol | ExternalModule: return imp.imported_symbol ``` -By following these guidelines, you can generate high-quality training data for your LLM projects while maintaining code quality and consistency. \ No newline at end of file +By following these guidelines, you can generate high-quality training data for your LLM projects while maintaining code quality and consistency. \ No newline at end of file diff --git a/docs/tutorials/unittest-to-pytest.mdx b/docs/tutorials/unittest-to-pytest.mdx index 5e57957ba..f58a9d32f 100644 --- a/docs/tutorials/unittest-to-pytest.mdx +++ b/docs/tutorials/unittest-to-pytest.mdx @@ -9,7 +9,7 @@ iconType: "solid" Migrating from [unittest](https://docs.python.org/3/library/unittest.html) to [pytest](https://docs.pytest.org/) involves converting test classes and assertions to pytest's more modern and concise style. This guide will walk you through using Codegen to automate this migration. -You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/examples/unittest_to_pytest). +You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/unittest_to_pytest). ## Overview