id stringlengths 11 45 | domain stringclasses 5
values | language stringclasses 2
values | source stringclasses 6
values | license stringclasses 5
values | group_id stringlengths 8 35 | task stringclasses 77
values | attribution stringlengths 0 758 | messages listlengths 2 2 | grading dict | split stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
reason2-motif_growth-018 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент UG. За проход каждый исходный символ одновременно заменяют по правилам G→GUG; U→GU; новые символы в том же проходе не заменяются. Сколько символов G будет после 3 проходов?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
... | {
"type": "number",
"value": "21",
"tests": []
} | train |
algpy-ef736bbc8d6b693b-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-ef736bbc8d6b693b | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/pig_latin.py#pig_latin; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(word):\n if not (word or '').strip():\n return ''\n word =... | {
"type": "exact",
"value": "A: 'igpay'",
"tests": []
} | train |
math-verified-departures-002 | math | en | Original | CC0-1.0 | math-verified-departures | verified_math_departures | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Count whole minutes from when a station opens. Line A first departs at minute 0 and repeats every 15 minutes. Line B first departs at minute 20 and repeats every 35 minutes. What is the earliest simultaneous departure at or after minute 85?\nGive the exact number on the last li... | {
"type": "number",
"value": "90",
"tests": []
} | train |
wiki-read-ru-ac7c57fd650ada3aeee6 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-070afad253905b3151740f | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4043858542860039955-0 (Apache-2.0). Wikipedia contributors, “Кузнецов, Дмитрий Викторович” (https://ru.wikipedia.org/wiki/%D0%9A%D1%83%D0%B7%D0%BD%D0%B5%D1%86%D0%BE%D0%B2%2C_%D0%94%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9_%D0%92%D0%B8%D0%BA%D1%82%D0%BE%D1%80%D0%BE%D0%B2%... | [
{
"role": "user",
"content": "Кузнецов, Дмитрий Викторович\n\nДми́трий Ви́кторович Кузнецо́в (28 августа 1965, Москва) — советский и российский футболист, защитник и полузащитник. Мастер спорта СССР (1984). Футбольный тренер категории А (2016). Ассистент главного тренера казахстанского клуба «Иртыш».\n\nНай... | {
"type": "exact",
"value": "1965-08-28",
"tests": []
} | train |
gsm-train-548 | math | en | GSM8K | MIT | gsm8k-9ffc7f32e064d7cde5fd | word_problem_6_steps | OpenAI (2021), GSM8K, original train row 548 | [
{
"role": "user",
"content": "Tom decides to renovate a house. There are 3 bedrooms and each bedroom takes 4 hours to renovate. The kitchen takes 50% longer than each bedroom. The living room took twice as much time as everything else combined. How long did everything take?\nShow a short calculation. Pu... | {
"type": "number",
"value": "54",
"tests": []
} | train |
math-verified-departures-006 | math | ru | Original | CC0-1.0 | math-verified-departures | verified_math_departures | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Время отсчитывают в целых минутах от открытия станции. Первый трамвай линии A уходит в минуту 2, далее интервал составляет 6 мин. Первый трамвай линии B уходит в минуту 17, интервал составляет 21 мин. На какой минуте, начиная с минуты 129 включительно, обе линии впервые отправя... | {
"type": "number",
"value": "164",
"tests": []
} | train |
wiki-read-en-cfe60f8768833da2aabd | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-beeb68a708983fa7cd38b3 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--720753257888261375-1 (Apache-2.0). Wikipedia contributors, “Marlboro (cigarette)” (https://en.wikipedia.org/wiki/Marlboro_(cigarette)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Marlboro (cigarette)\n\nPhilip Morris, a London-based cigarette maker, opened a New York subsidiary in 1902 to sell many of its cigarette brands. The mark \"Marlboro\" was registered in the United States in 1908 although no cigarette was marketed under this name until 1923. In ... | {
"type": "exact",
"value": "1902, 1908, 1923, 1924",
"tests": []
} | train |
wiki-read-ru-f2c75573f13459e52873 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ac58d04e0715b6ffd80c1c | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7990409470191741293-5 (Apache-2.0). Wikipedia contributors, “Империя инков” (https://ru.wikipedia.org/wiki/%D0%98%D0%BC%D0%BF%D0%B5%D1%80%D0%B8%D1%8F_%D0%B8%D0%BD%D0%BA%D0%BE%D0%B2), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norm... | [
{
"role": "user",
"content": "Империя инков\n\nСоздание государства приписывается легендарному Инке Манко Капаку, он же основал столицу — город Куско, на высоте 3416 метров над уровнем моря, в глубокой долине между двумя горными хребтами.\n\nКакое значение записано цифрами в метрах? Выпиши только число и ед... | {
"type": "exact",
"value": "3416 метров",
"tests": []
} | train |
algpy-af92e6d28631c10e-implement | code | en | TheAlgorithms/Python | MIT | algpy-af92e6d28631c10e | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/longest_increasing_subsequence_o_nlogn.py#longest_increasing_subsequence_length; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return the maximum length of a strictly increasing subsequence of an integer list. A subsequence keeps the original order but may skip elements. The empty list has length zero.\nSignature: def longest_increasing_subsequence_length(v):\nExamples:\... | {
"type": "code",
"value": "",
"tests": [
"assert longest_increasing_subsequence_length([1]) == 1",
"assert longest_increasing_subsequence_length([-3]) == 1",
"assert longest_increasing_subsequence_length([1, -1, 0]) == 2",
"assert longest_increasing_subsequence_length([1, 1, 1]) == 1",
"asser... | train |
wiki-read-en-984ce1c199ddc60ef08a | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-5641f2ef30eae4e524d1af | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1815026847539815580-0 (Apache-2.0). Wikipedia contributors, “Apprenticeship” (https://en.wikipedia.org/wiki/Apprenticeship), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Apprenticeship\n\nAn apprenticeship is a system of training a new generation of practitioners of a trade or profession with on-the-job training and often some accompanying study (classroom work and reading). Apprenticeship also enables practitioners to gain a license to practic... | {
"type": "exact",
"value": "a system of training a new generation of practitioners of a trade or profession with on-the-job training and often some accompanying study (classroom work and reading)",
"tests": []
} | train |
reason2-rotate_grid-020 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: E X D L / H T Y M / Z N G B. Выполни циклические сдвиги по порядку: строка 3 на 1 вправо; столбец 2 на 2 вниз; строка 3 на 1 вправо; столбец 4 на 2 вниз; строка 2 на 3 вправо. Какой символ теперь в строке 3, столбце 1? Нумерация с единицы.\nПо... | {
"type": "exact",
"value": "G",
"tests": []
} | train |
algpy-13834e33364abc44-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-13834e33364abc44 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, backtracking/m_coloring_problem.py#graph_coloring; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef solve(node, col, max_colors, num_vertices, graph):\n if node == num_vertices... | {
"type": "exact",
"value": "A: True",
"tests": []
} | train |
reason2-order_count-028 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты H, C, M, B, R выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: M→R, C→M, H→M. Сколько полных порядков допускают эти условия?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
{
"role": "... | {
"type": "number",
"value": "10",
"tests": []
} | train |
math-verified-conditional_draw-006 | math | ru | Original | CC0-1.0 | math-verified-conditional_draw | verified_math_conditional_draw | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "В мешке красных жетонов — 9, синих — 7, жёлтых — 2. Два жетона выбирают равновероятно без возвращения. Известно, что среди них есть хотя бы один красный. Какова при этом вероятность, что выбраны ровно один красный и один синий жетон?\nЗапиши точное число в последней строке; нец... | {
"type": "number",
"value": "7/13",
"tests": []
} | train |
wiki-read-en-c98dc0a7b684b1694944 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-22cf5299af669a12f95233 | colon_explanation | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5987904727014588785-0 (Apache-2.0). Wikipedia contributors, “Economy of Kenya” (https://en.wikipedia.org/wiki/Economy_of_Kenya), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Economy of Kenya\n\nKenya's economy is market-based with a few state-owned infrastructure enterprises and maintains a liberalised external trade system. The country is generally perceived as Eastern Africa's hub for Financial, Communication and Transportation services. Major in... | {
"type": "exact",
"value": "agriculture, forestry and fishing, mining and minerals, industrial manufacturing, energy, tourism and financial services",
"tests": []
} | train |
math-verified-rounded_scales-002 | math | en | Original | CC0-1.0 | math-verified-rounded_scales | verified_math_rounded_scales | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A part's length is a whole number of millimeters. One instrument rounds to the nearest multiple of 6 mm, another to the nearest multiple of 10 mm. An exact tie rounds upward for both. They read 162 and 160 mm respectively. How many integer lengths agree with both readings?\nGiv... | {
"type": "number",
"value": "6",
"tests": []
} | train |
reason2-pareto-033 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): H (19, 38); D (24, 56); T (13, 51); S (27, 62); R (8, 54); Z (16, 63); B (9, 64). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПривед... | {
"type": "exact",
"value": "H R T",
"tests": []
} | train |
reason2-pareto-022 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): J (16, 32); A (9, 46); L (23, 41); B (11, 33); M (22, 72); S (5, 36); D (6, 38). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПокажи ... | {
"type": "exact",
"value": "B J S",
"tests": []
} | train |
wiki-read-en-6eb481e022fa76f419d4 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-7771566865da8e2720778b | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7804863554391036966-0 (Apache-2.0). Wikipedia contributors, “Ethiopian Empire” (https://en.wikipedia.org/wiki/Ethiopian_Empire), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Ethiopian Empire\n\nThe Ethiopian Empire (Amharic: የኢትዮጵያ ንጉሠ ነገሥት መንግሥተ, Mängəstä Ityop'p'ya), also known as Abyssinia (derived from the Arabic al-Habash), was a kingdom that spanned a geographical area in the current states of Eritrea and Ethiopia. It began with the establish... | {
"type": "exact",
"value": "when the ruling Solomonic dynasty was overthrown in a coup d'état by the Derg",
"tests": []
} | train |
wiki-read-en-fc7d03b56ba25f204d21 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-746e6e9bce6b95716510ac | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4081615803008141073-0 (Apache-2.0). Wikipedia contributors, “Amazonian (Mars)” (https://en.wikipedia.org/wiki/Amazonian_(Mars)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Amazonian (Mars)\n\nThe Amazonian is a geologic system and time period on the planet Mars characterized by low rates of meteorite and asteroid impacts and by cold, hyperarid conditions broadly similar to those on Mars today. The transition from the preceding Hesperian period is... | {
"type": "exact",
"value": "a geologic system and time period on the planet Mars characterized by low rates of meteorite and asteroid impacts and by cold, hyperarid conditions broadly similar to those on Mars today",
"tests": []
} | train |
algpy-ff70a2aba88474cb-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-ff70a2aba88474cb | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/proth_number.py#is_proth_number; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(number):\n if not isinstance(number, int):\n message = f'Inpu... | {
"type": "exact",
"value": "B: False",
"tests": []
} | train |
algpy-c7f2ce4d6a10d4ef-repair | code | en | TheAlgorithms/Python | MIT | algpy-c7f2ce4d6a10d4ef | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/binomial_coefficient.py#binomial_coefficient; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Given integers n and k with 0 ≤ k ≤ n ≤ 12, return the number of k-element subsets of an n-element set.\nFor binomial_coefficient(1, 0) it should return 1, but returns 2. Keep the signature.\n```python\ndef binomial_coefficient(n, r):\n if n < 0 ... | {
"type": "code",
"value": "",
"tests": [
"assert binomial_coefficient(1, 0) == 1",
"assert binomial_coefficient(1, 1) == 1",
"assert binomial_coefficient(3, 2) == 3",
"assert binomial_coefficient(5, 3) == 10",
"assert binomial_coefficient(8, 5) == 56",
"assert binomial_coefficient(12, 6) ... | train |
algpy-437c26e61ecf29b2-trace | code | ru | TheAlgorithms/Python | MIT | algpy-437c26e61ecf29b2 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/krishnamurthy_number.py#factorial; adapted exercises | [
{
"role": "user",
"content": "```python\ndef factorial(digit):\n return 1 if digit in (0, 1) else digit * factorial(digit - 1)\n```\nЧто вернёт выражение factorial(3)? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "6"
}
] | {
"type": "exact",
"value": "6",
"tests": []
} | train |
reason2-pareto-000 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): Z (17, 19); P (24, 57); R (9, 69); S (5, 41); C (29, 52); B (15, 21); X (28, 60); E (8, 49); Y (11, 58). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядк... | {
"type": "exact",
"value": "B S Z",
"tests": []
} | train |
reason2-missing_cells-033 | reasoning | ru | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В таблице учёта столбцы идут в порядке S, F, U. После вертикальной черты указан итог строки. Строки: R6: 5 / 9 / 6 | 20; R7: 13 / 5 / 10 | 28; R11: 10 / 14 / 7 | 31; R2: ? / 8 / ? | 28; R4: 4 / 15 / ? | 26. Итоги столбцов: S=42, F=51, U=40. Какое число скрыто в строке R2, столб... | {
"type": "number",
"value": "10",
"tests": []
} | train |
reason2-connected_groups-016 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка K, R, X, N, Z, W, A, T свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: X–T, A–W, K–R, R–W, Z–R. Добавляют связь N–X. Сколько кодов будет в образовавшемся архиве?\nПриведи... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-ru-dc0f808e4dcee4870ca3 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-2e5bc4cf699358969c3abd | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7723035796037441469-0 (Apache-2.0). Wikipedia contributors, “Лепесток (респиратор)” (https://ru.wikipedia.org/wiki/%D0%9B%D0%B5%D0%BF%D0%B5%D1%81%D1%82%D0%BE%D0%BA_(%D1%80%D0%B5%D1%81%D0%BF%D0%B8%D1%80%D0%B0%D1%82%D0%BE%D1%80)), snapshot 2019-02-01 (CC-BY-SA-3.0). E... | [
{
"role": "user",
"content": "Лепесток (респиратор)\n\n«Лепесток» — простейший одноразовый респиратор, предназначенный для защиты от пыли и аэрозолей, но не от паров и газов. Производится с небольшими модификациями с 1957 года, выпущено более 6 млрд шт.\n\nКак в начале отрывка определяется ««Лепесток»»? Вып... | {
"type": "exact",
"value": "простейший одноразовый респиратор, предназначенный для защиты от пыли и аэрозолей, но не от паров и газов",
"tests": []
} | train |
wiki-read-ru-7a44502f137c0c1fb271 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-7d4307a59cbf1ed796f3e9 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--8040647553770392100-1 (Apache-2.0). Wikipedia contributors, “Шлиман, Генрих” (https://ru.wikipedia.org/wiki/%D0%A8%D0%BB%D0%B8%D0%BC%D0%B0%D0%BD%2C_%D0%93%D0%B5%D0%BD%D1%80%D0%B8%D1%85), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers ... | [
{
"role": "user",
"content": "Шлиман, Генрих\n\nС 1868 года являлся действительным членом французской Ассоциации поощрения изучения Греции, а с 1881 года состоял почётным членом Берлинского общества этнологии и древней истории и действительным членом Общества любителей естествознания, антропологии и этногра... | {
"type": "exact",
"value": "1868, 1869, 1881",
"tests": []
} | train |
reason2-join_catalogs-012 | reasoning | ru | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Каталог связывает код книги с полкой: B66=S1, B46=S2, B92=S2, B42=S5, B80=S4, B19=S4, B57=S2. Соответствие полок и залов: S2=U, S1=D, S4=G, S5=U. Число выданных экземпляров по коду книги: B57=10, B66=8, B46=13, B80=3, B19=12, B42=8, B92=8. В каком зале больше всего выдач?\nКрат... | {
"type": "exact",
"value": "U",
"tests": []
} | train |
wiki-read-en-6c35b86c00b22e098efd | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-2d893232a4b0fe263559fb | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6264216070069326026-1 (Apache-2.0). Wikipedia contributors, “Republic of Formosa” (https://en.wikipedia.org/wiki/Republic_of_Formosa), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Republic of Formosa\n\nThe Republic of Formosa (Chinese:臺灣民主國; pinyin:Táiwān mínzhǔ guó; Pe̍h-ōe-jī:Tâi-oân Bîn-chú-kok; literally: 'Democratic State of Taiwan'), was a short-lived republic that existed on the island of Taiwan in 1895 between the formal cession of Taiwan by the... | {
"type": "exact",
"value": "1895-05-23",
"tests": []
} | train |
wiki-read-ru-c9a6b76cf20b86d555d4 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-eedbac5bbc9cccfaefcef9 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--4163821374388735196-12 (Apache-2.0). Wikipedia contributors, “Украинская Советская Социалистическая Республика” (https://ru.wikipedia.org/wiki/%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%81%D0%BA%D0%B0%D1%8F_%D0%A1%D0%BE%D0%B2%D0%B5%D1%82%D1%81%D0%BA%D0%B0%D1%8F_%D0%A1... | [
{
"role": "user",
"content": "Украинская Советская Социалистическая Республика\n\n30 декабря 1922 года Украинская ССР подписала Договор об образовании СССР, который послужил началом создания на территории бывшей Российской империи единого союзного государства — СССР.\n\nНайди полную календарную дату, у кото... | {
"type": "exact",
"value": "1922-12-30",
"tests": []
} | train |
wiki-read-en-7c1c15c28a6a6de7c75f | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-2f375587394671a89b552a | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4178571089282514247-0 (Apache-2.0). Wikipedia contributors, “McMurdo Station” (https://en.wikipedia.org/wiki/McMurdo_Station), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "McMurdo Station\n\nThe McMurdo Station is a United States Antarctic research center on the south tip of Ross Island, which is in the New Zealand-claimed Ross Dependency on the shore of McMurdo Sound in Antarctica. It is operated by the United States through the United States An... | {
"type": "exact",
"value": "which is in the New Zealand-claimed Ross Dependency on the shore of McMurdo Sound in Antarctica",
"tests": []
} | train |
reason2-motif_growth-007 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент JC. За проход каждый исходный символ одновременно заменяют по правилам C→TJ; J→CC; T→TJ; новые символы в том же проходе не заменяются. Сколько символов J будет после 3 проходов?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role... | {
"type": "number",
"value": "5",
"tests": []
} | train |
algpy-e8ba6d0bb52b4a7d-implement | code | en | TheAlgorithms/Python | MIT | algpy-e8ba6d0bb52b4a7d | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/find_triplets_with_0_sum.py#find_triplets_with_0_sum; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. From an integer list, return all distinct value triples with sum zero, using three distinct indices for each triple. Sort each triple and return the list of triples in lexicographic order, using lists for triples.\nSignature: def find_triplets_wi... | {
"type": "code",
"value": "",
"tests": [
"assert find_triplets_with_0_sum([0]) == []",
"assert find_triplets_with_0_sum([1]) == []",
"assert find_triplets_with_0_sum([-3]) == []",
"assert find_triplets_with_0_sum([1, 1, 1]) == []",
"assert find_triplets_with_0_sum([-1, 0, 1, 2, -1, -4]) == [[... | train |
wiki-read-en-f800f6ad22c46e600224 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-1e7a4942bd19ba84a90b68 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6041949511671513899-0 (Apache-2.0). Wikipedia contributors, “American River” (https://en.wikipedia.org/wiki/American_River), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "American River\n\nThe American River (Río de los Americanos during the period before 1847 ruled by Mexico) is a 120-mile-long river in California that runs from the Sierra Nevada mountain range to its confluence with the Sacramento River in the Sacramento Valley. Via the Sacram... | {
"type": "exact",
"value": "Río de los Americanos during the period before 1847 ruled by Mexico",
"tests": []
} | train |
reason2-motif_growth-001 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент DU. За проход каждый исходный символ одновременно заменяют по правилам U→DU; D→UUD; новые символы в том же проходе не заменяются. Сколько символов U будет после 4 проходов?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
... | {
"type": "number",
"value": "41",
"tests": []
} | train |
reason2-join_catalogs-011 | reasoning | ru | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Каталог связывает код книги с полкой: B32=S9, B88=S4, B72=S2, B49=S4, B10=S9, B67=S4. Соответствие полок и залов: S9=A, S4=V, S2=B. Число выданных экземпляров по коду книги: B49=15, B67=12, B72=3, B32=5, B10=9, B88=17. В каком зале больше всего выдач?\nКратко обоснуй ответ и за... | {
"type": "exact",
"value": "V",
"tests": []
} | train |
math-verified-break_even-002 | math | en | Original | CC0-1.0 | math-verified-break_even | verified_math_break_even | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Print plan A charges a monthly fee of $7 plus $4 per page. Plan B costs $60 per month, includes the first 6 pages, and charges $3 per additional page. What is the smallest whole number of pages in a month at which B is strictly cheaper?\nGive the exact number on the last line; ... | {
"type": "number",
"value": "36",
"tests": []
} | train |
wiki-read-ru-d47174d629455b982571 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ed1876871de8d25890d962 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7616699266762735065-0 (Apache-2.0). Wikipedia contributors, “Баскетбольный мяч” (https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D1%81%D0%BA%D0%B5%D1%82%D0%B1%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9_%D0%BC%D1%8F%D1%87), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace... | [
{
"role": "user",
"content": "Баскетбольный мяч\n\nБаскетбольный мяч — накачанный мяч для игры в баскетбол. Мяч должен иметь сферическую форму и быть установленного оттенка оранжевого цвета с традиционным рисунком из восьми вставок и черных швов. Масса мяча (официально принятого размера 7) составляет 567—65... | {
"type": "exact",
"value": "накачанный мяч для игры в баскетбол",
"tests": []
} | train |
wiki-read-en-0e6e6e5fd68085d65aef | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-948a3896615cacab208d76 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4504707432134461246-0 (Apache-2.0). Wikipedia contributors, “2008 Orange Bowl” (https://en.wikipedia.org/wiki/2008_Orange_Bowl), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2008 Orange Bowl\n\nThe 2008 FedEx Orange Bowl was a post-season college football bowl game between the Virginia Tech Hokies and the Kansas Jayhawks on January 3, 2008, at Dolphin Stadium in Miami Gardens, Florida. Spread bettors favored Virginia Tech by three points, but in a ... | {
"type": "exact",
"value": "2008-01-03",
"tests": []
} | train |
reason2-motif_growth-046 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент YYUV. За проход каждый исходный символ одновременно заменяют по правилам U→U; V→YYU; Y→V; новые символы в том же проходе не заменяются. Сколько символов U будет после 5 проходов?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"rol... | {
"type": "number",
"value": "14",
"tests": []
} | train |
gsm-train-6792 | math | en | GSM8K | MIT | gsm8k-027470c97a1caa61618b | word_problem_4_steps | OpenAI (2021), GSM8K, original train row 6792 | [
{
"role": "user",
"content": "Mary bought a packet of 1500 stickers. She shared them between Susan, Andrew and Sam in the ratio 1:1:3 respectively. If Sam gave Andrew two-thirds of his own share, how many stickers does Andrew now have?\nShow a short calculation. Put the final number alone on the last line."... | {
"type": "number",
"value": "900",
"tests": []
} | train |
gsm-train-1852 | math | en | GSM8K | MIT | gsm8k-3a5b4b76bab3eb840f44 | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 1852 | [
{
"role": "user",
"content": "Aubrey is planting tomatoes and cucumbers in her garden. For each row of tomato plants, she is planting 2 rows of cucumbers. She has enough room for 15 rows of plants in total. There is enough space for 8 tomato plants in each row. If each plant produces 3 tomatoes, how many to... | {
"type": "number",
"value": "120",
"tests": []
} | train |
math-verified-break_even-018 | math | ru | Original | CC0-1.0 | math-verified-break_even | verified_math_break_even | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Мастерская выбирает тариф на печать. Тариф A стоит 11 руб. в месяц плюс 4 руб. за каждую страницу. Абонентская плата по тарифу B — 28 руб. в месяц за пакет объёмом 3 стр. Каждая страница сверх пакета стоит 2 руб. При каком наименьшем целом числе страниц за месяц B обойдётся стр... | {
"type": "number",
"value": "6",
"tests": []
} | train |
math-verified-stock-003 | math | en | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A warehouse shipped 1/8 of its boxes, received 25 more, then shipped 1/5 of its new stock. It ended with 244 boxes. How many boxes were there before the first shipment?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer."
},
{
"role"... | {
"type": "number",
"value": "320",
"tests": []
} | train |
reason2-ballot_points-041 | reasoning | en | Original | CC0-1.0 | reason2-ballot_points | workshop_ballot_points | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Jurors rank designs T, M, B, V. Positions from best to worst earn 3, 2, 1, 0 points. Ballot groups, written as count × ranking from best to worst: 6 × B>T>M>V; 6 × V>M>B>T; 2 × T>V>B>M. Which design earns the most points?\nShow a short check. Give the final answer on a separate... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
algpy-073bf17baf08e5d5-trace | code | en | TheAlgorithms/Python | MIT | algpy-073bf17baf08e5d5 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/binary_to_gray_code.py#gray_to_binary; adapted exercises | [
{
"role": "user",
"content": "```python\ndef gray_to_binary(gray_number):\n if not isinstance(gray_number, int):\n raise TypeError('Input must be an integer')\n if gray_number < 0:\n raise ValueError('Input must be a non-negative integer')\n binary_number = gray_number\n gray_numbe... | {
"type": "exact",
"value": "7",
"tests": []
} | train |
wiki-read-ru-be86267a09288abacb0f | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-0d53820772a05c89e3da9a | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5843038835566682491-3 (Apache-2.0). Wikipedia contributors, “Final Fantasy” (https://ru.wikipedia.org/wiki/Final_Fantasy), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Final Fantasy\n\nПервая часть серии Final Fantasy была выпущена 18 декабря 1987 года, однако, следующие игры, приписанные авторами к этой линейке, не являются прямыми продолжениями первоисточника, представляя собой скорее отдельные эпизоды, объединённые лишь некоторыми концепту... | {
"type": "exact",
"value": "1987-12-18",
"tests": []
} | train |
reason2-light_piece-047 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали Z, C, D, J, A, K, T, W, M, G должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): G+Z+D > A+K+T; W+M+K = D+G+J; C+J > A+Z. Какая деталь легче?\nПриведи ход решения в нескольких фр... | {
"type": "exact",
"value": "A",
"tests": []
} | train |
reason2-order_count-069 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты S, E, N, M, Y выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: M→Y, N→Y, E→M, N→M. Сколько полных порядков допускают эти условия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "assistant"... | {
"type": "number",
"value": "10",
"tests": []
} | train |
gsm-train-2839 | math | en | GSM8K | MIT | gsm8k-ac2a02f801168a6dd27d | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 2839 | [
{
"role": "user",
"content": "Lionel walked 4 miles. Esther walked 975 yards and Niklaus walked 1287 feet. How many combined feet did the friends walk?\nShow a short calculation. Put the final number alone on the last line."
},
{
"role": "assistant",
"content": "Lionel = 4 * 5280 = 21120 feet\nE... | {
"type": "number",
"value": "25332",
"tests": []
} | train |
reason2-assembly_units-020 | reasoning | ru | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для сборки используются спецификации (правая часть — состав одной единицы): N = 4×H + 3×E; H = 1×U + 6×Y; E = 6×U + 6×Y. Заказ включает изделия N в количестве 5 и отдельно узлы H в количестве 7. Сколько отдельных деталей Y потребуется?\nКратко обоснуй ответ и запиши сам ответ н... | {
"type": "number",
"value": "252",
"tests": []
} | train |
math-verified-grid_triangle-001 | math | ru | Original | CC0-1.0 | math-verified-grid_triangle | verified_math_grid_triangle | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "На квадратной решётке с шагом 1 отмечены вершины треугольника (-5, -4), (7, -4) и (3, 4). Сколько узлов с целыми координатами лежит строго внутри него? Точки на сторонах не включай.\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"r... | {
"type": "number",
"value": "37",
"tests": []
} | train |
verified-code-exact_hops-trace | code | en | Original | CC0-1.0 | verified-code-hops | verified_trace | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "```python\ndef exact_hops(n, edges, k):\n dist = [-1] * n\n dist[0] = 0\n queue = [0]\n for node in queue:\n for a, b in edges:\n if a == node and dist[b] == -1:\n dist[b] = dist[a] + 1\n queue.append(b)\n return [i... | {
"type": "exact",
"value": "[0]",
"tests": []
} | train |
wiki-read-en-27516d583e13dd86268e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-e0ce98e99a77ac09cfe04d | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--3510186838544398698-0 (Apache-2.0). Wikipedia contributors, “Golden Age of Comic Books” (https://en.wikipedia.org/wiki/Golden_Age_of_Comic_Books), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Golden Age of Comic Books\n\nThe Golden Age of Comic Books describes an era of American comic books from the late 1930s to circa 1950. During this time, modern comic books were first published and rapidly increased in popularity. The superhero archetype was created and many wel... | {
"type": "exact",
"value": "later known as SHAZAM!",
"tests": []
} | train |
algpy-804b4257f8f677ef-trace | code | en | TheAlgorithms/Python | MIT | algpy-804b4257f8f677ef | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/largest_pow_of_two_le_num.py#largest_pow_of_two_le_num; adapted exercises | [
{
"role": "user",
"content": "```python\ndef largest_pow_of_two_le_num(number):\n if isinstance(number, float):\n raise TypeError(\"Input value must be a 'int' type\")\n if number <= 0:\n return 0\n res = 1\n while res << 1 <= number:\n res <<= 1\n return res\n```\nWhat d... | {
"type": "exact",
"value": "524288",
"tests": []
} | train |
reason2-fair_slots-014 | reasoning | en | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A club allocates studio hours one by one. Section weights: E=32, J=20, Y=27. Each next hour goes to the largest weight / (1 + hours already awarded), ties to the alphabetically first code. Starting from zero, which section gets hour 5?\nExplain in a few sentences and use the fi... | {
"type": "exact",
"value": "Y",
"tests": []
} | train |
math-verified-grid_triangle-019 | math | ru | Original | CC0-1.0 | math-verified-grid_triangle | verified_math_grid_triangle | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "На квадратной решётке с шагом 1 отмечены вершины треугольника (1, 0), (6, 0) и (5, 8). Сколько узлов с целыми координатами лежит строго внутри него? Точки на сторонах не включай.\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role... | {
"type": "number",
"value": "16",
"tests": []
} | train |
reason2-event_selection-066 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: R 5–11; J 19–24; B 16–18; Z 6–13; V 18–22; X 8–12. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПокажи короткую проверку, а в конце на ... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-light_piece-022 | reasoning | en | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Parts R, W, C, L, E, X, B, V have identical weights except for one lighter part. Each balance test puts the same number on both pans. Signs compare left weight with right: E+L+C > V+W+R; L+X+R+C > V+B+E+W; E+L+B+V < X+W+C+R. Which part is lighter?\nExplain in a few sentences an... | {
"type": "exact",
"value": "V",
"tests": []
} | train |
algpy-2429e74983ec3d6f-repair | code | en | TheAlgorithms/Python | MIT | algpy-2429e74983ec3d6f | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/binary_exponentiation.py#binary_exp_recursive; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Return the first integer raised to the second integer power. Both inputs are nonnegative and are not both zero.\nFor binary_exp_recursive(1, 8) it should return 1, but returns 256. Keep the signature.\n```python\ndef binary_exp_recursive(base, expon... | {
"type": "code",
"value": "",
"tests": [
"assert binary_exp_recursive(0, 2) == 0",
"assert binary_exp_recursive(1, 8) == 1",
"assert binary_exp_recursive(2, 0) == 1",
"assert binary_exp_recursive(2, 5) == 32",
"assert binary_exp_recursive(5, 3) == 125",
"assert binary_exp_recursive(7, 4) ... | train |
wiki-read-ru-618151def10361e83f7b | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-9b0899ff5a7d46604ff73a | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-655063089008412713-0 (Apache-2.0). Wikipedia contributors, “Тинькофф банк” (https://ru.wikipedia.org/wiki/%D0%A2%D0%B8%D0%BD%D1%8C%D0%BA%D0%BE%D1%84%D1%84_%D0%B1%D0%B0%D0%BD%D0%BA), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normal... | [
{
"role": "user",
"content": "Тинькофф банк\n\n«Тинькофф Банк» (до 1 января 2015 года «Тинькофф Кредитные Системы») — российский коммерческий банк, сфокусированный полностью на дистанционном обслуживании, не имеющий розничных отделений. Штаб-квартира банка расположена в Москве.\n\nНайди полную календарную д... | {
"type": "exact",
"value": "2015-01-01",
"tests": []
} | train |
algpy-37993de22d004de2-trace | code | ru | TheAlgorithms/Python | MIT | algpy-37993de22d004de2 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/abs.py#abs_max_sort; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(x):\n if len(x) == 0:\n raise ValueError('compute() arg is an empty sequence')\n return sorted(x, key=abs)[-1]\n```\nЧто вернёт выражение compute([0, 5, 1, 11])? Запиши repr результата Python."
},
{
"role": "assistant",
"content":... | {
"type": "exact",
"value": "11",
"tests": []
} | train |
reason2-editing_history-038 | reasoning | ru | Original | CC0-1.0 | reason2-editing_history | workshop_editing_history | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В редакторе поле сначала содержит P. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать F; записать A; отме... | {
"type": "exact",
"value": "D",
"tests": []
} | train |
reason2-line_breaks-066 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 8, 7, 3, 3, 4, 9, 4, in the given order. Each line holds 12 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nBriefly justify your result, then put the answer alone on the... | {
"type": "number",
"value": "5",
"tests": []
} | train |
reason2-pareto-069 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): A (20, 24); G (7, 37); F (24, 50); J (22, 52); H (15, 47); E (3, 63); B (13, 33); W (21, 32); N (17, 67). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном поряд... | {
"type": "exact",
"value": "A B E G",
"tests": []
} | train |
wiki-read-en-2905790820b62e00e829 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-0b055437f041538ba93c93 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5589392486979734891-0 (Apache-2.0). Wikipedia contributors, “2009 Stanley Cup Finals” (https://en.wikipedia.org/wiki/2009_Stanley_Cup_Finals), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2009 Stanley Cup Finals\n\nThe 2009 Stanley Cup Finals was the championship series of the National Hockey League's (NHL) 2008–09 season, and the culmination of the 2009 Stanley Cup playoffs. It was contested between the Eastern Conference champion Pittsburgh Penguins and the We... | {
"type": "exact",
"value": "NHL",
"tests": []
} | train |
wiki-read-en-f1d019b42d8348efd9eb | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-3eae02da2ac4fa042b96e0 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3674226302377204286-18 (Apache-2.0). Wikipedia contributors, “Zürich Underground Railway” (https://en.wikipedia.org/wiki/Z%C3%BCrich_Underground_Railway), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Zürich Underground Railway\n\nLine 1 was planned right through to the construction stage since it covered the two most important traffic axes in the metropolitan regions of (Glatttal and Limmattal) and, according to the traffic concepts, it could be an efficient system on its o... | {
"type": "exact",
"value": "because this rapidly growing district was badly developed",
"tests": []
} | train |
wiki-read-en-bd6d6ccbff6de3953f8f | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-5853292ab0f598c2e0e586 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5373312899592210941-0 (Apache-2.0). Wikipedia contributors, “Vince McMahon” (https://en.wikipedia.org/wiki/Vince_McMahon), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Vince McMahon\n\nVincent Kennedy McMahon (/məkˈmæn/; born August 24, 1945) is an American professional wrestling promoter and executive, American football executive, and businessman. Since taking over the company from his father in the 1980s, he has worked in the corporate area... | {
"type": "exact",
"value": "1945-08-24",
"tests": []
} | train |
wiki-read-en-a9db2eee37a416cad14e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-6be8dbc0c43aaa3f8004ea | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-9120106832893607703-0 (Apache-2.0). Wikipedia contributors, “Paul Heyman” (https://en.wikipedia.org/wiki/Paul_Heyman), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Paul Heyman\n\nPaul Heyman (born September 11, 1965) is an American entertainment producer, writer, performer, marketer, promoter, professional wrestling manager, and commentator. He is currently signed to WWE, where he performs on the Raw brand. He has shunned the label of \"m... | {
"type": "exact",
"value": "where he performs on the Raw brand",
"tests": []
} | train |
math-verified-stock-015 | math | en | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A warehouse shipped 1/6 of its boxes, received 45 more, then shipped 1/5 of its new stock. It ended with 216 boxes. How many boxes were there before the first shipment?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer."
},
{
"role"... | {
"type": "number",
"value": "270",
"tests": []
} | train |
gsm-train-4601 | math | en | GSM8K | MIT | gsm8k-c420e7c400ca3a1570a4 | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 4601 | [
{
"role": "user",
"content": "Nick is trying to raise money for a charity. He is selling candy bars for $5. He is also selling chocolate oranges for $10. He wants to raise $1000. He only had 20 chocolate oranges that he sold out. How many candy bars does Nick need to sell to reach his goal?\nShow a short ca... | {
"type": "number",
"value": "160",
"tests": []
} | train |
reason2-fair_slots-052 | reasoning | ru | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Клуб делит часы студии по одному. Веса секций: A=28, H=11, S=25, X=30, Y=16. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 5, если сначала ни у ког... | {
"type": "exact",
"value": "X",
"tests": []
} | train |
wiki-read-ru-08e8dfb373f62d909e44 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-b2808c947ea04c193e096f | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2996726797177583115-18 (Apache-2.0). Wikipedia contributors, “Ford” (https://ru.wikipedia.org/wiki/Ford), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Ford\n\nКомпания разделена на три структуры по географическому признаку: Ford North America, Ford Asia Pacific и Ford of Europe. Ранее каждое из этих подразделений имело собственный модельный ряд, но в 2006 году руководитель компании Малалли объявил о новой стратегии «Единый Fo... | {
"type": "exact",
"value": "на 2010 год — всего 80",
"tests": []
} | train |
wiki-read-en-5818e1041dd2950a0ecb | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-a0ff6b5042438ffa1cf040 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--288557974672070285-0 (Apache-2.0). Wikipedia contributors, “Sugar Bowl” (https://en.wikipedia.org/wiki/Sugar_Bowl), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Sugar Bowl\n\nThe Sugar Bowl is an annual American college football bowl game played in New Orleans, Louisiana. It has been played annually since January 1, 1935, and celebrated its 75th anniversary on January 2, 2009. The Sugar Bowl, along with the Orange Bowl and Sun Bowl, ar... | {
"type": "exact",
"value": "an annual American college football bowl game played in New Orleans, Louisiana",
"tests": []
} | train |
reason2-motif_growth-025 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент VD. За проход каждый исходный символ одновременно заменяют по правилам K→KV; D→KDK; V→VVV; новые символы в том же проходе не заменяются. Сколько символов K будет после 3 проходов?\nПриведи ход решения в нескольких фразах. На последней строке оставь только отв... | {
"type": "number",
"value": "6",
"tests": []
} | train |
algpy-40f288eed61327db-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-40f288eed61327db | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/binary_tree/lowest_common_ancestor.py#swap; adapted exercises | [
{
"role": "user",
"content": "Exactly one test misstates what this implementation returns. Identify it and compute the correct result. End with the letter and the corrected Python repr, for example A: 42.\n```python\ndef compute(a, b):\n a ^= b\n b ^= a\n a ^= b\n return (a, b)\n```\n```python\n... | {
"type": "exact",
"value": "A: (3, 2)",
"tests": []
} | train |
reason2-connected_groups-015 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка T, V, E, J, M, Z, C, K, G свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: J–G, K–C, C–E, V–J, Z–M, M–J, G–Z, T–J. Добавляют связь M–E. Сколько кодов будет в образовавшемс... | {
"type": "number",
"value": "9",
"tests": []
} | train |
algpy-70d3f225b748e549-trace | code | en | TheAlgorithms/Python | MIT | algpy-70d3f225b748e549 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#rankine_to_kelvin; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(rankine, ndigits=2):\n return round(float(rankine) * 5 / 9, ndigits)\n```\nWhat does round(compute('40'), 6) return? Give the Python repr of the value."
},
{
"role": "assistant",
"content": "22.22"
}
] | {
"type": "exact",
"value": "22.22",
"tests": []
} | train |
wiki-read-en-cab29ad910edd9bd2fd6 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-bdf70e679a2325af82a222 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-186242156365528299-1 (Apache-2.0). Wikipedia contributors, “Advanced maternal age” (https://en.wikipedia.org/wiki/Advanced_maternal_age), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Advanced maternal age\n\nIn Western, Northern, and Southern Europe, first-time mothers are on average 27 to 29 years old, up from 23 to 25 years at the start of the 1970s. In a number of European countries (Spain), the mean age of women at first childbirth has crossed the 30 ye... | {
"type": "exact",
"value": "Spain",
"tests": []
} | train |
gsm-train-3183 | math | en | GSM8K | MIT | gsm8k-090fcb166e978057cc9d | word_problem_7_steps | OpenAI (2021), GSM8K, original train row 3183 | [
{
"role": "user",
"content": "Mrs. Brynlee reduced the prices of items in her store by 20% after the local government gave small businesses in her county a subsidy. If the price of a shirt in the store was $60 and that of the leather jacket was $90, calculate the amount of money Teagan will pay for buying 5... | {
"type": "number",
"value": "960",
"tests": []
} | train |
algpy-cb94130f9fa2167c-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-cb94130f9fa2167c | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/palindrome_partitioning.py#find_minimum_partitions; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `if c == string[j] and (i - j < 2 or is_palindromic[j + 1][i - 1]):` заменяют на `if c != string[j] and (i - j < 2 or is_palindromic[j + 1][i - 1]):`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
reason2-line_breaks-006 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 2, 2, 4, 6, 2, 3, 2, 5, 3, in the given order. Each line holds 14 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nExplain in a few sentences and use the final line for t... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-en-6016076b7e744867d097 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-037daee7e4f6679c7f396b | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4995430014194953813-0 (Apache-2.0). Wikipedia contributors, “LNER Class A4 4468 Mallard” (https://en.wikipedia.org/wiki/LNER_Class_A4_4468_Mallard), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "LNER Class A4 4468 Mallard\n\nLondon and North Eastern Railway locomotive numbered 4468 Mallard is a Class A4 4-6-2 Pacific steam locomotive built at Doncaster Works, England in 1938. It is historically significant as the holder of the world speed record for steam locomotives a... | {
"type": "exact",
"value": "a Class A4 4-6-2 Pacific steam locomotive built at Doncaster Works, England in 1938",
"tests": []
} | train |
reason2-editing_history-059 | reasoning | en | Original | CC0-1.0 | reason2-editing_history | workshop_editing_history | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "An editor field starts at T. Writing replaces its value and discards any redo history. Undo moves to the previous value, redo restores an undone edit, and an unavailable action has no effect. Commands: write M; undo; write B; undo; undo; redo; undo; write R; undo; redo; write S... | {
"type": "exact",
"value": "C",
"tests": []
} | train |
algpy-2afda71fcfd838dd-trace | code | en | TheAlgorithms/Python | MIT | algpy-2afda71fcfd838dd | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/binary_and_operator.py#binary_and; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(a, b):\n if not isinstance(a, int) or not isinstance(b, int):\n raise TypeError('inputs must be integers')\n if a < 0 or b < 0:\n raise ValueError('inputs must be non-negative integers')\n a_binary = format(a, 'b')\n b_binary = f... | {
"type": "exact",
"value": "'0b100000'",
"tests": []
} | train |
reason2-event_selection-060 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: V 2–10; A 12–18; M 6–9; X 6–14; N 12–16; W 9–14; D 12–20; C 19–21. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПриведи ход решения в н... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-fair_slots-054 | reasoning | en | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A club allocates studio hours one by one. Section weights: E=25, F=33, R=31, U=8, Z=13. Each next hour goes to the largest weight / (1 + hours already awarded), ties to the alphabetically first code. Starting from zero, which section gets hour 4?\nBriefly justify your result, t... | {
"type": "exact",
"value": "F",
"tests": []
} | train |
verified-code-run_heads-repair | code | en | Original | CC0-1.0 | verified-code-runs | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Correct one line. run_heads([0, 9, 0, 9]) returns [0, 0]; expected [0, 9, 0, 9]. Split integer list xs into maximal runs of equal adjacent items. In order, collect only its value for each run into a list. Return [] for an empty input.\n```python\ndef run_heads(xs):\n out = [... | {
"type": "code",
"value": "",
"tests": [
"assert run_heads([]) == []",
"assert run_heads([4]) == [4]",
"assert run_heads([1, 1]) == [1]",
"assert run_heads([9, 9, 3, 1, 1]) == [9, 3, 1]",
"assert run_heads([7, 7, 7]) == [7]",
"assert run_heads([3, 4, 4, 5, 3]) == [3, 4, 5, 3]",
"asser... | train |
gsm-train-3957 | math | en | GSM8K | MIT | gsm8k-cb728e9f67debc7fa6ab | word_problem_5_steps | OpenAI (2021), GSM8K, original train row 3957 | [
{
"role": "user",
"content": "Five dozens of people are attending your family reunion. Your family was assigned to bring the cans of soda. Each box of soda contains 10 cans and costs $2 per box. It was assumed that each person can consume 2 cans of soda. If you are six in the family and agreed to pay equall... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-en-a0b7149b6862cca30347 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-ab5cc923850d99f2ee9558 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7143193714620934257-3 (Apache-2.0). Wikipedia contributors, “Capital of the Netherlands” (https://en.wikipedia.org/wiki/Capital_of_the_Netherlands), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Capital of the Netherlands\n\nAlthough the proper legal status of Amsterdam as capital of the Netherlands is of recent date, the city has been uniformly recognised as capital ever since 1814. This is partly because it is a Royal City, used not only for the inauguration of kings... | {
"type": "exact",
"value": "note though that royal burials take place in Delft",
"tests": []
} | train |
wiki-read-en-c99c150150e5e94d47be | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f8860df088f382e75b3bd6 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3900804939677821336-3 (Apache-2.0). Wikipedia contributors, “Polyvinyl chloride” (https://en.wikipedia.org/wiki/Polyvinyl_chloride), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Polyvinyl chloride\n\nPVC was accidentally synthesized in 1872 by German chemist Eugen Baumann. The polymer appeared as a white solid inside a flask of vinyl chloride that had been left exposed to sunlight. In the early 20th century the Russian chemist Ivan Ostromislensky and F... | {
"type": "exact",
"value": "1872, 1926",
"tests": []
} | train |
algpy-1ad1866439999f35-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-1ad1866439999f35 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/largest_of_very_large_numbers.py#res; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nimport math\n\ndef compute(x, y):\n if 0 not in (x, y):\n return y * math... | {
"type": "exact",
"value": "B: 0",
"tests": []
} | train |
algpy-ce31674d844f277b-implement | code | en | TheAlgorithms/Python | MIT | algpy-ce31674d844f277b | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/max_non_adjacent_sum.py#maximum_non_adjacent_sum; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return the largest sum obtainable by choosing nonadjacent positions in a list of integers. Choosing no positions gives sum zero.\nSignature: def maximum_non_adjacent_sum(nums):\nExamples:\n```python\nassert maximum_non_adjacent_sum([]) == 0\nasse... | {
"type": "code",
"value": "",
"tests": [
"assert maximum_non_adjacent_sum([0]) == 0",
"assert maximum_non_adjacent_sum([-3]) == 0",
"assert maximum_non_adjacent_sum([1, -1, 0]) == 1",
"assert maximum_non_adjacent_sum([1, 1, 1]) == 2",
"assert maximum_non_adjacent_sum([-1, 0, 1, 2, -1, -4]) ==... | train |
wiki-read-en-7a88350185f6eb96ecdf | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f2773213a1fee0237532bd | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7142307549535369038-0 (Apache-2.0). Wikipedia contributors, “2019 Pacific typhoon season” (https://en.wikipedia.org/wiki/2019_Pacific_typhoon_season), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2019 Pacific typhoon season\n\nThe 2019 Pacific typhoon season is an ongoing event in the annual cycle of tropical cyclone formation, in which tropical cyclones form in the western Pacific Ocean. The season runs throughout 2019, though most tropical cyclones typically develop b... | {
"type": "exact",
"value": "an ongoing event in the annual cycle of tropical cyclone formation, in which tropical cyclones form in the western Pacific Ocean",
"tests": []
} | train |
algpy-cb1b90fe07fc3255-trace | code | en | TheAlgorithms/Python | MIT | algpy-cb1b90fe07fc3255 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/median_of_medians.py#quick_select; adapted exercises | [
{
"role": "user",
"content": "```python\ndef median_of_medians(arr):\n if len(arr) <= 5:\n return median_of_five(arr)\n medians = []\n i = 0\n while i < len(arr):\n if i + 4 <= len(arr):\n medians.append(median_of_five(arr[i:].copy()))\n else:\n medians... | {
"type": "exact",
"value": "2",
"tests": []
} | train |
reason2-motif_growth-038 | reasoning | ru | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Начальный орнамент JLJL. За проход каждый исходный символ одновременно заменяют по правилам L→LJ; J→LJ; новые символы в том же проходе не заменяются. Сколько символов J будет после 3 проходов?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"ro... | {
"type": "number",
"value": "16",
"tests": []
} | train |
algpy-8eaec32a14b98b9e-trace | code | ru | TheAlgorithms/Python | MIT | algpy-8eaec32a14b98b9e | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/factorial.py#factorial; adapted exercises | [
{
"role": "user",
"content": "```python\ndef factorial(number):\n if number != int(number):\n raise ValueError('factorial() only accepts integral values')\n if number < 0:\n raise ValueError('factorial() not defined for negative values')\n value = 1\n for i in range(1, number + 1):... | {
"type": "exact",
"value": "1",
"tests": []
} | train |
verified-code-dearest_route-trace | code | en | Original | CC0-1.0 | verified-code-grid_walks | verified_trace | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "```python\ndef dearest_route(grid):\n dp = [None] * len(grid[0])\n for y, row in enumerate(grid):\n for x, cost in enumerate(row):\n prev = [p for p in (dp[x], dp[x-1] if x else None) if p is not None]\n if cost is None:\n dp[x]... | {
"type": "exact",
"value": "7",
"tests": []
} | train |
wiki-read-en-c10d18f6ea75c2a40628 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-8f3550ebc16ed5edec924e | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5253305924911050072-0 (Apache-2.0). Wikipedia contributors, “List of tallest buildings and structures” (https://en.wikipedia.org/wiki/List_of_tallest_buildings_and_structures), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized... | [
{
"role": "user",
"content": "List of tallest buildings and structures\n\nThe world's tallest artificial structure is the 829.8-metre-tall (2,722ft) Burj Khalifa in Dubai (of the United Arab Emirates). The building gained the official title of \"Tallest Building in the World\" and the tallest self-supported... | {
"type": "exact",
"value": "2010-01-09",
"tests": []
} | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.