Skip to content
Merged
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
5 changes: 2 additions & 3 deletions STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This guide explains how to structure examples for the Codegen library. A well-st
example-name/
├── README.md # Documentation and usage examples
├── run.py # Main implementation
├── guide.md # (Optional) Additional technical details
└── input_repo/ # (Optional) Sample code for transformation
```

Expand Down Expand Up @@ -43,7 +42,7 @@ Your `run.py` should follow this structure, demonstrated well in the `generate_t
@codegen.function("your-function-name")
def run(codebase: Codebase):
"""Clear docstring explaining what the function does.

Include:
1. Purpose of the function
2. Key steps or transformations
Expand Down Expand Up @@ -128,7 +127,7 @@ def get_function_context(function) -> dict:
@codegen.function("generate-training-data")
def run(codebase: Codebase):
"""Generate training data using a node2vec-like approach...

This codemod:
1. Finds all functions...
2. For each function...
Expand Down
Loading