File size: 4,512 Bytes
df5c312 d403550 df5c312 d403550 df5c312 d403550 df5c312 17080f9 5ccf875 17080f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | ---
dataset_info:
features:
- name: data_source
dtype: string
- name: prompt
list:
- name: content
dtype: string
- name: role
dtype: string
- name: ability
dtype: string
- name: reward_model
struct:
- name: ground_truth
dtype: 'null'
- name: style
dtype: string
- name: extra_info
struct:
- name: split
dtype: string
- name: tools_kwargs
struct:
- name: difficulty
dtype: int64
- name: idx
dtype: int64
- name: item
struct:
- name: add_info
struct:
- name: had_tests
dtype: bool
- name: class_code
dtype: string
- name: class_code_updated
dtype: string
- name: class_doc
dtype: string
- name: class_id
dtype: int64
- name: class_loc
dtype: int64
- name: class_name
dtype: string
- name: class_parent
dtype: string
- name: class_position_in_file
dtype: int64
- name: class_without_method
dtype: string
- name: difficulty
dtype: int64
- name: dp_id
dtype: string
- name: file_imports
dtype: string
- name: file_level_code
dtype: string
- name: file_path
dtype: string
- name: file_without_method
dtype: string
- name: idx
dtype: int64
- name: line_numbers
dtype: string
- name: method
struct:
- name: body
dtype: string
- name: declaration
dtype: string
- name: description
dtype: string
- name: global_method_body_index
list: int64
- name: global_method_declaration_index
list: int64
- name: method_body_index
list: int64
- name: method_declaration_index
list: int64
- name: name
dtype: string
- name: num_lines
dtype: int64
- name: num_lines_quartile
dtype: int64
- name: method_count
dtype: int64
- name: qwen3-8b_pass_repair
dtype: bool
- name: qwen3-8b_pass_single
dtype: bool
- name: raw_doc
dtype: string
- name: raw_file_content
dtype: string
- name: split
dtype: string
- name: tests
struct:
- name: full_paths
list: string
- name: methods
list: string
- name: modules
list: string
- name: test_output
dtype: string
- name: time_cat
dtype: float64
- name: time_edit
dtype: float64
- name: time_reset
dtype: float64
- name: time_reset_norm
dtype: float64
- name: time_test
dtype: float64
- name: time_test_norm
dtype: float64
- name: time_total
dtype: float64
- name: agent_name
dtype: string
splits:
- name: train
num_bytes: 232713631
num_examples: 1364
- name: test
num_bytes: 14568916
num_examples: 100
download_size: 247410221
dataset_size: 247282547
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: test
path: data/test-*
---
`JetBrains-Research/django_method_gen` is a code generation benchmark built from the Django codebase.
This dataset is used in the example of [IDEGym](https://github.com/JetBrains-Research/idegym/) usage for VERL-based RL training (see [`this repo`](https://github.com/JetBrains-Research/idegym/tree/main/examples/verl)).
Each example is a task to regenerate a single Python method that has been cut from its class. The dataset provides the surrounding class code, file imports, and docstrings as context. Reward is rule-based: the agent's submission is evaluated by running the original unit tests.
The dataset follows the VERL multi-turn format: each row contains a `prompt` (chat-style system + user messages), an `agent_name` field (`"idegym_django"`), and an `extra_info` blob carrying the raw task data passed to the IDEGym server — including the method body to recover, file context, and test metadata. There are 1,364 training examples and 100 test examples, spanning four difficulty levels.
|