Datasets:
metadata
language:
- en
license: cc-by-2.0
size_categories:
- 100K<n<1M
source_datasets:
- mrahman2025/OpenClassGen
task_categories:
- text-generation
pretty_name: OpenClassGen Structured v1
tags:
- code
- python
- class-level
- text
dataset_info:
features:
- name: id
dtype: int64
- name: repository_name
dtype: string
- name: file_path
dtype: string
- name: class_name
dtype: string
- name: gold_code
dtype: string
- name: v3_prompt_text
dtype: string
- name: v3_target_text
dtype: string
- name: imports
dtype: string
- name: class_docstring
dtype: string
- name: num_functions
dtype: int64
- name: num_cross_deps
dtype: int64
- name: parallelizable_bodies
dtype: int64
- name: docstring_coverage
dtype: float64
- name: parse_ok
dtype: bool
- name: parse_error
dtype: string
- name: source
dtype: string
- name: body_spans_json
dtype: string
splits:
- name: train
num_bytes: 2299548508
num_examples: 316195
- name: validation
num_bytes: 76613499
num_examples: 12205
download_size: 633018866
dataset_size: 2376162007
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
OpenClassGen Structured v1
Derived from mrahman2025/OpenClassGen (Rahman et al. 2025, arXiv:2504.15564).
License: CC BY 2.0 (same as upstream). Keep repository_name and file_path when redistributing.
Underlying GitHub repos may carry additional software licenses.
gold_code is upstream human_written_code.
We add parsed fields, body-span indices, and a Variant-3 prompt/target pair (v3_prompt_text / v3_target_text).
No unit tests. Splits are repository-disjoint (train / validation).
Fields
| Field | Meaning |
|---|---|
id |
Upstream OpenClassGen id. |
repository_name |
GitHub org/repo. Split key. |
file_path |
Path inside the repo. |
class_name |
Class name (may be qualified). |
gold_code |
Gold class source (human_written_code). |
imports |
Imports parsed from gold (may be empty). |
class_docstring |
Class docstring from gold, if any. |
v3_prompt_text |
Prompt ending at class ClassName:: module docstring lists required methods (unordered); no method defs / no pass. |
v3_target_text |
Indented class body. v3_prompt_text + v3_target_text is a full file. |
body_spans_json |
JSON list of {name, start_char, end_char} over gold_code for method bodies. |
num_functions |
Method count. |
num_cross_deps |
Cross-method / field dependency edge count. |
parallelizable_bodies |
Count of mutually independent method bodies. |
docstring_coverage |
Fraction of methods with a docstring. |
parse_ok |
Gold / v3 render parsed during build. |
parse_error |
Error string if not parse_ok; else empty. |
source |
Always mrahman2025/OpenClassGen. |