Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'instruction', 'response'}) and 6 missing columns ({'incorrect_solutions', 'generated_tests', 'public_tests', 'private_tests', 'solutions', 'description'}).
This happened while the csv dataset builder was generating data using
hf://datasets/Sunnyeng/code_test_cleaned/tokenized.csv (at revision aebedadae7a7846522fd06317b87e4758a82d65f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
instruction: string
response: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 499
to
{'description': Value(dtype='string', id=None), 'public_tests': Value(dtype='string', id=None), 'private_tests': Value(dtype='string', id=None), 'generated_tests': Value(dtype='string', id=None), 'solutions': Value(dtype='string', id=None), 'incorrect_solutions': Value(dtype='string', id=None)}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'instruction', 'response'}) and 6 missing columns ({'incorrect_solutions', 'generated_tests', 'public_tests', 'private_tests', 'solutions', 'description'}).
This happened while the csv dataset builder was generating data using
hf://datasets/Sunnyeng/code_test_cleaned/tokenized.csv (at revision aebedadae7a7846522fd06317b87e4758a82d65f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
description string | public_tests string | private_tests string | generated_tests string | solutions string | incorrect_solutions string |
|---|---|---|---|---|---|
"Andi and Budi were given an assignment to tidy up their bookshelf of n books. Each book is represen(...TRUNCATED) | "{'input': array(['5 2\\nAA\\nAB\\nBB\\nBA\\nAZ\\n'], dtype=object), 'output': array(['5 2 1 3 4 \\n(...TRUNCATED) | {'input': array([], dtype=object), 'output': array([], dtype=object)} | "{'input': array(['5 2\\nAA\\nAB\\nBB\\nBA\\nZA\\n', '5 2\\nAA\\nAB\\nCB\\nBA\\nAZ\\n',\n '2 2(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 3, 2, 3, 4, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2,\n 3, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Mr. Chanek lives in a city represented as a plane. He wants to build an amusement park in the shape(...TRUNCATED) | "{'input': array(['8 4\\n-3 1\\n-4 4\\n1 5\\n2 2\\n2 -2\\n-2 -4\\n-1 -1\\n-6 0\\n',\n '1 1\\n0(...TRUNCATED) | "{'input': array(['2 1\\n864 22752\\n864 -22752\\n',\n '4 2\\n-100000 100000\\n100000 100000\\(...TRUNCATED) | "{'input': array(['2 1\\n864 22752\\n864 -17916\\n',\n '4 2\\n-100000 100000\\n100000 100000\\(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Denote a cyclic sequence of size n as an array s such that s_n is adjacent to s_1. The segment s[r,(...TRUNCATED) | "{'input': array(['5 1 5\\n1 2 3 4 3\\n', '5 1 5\\n1 2 3 4 5\\n', '5 4 5\\n1 2 3 4 5\\n'],\n dt(...TRUNCATED) | "{'input': array(['100 100 126611\\n5 5 3 1 1 5 3 3 4 4 2 5 1 2 1 4 4 1 5 1 4 3 4 4 1 1 4 4 2 5 2 2 (...TRUNCATED) | "{'input': array(['100 100 126611\\n5 5 3 1 1 5 3 3 4 4 2 5 1 2 1 4 4 1 5 1 6 3 4 4 1 1 4 4 2 5 2 2 (...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2]), (...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Mr. Chanek has an integer represented by a string s. Zero or more digits have been erased and are d(...TRUNCATED) | "{'input': array(['0\\n', '_XX\\n', '_00\\n', '0_25\\n', '25\\n'], dtype=object), 'output': array(['(...TRUNCATED) | "{'input': array(['X\\n', '6X\\n', '585X27X5\\n', 'XX_X_3_X\\n', '_5\\n', '050\\n',\n '0X5\\n'(...TRUNCATED) | "{'input': array(['558X27X5\\n', '_4\\n', '_5XX\\n', '52X_X___\\n', '85X5X125\\n',\n '_X___X__(...TRUNCATED) | "{'language': array([3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 3, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"There is a city park represented as a tree with n attractions as its vertices and n - 1 rails as it(...TRUNCATED) | "{'input': array(['5 0\\n1 3 2 6 4\\n1 2 1\\n1 4 0\\n3 2 1\\n2 5 0\\n',\n '3 1\\n1 1 1\\n1 2 1(...TRUNCATED) | "{'input': array(['2 1\\n1000000000 0\\n2 1 0\\n',\n '4 0\\n589284011 636562059 767928733 9065(...TRUNCATED) | "{'input': array(['2 1\\n1000000010 0\\n2 1 0\\n', '3 2\\n1 1 1\\n1 2 1\\n3 2 0\\n',\n '2 1\\n(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Mr. Chanek opened a letter from his fellow, who is currently studying at Singanesia. Here is what i(...TRUNCATED) | "{'input': array(['10 9\\n-1 0 -1 1 1 2 2 3 3 3\\n', '3 3\\n-1 -1 -1\\n', '2 2\\n0 -1\\n',\n '(...TRUNCATED) | "{'input': array(['2 1684\\n-1 -1\\n', '2 2000\\n1486 -1\\n', '2 2000\\n-1 1990\\n',\n '2 1973(...TRUNCATED) | "{'input': array(['2 68\\n-1 -1\\n', '2 2000\\n1280 -1\\n', '1 2000\\n-1 1990\\n',\n '2 1973\\(...TRUNCATED) | "{'language': array([2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]), 'solution': ar(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2]), 'solution': array(['#include <bits/stdc++.h>\\nusing (...TRUNCATED) |
"Mr. Chanek has an array a of n integers. The prettiness value of a is denoted as:\n\n$$$โ_{i=1}^{(...TRUNCATED) | {'input': array(['5\n3 6 2 1 4\n'], dtype=object), 'output': array(['77\n'], dtype=object)} | "{'input': array(['5\\n54883 59286 71521 84428 60278\\n', '2\\n83160 83160\\n'],\n dtype=object(...TRUNCATED) | "{'input': array(['5\\n54883 59286 14742 84428 60278\\n', '5\\n3 3 2 1 4\\n',\n '5\\n54883 592(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"The Winter holiday will be here soon. Mr. Chanek wants to decorate his house's wall with ornaments.(...TRUNCATED) | "{'input': array(['9 3\\n100101011\\n101\\n'], dtype=object), 'output': array(['1 1 0 1 6 -1 -1 -1 \(...TRUNCATED) | "{'input': array(['300 9\\n1010101010101010101010101010101010101010101010101010101010101010101010101(...TRUNCATED) | "{'input': array(['383 106\\n00111001001000111101111001010110011011011110011011101101110000100010000(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Chanek Jones is back, helping his long-lost relative Indiana Jones, to find a secret treasure in a (...TRUNCATED) | "{'input': array(['6 4\\n10 -9 2 -1 4 -6\\n1 5\\n5 4\\n5 6\\n6 2\\n6 3\\n2 1 2\\n1 1 -3\\n2 1 2\\n2 (...TRUNCATED) | "{'input': array(['2 1\\n-1000000000 1000000000\\n2 1\\n2 1 2\\n',\n '4 4\\n2 -1000 100 3\\n2 (...TRUNCATED) | "{'input': array(['6 4\\n10 -9 2 -1 4 -6\\n1 5\\n5 4\\n5 6\\n6 2\\n6 3\\n2 1 4\\n1 1 -3\\n2 1 2\\n2 (...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 4, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
"Mr. Chanek has a new game called Dropping Balls. Initially, Mr. Chanek has a grid a of size n ร m\(...TRUNCATED) | "{'input': array(['5 5 3\\n1 2 3 3 3\\n2 2 2 2 2\\n2 2 2 2 2\\n2 2 2 2 2\\n2 2 2 2 2\\n1 2 1\\n',\n (...TRUNCATED) | {'input': array([], dtype=object), 'output': array([], dtype=object)} | "{'input': array(['5 5 3\\n1 2 3 3 3\\n2 2 2 2 2\\n2 2 3 2 2\\n2 2 2 2 2\\n2 2 2 2 2\\n1 2 1\\n',\n (...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 4, 2, 2, 4, 4, 2,\n 2, 2,(...TRUNCATED) | "{'language': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 3, 4, 2, 4, 2, 2, 2, 2,\n 2, 2,(...TRUNCATED) |
End of preview.
No dataset card yet
- Downloads last month
- 1