Skip to content

Commit 55e8ebf

Browse files
committed
fix imports
1 parent 74cad81 commit 55e8ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/profiling/apis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import base64
12
import logging
3+
import pickle
24
from pathlib import Path
35

6+
import networkx as nx
47
from tabulate import tabulate
58

69
from graph_sitter.codebase.factory.get_dev_customer_codebase import get_codebase_codegen
@@ -9,7 +12,6 @@
912
logging.basicConfig(level=logging.INFO)
1013
codegen = get_codebase_codegen("../codegen", ".")
1114
res = []
12-
import networkx as nx
1315

1416
# Create a directed graph
1517
G = nx.DiGraph()
@@ -53,8 +55,6 @@
5355
# Print some basic statistics
5456
print(f"Number of files: {G.number_of_nodes()}")
5557
print(f"Number of import relationships: {G.number_of_edges()}")
56-
import base64
57-
import pickle
5858

5959
# Serialize the graph to a pickle
6060
graph_pickle = pickle.dumps(G)

0 commit comments

Comments
 (0)