From e0ede9c7a030e350e920f7623dcf150aac6c234a Mon Sep 17 00:00:00 2001 From: Vishal Shenoy Date: Wed, 29 Jan 2025 09:06:21 -0800 Subject: [PATCH 1/2] . --- 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... From c4681d64ee5af49ccba6cd027f769cd2b9b77b8f Mon Sep 17 00:00:00 2001 From: vishalshenoy <34020235+vishalshenoy@users.noreply.github.com> Date: Wed, 29 Jan 2025 17:07:35 +0000 Subject: [PATCH 2/2] Automated pre-commit update --- STRUCTURE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STRUCTURE.md b/STRUCTURE.md index e1887cc..088cf71 100644 --- a/STRUCTURE.md +++ b/STRUCTURE.md @@ -42,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 @@ -127,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...