diff --git a/README.md b/README.md index e3f711d95..7298ee3de 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Graph sitter [![Documentation](https://img.shields.io/badge/docs-docs.codegen.com-blue)](https://docs.codegen.com) -[![Upload Python Package](https://github.com/codegen-sh/graph-sitter/actions/workflows/release.yml/badge.svg)](https://github.com/codegen-sh/graph-sitter/actions/workflows/release.yml) -[![Unit Tests](https://github.com/codegen-sh/graph-sitter/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/codegen-sh/graph-sitter/actions/workflows/unit-tests.yml) +[![Upload Python Package](https://github.com/codegen-sh/codegen-sdk/actions/workflows/release.yml/badge.svg)](https://github.com/codegen-sh/codegen-sdk/actions/workflows/release.yml) +[![Unit Tests](https://github.com/codegen-sh/codegen-sdk/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/codegen-sh/codegen-sdk/actions/workflows/unit-tests.yml) [Codegen](https://docs.codegen.com) is a python library for manipulating codebases. diff --git a/docs/api-reference/index.mdx b/docs/api-reference/index.mdx index e5932376f..b8fac7ce1 100644 --- a/docs/api-reference/index.mdx +++ b/docs/api-reference/index.mdx @@ -75,7 +75,7 @@ If you're new to Codegen, we recommend: 1. Following the [Getting Started](/introduction/getting-started) guide 2. Exploring the [Tutorials](/tutorials/at-a-glance) -3. Looking at example codemods in our [GitHub repository](https://github.com/codegen-sh/graph-sitter/tree/main/examples) +3. Looking at example codemods in our [GitHub repository](https://github.com/codegen-sh/codegen-sdk/tree/main/examples) Use the search bar (⌘ K) to quickly find specific APIs and functionality. diff --git a/docs/introduction/about.mdx b/docs/introduction/about.mdx index 4d57fc9dd..903865ec9 100644 --- a/docs/introduction/about.mdx +++ b/docs/introduction/about.mdx @@ -36,7 +36,7 @@ Based in San Francisco, we're a team of engineers and researchers passionate abo ## Open Source -We believe in the power of open source software. Our core library, [codegen](https://github.com/codegen-sh/graph-sitter), is freely available and open to contributions from the community. +We believe in the power of open source software. Our core library, [codegen](https://github.com/codegen-sh/codegen-sdk), is freely available and open to contributions from the community. ## Join Us diff --git a/docs/introduction/community.mdx b/docs/introduction/community.mdx index 508ecc584..fd6a9e95f 100644 --- a/docs/introduction/community.mdx +++ b/docs/introduction/community.mdx @@ -19,7 +19,7 @@ Join the growing Codegen community! We're excited to have you be part of our jou Star us on GitHub, report issues, submit PRs, and contribute to the project. @@ -72,7 +72,7 @@ Follow us on Twitter/X to: We welcome contributions of all kinds! Whether you're fixing a typo in documentation, reporting a bug, or implementing a new feature, we appreciate your help in making Codegen better. -Check out our [Contributing Guide](https://github.com/codegen-sh/graph-sitter/blob/main/CONTRIBUTING.md) on GitHub to learn how to: +Check out our [Contributing Guide](https://github.com/codegen-sh/codegen-sdk/blob/main/CONTRIBUTING.md) on GitHub to learn how to: - Set up your development environment - Submit pull requests diff --git a/docs/introduction/faq.mdx b/docs/introduction/faq.mdx index 021b8a1f6..e2a5d4d1d 100644 --- a/docs/introduction/faq.mdx +++ b/docs/introduction/faq.mdx @@ -42,7 +42,7 @@ iconType: "solid" documentation, examples, and code improvements. - Yes, Codegen is [open source](https://github.com/codegen-sh/graph-sitter) and free to use under the [Apache 2.0 + Yes, Codegen is [open source](https://github.com/codegen-sh/codegen-sdk) and free to use under the [Apache 2.0 license](https://github.com/codegen-sh/codegen-cli?tab=Apache-2.0-1-ov-file). You can use it for both personal and commercial projects. diff --git a/docs/introduction/overview.mdx b/docs/introduction/overview.mdx index 38cff6c37..a89f207ed 100644 --- a/docs/introduction/overview.mdx +++ b/docs/introduction/overview.mdx @@ -5,7 +5,7 @@ icon: "code" iconType: "solid" --- -[Codegen](https://github.com/codegen-sh/graph-sitter) is a python library for manipulating codebases. +[Codegen](https://github.com/codegen-sh/codegen-sdk) is a python library for manipulating codebases. It provides a scriptable interface to a powerful, multi-lingual language server built on top of [Tree-sitter](https://tree-sitter.github.io/tree-sitter/). @@ -33,7 +33,7 @@ pip install codegen Star us on GitHub and contribute to the project. diff --git a/hatch.toml b/hatch.toml index 2fb16b493..6857a796d 100644 --- a/hatch.toml +++ b/hatch.toml @@ -77,8 +77,8 @@ packages = [ ] [metadata.hooks.vcs] -Homepage = "https://github.com/codegen-sh/graph_sitter" -source_archive = "https://github.com/codegen-sh/graph_sitter/archive/{commit_hash}.zip" +Homepage = "https://github.com/codegen-sh/codegen-sdk" +source_archive = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash}.zip" [build.targets.wheel.hooks.custom] diff --git a/scripts/profiling/apis.py b/scripts/profiling/apis.py index 52772fbeb..9a01af6a3 100644 --- a/scripts/profiling/apis.py +++ b/scripts/profiling/apis.py @@ -1,6 +1,9 @@ +import base64 import logging +import pickle from pathlib import Path +import networkx as nx from tabulate import tabulate from graph_sitter.codebase.factory.get_dev_customer_codebase import get_codebase_codegen @@ -9,7 +12,6 @@ logging.basicConfig(level=logging.INFO) codegen = get_codebase_codegen("../codegen", ".") res = [] -import networkx as nx # Create a directed graph G = nx.DiGraph() @@ -53,8 +55,6 @@ # Print some basic statistics print(f"Number of files: {G.number_of_nodes()}") print(f"Number of import relationships: {G.number_of_edges()}") -import base64 -import pickle # Serialize the graph to a pickle graph_pickle = pickle.dumps(G)