Skip to content

nit: pin codegen-examples versions in mdx #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tutorials/flask-to-fastapi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/python2-to-python3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Info>
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).
</Info>

## Overview
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/sqlalchemy-1.6-to-2.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Info>
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).
</Info>

## Overview
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/training-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<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>
<Info>View the full code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/generate_training_data)</Info>

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

Expand Down Expand Up @@ -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.
By following these guidelines, you can generate high-quality training data for your LLM projects while maintaining code quality and consistency.
2 changes: 1 addition & 1 deletion docs/tutorials/unittest-to-pytest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Info>
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).
</Info>

## Overview
Expand Down