Dataset · OSS-forge
Paired human and AI code in Python and Java
OSS-forge/HumanVsAICode
A large corpus of 100K to 1M paired function implementations by humans and LLMs for defect and security analysis.
What's inside
The dataset contains between 100,000 and 1,000,000 text code examples in Python and Java. Its key feature is paired implementations of the same functions written by human developers and modern language models. The data is designed to study differences in defect distribution, code quality, and security vulnerabilities.
What you can do with it
- Training classifiers to detect AI-generated code
- Analyzing and finding typical vulnerabilities and bugs in LLM code
- Comparative audit of Python and Java code generation quality
- Size
- 100K–1M rows
- Downloads this month
- 210
- Likes
- 33
How to load it
from datasets import load_dataset
ds = load_dataset("OSS-forge/HumanVsAICode")