data_source stringclasses 1
value | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | extra_info dict | agent_name stringclasses 1
value |
|---|---|---|---|---|---|
django_train | [
{
"content": "You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **only** the target method (signature + body) inside **one** fenced code block labeled `python`.\n* Do **not** include the containing class or any other code.\n* Do **not** add imports or top-level definitions.\n* ... | code | {
"ground_truth": null,
"style": "rule"
} | {
"split": "train",
"tools_kwargs": {
"difficulty": 1,
"idx": 4,
"item": {
"add_info": {
"had_tests": true
},
"class_code": "class ConfirmDeleteForm(forms.Form):\n confirm = forms.BooleanField()\n\n def clean(self):\n cleaned_data = super().clean()\n if \"co... | idegym_django |
django_train | [
{
"content": "You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **only** the target method (signature + body) inside **one** fenced code block labeled `python`.\n* Do **not** include the containing class or any other code.\n* Do **not** add imports or top-level definitions.\n* ... | code | {
"ground_truth": null,
"style": "rule"
} | {
"split": "train",
"tools_kwargs": {
"difficulty": 3,
"idx": 9,
"item": {
"add_info": {
"had_tests": true
},
"class_code": "class AuthorCustomDetail(generic.DetailView):\n template_name = \"generic_views/author_detail.html\"\n queryset = Author.objects.all()\n\n def g... | idegym_django |
django_train | [
{
"content": "You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **only** the target method (signature + body) inside **one** fenced code block labeled `python`.\n* Do **not** include the containing class or any other code.\n* Do **not** add imports or top-level definitions.\n* ... | code | {
"ground_truth": null,
"style": "rule"
} | {
"split": "train",
"tools_kwargs": {
"difficulty": 4,
"idx": 10,
"item": {
"add_info": {
"had_tests": true
},
"class_code": "class TemplateResponseWithoutTemplate(\n generic.detail.SingleObjectTemplateResponseMixin, generic.View\n):\n # we don't define the usual template... | idegym_django |
django_train | [
{
"content": "You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **only** the target method (signature + body) inside **one** fenced code block labeled `python`.\n* Do **not** include the containing class or any other code.\n* Do **not** add imports or top-level definitions.\n* ... | code | {
"ground_truth": null,
"style": "rule"
} | {
"split": "train",
"tools_kwargs": {
"difficulty": 1,
"idx": 12,
"item": {
"add_info": {
"had_tests": true
},
"class_code": "class AuthorUpdate(generic.UpdateView):\n get_form_called_count = 0 # Used to ensure get_form() is called once.\n model = Author\n success_url... | idegym_django |
django_train | [
{
"content": "You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **only** the target method (signature + body) inside **one** fenced code block labeled `python`.\n* Do **not** include the containing class or any other code.\n* Do **not** add imports or top-level definitions.\n* ... | code | {
"ground_truth": null,
"style": "rule"
} | {
"split": "train",
"tools_kwargs": {
"difficulty": 2,
"idx": 33,
"item": {
"add_info": {
"had_tests": true
},
"class_code": "class StrictAssignmentFieldSpecific(models.Model):\n title = models.CharField(max_length=30)\n _should_error = False\n\n def __setattr__(self, ... | idegym_django |
django_train | [{"content":"You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **o(...TRUNCATED) | code | {
"ground_truth": null,
"style": "rule"
} | {"split":"train","tools_kwargs":{"difficulty":1,"idx":34,"item":{"add_info":{"had_tests":true},"clas(...TRUNCATED) | idegym_django |
django_train | [{"content":"You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **o(...TRUNCATED) | code | {
"ground_truth": null,
"style": "rule"
} | {"split":"train","tools_kwargs":{"difficulty":1,"idx":35,"item":{"add_info":{"had_tests":true},"clas(...TRUNCATED) | idegym_django |
django_train | [{"content":"You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **o(...TRUNCATED) | code | {
"ground_truth": null,
"style": "rule"
} | {"split":"train","tools_kwargs":{"difficulty":2,"idx":37,"item":{"add_info":{"had_tests":true},"clas(...TRUNCATED) | idegym_django |
django_train | [{"content":"You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **o(...TRUNCATED) | code | {
"ground_truth": null,
"style": "rule"
} | {"split":"train","tools_kwargs":{"difficulty":2,"idx":38,"item":{"add_info":{"had_tests":true},"clas(...TRUNCATED) | idegym_django |
django_train | [{"content":"You are a helpful Python code-generation assistant.\n\n**Output rules**\n\n* Return **o(...TRUNCATED) | code | {
"ground_truth": null,
"style": "rule"
} | {"split":"train","tools_kwargs":{"difficulty":3,"idx":40,"item":{"add_info":{"had_tests":true},"clas(...TRUNCATED) | idegym_django |
JetBrains-Research/django_method_gen is a code generation benchmark built from the Django codebase.
This dataset is used in the example of IDEGym usage for VERL-based RL training (see this repo).
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.
- Downloads last month
- 53