Skip to content

Commit

Permalink
doc(requirements): add requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Reanon committed Mar 26, 2023
1 parent 4efea7b commit 2d8a483
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

# Editor
.idea/
.vscode/
.vscode/
venv/
1 change: 1 addition & 0 deletions ASGDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

device = torch.device('cuda:0')


def create_batches(data):
# random.shuffle(data)
batches = [data[graph:graph + args.batch_size] for graph in range(0, len(data), args.batch_size)]
Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
anytree==2.8.0
numpy==1.24.2
py_solc_ast==1.2.9
py_solc_x==1.1.1
solcast==0.2.1
torch==2.0.0
torch_geometric==2.3.0
tqdm==4.65.0
6 changes: 0 additions & 6 deletions test/test_filter_fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,3 @@ def get_token(node):
pruned_node._children = li_set

pruned_node._children

# tokens = []
# for child in children:
# # 不为空
# tokens.append(get_token(child))
# print(tokens)
4 changes: 0 additions & 4 deletions tools/benchmark_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,3 @@ def divide_benchmark(contract_bench):
file_path = os.path.join(contracts_path, set_type)
construct_benchmark(file_path, set_type)

# contract_dict1 = get_contract_dict(file_path)
#
# contract_bench1 = construct_benchmark(contract_dict1)
# divide_benchmark(contract_bench1)

0 comments on commit 2d8a483

Please sign in to comment.