Skip to content

Commit 5b2e8ae

Browse files
committed
rename code_graph to api
1 parent 7e551e3 commit 5b2e8ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+15
-14
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.env
2+
.vercel
File renamed without changes.
456 Bytes
Binary file not shown.

api/__pycache__/app.cpython-312.pyc

16.5 KB
Binary file not shown.
458 Bytes
Binary file not shown.

api/__pycache__/graph.cpython-312.pyc

30.9 KB
Binary file not shown.

api/__pycache__/info.cpython-312.pyc

4.61 KB
Binary file not shown.

api/__pycache__/llm.cpython-312.pyc

4.16 KB
Binary file not shown.
5.05 KB
Binary file not shown.
File renamed without changes.
217 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
1.18 KB
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.

code_graph/analyzers/source_analyzer.py renamed to api/analyzers/source_analyzer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import shutil
33
import concurrent.futures
44

5-
from git import Repo
65
from pathlib import Path
76
from typing import Optional, List
87

@@ -170,6 +169,7 @@ def analyze_local_repository(self, path: str, ignore: Optional[List[str]] = [])
170169
path (str): Path to a local git repository
171170
ignore (List(str)): List of paths to skip
172171
"""
172+
from git import Repo
173173

174174
self.analyze_local_folder(path, ignore)
175175

File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
387 Bytes
Binary file not shown.
Binary file not shown.
2.42 KB
Binary file not shown.
Binary file not shown.
1.63 KB
Binary file not shown.
Binary file not shown.
3.01 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
191 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.

code_graph/app.py renamed to api/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import datetime
3-
from code_graph import *
3+
from api import *
44
from typing import Optional
55
from functools import wraps
66
from falkordb import FalkorDB
File renamed without changes.
File renamed without changes.

tests/endpoints/test_auto_complete.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/endpoints/test_find_paths.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import redis
33
import pytest
44
from pathlib import Path
5-
from code_graph import create_app, Project
5+
from api import create_app, Project
66
from falkordb import FalkorDB, Path, Node, QueryResult
77

88
@pytest.fixture()

tests/endpoints/test_get_neighbors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/endpoints/test_graph_entities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/endpoints/test_list_commits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/endpoints/test_list_repos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/endpoints/test_repo_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import redis
22
import pytest
33
from pathlib import Path
4-
from code_graph import create_app, Project
4+
from api import create_app, Project
55

66
@pytest.fixture()
77
def app():

tests/test_c_analyzer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import unittest
33
from pathlib import Path
44

5-
from code_graph import SourceAnalyzer, File, Struct, Function, Graph
5+
from api import SourceAnalyzer, File, Struct, Function, Graph
66

77
class Test_C_Analyzer(unittest.TestCase):
88
def test_analyzer(self):

tests/test_git_history.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import unittest
33
from git import Repo
4-
from code_graph import (
4+
from api import (
55
Graph,
66
Project,
77
switch_commit

tests/test_graph_ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from falkordb import FalkorDB
33
from typing import List, Optional
4-
from code_graph import *
4+
from api import *
55

66

77
class TestGraphOps(unittest.TestCase):

tests/test_py_analyzer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import unittest
33
from pathlib import Path
44

5-
from code_graph import SourceAnalyzer, File, Class, Function, Graph
5+
from api import SourceAnalyzer, File, Class, Function, Graph
66

77
class Test_PY_Analyzer(unittest.TestCase):
88
def test_analyzer(self):

vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"rewrites": [
3-
{ "source": "/(.*)", "destination": "/code_graph/app" }
3+
{ "source": "/(.*)", "destination": "/api/index" }
44
]
55
}

0 commit comments

Comments
 (0)