|
Download README.md from AetherPrior/CWE-Code_Vulnerability_Security_DPO: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/AetherPrior/CWE-Code_Vulnerability_Security_DPO/resolve/main/README.md
- Command line
-
hf download hf://AetherPrior/CWE-Code_Vulnerability_Security_DPO/README.md
-
curl -L -o README.md https://huggingface.co/AetherPrior/CWE-Code_Vulnerability_Security_DPO/resolve/main/README.md
738 Bytes
CWE-Code_Vulnerability_Security_DPO
This dataset adds a cwe_ids field to each row in
CyberNative/Code_Vulnerability_Security_DPO by querying an LLM
with the row's vulnerability description and rejected code sample.
How the CWE IDs were obtained
- Model: gpt-5-mini via the OpenAI Responses API
- Reasoning: low effort
- Tooling:
web_searchlimited tocwe.mitre.org - Prompt format:
Given the following description of a CWE and a code segment that replicates it:
Description: {desc}
Code: {vuln_code}
What's the most likely CWE ID associated with this vulnerability? Answer in the following format:
## Answer:
CWE-#: CWE Name
- Parsing: lines starting with
CWE-are extracted and the numeric ID is retained.