Skip to content

Update urls #9

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

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<Tip>
Use the search bar (⌘ K) to quickly find specific APIs and functionality.
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/introduction/community.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Join the growing Codegen community! We're excited to have you be part of our jou
<Card
title="GitHub"
icon="github"
href="https://github.com/codegen-sh/graph-sitter"
href="https://github.com/codegen-sh/codegen-sdk"
>
Star us on GitHub, report issues, submit PRs, and contribute to the project.
</Card>
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ iconType: "solid"
documentation, examples, and code improvements.
</Accordion>
<Accordion title="Is Codegen free to use?" icon="scale-balanced">
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.
</Accordion>
Expand Down
4 changes: 2 additions & 2 deletions docs/introduction/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

Expand Down Expand Up @@ -33,7 +33,7 @@ pip install codegen
<Card
title="View on GitHub"
icon="github"
href="https://github.com/codegen-sh/graph-sitter"
href="https://github.com/codegen-sh/codegen-sdk"
>
Star us on GitHub and contribute to the project.
</Card>
Expand Down
4 changes: 2 additions & 2 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions scripts/profiling/apis.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
Expand Down Expand Up @@ -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)
Expand Down
Loading