nothingisenough/Solidity_Code_Graph_Codearena
Here is a 100 repositories from Codearena parsed as graph of functions with different types of relationships: Parent Contracts, High-Level Calls, Internal Calls, Library Calls, Low-Level Calls. Dataset can be used for tasks like code clone detection (similar bugs search), code reconstruction with context pruning. Dataset is ready to be used in GNN. You can see usage of dataset as RAG at github Structure auditits_info.json <-main file for easy paths navigantion /processed… See the full description on the dataset page: https://huggingface.co/datasets/nothingisenough/Solidity_Code_Graph_Codearena.
29
1---2task_categories:3- graph-ml4- text-generation5tags:6- code7size_categories:8- 10K<n<100K9---10 11Here is a 100 repositories from [Codearena](https://code4rena.com/audits) parsed as graph of functions with different types of relationships: Parent Contracts, High-Level Calls, Internal Calls, Library Calls, Low-Level Calls.12 13Dataset can be used for tasks like code clone detection (similar bugs search), code reconstruction with context pruning. Dataset is ready to be used in GNN.14 15You can see usage of dataset as RAG at [github](https://github.com/YouOnlyLive1ce/bug_search)16 17# Structure18 19auditits_info.json <-main file for easy paths navigantion20 21/processed repositories22 23 /repository124 25 /file126 27 /function1(node) <- contains code, relationships(edges) with other functions28 29 /function230 31 /file232 33 /function334 35 /function436 37 /repository238 39 ...40 41/reports42 43 /repository144 45 /vulnerability1-code.txt <-actual code with bug46 47 /vulneralbility1-explain.txt <-human explanation48 49 ...50 51 ...