Skip to content

Commit 97f998c

Browse files
nit: pin codegen-examples versions in mdx (#153)
1 parent 784e5ec commit 97f998c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/tutorials/flask-to-fastapi.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ iconType: "solid"
77

88
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.
99

10-
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/flask_to_fastapi_migration)
10+
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)
1111

1212
## Overview
1313

docs/tutorials/python2-to-python3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ iconType: "solid"
99
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.
1010

1111
<Info>
12-
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/python2_to_python3).
12+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/python2_to_python3).
1313
</Info>
1414

1515
## Overview

docs/tutorials/sqlalchemy-1.6-to-2.0.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ iconType: "solid"
99
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.
1010

1111
<Info>
12-
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).
12+
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).
1313
</Info>
1414

1515
## Overview

docs/tutorials/training-data.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ iconType: "solid"
88

99
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.
1010

11-
<Info>View the full code in our [examples repository](https://github.com/codegen-sh/codegen-examples/blob/main/examples/generate_training_data/run.py)</Info>
11+
<Info>View the full code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/generate_training_data)</Info>
1212

1313
<Tip>This example works with both Python and Typescript repositories without modification</Tip>
1414

@@ -232,4 +232,4 @@ def hop_through_imports(imp: Import) -> Symbol | ExternalModule:
232232
return imp.imported_symbol
233233
```
234234

235-
By following these guidelines, you can generate high-quality training data for your LLM projects while maintaining code quality and consistency.
235+
By following these guidelines, you can generate high-quality training data for your LLM projects while maintaining code quality and consistency.

docs/tutorials/unittest-to-pytest.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ iconType: "solid"
99
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.
1010

1111
<Info>
12-
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/examples/unittest_to_pytest).
12+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/unittest_to_pytest).
1313
</Info>
1414

1515
## Overview

0 commit comments

Comments
 (0)