Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

RakshakAI Phase B Dataset (v2 — cleaned)

Bug-fixed version of the RakshakAI Phase B security dataset:

  • Bug 1: NVD/OSV advisory text masquerading as code — source-based filter removed ~22K rows
  • Bug 2: OWASP false positives labeled as vulnerable — 2,740 rows corrected to is_vulnerable=false
  • Bug 3: BigVul identical before/after patches — 57,203 vuln rows nulled (whitespace normalization revealed 98% identity)
  • Bug 4: Partial snippet patches (<50% of vuln lines) — 1,187 rows nulled (71% of securecode_web patches affected)

Loading

from datasets import load_dataset

# Cleaned base format (default)
ds = load_dataset("Muneerali199/RakshakAI-phase-b", "default")

# Axolotl chat format (system/user/assistant with CoT + JSON)
ds = load_dataset("Muneerali199/RakshakAI-phase-b", "axolotl")

Stats

Split Samples Vuln Clean Ratio
train 169,900 84,950 84,950 1:1
val 10,040 5,020 5,020 1:1
test 19,946 9,973 9,973 1:1
Total 199,886 99,943 99,943 1:1

Languages: C (71%), JavaScript (6%), Java (6%), PHP (5%), Python (4%), Go (2%), Rust (1%), C# (2%), others (3%)

Fix pairs: 13,200

Downloads last month
59