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": 3, "idx": 710, "item": { "add_info": { "had_tests": true }, "class_code": "class BoundField:\n \"A Field plus data\"\n\n def __init__(self, form, field, name):\n self.form = form\n self.field = field\n ...
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": 713, "item": { "add_info": { "had_tests": true }, "class_code": "class BoundField:\n \"A Field plus data\"\n\n def __init__(self, form, field, name):\n self.form = form\n self.field = field\n ...
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": 716, "item": { "add_info": { "had_tests": true }, "class_code": "class BoundField:\n \"A Field plus data\"\n\n def __init__(self, form, field, name):\n self.form = form\n self.field = field\n ...
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": 717, "item": { "add_info": { "had_tests": true }, "class_code": "class BoundField:\n \"A Field plus data\"\n\n def __init__(self, form, field, name):\n self.form = form\n self.field = field\n ...
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": 0, "idx": 720, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseRenderer:\n def get_template(self, template_name):\n raise NotImplementedError(\"subclasses must implement get_template()\")\n\n ...
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": 722, "item": { "add_info": { "had_tests": true }, "class_code": "class Jinja2(EngineMixin, BaseRenderer):\n \"\"\"\n Load Jinja2 templates from the built-in widget templates in\n django/forms/jinja2 and from...
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": 0, "idx": 727, "item": { "add_info": { "had_tests": true }, "class_code": "class Widget(metaclass=MediaDefiningClass):\n needs_multipart_form = False # Determines does this widget need multipart form\n is_localized = Fa...
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": 733, "item": { "add_info": { "had_tests": true }, "class_code": "class Widget(metaclass=MediaDefiningClass):\n needs_multipart_form = False # Determines does this widget need multipart form\n is_localized = Fa...
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": 735, "item": { "add_info": { "had_tests": true }, "class_code": "class PasswordInput(Input):\n input_type = \"password\"\n template_name = \"django/forms/widgets/password.html\"\n\n def __init__(self, attrs=...
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": 0, "idx": 740, "item": { "add_info": { "had_tests": true }, "class_code": "class FileInput(Input):\n input_type = \"file\"\n needs_multipart_form = True\n template_name = \"django/forms/widgets/file.html\"\n\n def ...
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": 746, "item": { "add_info": { "had_tests": true }, "class_code": "class ClearableFileInput(FileInput):\n clear_checkbox_label = _(\"Clear\")\n initial_text = _(\"Currently\")\n input_text = _(\"Change\")\n ...
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": 747, "item": { "add_info": { "had_tests": true }, "class_code": "class ClearableFileInput(FileInput):\n clear_checkbox_label = _(\"Clear\")\n initial_text = _(\"Currently\")\n input_text = _(\"Change\")\n ...
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": 749, "item": { "add_info": { "had_tests": true }, "class_code": "class Textarea(Widget):\n template_name = \"django/forms/widgets/textarea.html\"\n\n def __init__(self, attrs=None):\n # Use slightly bett...
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": 754, "item": { "add_info": { "had_tests": true }, "class_code": "class ChoiceWidget(Widget):\n allow_multiple_selected = False\n input_type = None\n template_name = None\n option_template_name = None\n ...
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": 756, "item": { "add_info": { "had_tests": true }, "class_code": "class ChoiceWidget(Widget):\n allow_multiple_selected = False\n input_type = None\n template_name = None\n option_template_name = None\n ...
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": 759, "item": { "add_info": { "had_tests": true }, "class_code": "class Select(ChoiceWidget):\n input_type = \"select\"\n template_name = \"django/forms/widgets/select.html\"\n option_template_name = \"django...
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": 760, "item": { "add_info": { "had_tests": true }, "class_code": "class NullBooleanSelect(Select):\n \"\"\"\n A Select Widget intended to be used with NullBooleanField.\n \"\"\"\n\n def __init__(self, attr...
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": 761, "item": { "add_info": { "had_tests": true }, "class_code": "class NullBooleanSelect(Select):\n \"\"\"\n A Select Widget intended to be used with NullBooleanField.\n \"\"\"\n\n def __init__(self, attr...
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": 767, "item": { "add_info": { "had_tests": true }, "class_code": "class MultiWidget(Widget):\n \"\"\"\n A widget that is composed of multiple widgets.\n\n In addition to the values added by Widget.get_context...
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": 771, "item": { "add_info": { "had_tests": true }, "class_code": "class MultiWidget(Widget):\n \"\"\"\n A widget that is composed of multiple widgets.\n\n In addition to the values added by Widget.get_context...
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": 773, "item": { "add_info": { "had_tests": true }, "class_code": "class SplitDateTimeWidget(MultiWidget):\n \"\"\"\n A widget that splits datetime input into two <input type=\"text\"> boxes.\n \"\"\"\n\n s...
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": 777, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseFormSet(RenderableFormMixin):\n \"\"\"\n A collection of instances of the same Form class.\n \"\"\"\n\n deletion_widget = Checkbo...
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": 780, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseFormSet(RenderableFormMixin):\n \"\"\"\n A collection of instances of the same Form class.\n \"\"\"\n\n deletion_widget = Checkbo...
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": 781, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseFormSet(RenderableFormMixin):\n \"\"\"\n A collection of instances of the same Form class.\n \"\"\"\n\n deletion_widget = Checkbo...
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": 782, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseFormSet(RenderableFormMixin):\n \"\"\"\n A collection of instances of the same Form class.\n \"\"\"\n\n deletion_widget = Checkbo...
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": 785, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseForm(RenderableFormMixin):\n \"\"\"\n The main implementation of all the Form logic. Note that this class is\n different than Form. ...
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": 786, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseForm(RenderableFormMixin):\n \"\"\"\n The main implementation of all the Form logic. Note that this class is\n different than Form. ...
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": 796, "item": { "add_info": { "had_tests": true }, "class_code": "class ErrorDict(dict, RenderableErrorMixin):\n \"\"\"\n A collection of errors that knows how to display itself in various formats.\n\n The di...
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": 798, "item": { "add_info": { "had_tests": true }, "class_code": "class ErrorList(UserList, list, RenderableErrorMixin):\n \"\"\"\n A collection of errors that knows how to display itself in various formats.\n ...
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": 799, "item": { "add_info": { "had_tests": true }, "class_code": "class ErrorList(UserList, list, RenderableErrorMixin):\n \"\"\"\n A collection of errors that knows how to display itself in various formats.\n ...
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": 800, "item": { "add_info": { "had_tests": true }, "class_code": "class ErrorList(UserList, list, RenderableErrorMixin):\n \"\"\"\n A collection of errors that knows how to display itself in various formats.\n ...
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": 802, "item": { "add_info": { "had_tests": true }, "class_code": "class Signer:\n def __init__(self, key=None, sep=\":\", salt=None, algorithm=None):\n self.key = key or settings.SECRET_KEY\n self.sep...
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": 0, "idx": 803, "item": { "add_info": { "had_tests": true }, "class_code": "class TimestampSigner(Signer):\n def timestamp(self):\n return b62_encode(int(time.time()))\n\n def sign(self, value):\n value = \"...
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": 806, "item": { "add_info": { "had_tests": true }, "class_code": "class URLValidator(RegexValidator):\n ul = \"\\u00a1-\\uffff\" # Unicode letters range (must not be a raw string).\n\n # IP patterns\n ipv4_r...
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": 807, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailValidator:\n message = _(\"Enter a valid email address.\")\n code = \"invalid\"\n user_regex = _lazy_re_compile(\n # dot-ato...
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": 808, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailValidator:\n message = _(\"Enter a valid email address.\")\n code = \"invalid\"\n user_regex = _lazy_re_compile(\n # dot-ato...
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": 809, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseValidator:\n message = _(\"Ensure this value is %(limit_value)s (it is %(show_value)s).\")\n code = \"limit_value\"\n\n def __init__...
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": 810, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseValidator:\n message = _(\"Ensure this value is %(limit_value)s (it is %(show_value)s).\")\n code = \"limit_value\"\n\n def __init__...
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": 826, "item": { "add_info": { "had_tests": true }, "class_code": "class Paginator:\n # Translators: String used to replace omitted page numbers in elided page\n # range generated by paginators, e.g. [1, 2, '…', ...
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": 828, "item": { "add_info": { "had_tests": true }, "class_code": "class Paginator:\n # Translators: String used to replace omitted page numbers in elided page\n # range generated by paginators, e.g. [1, 2, '…', ...
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": 830, "item": { "add_info": { "had_tests": true }, "class_code": "class Paginator:\n # Translators: String used to replace omitted page numbers in elided page\n # range generated by paginators, e.g. [1, 2, '…', ...
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": 831, "item": { "add_info": { "had_tests": true }, "class_code": "class Paginator:\n # Translators: String used to replace omitted page numbers in elided page\n # range generated by paginators, e.g. [1, 2, '…', ...
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": 841, "item": { "add_info": { "had_tests": true }, "class_code": "class Page(collections.abc.Sequence):\n def __init__(self, object_list, number, paginator):\n self.object_list = object_list\n self.nu...
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": 843, "item": { "add_info": { "had_tests": true }, "class_code": "class ValidationError(Exception):\n \"\"\"An error while validating data.\"\"\"\n\n def __init__(self, message, code=None, params=None):\n ...
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": 844, "item": { "add_info": { "had_tests": true }, "class_code": "class ValidationError(Exception):\n \"\"\"An error while validating data.\"\"\"\n\n def __init__(self, message, code=None, params=None):\n ...
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": 846, "item": { "add_info": { "had_tests": true }, "class_code": "class ValidationError(Exception):\n \"\"\"An error while validating data.\"\"\"\n\n def __init__(self, message, code=None, params=None):\n ...
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": 848, "item": { "add_info": { "had_tests": true }, "class_code": "class Options:\n \"\"\"A class that will quack like a Django model _meta class.\n\n This allows cache operations to be controlled by the router\n...
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": 849, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseDatabaseCache(BaseCache):\n def __init__(self, table, params):\n super().__init__(params)\n self._table = table\n\n c...
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": 851, "item": { "add_info": { "had_tests": true }, "class_code": "class DatabaseCache(BaseDatabaseCache):\n\n # This class uses cursors provided by the database connection. This means\n # it reads expiration val...
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": 856, "item": { "add_info": { "had_tests": true }, "class_code": "class DatabaseCache(BaseDatabaseCache):\n\n # This class uses cursors provided by the database connection. This means\n # it reads expiration val...
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": 858, "item": { "add_info": { "had_tests": true }, "class_code": "class DatabaseCache(BaseDatabaseCache):\n\n # This class uses cursors provided by the database connection. This means\n # it reads expiration val...
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": 860, "item": { "add_info": { "had_tests": true }, "class_code": "class DatabaseCache(BaseDatabaseCache):\n\n # This class uses cursors provided by the database connection. This means\n # it reads expiration val...
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": 863, "item": { "add_info": { "had_tests": true }, "class_code": "class FileBasedCache(BaseCache):\n cache_suffix = \".djcache\"\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, dir, params)...
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": 865, "item": { "add_info": { "had_tests": true }, "class_code": "class FileBasedCache(BaseCache):\n cache_suffix = \".djcache\"\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, dir, params)...
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": 867, "item": { "add_info": { "had_tests": true }, "class_code": "class FileBasedCache(BaseCache):\n cache_suffix = \".djcache\"\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, dir, params)...
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": 871, "item": { "add_info": { "had_tests": true }, "class_code": "class FileBasedCache(BaseCache):\n cache_suffix = \".djcache\"\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, dir, params)...
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": 872, "item": { "add_info": { "had_tests": true }, "class_code": "class FileBasedCache(BaseCache):\n cache_suffix = \".djcache\"\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, dir, params)...
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": 882, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 884, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 885, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 886, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 887, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 888, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 889, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 890, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 891, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 893, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 894, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 895, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 896, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 897, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCache:\n _missing_key = object()\n\n def __init__(self, params):\n timeout = params.get(\"timeout\", params.get(\"TIMEOUT\", 300...
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": 898, "item": { "add_info": { "had_tests": true }, "class_code": "class LocMemCache(BaseCache):\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, name, params):\n super().__init__(params)...
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": 899, "item": { "add_info": { "had_tests": true }, "class_code": "class LocMemCache(BaseCache):\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, name, params):\n super().__init__(params)...
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": 901, "item": { "add_info": { "had_tests": true }, "class_code": "class LocMemCache(BaseCache):\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, name, params):\n super().__init__(params)...
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": 903, "item": { "add_info": { "had_tests": true }, "class_code": "class LocMemCache(BaseCache):\n pickle_protocol = pickle.HIGHEST_PROTOCOL\n\n def __init__(self, name, params):\n super().__init__(params)...
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": 912, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 913, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 915, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 916, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 919, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 920, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMessage:\n \"\"\"A container for email information.\"\"\"\n\n content_subtype = \"plain\"\n mixed_subtype = \"mixed\"\n encoding...
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": 925, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailMultiAlternatives(EmailMessage):\n \"\"\"\n A version of EmailMessage that makes it easy to send multipart/alternative\n messages. ...
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": 927, "item": { "add_info": { "had_tests": true }, "class_code": "class CachedDnsName:\n def __str__(self):\n return self.get_fqdn()\n\n def get_fqdn(self):\n if not hasattr(self, \"_fqdn\"):\n ...
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": 928, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(BaseEmailBackend):\n def __init__(self, *args, **kwargs):\n self.stream = kwargs.pop(\"stream\", sys.stdout)\n self...
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": 930, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(ConsoleEmailBackend):\n def __init__(self, *args, file_path=None, **kwargs):\n self._fname = None\n if file_path is...
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": 931, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(ConsoleEmailBackend):\n def __init__(self, *args, file_path=None, **kwargs):\n self._fname = None\n if file_path is...
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": 934, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(BaseEmailBackend):\n \"\"\"\n A wrapper that manages the SMTP network connection.\n \"\"\"\n\n def __init__(\n se...
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": 935, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(BaseEmailBackend):\n \"\"\"\n A wrapper that manages the SMTP network connection.\n \"\"\"\n\n def __init__(\n se...
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": 936, "item": { "add_info": { "had_tests": true }, "class_code": "class EmailBackend(BaseEmailBackend):\n \"\"\"\n A wrapper that manages the SMTP network connection.\n \"\"\"\n\n def __init__(\n se...
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": 944, "item": { "add_info": { "had_tests": true }, "class_code": "class CheckMessage:\n def __init__(self, level, msg, hint=None, obj=None, id=None):\n if not isinstance(level, int):\n raise TypeE...
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": 947, "item": { "add_info": { "had_tests": true }, "class_code": "class ManagementUtility:\n \"\"\"\n Encapsulate the logic of the django-admin and manage.py utilities.\n \"\"\"\n\n def __init__(self, argv...
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": 953, "item": { "add_info": { "had_tests": true }, "class_code": "class TemplateCommand(BaseCommand):\n \"\"\"\n Copy either a Django application layout template or a Django project\n layout template into the...
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": 955, "item": { "add_info": { "had_tests": true }, "class_code": "class TemplateCommand(BaseCommand):\n \"\"\"\n Copy either a Django application layout template or a Django project\n layout template into the...
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": 957, "item": { "add_info": { "had_tests": true }, "class_code": "class TemplateCommand(BaseCommand):\n \"\"\"\n Copy either a Django application layout template or a Django project\n layout template into the...
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": 960, "item": { "add_info": { "had_tests": true }, "class_code": "class CommandParser(ArgumentParser):\n \"\"\"\n Customized ArgumentParser class to improve some error messages and prevent\n SystemExit in sev...
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": 966, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCommand:\n \"\"\"\n The base class from which all management commands ultimately\n derive.\n\n Use this class if you want access ...
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": 967, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCommand:\n \"\"\"\n The base class from which all management commands ultimately\n derive.\n\n Use this class if you want access ...
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": 968, "item": { "add_info": { "had_tests": true }, "class_code": "class BaseCommand:\n \"\"\"\n The base class from which all management commands ultimately\n derive.\n\n Use this class if you want access ...
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": 969, "item": { "add_info": { "had_tests": true }, "class_code": "class AppCommand(BaseCommand):\n \"\"\"\n A management command which takes one or more installed application labels\n as arguments, and does s...
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": 970, "item": { "add_info": { "had_tests": true }, "class_code": "class LabelCommand(BaseCommand):\n \"\"\"\n A management command which takes one or more arbitrary arguments\n (labels) on the command line, a...
idegym_django