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
algpy-68235f39c1e65b45-implement
code
en
TheAlgorithms/Python
MIT
algpy-68235f39c1e65b45
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/next_power_of_two.py#next_power_of_two; adapted exercises
[ { "role": "user", "content": "Implement this Python function. For a positive integer n, return the smallest power of two at least n.\nSignature: def next_power_of_two(n):\nExamples:\n```python\nassert next_power_of_two(1) == 1\nassert next_power_of_two(2) == 2\n```" }, { "role": "assistant", "co...
{ "type": "code", "value": "", "tests": [ "assert next_power_of_two(3) == 4", "assert next_power_of_two(4) == 4", "assert next_power_of_two(7) == 8", "assert next_power_of_two(8) == 8", "assert next_power_of_two(15) == 16", "assert next_power_of_two(16) == 16", "assert next_power_of_tw...
train
reason2-rotate_grid-043
reasoning
ru
Original
CC0-1.0
reason2-rotate_grid
workshop_rotate_grid
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Исходные строки табло сверху вниз: D M L / Y W C / T N R. Выполни циклические сдвиги по порядку: строка 2 на 2 вправо; столбец 1 на 2 вниз; строка 2 на 1 вправо. Какой символ теперь в строке 2, столбце 3? Нумерация с единицы.\nПокажи короткую проверку, а в конце на отдельной ст...
{ "type": "exact", "value": "C", "tests": [] }
train
verified-code-discarded_keys-implement
code
en
Original
CC0-1.0
verified-code-cache_order
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement discarded_keys(requests, capacity) in Python. An initially empty cache holds capacity ≥ 1 distinct keys. Each integer request makes its key most recent. Adding a missing key to a full cache evicts the least recently requested key. Return evicted keys in eviction order...
{ "type": "code", "value": "", "tests": [ "assert discarded_keys([], 2) == []", "assert discarded_keys([1], 1) == []", "assert discarded_keys([1, 2, 1, 3, 2], 2) == [2, 1]", "assert discarded_keys([9, 8, 7, 6], 2) == [9, 8]", "assert discarded_keys([3, 5, 3, 6, 5, 2], 2) == [5, 3, 6]", "as...
train
algpy-0dee0371b634470e-trace
code
ru
TheAlgorithms/Python
MIT
algpy-0dee0371b634470e
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/wave_string.py#wave; adapted exercises
[ { "role": "user", "content": "```python\ndef wave(txt):\n return [txt[:a] + txt[a].upper() + txt[a + 1:] for a in range(len(txt)) if txt[a].isalpha()]\n```\nЧто вернёт выражение wave('one')? Запиши repr результата Python." }, { "role": "assistant", "content": "['One', 'oNe', 'onE']" } ]
{ "type": "exact", "value": "['One', 'oNe', 'onE']", "tests": [] }
train
reason2-minimum_cover-046
reasoning
ru
Original
CC0-1.0
reason2-minimum_cover
workshop_minimum_cover
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для выставки нужны образцы всех типов 1, 2, 3, 4, 5, 7, 8, 9. Наборы перечислены с типами внутри: F=2/3/8/9; T=4/5/7/9; L=3/4/9; N=1/9; J=5/7/8/9. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПокажи короткую проверку, а в конце на отдельной строке дай отве...
{ "type": "number", "value": "3", "tests": [] }
train
reason2-pareto-046
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): G (28, 32); H (8, 16); U (13, 12); J (16, 35); S (17, 40); D (22, 56). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПриведи ход решен...
{ "type": "exact", "value": "H U", "tests": [] }
train
reason2-critical_path-045
reasoning
ru
Original
CC0-1.0
reason2-critical_path
workshop_critical_path
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: P=9, E=4, U=9, A=7, D=4, Z=9, V=9. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: U→Z, V→D, U→E, Z→E, Z→A. Время отсчитывают с нуля. Когда раньше всего мож...
{ "type": "number", "value": "25", "tests": [] }
train
algpy-27c454ce52335287-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-27c454ce52335287
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#surface_area_sphere; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nfrom math import pi\n\ndef compute(radius):\n if radius < 0:\n raise Valu...
{ "type": "exact", "value": "A: 314.159265", "tests": [] }
train
math-verified-spaced_seats-007
math
ru
Original
CC0-1.0
math-verified-spaced_seats
verified_math_spaced_seats
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "В ряду места пронумерованы от 1 до 16. Место 6 закрыто. Сколькими способами можно выбрать набор из 4 свободных мест так, чтобы никакие два выбранных номера не были соседними? Учитывается только набор номеров.\nЗапиши точное число в последней строке; нецелый ответ дай несократим...
{ "type": "number", "value": "541", "tests": [] }
train
algpy-0279eee6c732277c-implement
code
en
TheAlgorithms/Python
MIT
algpy-0279eee6c732277c
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/upper.py#upper; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Convert lowercase ASCII letters in the string to uppercase; keep every other character unchanged.\nSignature: def upper(word):\nExamples:\n```python\nassert upper('') == ''\nassert upper('a') == 'A'\n```" }, { "role": "assistant", "co...
{ "type": "code", "value": "", "tests": [ "assert upper('A') == 'A'", "assert upper('hello') == 'HELLO'", "assert upper('AaB') == 'AAB'", "assert upper('a! b') == 'A! B'", "assert upper('aBc') == 'ABC'", "assert upper('hello World') == 'HELLO WORLD'", "assert upper('zZ') == 'ZZ'", ...
train
reason2-pareto-064
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): H (3, 70); D (26, 12); R (4, 71); L (11, 66); Y (13, 61); X (7, 18). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nКратко обоснуй отве...
{ "type": "exact", "value": "D H X", "tests": [] }
train
wiki-read-en-b461d3e6f8ae1298490d
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-49a73fb237cbf85917636b
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4235437790098023009-1 (Apache-2.0). Wikipedia contributors, “Coast Guard Motor Lifeboat CG 36500” (https://en.wikipedia.org/wiki/Coast_Guard_Motor_Lifeboat_CG_36500), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New read...
[ { "role": "user", "content": "Coast Guard Motor Lifeboat CG 36500\n\nCG-36500 is a standard 36-foot lifeboat, a vessel specifically designed to remain operational under extremely difficult conditions. It has a heavy 2000 lb bronze keel and skeg, watertight compartments, and self-bailing features. Most of it...
{ "type": "exact", "value": "which allows for winter time ice breaking", "tests": [] }
train
wiki-read-en-1349120da4a4d102418e
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-95c82defa6c095e42fc67e
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1024258836097277797-0 (Apache-2.0). Wikipedia contributors, “Quad (figure skating)” (https://en.wikipedia.org/wiki/Quad_(figure_skating)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Quad (figure skating)\n\nA quad, or quadruple, is a figure skating jump with at least three but less than four revolutions. Most quadruple jumps have 3 1/2 revolutions; the quadruple Axel has 4 1/2 revolutions, although no figure skater to date has completed this jump in compet...
{ "type": "exact", "value": "1988, 2002", "tests": [] }
train
reason2-fair_slots-027
reasoning
ru
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Клуб делит часы студии по одному. Веса секций: A=10, L=20, R=25, S=6, W=15. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 5, если сначала ни у кого...
{ "type": "exact", "value": "A", "tests": [] }
train
gsm-train-2725
math
en
GSM8K
MIT
gsm8k-f16d59f7edfac373b84b
word_problem_6_steps
OpenAI (2021), GSM8K, original train row 2725
[ { "role": "user", "content": "Jimmy is setting up a garden. He has three plots: one plot for green beans, one plot for carrots, and one plot for corn. Each corn plant produces 5 times as many servings of veggies as each carrot, and each green bean plant produces half as many servings as each corn plant. If ...
{ "type": "number", "value": "306", "tests": [] }
train
wiki-read-ru-4fd062846ef94d3af83f
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-e827f7e45354edfc16c6b0
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--8169426672482908784-3 (Apache-2.0). Wikipedia contributors, “Остров Пасхи” (https://ru.wikipedia.org/wiki/%D0%9E%D1%81%D1%82%D1%80%D0%BE%D0%B2_%D0%9F%D0%B0%D1%81%D1%85%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized....
[ { "role": "user", "content": "Остров Пасхи\n\nРапануи во многом известен благодаря моаи, или каменным статуям из спрессованного вулканического пепла, в которых, по поверьям местных жителей, заключена сверхъестественная сила предков первого короля острова Пасхи — Хоту-Мату’а. В 1888 году аннексирован Чили. В...
{ "type": "exact", "value": "1888, 1995", "tests": [] }
train
wiki-read-ru-f61cd418e00df6447e79
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-f8eac18251005131ea77ab
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5232004748862736270-6 (Apache-2.0). Wikipedia contributors, “Кеннеди, Джозеф Патрик (старший)” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B5%D0%BD%D0%BD%D0%B5%D0%B4%D0%B8%2C_%D0%94%D0%B6%D0%BE%D0%B7%D0%B5%D1%84_%D0%9F%D0%B0%D1%82%D1%80%D0%B8%D0%BA_(%D1%81%D1%82%D0%B0...
[ { "role": "user", "content": "Кеннеди, Джозеф Патрик (старший)\n\nДжозеф Патрик Кеннеди сделал миллионы на рискованных биржевых спекуляциях и смелых сделках с недвижимостью. Он пытался заниматься кинопродюсированием, но в 1928 г. продал свою студию FBO (на её основе возникла компания RKO Pictures). Среди ег...
{ "type": "exact", "value": "на её основе возникла компания RKO Pictures", "tests": [] }
train
reason2-pareto-061
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): X (28, 15); T (29, 49); G (6, 58); P (7, 67); V (22, 38); J (10, 40). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПокажи короткую пр...
{ "type": "exact", "value": "G J V X", "tests": [] }
train
algpy-9804dcfdcd4d7b58-trace
code
ru
TheAlgorithms/Python
MIT
algpy-9804dcfdcd4d7b58
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/regex_match.py#dp_match; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(text, pattern):\n m = len(text)\n n = len(pattern)\n dp = [[False for _ in range(n + 1)] for _ in range(m + 1)]\n dp[0][0] = True\n for j in range(1, n + 1):\n dp[0][j] = pattern[j - 1] == '*' and dp[0][j - 2]\n for i in range(1, ...
{ "type": "exact", "value": "True", "tests": [] }
train
reason2-balanced_load-021
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: E=88, X=72, A=92, N=68, F=20, K=48, C=36, R=100. Какой наименьшей разницы масс между тележками можно добиться?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "...
{ "type": "number", "value": "4", "tests": [] }
train
reason2-ballot_points-007
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты A, R, N, M. Баллы за места, начиная с первого: 3, 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 2 × M>R>A>N; 3 × A>N>M>R; 4 × N>A>R>M; 7 × M>N>A>R; 9 × N>R>M>A. У какого макета больше всего баллов?\nКратко обоснуй...
{ "type": "exact", "value": "N", "tests": [] }
train
wiki-read-en-8ee46b951a43588242c3
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-0ecdddf443a3002ca0c468
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1078617152182130656-0 (Apache-2.0). Wikipedia contributors, “2011 Joplin tornado” (https://en.wikipedia.org/wiki/2011_Joplin_tornado), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "2011 Joplin tornado\n\nThe 2011 Joplin tornado was a catastrophic EF5-rated multiple-vortex tornado that struck Joplin, Missouri, late in the afternoon of Sunday, May 22, 2011. It was part of a larger late-May tornado outbreak and reached a maximum width of nearly 1 mile (1.6km...
{ "type": "exact", "value": "1.6km", "tests": [] }
train
wiki-read-ru-4b36634912bfb92a34e0
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-ca728b48aae760b7be3eb2
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2578495479771625567-8 (Apache-2.0). Wikipedia contributors, “Бои за Иловайск” (https://ru.wikipedia.org/wiki/%D0%91%D0%BE%D0%B8_%D0%B7%D0%B0_%D0%98%D0%BB%D0%BE%D0%B2%D0%B0%D0%B9%D1%81%D0%BA), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference mar...
[ { "role": "user", "content": "Бои за Иловайск\n\nПо состоянию на утро 27 августа 2014 года представители ДНР сообщили, что полностью взяли Иловайск под свой контроль. Организованное сопротивление в городе прекратилось, остатки украинских подразделений покинули Иловайск.\n\nНайди полную календарную дату, у к...
{ "type": "exact", "value": "2014-08-27", "tests": [] }
train
wiki-read-en-eedba0d7c543c527489a
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-cb124bd98189360e7c8072
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-5241172541283372958-1 (Apache-2.0). Wikipedia contributors, “On the Origin of Species” (https://en.wikipedia.org/wiki/On_the_Origin_of_Species), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "On the Origin of Species\n\nOn the Origin of Species (or more completely, On the Origin of Species by Means of Natural Selection, or the Preservation of Favoured Races in the Struggle for Life), published on 24 November 1859, is a work of scientific literature by Charles Darwin...
{ "type": "exact", "value": "1859-11-24", "tests": [] }
train
algpy-7ba468630c595833-trace
code
en
TheAlgorithms/Python
MIT
algpy-7ba468630c595833
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/evil_number.py#is_evil_number; adapted exercises
[ { "role": "user", "content": "```python\ndef is_evil_number(number):\n if not isinstance(number, int):\n raise TypeError('Input must be an integer')\n if number < 0:\n raise ValueError('Input must be a non-negative integer')\n count = 0\n temp = number\n while temp > 0:\n ...
{ "type": "exact", "value": "True", "tests": [] }
train
algpy-3ef394287f7cdda9-implement
code
en
TheAlgorithms/Python
MIT
algpy-3ef394287f7cdda9
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/excel_title_to_column.py#excel_title_to_column; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the one-based column number for a nonempty uppercase ASCII spreadsheet label: A=1, Z=26, AA=27.\nSignature: def excel_title_to_column(column_title):\nExamples:\n```python\nassert excel_title_to_column('A') == 1\nassert excel_title_to_colum...
{ "type": "code", "value": "", "tests": [ "assert excel_title_to_column('AA') == 27", "assert excel_title_to_column('AZ') == 52", "assert excel_title_to_column('BA') == 53", "assert excel_title_to_column('ZZ') == 702", "assert excel_title_to_column('AAA') == 703", "assert excel_title_to_co...
train
reason2-ballot_points-014
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты X, K, L, N. Баллы за места, начиная с первого: 3, 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 3 × N>X>K>L; 6 × L>X>K>N; 9 × N>K>X>L; 6 × K>N>L>X; 3 × L>X>N>K. У какого макета больше всего баллов?\nКратко обоснуй...
{ "type": "exact", "value": "N", "tests": [] }
train
wiki-read-en-c545b2d553821eebffac
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-f53dd11aaa380ebf5f76f5
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-211218470462117140-0 (Apache-2.0). Wikipedia contributors, “Grievance (labour)” (https://en.wikipedia.org/wiki/Grievance_(labour)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Grievance (labour)\n\nA grievance is a formal complaint that is raised by an employee towards an employer within the workplace. There are many reasons as to why a grievance can be raised, and also many ways to go about dealing with such a scenario. Reasons for filing a grievanc...
{ "type": "exact", "value": "a formal complaint that is raised by an employee towards an employer within the workplace", "tests": [] }
train
reason2-rotate_grid-001
reasoning
en
Original
CC0-1.0
reason2-rotate_grid
workshop_rotate_grid
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "The board's original rows from top to bottom are V N R / M Q S / H J W / K B C. Apply these cyclic shifts in order: row 2 right by 1; column 3 down by 2; row 1 right by 2; column 1 down by 1; row 1 right by 1. Which symbol is now in row 1, column 3? Indices start at 1.\nShow a ...
{ "type": "exact", "value": "W", "tests": [] }
train
gsm-train-174
math
en
GSM8K
MIT
gsm8k-b297e2dd2b7c008962c7
word_problem_3_steps
OpenAI (2021), GSM8K, original train row 174
[ { "role": "user", "content": "Mark has two pets, a hare that runs 10 feet/second and a turtle that crawls 1 foot/second. If they're going to run a 20 foot-race, how much of a head start (in seconds) does the turtle need to finish in a tie?\nShow a short calculation. Put the final number alone on the last li...
{ "type": "number", "value": "18", "tests": [] }
train
wiki-read-ru-a1e75982a0b7376ef308
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-7d4e9152d8f7b0288e16a9
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3940204724975890473-0 (Apache-2.0). Wikipedia contributors, “BioShock” (https://ru.wikipedia.org/wiki/BioShock), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "BioShock\n\nBioShock — компьютерная игра в жанре шутера от первого лица с элементами RPG и научной фантастики. Разработана компанией 2K Boston (позднее Irrational Games), издана 2K Games для Windows и Xbox 360 в 2007 году. В 2008 году выпущена версия для PlayStation 3, в 2009 г...
{ "type": "exact", "value": "компьютерная игра в жанре шутера от первого лица с элементами RPG и научной фантастики", "tests": [] }
train
wiki-read-en-76882815f7e786f14444
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-ba41cf6528c689fcf0b71f
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7978299112706728956-15 (Apache-2.0). Wikipedia contributors, “Bastet” (https://en.wikipedia.org/wiki/Bastet), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Bastet\n\nBastet first appears in the third millennium BC, where she is depicted as either a fierce lioness or a woman with the head of a lioness. Two thousand years later, during the Third Intermediate Period of Egypt (c. 1070–712 BC), Bastet began to be depicted as a domestic...
{ "type": "exact", "value": "where she is depicted as either a fierce lioness or a woman with the head of a lioness", "tests": [] }
train
math-verified-departures-005
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 2 and repeats every 8 minutes. Line B first departs at minute 14 and repeats every 28 minutes. What is the earliest simultaneous departure at or after minute 104?\nGive the exact number on the last li...
{ "type": "number", "value": "154", "tests": [] }
train
algpy-74473f25ff98bc6c-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-74473f25ff98bc6c
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/sieve_of_eratosthenes.py#prime_sieve; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nimport math\n\ndef compute(num):\n if num <= 0:\n msg = f'{num}: Invalid ...
{ "type": "exact", "value": "B: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]", "tests": [] }
train
math-verified-syrup-015
math
ru
Original
CC0-1.0
math-verified-syrup
verified_math_syrup
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Смешали два сахарных сиропа с массовыми долями сахара 25% и 30%. При нагревании испарилось 30 г воды; сахар полностью остался в смеси. После нагревания масса смеси составила 130 г, в том числе 45 г сахара. Сколько граммов 30%-го сиропа взяли?\nЗапиши точное число в последней ст...
{ "type": "number", "value": "100", "tests": [] }
train
algpy-673a24882fb2026f-implement
code
en
TheAlgorithms/Python
MIT
algpy-673a24882fb2026f
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/integer_square_root.py#integer_square_root; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the greatest integer x for which x*x is at most the nonnegative integer argument.\nSignature: def integer_square_root(num):\nExamples:\n```python\nassert integer_square_root(0) == 0\nassert integer_square_root(1) == 1\n```" }, { "r...
{ "type": "code", "value": "", "tests": [ "assert integer_square_root(2) == 1", "assert integer_square_root(3) == 1", "assert integer_square_root(4) == 2", "assert integer_square_root(7) == 2", "assert integer_square_root(8) == 2", "assert integer_square_root(15) == 3", "assert integer...
train
reason2-room_peak-016
reasoning
en
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Rehearsals each need a room for the following minute intervals: A [11,15); U [6,9); V [13,17); Y [10,14); N [9,14). A room is free at the right endpoint, and all rooms are interchangeable. What is the minimum room count?\nExplain in a few sentences and use the final line for th...
{ "type": "number", "value": "4", "tests": [] }
train
wiki-read-en-8a343a8d4398b0fd1645
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d6d153e90bd646bfa4390a
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8903699385687885843-1 (Apache-2.0). Wikipedia contributors, “List of Clannad episodes” (https://en.wikipedia.org/wiki/List_of_Clannad_episodes), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "List of Clannad episodes\n\nThe Clannad anime series has 24 episodes, 23 of which were originally broadcast between October 2007 and March 2008. The last episode was released as an original video animation (OVA) on the eighth DVD in July 2008. The anime series was released in a...
{ "type": "exact", "value": "2010-06-15", "tests": [] }
train
reason2-fair_slots-063
reasoning
ru
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Клуб делит часы студии по одному. Веса секций: L=29, M=17, X=23. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 6, если сначала ни у кого нет часов?...
{ "type": "exact", "value": "L", "tests": [] }
train
reason2-fair_slots-016
reasoning
ru
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Клуб делит часы студии по одному. Веса секций: E=32, J=27, N=25, S=10. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 7, если сначала ни у кого нет ...
{ "type": "exact", "value": "E", "tests": [] }
train
algpy-95d89ffed5e3ffc7-trace
code
en
TheAlgorithms/Python
MIT
algpy-95d89ffed5e3ffc7
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/lucas_series.py#dynamic_lucas_number; adapted exercises
[ { "role": "user", "content": "```python\ndef dynamic_lucas_number(n_th_number):\n if not isinstance(n_th_number, int):\n raise TypeError('dynamic_lucas_number accepts only integer arguments.')\n a, b = (2, 1)\n for _ in range(n_th_number):\n a, b = (b, a + b)\n return a\n```\nWhat ...
{ "type": "exact", "value": "167761", "tests": [] }
train
wiki-read-en-8cfef75a777ea3af7d27
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-20b324dead365e43f0b54c
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--3685284801611892054-1 (Apache-2.0). Wikipedia contributors, “Erie Canal” (https://en.wikipedia.org/wiki/Erie_Canal), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Erie Canal\n\nThe Erie Canal is a canal in New York, United States that is part of the east–west, cross-state route of the New York State Canal System (formerly known as the New York State Barge Canal). Originally, it ran 363 miles (584km) from where Albany meets the Hudson Riv...
{ "type": "exact", "value": "584km", "tests": [] }
train
verified-code-multiply_booked_units-implement
code
en
Original
CC0-1.0
verified-code-coverage
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement multiply_booked_units(intervals) in Python. Given half-open intervals [a,b) with integer endpoints a ≤ b, return the total length covered by at least two intervals. Empty intervals cover nothing; an empty list yields 0.\nassert multiply_booked_units([(0, 5), (2, 6), (...
{ "type": "code", "value": "", "tests": [ "assert multiply_booked_units([]) == 0", "assert multiply_booked_units([(1, 1)]) == 0", "assert multiply_booked_units([(-3, -1), (2, 5), (7, 8)]) == 0", "assert multiply_booked_units([(0, 3)]) == 0", "assert multiply_booked_units([(0, 2), (2, 4)]) == 0...
train
wiki-read-en-e0abe59aed8e12da6cde
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-cd43f39f62c6ffe7021899
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6169417744782352942-0 (Apache-2.0). Wikipedia contributors, “The Worst Witch” (https://en.wikipedia.org/wiki/The_Worst_Witch), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "The Worst Witch\n\nThe Worst Witch is a series of children's books written and illustrated by Jill Murphy. The series are primarily boarding school and fantasy stories, with eight books already published. The first one, The Worst Witch, was published in 1974 by Allison & Busby,...
{ "type": "exact", "value": "1974, 2018", "tests": [] }
train
algpy-a6c510ecc0b65764-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-a6c510ecc0b65764
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/interquartile_range.py#find_median; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(nums):\n div, mod = divmod(len(nums), 2)\n if mod:\n retur...
{ "type": "exact", "value": "A: 2.5", "tests": [] }
train
wiki-read-en-26398b31bd3260bd6f48
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-0698f76100fb9a858aba8a
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-2775060458305402356-1 (Apache-2.0). Wikipedia contributors, “2010 AFL Grand Final” (https://en.wikipedia.org/wiki/2010_AFL_Grand_Final), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "2010 AFL Grand Final\n\nThe premiership was decided by a full replay on 2 October 2010. It was attended by 93,853 people. Collingwood defeated St Kilda by 56 points, marking Collingwood's fifteenth VFL/AFL premiership victory and their first since 1990. It was the last grand fi...
{ "type": "exact", "value": "2010-10-02", "tests": [] }
train
verified-code-connected_pairs-implement
code
en
Original
CC0-1.0
verified-code-components
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement connected_pairs(n, edges) in Python. An undirected graph has vertices 0..n-1, n ≥ 0. Edge pairs can include duplicates and self-loops. Find its connected components and return the number of unordered pairs of distinct vertices in the same component.\nassert connected_...
{ "type": "code", "value": "", "tests": [ "assert connected_pairs(0, []) == 0", "assert connected_pairs(1, []) == 0", "assert connected_pairs(5, [(1, 0), (3, 2), (4, 3)]) == 4", "assert connected_pairs(6, [(0, 1), (3, 1), (3, 4), (2, 2)]) == 6", "assert connected_pairs(4, [(1, 0), (1, 0), (2, ...
train
reason2-ballot_points-009
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 U, M, C. Positions from best to worst earn 2, 1, 0 points. Ballot groups, written as count × ranking from best to worst: 2 × C>U>M; 5 × M>C>U; 8 × U>C>M; 6 × C>M>U. Which design earns the most points?\nBriefly justify your result, then put the answer alone o...
{ "type": "exact", "value": "C", "tests": [] }
train
reason2-light_piece-061
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали V, N, J, P, E, F, M, U, Z, C, K должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): Z+U+K+V+E > C+J+F+P+M; U+N+C+M+J < V+K+Z+F+P; P+V+N+M = F+E+Z+U; F+J+N = V+Z+P. Какая деталь л...
{ "type": "exact", "value": "C", "tests": [] }
train
algpy-3f670d71fadefd96-trace
code
ru
TheAlgorithms/Python
MIT
algpy-3f670d71fadefd96
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/largest_divisible_subset.py#largest_divisible_subset; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(items):\n items = sorted(items)\n number_of_items = len(items)\n memo = [1] * number_of_items\n hash_array = list(range(number_of_items))\n for i, item in enumerate(items):\n for prev_index in range(i):\n if (items[prev_in...
{ "type": "exact", "value": "[0, 0, 0]", "tests": [] }
train
algpy-7ba468630c595833-repair
code
en
TheAlgorithms/Python
MIT
algpy-7ba468630c595833
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/evil_number.py#is_evil_number; adapted exercises
[ { "role": "user", "content": "Repair this Python function. For nonnegative n, return True if its binary representation contains an even number of ones.\nFor is_evil_number(0) it should return True, but returns False. Keep the signature.\n```python\ndef is_evil_number(number):\n if not isinstance(number, ...
{ "type": "code", "value": "", "tests": [ "assert is_evil_number(0) == True", "assert is_evil_number(1) == False", "assert is_evil_number(2) == False", "assert is_evil_number(3) == True", "assert is_evil_number(4) == False", "assert is_evil_number(7) == False", "assert is_evil_number(8...
train
wiki-read-ru-3708827b83583dbdcf70
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-baa967bbee54e552defc20
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6566472159779122036-0 (Apache-2.0). Wikipedia contributors, “Сибсельмаш” (https://ru.wikipedia.org/wiki/%D0%A1%D0%B8%D0%B1%D1%81%D0%B5%D0%BB%D1%8C%D0%BC%D0%B0%D1%88), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New read...
[ { "role": "user", "content": "Сибсельмаш\n\nОАО «НПО „Сибсельмаш“» — крупнейшее машиностроительное предприятие региона по производству сельскохозяйственной техники и горно-шахтного оборудования. Также выпускало запорную арматуру и другое оборудование. Образовано в декабре 2003 года на базе одноимённого объе...
{ "type": "exact", "value": "крупнейшее машиностроительное предприятие региона по производству сельскохозяйственной техники и горно-шахтного оборудования", "tests": [] }
train
wiki-read-ru-24b9c7e60f2ab2d9246a
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-8543eb85f3a66d95b2707a
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5779704170414073345-3 (Apache-2.0). Wikipedia contributors, “Организация Объединённых Наций” (https://ru.wikipedia.org/wiki/%D0%9E%D1%80%D0%B3%D0%B0%D0%BD%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F_%D0%9E%D0%B1%D1%8A%D0%B5%D0%B4%D0%B8%D0%BD%D1%91%D0%BD%D0%BD%D1%8B%D1%85_%...
[ { "role": "user", "content": "Организация Объединённых Наций\n\nУстав ООН был утверждён на Сан-Францисской конференции, проходившей с апреля по июнь 1945 года, и подписан 26 представителями 50 государств. 15 октября 1945 года Польша также подписала Устав, вступив, таким образом, в число первоначальных члено...
{ "type": "exact", "value": "1945-10-15", "tests": [] }
train
math-verified-tickets-008
math
en
Original
CC0-1.0
math-verified-tickets
verified_math_tickets
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A group paid 2772 dollars for 49 tickets, including a single booking fee of 12 dollars for the entire order. Full-price tickets cost 60 dollars and reduced tickets cost 40. How many full-price tickets were in the order?\nGive the exact number on the last line; use a reduced fra...
{ "type": "number", "value": "40", "tests": [] }
train
wiki-read-en-70a14b3688d7d3d37b78
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-27656ffd5a01dc640a8f9d
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5346466219557278815-2 (Apache-2.0). Wikipedia contributors, “MP3” (https://en.wikipedia.org/wiki/MP3), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "MP3\n\nIn the aspects of MP3 pertaining to audio compression—the aspect of the standard most apparent to end-users (and for which is it best known)—MP3 uses lossy data-compression to encode data using inexact approximations and the partial discarding of data. This allows a larg...
{ "type": "exact", "value": "and for which is it best known", "tests": [] }
train
math-verified-tickets-014
math
en
Original
CC0-1.0
math-verified-tickets
verified_math_tickets
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A group paid 2773 dollars for 49 tickets, including a single booking fee of 8 dollars for the entire order. Full-price tickets cost 65 dollars and reduced tickets cost 35. How many full-price tickets were in the order?\nGive the exact number on the last line; use a reduced frac...
{ "type": "number", "value": "35", "tests": [] }
train
wiki-read-en-5619fc7cd1d386089b79
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d7dc3207679024587aa711
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1255973521209386576-0 (Apache-2.0). Wikipedia contributors, “Guillermo González Camarena” (https://en.wikipedia.org/wiki/Guillermo_Gonz%C3%A1lez_Camarena), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercis...
[ { "role": "user", "content": "Guillermo González Camarena\n\nGuillermo González Camarena (17 February 1917 – 18 April 1965), was a Mexican electrical engineer who was the inventor of a color-wheel type of color television, and who also introduced color television to Mexico.\n\nWhat parenthetical detail imme...
{ "type": "exact", "value": "17 February 1917 – 18 April 1965", "tests": [] }
train
wiki-read-en-f4f5ab6580f594c9cbc5
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-ad01a7ca75eeb4d75e6138
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-497348365179703129-4 (Apache-2.0). Wikipedia contributors, “Volition (company)” (https://en.wikipedia.org/wiki/Volition_(company)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Volition (company)\n\nVolition was the second most expensive THQ asset sold during the auction (after Relic Entertainment). The price was understood to be largely due to the success of games such as Saints Row: The Third, which by early 2012 had sold around 4 million copies. TH...
{ "type": "exact", "value": "after Relic Entertainment", "tests": [] }
train
wiki-read-ru-52c0b50628be50bce6a7
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-9e2c493ff89849cde345a8
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5383558859570659303-2 (Apache-2.0). Wikipedia contributors, “Меркурий” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B5%D1%80%D0%BA%D1%83%D1%80%D0%B8%D0%B9), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Меркурий\n\nМеркурий относится к планетам земной группы. По своим физическим характеристикам Меркурий напоминает Луну. У него нет естественных спутников, но есть очень разрежённая атмосфера. Планета обладает крупным железным ядром, являющимся источником магнитного поля, напряжё...
{ "type": "exact", "value": "83 %", "tests": [] }
train
wiki-read-en-7c9de349ac6cb17795c8
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-b3cab904ad7fd5acf7da7c
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6583231313235432910-0 (Apache-2.0). Wikipedia contributors, “Adam Vinatieri” (https://en.wikipedia.org/wiki/Adam_Vinatieri), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Adam Vinatieri\n\nAdam Matthew Vinatieri (born December 28, 1972) is an American football placekicker for the Indianapolis Colts of the National Football League (NFL). He has played in five Super Bowls: four with the New England Patriots and one with the Colts, winning with the...
{ "type": "exact", "value": "1972-12-28", "tests": [] }
train
wiki-read-ru-64bb0b62842d51412479
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-90aaf265a26a29e3820abe
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4234076453964115743-2 (Apache-2.0). Wikipedia contributors, “Великолепный часослов герцога Беррийского” (https://ru.wikipedia.org/wiki/%D0%92%D0%B5%D0%BB%D0%B8%D0%BA%D0%BE%D0%BB%D0%B5%D0%BF%D0%BD%D1%8B%D0%B9_%D1%87%D0%B0%D1%81%D0%BE%D1%81%D0%BB%D0%BE%D0%B2_%D0%B3%D0...
[ { "role": "user", "content": "Великолепный часослов герцога Беррийского\n\nМанускрипт, хранящийся ныне в Музее Конде в Шантийи, был переплетён в XVIII веке в красный сафьян, но его переплетали и ранее, по крайней мере однажды. Размер переплёта — 300 × 215 мм. Книжный блок состоит из 31 тетради размером 290 ...
{ "type": "exact", "value": "412 страниц", "tests": [] }
train
reason2-balanced_load-010
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: H=17, U=14, T=18, X=9, Z=7, C=8. Какой наименьшей разницы масс между тележками можно добиться?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ." }, { "rol...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-60d773f008a65441-repair
code
en
TheAlgorithms/Python
MIT
algpy-60d773f008a65441
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/disarium.py#is_disarium; adapted exercises
[ { "role": "user", "content": "Repair this Python function. Return True if the sum of each decimal digit of n raised to its one-based position from the left equals n; n is nonnegative.\nFor is_disarium(0) it should return True, but returns False. Keep the signature.\n```python\ndef is_disarium(num):\n dig...
{ "type": "code", "value": "", "tests": [ "assert is_disarium(0) == True", "assert is_disarium(1) == True", "assert is_disarium(2) == True", "assert is_disarium(3) == True", "assert is_disarium(4) == True", "assert is_disarium(7) == True", "assert is_disarium(8) == True", "assert i...
train
wiki-read-ru-c5f1d6dce8c7428b9ac7
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-45e2008f83e18d95450282
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6254652117968440466-0 (Apache-2.0). Wikipedia contributors, “Коломна” (https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BB%D0%BE%D0%BC%D0%BD%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Коломна\n\nКоло́мна — город в Московской области России. Является городом областного значения; вместе с упразднённым муниципальным районом с 21 апреля 2017 года входит в муниципальное образование Коломенский городской округ. Один из древнейших и красивейших городов Подмосковья,...
{ "type": "exact", "value": "город в Московской области России", "tests": [] }
train
wiki-read-ru-7e51588387616b3c1dc6
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-3bf56d089fc8a2a13f6099
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7906683633800095330-13 (Apache-2.0). Wikipedia contributors, “Ломоносов, Михаил Васильевич” (https://ru.wikipedia.org/wiki/%D0%9B%D0%BE%D0%BC%D0%BE%D0%BD%D0%BE%D1%81%D0%BE%D0%B2%2C_%D0%9C%D0%B8%D1%85%D0%B0%D0%B8%D0%BB_%D0%92%D0%B0%D1%81%D0%B8%D0%BB%D1%8C%D0%B5%D0%B...
[ { "role": "user", "content": "Ломоносов, Михаил Васильевич\n\nВ декабре 1730 года 19-летний Михаил отправляется вместе с рыбным караваном из Холмогор в Москву. Путешествие в Москву выглядело как бегство, поскольку будущий учёный покинул дом ночью, тайно, ни с кем не простившись. Долгое время его считали бег...
{ "type": "exact", "value": "две рубахи и тулуп", "tests": [] }
train
wiki-read-ru-46ad249ef1305471825a
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-e07e5b5cdd2c268f639d51
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-140136355234614509-0 (Apache-2.0). Wikipedia contributors, “Распад Югославии” (https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D1%81%D0%BF%D0%B0%D0%B4_%D0%AE%D0%B3%D0%BE%D1%81%D0%BB%D0%B0%D0%B2%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and ref...
[ { "role": "user", "content": "Распад Югославии\n\nРаспа́д Югосла́вии — обобщённое название событий 1991—2008 годов, в результате которых бывшая Социалистическая Федеративная Республика Югославия (СФРЮ) разделилась на шесть независимых стран и одно частично признанное государство. Процесс распада государства...
{ "type": "exact", "value": "обобщённое название событий 1991—2008 годов, в результате которых бывшая Социалистическая Федеративная Республика Югославия (СФРЮ) разделилась на шесть независимых стран и одно частично признанное государство", "tests": [] }
train
math-verified-binomial_divisibility-009
math
en
Original
CC0-1.0
math-verified-binomial_divisibility
verified_math_binomial_divisibility
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Choose 7 of 26 distinct items without regard to order. What is the greatest integer e ≥ 0 such that 12 to the power e divides the number of choices C(26,7)?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer." }, { "role": "assistant...
{ "type": "number", "value": "0", "tests": [] }
train
wiki-read-ru-e1688ea917178255c227
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-c770c5b9afde15fda4d566
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5829224462866244109-0 (Apache-2.0). Wikipedia contributors, “Масонство в России” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D1%81%D0%BE%D0%BD%D1%81%D1%82%D0%B2%D0%BE_%D0%B2_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitesp...
[ { "role": "user", "content": "Масонство в России\n\nМасонство в России — это масонские организации и масоны, которые находились и находятся в России с 1731 года по наши дни. Русское масонство преследовало гуманистические и просветительские цели, больше внимания уделяло этическим вопросам. Фактически оно пре...
{ "type": "exact", "value": "это масонские организации и масоны, которые находились и находятся в России с 1731 года по наши дни", "tests": [] }
train
wiki-read-ru-8a531439cbf871ce283a
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-0a33109c32f3bb2c23fff3
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6835566869178379794-0 (Apache-2.0). Wikipedia contributors, “Русский мост” (https://ru.wikipedia.org/wiki/%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9_%D0%BC%D0%BE%D1%81%D1%82), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. ...
[ { "role": "user", "content": "Русский мост\n\nРусский мост — вантовый мост во Владивостоке через пролив Босфор Восточный, соединяет полуостров Назимова с мысом Новосильского на острове Русском. Строительство было начато 3 сентября 2008 года в рамках программы подготовки города к проведению саммита АТЭС в 20...
{ "type": "exact", "value": "вантовый мост во Владивостоке через пролив Босфор Восточный, соединяет полуостров Назимова с мысом Новосильского на острове Русском", "tests": [] }
train
wiki-read-ru-5179a85fac3d0a3cc004
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-701b98ec807bc48fc38e31
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3104033841395797420-12 (Apache-2.0). Wikipedia contributors, “Нётер, Эмми” (https://ru.wikipedia.org/wiki/%D0%9D%D1%91%D1%82%D0%B5%D1%80%2C_%D0%AD%D0%BC%D0%BC%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New readi...
[ { "role": "user", "content": "Нётер, Эмми\n\nНётер с лёгкостью давалось изучение французского и английского языков. Весной 1900 года она сдала экзамен для преподавателей на знание этих языков и получила общую оценку «очень хорошо». Полученная Нётер квалификация давала ей возможность преподавать языки в школ...
{ "type": "exact", "value": "но она предпочла учиться дальше в университете Эрлангена", "tests": [] }
train
reason2-event_selection-007
reasoning
en
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "One photographer wants to cover as many entire demonstrations as possible. Their start and end times are W 2–7; D 12–16; U 17–25; P 7–14; J 3–8. Finishing one at the instant another starts is allowed. What is the maximum count?\nExplain in a few sentences and use the final line...
{ "type": "number", "value": "3", "tests": [] }
train
wiki-read-en-1116c74c06549467adb6
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-f323b46a8d3eb3df75d47e
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7740087150073341814-18 (Apache-2.0). Wikipedia contributors, “Electrical telegraph” (https://en.wikipedia.org/wiki/Electrical_telegraph), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Electrical telegraph\n\nSamuel Morse independently developed and patented a recording electric telegraph in 1837. Morse's assistant Alfred Vail developed an instrument that was called the register for recording the received messages. It embossed dots and dashes on a moving pape...
{ "type": "exact", "value": "44 miles", "tests": [] }
train
gsm-train-3799
math
en
GSM8K
MIT
gsm8k-dd3ec4e13ffc3fa0a47a
word_problem_6_steps
OpenAI (2021), GSM8K, original train row 3799
[ { "role": "user", "content": "John joins a country club with 3 other members of his family. The fee to join is $4000 per person. There is also a monthly cost of $1000 per person. John pays half the cost. How much does John pay for the first year?\nShow a short calculation. Put the final number alone on ...
{ "type": "number", "value": "32000", "tests": [] }
train
wiki-read-ru-632fab9970b81d0fc35e
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-06d1c1027872ab91e40449
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--1846104946505475884-3 (Apache-2.0). Wikipedia contributors, “Роснефть” (https://ru.wikipedia.org/wiki/%D0%A0%D0%BE%D1%81%D0%BD%D0%B5%D1%84%D1%82%D1%8C), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Роснефть\n\nВ 1991 году на базе расформированного Министерства нефтяной и газовой промышленности СССР была создана государственная нефтяная компания «Роснефтегаз». В 1993 году она была преобразована в государственное предприятие «Роснефть».\n\nКакие четырёхзначные календарные г...
{ "type": "exact", "value": "1991, 1993", "tests": [] }
train
algpy-86424f933c2a03ae-trace
code
ru
TheAlgorithms/Python
MIT
algpy-86424f933c2a03ae
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, sorts/pigeon_sort.py#pigeon_sort; adapted exercises
[ { "role": "user", "content": "```python\ndef pigeon_sort(array):\n if len(array) == 0:\n return array\n _min, _max = (min(array), max(array))\n holes_range = _max - _min + 1\n holes, holes_repeat = ([0] * holes_range, [0] * holes_range)\n for i in array:\n index = i - _min\n ...
{ "type": "exact", "value": "[0, 2, 2, 3, 5]", "tests": [] }
train
wiki-read-ru-40cf3b49e5c93a3ac6dc
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-bd200bbd2dd3986e93e27b
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5201968877650736130-1 (Apache-2.0). Wikipedia contributors, “Чемпионат мира по шахматам” (https://ru.wikipedia.org/wiki/%D0%A7%D0%B5%D0%BC%D0%BF%D0%B8%D0%BE%D0%BD%D0%B0%D1%82_%D0%BC%D0%B8%D1%80%D0%B0_%D0%BF%D0%BE_%D1%88%D0%B0%D1%85%D0%BC%D0%B0%D1%82%D0%B0%D0%BC), sn...
[ { "role": "user", "content": "Чемпионат мира по шахматам\n\nСчитается, что первый официальный чемпионат мира прошёл в 1886 году, когда состоялся матч между двумя ведущими игроками в Европе и Соединенных Штатах, Вильгельмом Стейницем и Иоганном Цукертортом. С 1886 по 1946 год действующий чемпион устанавливал...
{ "type": "exact", "value": "Гарри Каспаров", "tests": [] }
train
algpy-a5bfb009833061b9-trace
code
en
TheAlgorithms/Python
MIT
algpy-a5bfb009833061b9
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/rod_cutting.py#top_down_cut_rod; adapted exercises
[ { "role": "user", "content": "```python\ndef _enforce_args(n, prices):\n if n < 0:\n msg = f'n must be greater than or equal to 0. Got n = {n}'\n raise ValueError(msg)\n if n > len(prices):\n msg = f'Each integral piece of rod must have a corresponding price. Got n = {n} but lengt...
{ "type": "exact", "value": "30", "tests": [] }
train
reason2-connected_groups-029
reasoning
en
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Each code in C, Y, V, B, N, R, A, F, M initially has its own archive. Linking two codes merges their entire archives, including indirect links. The full list of existing links is M–Y, Y–N, N–C, F–Y, B–F, F–N, R–C, Y–R, C–B, B–R, C–F, F–R. One new link A–M is added. How many cod...
{ "type": "number", "value": "8", "tests": [] }
train
reason2-line_breaks-057
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 4, 6, 6, 3, 8, 8, 2, 4, 4. Предельная длина строки — 12. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПриведи ход решения в нескольких ф...
{ "type": "number", "value": "5", "tests": [] }
train
algpy-467c53eecfb0e7e8-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-467c53eecfb0e7e8
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/volume.py#vol_torus; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\nfrom math import pi\n\ndef compute(torus_radius, tube_radius):\n if torus_radius...
{ "type": "exact", "value": "B: 19.739209", "tests": [] }
train
wiki-read-ru-82cfc3a9bf75aab44515
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-c0589b26dd73f233d0b052
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3485752479626452734-0 (Apache-2.0). Wikipedia contributors, “Чемпионы мира по шахматам” (https://ru.wikipedia.org/wiki/%D0%A7%D0%B5%D0%BC%D0%BF%D0%B8%D0%BE%D0%BD%D1%8B_%D0%BC%D0%B8%D1%80%D0%B0_%D0%BF%D0%BE_%D1%88%D0%B0%D1%85%D0%BC%D0%B0%D1%82%D0%B0%D0%BC), snapshot...
[ { "role": "user", "content": "Чемпионы мира по шахматам\n\nПервым официальным чемпионом мира по шахматам стал Вильгельм Стейниц в 1886 году. С 1948 года организацией матчей за первенство мира стала заниматься Международная шахматная федерация (ФИДЕ).\n\nКакие четырёхзначные календарные годы упомянуты в отры...
{ "type": "exact", "value": "1886, 1948", "tests": [] }
train
wiki-read-en-9ac8536a4f7c617acaa6
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-14f15e84da32d84b39107e
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5450594619702972120-0 (Apache-2.0). Wikipedia contributors, “Clannad (visual novel)” (https://en.wikipedia.org/wiki/Clannad_(visual_novel)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Clannad (visual novel)\n\nClannad(クラナド,Kuranado) is a Japanese visual novel developed by Key and released on April 28, 2004 for Windows PCs. While both of Key's first two previous works, Kanon and Air, had been released first as adult games and then censored for the younger mar...
{ "type": "exact", "value": "2004-04-28", "tests": [] }
train
wiki-read-ru-c005d1148c32c80932ca
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-592ec8c93cac8e2b265685
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2436778830697604089-0 (Apache-2.0). Wikipedia contributors, “Список самых высоких зданий Сеула” (https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D1%81%D0%B0%D0%BC%D1%8B%D1%85_%D0%B2%D1%8B%D1%81%D0%BE%D0%BA%D0%B8%D1%85_%D0%B7%D0%B4%D0%B0%D0%BD%D0...
[ { "role": "user", "content": "Список самых высоких зданий Сеула\n\nЭто Список самых высоких зданий в Сеуле столице Южной Кореи. Самым высоким зданием в городе на данный момент является 123 этажный и 555 метровый (1,821 фута) Lotte World Tower.\n\nКакое пояснение в скобках автор поместил сразу после слов «эт...
{ "type": "exact", "value": "1,821 фута", "tests": [] }
train
algpy-134cf0581b01dd88-trace
code
ru
TheAlgorithms/Python
MIT
algpy-134cf0581b01dd88
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/abs.py#abs_min; adapted exercises
[ { "role": "user", "content": "```python\ndef abs_val(num):\n return -num if num < 0 else num\n\ndef compute(x):\n if len(x) == 0:\n raise ValueError('compute() arg is an empty sequence')\n j = x[0]\n for i in x:\n if abs_val(i) < abs_val(j):\n j = i\n return j\n```\nЧ...
{ "type": "exact", "value": "0", "tests": [] }
train
reason2-line_breaks-068
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 7, 4, 6, 2, 3, 3, 7, 2, 2, 7. Предельная длина строки — 10. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПокажи короткую проверку, а в к...
{ "type": "number", "value": "6", "tests": [] }
train
wiki-read-en-bcf524d6a244aadfa864
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-fc5123c71b8dd1676efe87
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1532920872121319799-0 (Apache-2.0). Wikipedia contributors, “2018 Rugby World Cup Sevens” (https://en.wikipedia.org/wiki/2018_Rugby_World_Cup_Sevens), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "2018 Rugby World Cup Sevens\n\nThe 2018 Rugby World Cup Sevens was the seventh edition of the Rugby World Cup Sevens. Organised by World Rugby, it was held at AT&T Park in San Francisco, United States. A total of 84 matches (52 men's and 32 women's) were played over three days ...
{ "type": "exact", "value": "52 men's and 32 women's", "tests": [] }
train
reason2-light_piece-063
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали T, E, U, P, Z, M, V, D должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): U+P+D > M+Z+V; M+V < Z+E; U+Z = V+P. Какая деталь легче?\nПокажи короткую проверку, а в конце на отдель...
{ "type": "exact", "value": "M", "tests": [] }
train
wiki-read-ru-0865a600d44d396766cb
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-b0a4da62ea0733c1baf0eb
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3054321339121643213-0 (Apache-2.0). Wikipedia contributors, “Суварнабхуми” (https://ru.wikipedia.org/wiki/%D0%A1%D1%83%D0%B2%D0%B0%D1%80%D0%BD%D0%B0%D0%B1%D1%85%D1%83%D0%BC%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normali...
[ { "role": "user", "content": "Суварнабхуми\n\nСуварнабхуми (произносится как Суанапхум или Суваннапум) (Thai: สุวรรณภูมิ — «Золотая земля», English: Suvarnabhumi, SBIA) — Новый международный аэропорт Бангкока, крупнейший аэропорт Таиланда, один из крупнейших авиаузлов в Юго-Восточной Азии. Начал эксплуатиро...
{ "type": "exact", "value": "2006-09-28", "tests": [] }
train
algpy-2fa41652cb72e93d-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-2fa41652cb72e93d
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/decimal_to_binary.py#decimal_to_binary_recursive_helper; 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(decimal):\n decimal = int(decimal)\n if decimal in (0, 1):\n retur...
{ "type": "exact", "value": "B: '1111101000'", "tests": [] }
train
wiki-read-en-3ab6b431aa99de12258e
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-04a3402085dc18b84e4a84
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--558114201266160247-1 (Apache-2.0). Wikipedia contributors, “PAH world hypothesis” (https://en.wikipedia.org/wiki/PAH_world_hypothesis), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "PAH world hypothesis\n\nThe Miller–Urey experiment in 1952, and others since, demonstrated the synthesis of organic compounds, such as amino acids, formaldehyde and sugars, from the original inorganic precursors the researchers presumed to have been present in the primordial so...
{ "type": "exact", "value": "1952, 1961", "tests": [] }
train
algpy-97ac85f558fc612a-trace
code
ru
TheAlgorithms/Python
MIT
algpy-97ac85f558fc612a
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, greedy_methods/optimal_merge_pattern.py#optimal_merge_pattern; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(files):\n optimal_merge_cost = 0\n while len(files) > 1:\n temp = 0\n for _ in range(2):\n min_index = files.index(min(files))\n temp += files[min_index]\n files.pop(min_index)\n files.append(tem...
{ "type": "exact", "value": "205", "tests": [] }
train
wiki-read-ru-1cee12459f2f9932b113
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-d5a9565735a136a7df8b88
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7044235327314507789-56 (Apache-2.0). Wikipedia contributors, “Коммунистическая партия Советского Союза” (https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BC%D0%BC%D1%83%D0%BD%D0%B8%D1%81%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%BF%D0%B0%D1%80%D1%82%D0%B8%D1...
[ { "role": "user", "content": "Коммунистическая партия Советского Союза\n\n26 марта 1993 года был в Москве проведён XXIX съезд КПСС, на котором было решено преобразовать партию в Союз коммунистических партий — Коммунистическая партия Советского Союза, российской секцией которой стала Коммунистическая партия ...
{ "type": "exact", "value": "воссозданная КП РСФСР", "tests": [] }
train
reason2-line_breaks-037
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 6, 7, 9, 2, 3, 5, 5, 4, 8, 6. Предельная длина строки — 19. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПриведи ход решения в нескольки...
{ "type": "number", "value": "4", "tests": [] }
train
algpy-f9d05ae54c8cfb48-trace
code
ru
TheAlgorithms/Python
MIT
algpy-f9d05ae54c8cfb48
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/highest_response_ratio_next.py#calculate_waiting_time; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(process_name, turn_around_time, burst_time, no_of_process):\n waiting_time = [0] * no_of_process\n for i in range(no_of_process):\n waiting_time[i] = turn_around_time[i] - burst_time[i]\n return waiting_time\n```\nЧто вернёт выражение comp...
{ "type": "exact", "value": "[0, 0, 1]", "tests": [] }
train
wiki-read-ru-1ccdb9a5c57e04520a34
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-fb0ecf0c41619cfaaf6287
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3668211550405249717-4 (Apache-2.0). Wikipedia contributors, “Саддам Хусейн” (https://ru.wikipedia.org/wiki/%D0%A1%D0%B0%D0%B4%D0%B4%D0%B0%D0%BC_%D0%A5%D1%83%D1%81%D0%B5%D0%B9%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norma...
[ { "role": "user", "content": "Саддам Хусейн\n\nСаддам Хусейн родился 28 апреля 1937 года в селении Аль-Ауджа в 13 км от иракского города Тикрит, в семье безземельного крестьянина. Его мать, Сабха Тулфан аль-Муссалат (Сабха Тульфах или Субха), назвала новорождённого «Саддам» (в одном из значений по-арабски э...
{ "type": "exact", "value": "13 км", "tests": [] }
train
wiki-read-en-ec2ae85d8d7549f17a86
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-8e923bfc2b2346c64c0820
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7604987917312420510-1 (Apache-2.0). Wikipedia contributors, “Magnetic field” (https://en.wikipedia.org/wiki/Magnetic_field), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Magnetic field\n\nA magnetic field is a vector field that describes the magnetic influence of electrical currents and magnetized materials. In everyday life, the effects of magnetic fields are often seen in permanent magnets, which pull on magnetic materials (such as iron) and ...
{ "type": "exact", "value": "a vector field that describes the magnetic influence of electrical currents and magnetized materials", "tests": [] }
train
reason2-motif_growth-021
reasoning
ru
Original
CC0-1.0
reason2-motif_growth
workshop_motif_growth
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Начальный орнамент HY. За проход каждый исходный символ одновременно заменяют по правилам Y→TH; H→YH; T→YYT; новые символы в том же проходе не заменяются. Сколько символов Y будет после 3 проходов?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ." }, { ...
{ "type": "number", "value": "7", "tests": [] }
train
wiki-read-ru-26eebf3e16457ac29360
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-8d3de0b259ca5eb3fcde34
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2771751072230673405-0 (Apache-2.0). Wikipedia contributors, “Снейк” (https://ru.wikipedia.org/wiki/%D0%A1%D0%BD%D0%B5%D0%B9%D0%BA), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Снейк\n\nСнейк (English: Snake River) — река на северо-западе США, крупнейший приток реки Колумбия. Её длина составляет около 1735 км. Площадь бассейна — 278 450 км². Берёт начало на западе штата Вайоминг, на территории национального парка Йеллоустон, и протекает через плато Сн...
{ "type": "exact", "value": "1735 км", "tests": [] }
train
reason2-ballot_points-008
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты N, S, P. Баллы за места, начиная с первого: 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 6 × N>S>P; 2 × P>N>S; 9 × S>N>P; 9 × P>S>N; 6 × N>P>S. У какого макета больше всего баллов?\nПокажи короткую проверку, а в ...
{ "type": "exact", "value": "N", "tests": [] }
train
math-verified-conditional_draw-017
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, синих — 6, жёлтых — 1. Два жетона выбирают равновероятно без возвращения. Известно, что среди них есть хотя бы один красный. Какова при этом вероятность, что выбраны ровно один красный и один синий жетон?\nЗапиши точное число в последней строке; нец...
{ "type": "number", "value": "6/11", "tests": [] }
train