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": 971, "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
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": 972, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Creates the tables needed to use the SQL cache backend.\"\n\n requires_system_checks = []\n\n def add_a...
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": 973, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Creates the tables needed to use the SQL cache backend.\"\n\n requires_system_checks = []\n\n def add_a...
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": 974, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Introspects the database tables in the given database and outputs a Django \"\n \"model mod...
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": 976, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Introspects the database tables in the given database and outputs a Django \"\n \"model mod...
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": 977, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Introspects the database tables in the given database and outputs a Django \"\n \"model mod...
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": 978, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Introspects the database tables in the given database and outputs a Django \"\n \"model mod...
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": 979, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Squashes an existing set of migrations (from first until specified) into a \"\n \"single ne...
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": 980, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Squashes an existing set of migrations (from first until specified) into a \"\n \"single ne...
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": 981, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Squashes an existing set of migrations (from first until specified) into a \"\n \"single ne...
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": 982, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Checks the entire Django project for potential problems.\"\n\n requires_system_checks = []\n\n def add_...
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": 983, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(TemplateCommand):\n help = (\n \"Creates a Django app directory structure for the given app name in \"\n \"the current d...
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": 984, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Prints the SQL statements for the named migration.\"\n\n output_transaction = True\n\n def add_argument...
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": 986, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Prints the SQL statements for the named migration.\"\n\n output_transaction = True\n\n def add_argument...
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": 987, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Creates new migration(s) for apps.\"\n\n def add_arguments(self, parser):\n parser.add_argument(\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": 988, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Creates new migration(s) for apps.\"\n\n def add_arguments(self, parser):\n parser.add_argument(\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": 989, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Creates new migration(s) for apps.\"\n\n def add_arguments(self, parser):\n parser.add_argument(\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": 991, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Returns a list of the SQL statements required to return all tables in \"\n \"the database t...
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": 999, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Runs a Python interactive interpreter. Tries to use IPython or \"\n \"bpython, if one of th...
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": 1000, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Output the contents of the database as a fixture of the given format \"\n \"(using each mo...
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": 1001, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Output the contents of the database as a fixture of the given format \"\n \"(using each mo...
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": 1002, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Discover and run tests in the specified modules or the current directory.\"\n\n # DiscoverRunner runs 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": 4, "idx": 1003, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Discover and run tests in the specified modules or the current directory.\"\n\n # DiscoverRunner runs 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": 2, "idx": 1004, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Removes ALL DATA from the database, including data added during \"\n 'migrations. Does not...
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": 1005, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1006, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1007, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1008, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1009, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1010, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1011, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1013, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Installs the named fixture(s) in the database.\"\n missing_args_message = (\n \"No database fixtur...
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": 1016, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Starts a lightweight web server for development.\"\n\n # Validation is called explicitly each time the 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": 4, "idx": 1019, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Starts a lightweight web server for development.\"\n\n # Validation is called explicitly each time the 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": 1, "idx": 1020, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Starts a lightweight web server for development.\"\n\n # Validation is called explicitly each time the 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": 1021, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Starts a lightweight web server for development.\"\n\n # Validation is called explicitly each time the 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": 1023, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Shows all available migrations for the current project\"\n\n def add_arguments(self, parser):\n pa...
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": 1024, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Shows all available migrations for the current project\"\n\n def add_arguments(self, parser):\n pa...
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": 1025, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Shows all available migrations for the current project\"\n\n def add_arguments(self, parser):\n pa...
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": 1026, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Shows all available migrations for the current project\"\n\n def add_arguments(self, parser):\n pa...
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": 1027, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(AppCommand):\n help = (\n \"Prints the SQL statements for resetting sequences for the given app name(s).\"\n )\n\n outpu...
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": 1028, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(AppCommand):\n help = (\n \"Prints the SQL statements for resetting sequences for the given app name(s).\"\n )\n\n outpu...
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": 1029, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Runs the command-line client for specified database, or the \"\n \"default database if non...
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": 1030, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Runs the command-line client for specified database, or the \"\n \"default database if non...
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": 1031, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Sends a test email to the email addresses specified as arguments.\"\n missing_args_message = (\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": 1032, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Sends a test email to the email addresses specified as arguments.\"\n missing_args_message = (\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": 1033, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(TemplateCommand):\n help = (\n \"Creates a Django project directory structure for the given project \"\n \"name in 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": 1034, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Updates database schema. Manages both apps with migrations and those without.\"\n )\n requi...
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": 1035, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = (\n \"Updates database schema. Manages both apps with migrations and those without.\"\n )\n requi...
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": 1036, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"\"\"Displays differences between the current settings.py and Django's\n default settings.\"\"\"\n\n re...
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": 1037, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"\"\"Displays differences between the current settings.py and Django's\n default settings.\"\"\"\n\n re...
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": 1039, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"\"\"Displays differences between the current settings.py and Django's\n default settings.\"\"\"\n\n re...
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": 1040, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Runs a development server with data from the given fixture(s).\"\n\n requires_system_checks = []\n\n d...
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": 1041, "item": { "add_info": { "had_tests": true }, "class_code": "class Command(BaseCommand):\n help = \"Runs a development server with data from the given fixture(s).\"\n\n requires_system_checks = []\n\n d...
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": 1044, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(PythonSerializer):\n \"\"\"Convert a queryset to YAML.\"\"\"\n\n internal_use_only = False\n\n def handle_field(self, obj, f...
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": 1049, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"Serialize a QuerySet to XML.\"\"\"\n\n def indent(self, level):\n if self.options.get(\"indent...
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": 1050, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"Serialize a QuerySet to XML.\"\"\"\n\n def indent(self, level):\n if self.options.get(\"indent...
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": 1051, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"Serialize a QuerySet to XML.\"\"\"\n\n def indent(self, level):\n if self.options.get(\"indent...
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": 1052, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"Serialize a QuerySet to XML.\"\"\"\n\n def indent(self, level):\n if self.options.get(\"indent...
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": 1053, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"Serialize a QuerySet to XML.\"\"\"\n\n def indent(self, level):\n if self.options.get(\"indent...
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": 1054, "item": { "add_info": { "had_tests": true }, "class_code": "class Deserializer(base.Deserializer):\n \"\"\"Deserialize XML.\"\"\"\n\n def __init__(\n self,\n stream_or_string,\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": 1055, "item": { "add_info": { "had_tests": true }, "class_code": "class Deserializer(base.Deserializer):\n \"\"\"Deserialize XML.\"\"\"\n\n def __init__(\n self,\n stream_or_string,\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": 1, "idx": 1057, "item": { "add_info": { "had_tests": true }, "class_code": "class DefusedExpatParser(_ExpatParser):\n \"\"\"\n An expat parser hardened against XML bomb attacks.\n\n Forbid DTDs, external entity refere...
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": 1058, "item": { "add_info": { "had_tests": true }, "class_code": "class DefusedExpatParser(_ExpatParser):\n \"\"\"\n An expat parser hardened against XML bomb attacks.\n\n Forbid DTDs, external entity refere...
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": 1059, "item": { "add_info": { "had_tests": true }, "class_code": "class DefusedExpatParser(_ExpatParser):\n \"\"\"\n An expat parser hardened against XML bomb attacks.\n\n Forbid DTDs, external entity refere...
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": 1060, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(PythonSerializer):\n \"\"\"Convert a queryset to JSON Lines.\"\"\"\n\n internal_use_only = False\n\n def _init_options(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": 1062, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(PythonSerializer):\n \"\"\"Convert a queryset to JSON Lines.\"\"\"\n\n internal_use_only = False\n\n def _init_options(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": 1, "idx": 1063, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(PythonSerializer):\n \"\"\"Convert a queryset to JSON Lines.\"\"\"\n\n internal_use_only = False\n\n def _init_options(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": 1066, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"\n Serialize a QuerySet to basic Python objects.\n \"\"\"\n\n internal_use_only = True\n\n d...
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": 1067, "item": { "add_info": { "had_tests": true }, "class_code": "class Serializer(base.Serializer):\n \"\"\"\n Serialize a QuerySet to basic Python objects.\n \"\"\"\n\n internal_use_only = True\n\n d...
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": 1073, "item": { "add_info": { "had_tests": true }, "class_code": "class DjangoJSONEncoder(json.JSONEncoder):\n \"\"\"\n JSONEncoder subclass that knows how to encode date/time, decimal types, and\n UUIDs.\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": 1077, "item": { "add_info": { "had_tests": true }, "class_code": "class DeserializationError(Exception):\n \"\"\"Something bad happened during deserialization.\"\"\"\n\n @classmethod\n def WithData(cls, orig...
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": 1079, "item": { "add_info": { "had_tests": true }, "class_code": "class ProgressBar:\n progress_width = 75\n\n def __init__(self, output, total_count):\n self.output = output\n self.total_count = ...
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": 1084, "item": { "add_info": { "had_tests": true }, "class_code": "class DeserializedObject:\n \"\"\"\n A deserialized model.\n\n Basically a container for holding the pre-saved deserialized data along\n w...
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": 1085, "item": { "add_info": { "had_tests": true }, "class_code": "class DeserializedObject:\n \"\"\"\n A deserialized model.\n\n Basically a container for holding the pre-saved deserialized data along\n w...
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": 1100, "item": { "add_info": { "had_tests": true }, "class_code": "class UploadedFile(File):\n \"\"\"\n An abstract uploaded file (``TemporaryUploadedFile`` and\n ``InMemoryUploadedFile`` are the built-in con...
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": 1101, "item": { "add_info": { "had_tests": true }, "class_code": "class TemporaryUploadedFile(UploadedFile):\n \"\"\"\n A file uploaded to a temporary location (i.e. stream-to-disk).\n \"\"\"\n\n def __in...
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": 1107, "item": { "add_info": { "had_tests": true }, "class_code": "class Storage:\n \"\"\"\n A base storage class, providing some default behaviors that all other\n storage systems can inherit or override, as...
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": 1109, "item": { "add_info": { "had_tests": true }, "class_code": "class Storage:\n \"\"\"\n A base storage class, providing some default behaviors that all other\n storage systems can inherit or override, as...
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": 1110, "item": { "add_info": { "had_tests": true }, "class_code": "class Storage:\n \"\"\"\n A base storage class, providing some default behaviors that all other\n storage systems can inherit or override, as...
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": 1113, "item": { "add_info": { "had_tests": true }, "class_code": "class FileSystemStorage(Storage):\n \"\"\"\n Standard filesystem storage\n \"\"\"\n\n # The combination of O_CREAT and O_EXCL makes os.ope...
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": 1117, "item": { "add_info": { "had_tests": true }, "class_code": "class FileSystemStorage(Storage):\n \"\"\"\n Standard filesystem storage\n \"\"\"\n\n # The combination of O_CREAT and O_EXCL makes os.ope...
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": 1126, "item": { "add_info": { "had_tests": true }, "class_code": "class File(FileProxyMixin):\n DEFAULT_CHUNK_SIZE = 64 * 2**10\n\n def __init__(self, file, name=None):\n self.file = file\n if nam...
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": 1127, "item": { "add_info": { "had_tests": true }, "class_code": "class File(FileProxyMixin):\n DEFAULT_CHUNK_SIZE = 64 * 2**10\n\n def __init__(self, file, name=None):\n self.file = file\n if nam...
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": 1129, "item": { "add_info": { "had_tests": true }, "class_code": "class File(FileProxyMixin):\n DEFAULT_CHUNK_SIZE = 64 * 2**10\n\n def __init__(self, file, name=None):\n self.file = file\n if nam...
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": 1132, "item": { "add_info": { "had_tests": true }, "class_code": "class File(FileProxyMixin):\n DEFAULT_CHUNK_SIZE = 64 * 2**10\n\n def __init__(self, file, name=None):\n self.file = file\n if nam...
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": 1133, "item": { "add_info": { "had_tests": true }, "class_code": "class File(FileProxyMixin):\n DEFAULT_CHUNK_SIZE = 64 * 2**10\n\n def __init__(self, file, name=None):\n self.file = file\n if nam...
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": 1136, "item": { "add_info": { "had_tests": true }, "class_code": "class ContentFile(File):\n \"\"\"\n A File-like object that takes just raw content, rather than an actual file.\n \"\"\"\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": 0, "idx": 1137, "item": { "add_info": { "had_tests": true }, "class_code": "class ASGIRequest(HttpRequest):\n \"\"\"\n Custom request subclass that decodes from an ASGI-standard request dict\n and wraps request body h...
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": 1140, "item": { "add_info": { "had_tests": true }, "class_code": "class ASGIHandler(base.BaseHandler):\n \"\"\"Handler for ASGI requests.\"\"\"\n\n request_class = ASGIRequest\n # Size to chunk response bodi...
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": 1142, "item": { "add_info": { "had_tests": true }, "class_code": "class ASGIHandler(base.BaseHandler):\n \"\"\"Handler for ASGI requests.\"\"\"\n\n request_class = ASGIRequest\n # Size to chunk response bodi...
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": 1143, "item": { "add_info": { "had_tests": true }, "class_code": "class ASGIHandler(base.BaseHandler):\n \"\"\"Handler for ASGI requests.\"\"\"\n\n request_class = ASGIRequest\n # Size to chunk response bodi...
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": 1149, "item": { "add_info": { "had_tests": true }, "class_code": "class ServerHandler(simple_server.ServerHandler):\n http_version = \"1.1\"\n\n def __init__(self, stdin, stdout, stderr, environ, **kwargs):\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": 1150, "item": { "add_info": { "had_tests": true }, "class_code": "class ServerHandler(simple_server.ServerHandler):\n http_version = \"1.1\"\n\n def __init__(self, stdin, stdout, stderr, environ, **kwargs):\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": 1151, "item": { "add_info": { "had_tests": true }, "class_code": "class WSGIRequestHandler(simple_server.WSGIRequestHandler):\n protocol_version = \"HTTP/1.1\"\n\n def address_string(self):\n # Short-cir...
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": 1152, "item": { "add_info": { "had_tests": true }, "class_code": "class WSGIRequestHandler(simple_server.WSGIRequestHandler):\n protocol_version = \"HTTP/1.1\"\n\n def address_string(self):\n # Short-cir...
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": 1153, "item": { "add_info": { "had_tests": true }, "class_code": "class WSGIRequestHandler(simple_server.WSGIRequestHandler):\n protocol_version = \"HTTP/1.1\"\n\n def address_string(self):\n # Short-cir...
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": 1154, "item": { "add_info": { "had_tests": true }, "class_code": "class WSGIRequestHandler(simple_server.WSGIRequestHandler):\n protocol_version = \"HTTP/1.1\"\n\n def address_string(self):\n # Short-cir...
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": 1155, "item": { "add_info": { "had_tests": true }, "class_code": "class Shuffler:\n \"\"\"\n This class implements shuffling with a special consistency property.\n Consistency means that, for a given seed an...
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": 1159, "item": { "add_info": { "had_tests": true }, "class_code": "class DiscoverRunner:\n \"\"\"A Django test runner that uses unittest2 test discovery.\"\"\"\n\n test_suite = unittest.TestSuite\n parallel_t...
idegym_django