We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cad81 commit 55e8ebfCopy full SHA for 55e8ebf
scripts/profiling/apis.py
@@ -1,6 +1,9 @@
1
+import base64
2
import logging
3
+import pickle
4
from pathlib import Path
5
6
+import networkx as nx
7
from tabulate import tabulate
8
9
from graph_sitter.codebase.factory.get_dev_customer_codebase import get_codebase_codegen
@@ -9,7 +12,6 @@
12
logging.basicConfig(level=logging.INFO)
10
13
codegen = get_codebase_codegen("../codegen", ".")
11
14
res = []
-import networkx as nx
15
16
# Create a directed graph
17
G = nx.DiGraph()
@@ -53,8 +55,6 @@
53
55
# Print some basic statistics
54
56
print(f"Number of files: {G.number_of_nodes()}")
57
print(f"Number of import relationships: {G.number_of_edges()}")
-import base64
-import pickle
58
59
# Serialize the graph to a pickle
60
graph_pickle = pickle.dumps(G)
0 commit comments