From e0ede9c7a030e350e920f7623dcf150aac6c234a Mon Sep 17 00:00:00 2001 From: Vishal Shenoy Date: Wed, 29 Jan 2025 09:06:21 -0800 Subject: [PATCH] . --- STRUCTURE.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/STRUCTURE.md b/STRUCTURE.md index be8da66..e1887cc 100644 --- a/STRUCTURE.md +++ b/STRUCTURE.md @@ -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 ``` @@ -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 @@ -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...