comp agent commited on
Commit
ba13dc1
·
verified ·
1 Parent(s): 5ec2923

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -9
README.md CHANGED
@@ -22,20 +22,18 @@ The dataset bridges the gap between source-level vulnerability datasets and prac
22
  ## Dataset Structure
23
 
24
  - `CompRealVul_Bin.zip`: Contains all compiled `.exe` binary files
25
- - `metadata.csv`: Metadata file with the following fields:
26
 
27
  | Column | Description |
28
  |-----------------|-----------------------------------------------------------------------------|
29
- | `name` | Identifier of the function (matches CompRealVul) |
30
- | `binary_path` | Relative path to the `.exe` file inside the ZIP archive |
31
- | `cwe` | CWE identifier for the vulnerability (or `-1` if unknown or non-vulnerable) |
32
- | `target` | Vulnerability label (`1.0` = vulnerable, `0.0` = non-vulnerable) |
33
- | `split` | Dataset split (currently only `train`) |
34
 
35
  **Example:**
36
  ```csv
37
- name,binary_path,cwe,target,split
38
- func_123,bin/func_123.exe,CWE-120,1.0,train
39
  ```
40
 
41
  ## Usage
@@ -47,7 +45,7 @@ import pandas as pd
47
  import zipfile
48
 
49
  # Load metadata
50
- df = pd.read_csv("metadata.csv")
51
 
52
  # Access the ZIP archive
53
  with zipfile.ZipFile("CompRealVul_Bin.zip", "r") as zip_ref:
 
22
  ## Dataset Structure
23
 
24
  - `CompRealVul_Bin.zip`: Contains all compiled `.exe` binary files
25
+ - `CompRealVul_metadata.csv`: Metadata file with the following fields:
26
 
27
  | Column | Description |
28
  |-----------------|-----------------------------------------------------------------------------|
29
+ | `file_name` | Name of the .exe file |
30
+ | `function_name` | The name of the target function in the .exe file |
31
+ | `label` | Vulnerability label (`1.0` = vulnerable, `0.0` = non-vulnerable) |
 
 
32
 
33
  **Example:**
34
  ```csv
35
+ file_name,function_name,label
36
+ func_123.exe,func_123,1.0
37
  ```
38
 
39
  ## Usage
 
45
  import zipfile
46
 
47
  # Load metadata
48
+ df = pd.read_csv("CompRealVul_metadata.csv")
49
 
50
  # Access the ZIP archive
51
  with zipfile.ZipFile("CompRealVul_Bin.zip", "r") as zip_ref: