Skip to content

Commit 93a7635

Browse files
vishalshenoyrushilpatel0
authored andcommitted
Fixing links to examples in tutorials (#515)
Some of the tutorials still link to the deprecated `codegen-examples` repo. This PR makes all tutorials link to the `codegen-examples` in `codegen-sdk`.
1 parent 8f9db9b commit 93a7635

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/tutorials/fixing-import-loops-in-pytorch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Import loops occur when two or more Python modules depend on each other, creatin
2323
In this tutorial, we'll explore how to identify and fix problematic import cycles using Codegen.
2424

2525
<Info>
26-
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-examples/tree/main/examples/removing_import_loops_in_pytorch).
26+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/removing_import_loops_in_pytorch).
2727
</Info>
2828

2929
## Overview

docs/tutorials/flask-to-fastapi.mdx

Lines changed: 3 additions & 3 deletions
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/7b978091c3153b687c32928fe10f05425e22f6a5/examples/flask_to_fastapi_migration)
10+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/flask_to_fastapi_migration)
1111

1212
## Overview
1313

@@ -183,8 +183,8 @@ def list_users(request: Request):
183183
You can run the complete migration using our example script:
184184

185185
```bash
186-
git clone https://github.com/codegen-sh/codegen-examples.git
187-
cd codegen-examples/flask_to_fastapi_migration
186+
git clone https://github.com/codegen-sh/codegen-sdk.git
187+
cd codegen-examples/examples/flask_to_fastapi_migration
188188
python run.py
189189
```
190190

docs/tutorials/python2-to-python3.mdx

Lines changed: 3 additions & 3 deletions
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/7b978091c3153b687c32928fe10f05425e22f6a5/examples/python2_to_python3).
12+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/python2_to_python3).
1313
</Info>
1414

1515
## Overview
@@ -222,8 +222,8 @@ class MyIterator:
222222
You can run the complete migration using our example script:
223223

224224
```bash
225-
git clone https://github.com/codegen-sh/codegen-examples.git
226-
cd codegen-examples/python2_to_python3
225+
git clone https://github.com/codegen-sh/codegen-sdk.git
226+
cd codegen-examples/examples/python2_to_python3
227227
python run.py
228228
```
229229

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/7b978091c3153b687c32928fe10f05425e22f6a5/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-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/sqlalchemy_1.6_to_2.0).
1313
</Info>
1414

1515
## Overview

docs/tutorials/training-data.mdx

Lines changed: 1 addition & 1 deletion
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/tree/7b978091c3153b687c32928fe10f05425e22f6a5/examples/generate_training_data)</Info>
11+
<Info>View the full code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/generate_training_data)</Info>
1212

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

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/7b978091c3153b687c32928fe10f05425e22f6a5/examples/unittest_to_pytest).
12+
You can find the complete example code in our [examples repository](https://github.com/codegen-sh/codegen-sdk/tree/93f0d4cd7740e3e01ee7ecfd69fd3259b8ebf783/codegen-examples/examples/unittest_to_pytest).
1313
</Info>
1414

1515
## Overview

0 commit comments

Comments
 (0)