File size: 1,181 Bytes
9f8a267
 
 
 
 
 
 
 
54d5b5d
 
7996130
54d5b5d
 
 
7996130
8f0ad02
 
9a303b7
7996130
70e7e3d
7996130
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
7996130
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
9a303b7
8f0ad02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
task_categories:
- graph-ml
- text-generation
tags:
- code
size_categories:
- 10K<n<100K
---

Here 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.

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](https://github.com/YouOnlyLive1ce/bug_search)

# Structure

auditits_info.json <-main file for easy paths navigantion

/processed repositories

    /repository1
    
        /file1
        
            /function1(node) <- contains code, relationships(edges) with other functions
            
            /function2
            
        /file2
        
            /function3
            
            /function4
            
    /repository2
    
        ...
        
/reports

    /repository1
    
        /vulnerability1-code.txt <-actual code with bug
        
        /vulneralbility1-explain.txt <-human explanation

        ...
        
    ...