-
Notifications
You must be signed in to change notification settings - Fork 0
Add visualization code files to analyzers/visualization directory #116
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
base: develop
Are you sure you want to change the base?
Add visualization code files to analyzers/visualization directory #116
Conversation
# Motivation The **Codegen on OSS** package provides a pipeline that: - **Collects repository URLs** from different sources (e.g., CSV files or GitHub searches). - **Parses repositories** using the codegen tool. - **Profiles performance** and logs metrics for each parsing run. - **Logs errors** to help pinpoint parsing failures or performance bottlenecks. <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> see [codegen-on-oss/README.md](https://github.com/codegen-sh/codegen-sdk/blob/acfe3dc07b65670af33b977fa1e7bc8627fd714e/codegen-on-oss/README.md) # Testing <!-- How was the change tested? --> `uv run modal run modal_run.py` No unit tests yet 😿 # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [x] I have updated the documentation or added new documentation as needed
Original commit by Tawsif Kamal: Revert "Revert "Adding Schema for Tool Outputs"" (codegen-sh#894) Reverts codegen-sh#892 --------- Co-authored-by: Rushil Patel <[email protected]> Co-authored-by: rushilpatel0 <[email protected]>
Original commit by Ellen Agarwal: fix: Workaround for relace not adding newlines (codegen-sh#907)
Reviewer's GuideThis PR populates the analyzers/visualization package with a suite of new Python modules offering graph-based code analysis (call graphs, dependency maps, blast radius, directory trees, dead code detection, method relationships, and module dependencies), adds supporting code organization skills, updates the package exports to surface these new tools, and provides end-user documentation for the visualization capabilities. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Hey! 👋 I see one of the checks failed. I am on it! 🫡 |
|
🧩 I need a bit more direction! This task is complex - could you break it down into smaller steps? Reach out to our Slack community channel for any help! |
This PR adds various visualization code files to the
analyzers/visualizationdirectory. These files provide different visualization capabilities for codebase analysis:Added Files:
blast_radius.py: Visualizes the impact radius of changes to a functioncall_trace.py: Creates call graphs for functions showing downstream function callsdependency_trace.py: Visualizes symbol dependencies in a codebasemethod_relationships.py: Visualizes relationships between methods in a classexample_modules_dependencies.py: Shows dependencies between modulesgraph_viz_call_graph.py: Provides call graph visualization skillsgraph_viz_dir_tree.py: Creates directory structure visualizationsdocs/codebase-visualization.mdx: Documentation for visualization capabilitiesChanges:
__init__.pyto import and expose all the new visualization modulesThese visualization tools help developers understand code structure, dependencies, and relationships between different parts of the codebase, making it easier to navigate and maintain large projects.
💻 View my work • About Codegen
Summary by Sourcery
Add comprehensive codebase visualization tooling under analyzers/visualization, including new modules for call graphs, dependency graphs, blast radius analysis, directory trees, and dead-code detection, along with corresponding documentation and package exports.
New Features:
Enhancements:
Documentation: