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-2fa41652cb72e93d-trace
code
en
TheAlgorithms/Python
MIT
algpy-2fa41652cb72e93d
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/decimal_to_binary.py#decimal_to_binary_recursive_helper; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(decimal):\n decimal = int(decimal)\n if decimal in (0, 1):\n return str(decimal)\n div, mod = divmod(decimal, 2)\n return compute(div) + str(mod)\n```\nWhat does compute('72') return? Give the Python repr of the value." }, { "ro...
{ "type": "exact", "value": "'1001000'", "tests": [] }
train
wiki-read-en-b81f6da176d774cfa319
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-30c5d361500230bdd98408
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8206799422787973715-33 (Apache-2.0). Wikipedia contributors, “History of New Brunswick” (https://en.wikipedia.org/wiki/History_of_New_Brunswick), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "History of New Brunswick\n\nThe British administrators of the time, for their part, felt that the colonial capital (Halifax) was too distant from the developing territories to the west of the Isthmus of Chignecto to allow for proper governance and that the colony of Nova Scotia...
{ "type": "exact", "value": "1784-08-16", "tests": [] }
train
reason2-pareto-040
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): A (22, 65); F (3, 40); J (6, 30); N (18, 61); Y (17, 41); K (13, 22); V (14, 58). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nПривед...
{ "type": "exact", "value": "F J K", "tests": [] }
train
math-verified-departures-014
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 6 and repeats every 12 minutes. Line B first departs at minute 2 and repeats every 20 minutes. What is the earliest simultaneous departure at or after minute 161?\nGive the exact number on the last li...
{ "type": "number", "value": "162", "tests": [] }
train
wiki-read-en-00752affbed98bf6ec3e
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-f88a76f507bf783ecdaad9
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1690818795501768266-0 (Apache-2.0). Wikipedia contributors, “Mildred Hubble” (https://en.wikipedia.org/wiki/Mildred_Hubble), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Mildred Hubble\n\nMildred Hubble is a major character in The Worst Witch children's book series by Jill Murphy. She is the protagonist in all the books. She is friends with Maud Spellbody and Enid Nightshade and has a strong rivalry with Ethel Hallow and Drusilla Paddock.\n\nHo...
{ "type": "exact", "value": "a major character in The Worst Witch children's book series by Jill Murphy", "tests": [] }
train
algpy-fc81c6f5d1c45e39-implement
code
en
TheAlgorithms/Python
MIT
algpy-fc81c6f5d1c45e39
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/find_triplets_with_0_sum.py#find_triplets_with_0_sum_two_pointers; 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_two_pointers([0]) == []", "assert find_triplets_with_0_sum_two_pointers([1]) == []", "assert find_triplets_with_0_sum_two_pointers([-3]) == []", "assert find_triplets_with_0_sum_two_pointers([1, 1, 1]) == []", "assert f...
train
algpy-e57825ab8ff39c2d-implement
code
en
TheAlgorithms/Python
MIT
algpy-e57825ab8ff39c2d
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/endianness.py#swap_endianness_16; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Reverse the order of the 2 bytes of an unsigned 16-bit integer. Return the resulting unsigned integer.\nSignature: def swap_endianness_16(value):\nExamples:\n```python\nassert swap_endianness_16(0) == 0\nassert swap_endianness_16(1) == 256\n```" ...
{ "type": "code", "value": "", "tests": [ "assert swap_endianness_16(255) == 65280", "assert swap_endianness_16(256) == 1", "assert swap_endianness_16(257) == 257", "assert swap_endianness_16(4096) == 16", "assert swap_endianness_16(65535) == 65535" ] }
train
algpy-165759ba1c1a34d1-trace
code
en
TheAlgorithms/Python
MIT
algpy-165759ba1c1a34d1
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#lateral_surface_cone; adapted exercises
[ { "role": "user", "content": "```python\nfrom math import pi\n\ndef compute(radius, height):\n if radius < 0 or height < 0:\n raise ValueError('compute() only accepts non-negative values')\n return pi * radius * (height ** 2 + radius ** 2) ** 0.5\n```\nWhat does round(compute(10, 20), 6) return...
{ "type": "exact", "value": "702.481473", "tests": [] }
train
reason2-connected_groups-044
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка J, D, E, L, H, F, X, M свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: F–L, D–X, H–L, M–X, E–J. Добавляют связь E–X. Сколько кодов будет в образовавшемся архиве?\nПокажи ...
{ "type": "number", "value": "5", "tests": [] }
train
wiki-read-en-218aedbb771aa0e991f8
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d70d4229ceab35fd85ce02
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8969634799859903862-0 (Apache-2.0). Wikipedia contributors, “Piano sonatas (Beethoven)” (https://en.wikipedia.org/wiki/Piano_sonatas_(Beethoven)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Piano sonatas (Beethoven)\n\nLudwig van Beethoven wrote his 32 piano sonatas between 1795 and 1822. Although originally not intended to be a meaningful whole, as a set they compose one of the most important collections of works in the history of music. Hans von Bülow called the...
{ "type": "exact", "value": "Johann Sebastian Bach's The Well-Tempered Clavier being \"The Old Testament\"", "tests": [] }
train
wiki-read-ru-b941530a19ccc6b44d7e
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-55fcf60d88ce453e0a0e38
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6106511348434139179-1 (Apache-2.0). Wikipedia contributors, “Дуров, Павел Валерьевич” (https://ru.wikipedia.org/wiki/%D0%94%D1%83%D1%80%D0%BE%D0%B2%2C_%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB_%D0%92%D0%B0%D0%BB%D0%B5%D1%80%D1%8C%D0%B5%D0%B2%D0%B8%D1%87), snapshot 2019-02-01 ...
[ { "role": "user", "content": "Дуров, Павел Валерьевич\n\nВ 2001 году с отличием окончил Академическую гимназию, в 2006 — филологический факультет Санкт-Петербургского государственного университета по специальности «Английская филология и перевод» с красным дипломом (который до сих пор не забрал). Сразу по о...
{ "type": "exact", "value": "который до сих пор не забрал", "tests": [] }
train
algpy-b717c424aa385eff-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-b717c424aa385eff
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/kaprekar_number.py#is_kaprekar; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(number):\n if not isinstance(number, int):\n msg = f'Input va...
{ "type": "exact", "value": "A: True", "tests": [] }
train
math-verified-break_even-024
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 стоит 14 руб. в месяц плюс 11 руб. за каждую страницу. Абонентская плата по тарифу B — 120 руб. в месяц за пакет объёмом 7 стр. Каждая страница сверх пакета стоит 8 руб. При каком наименьшем целом числе страниц за месяц B обойдётся с...
{ "type": "number", "value": "17", "tests": [] }
train
reason2-balanced_load-037
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: D=25, U=4, C=23, N=20, G=6, M=17, E=21. Какой наименьшей разницы масс между тележками можно добиться?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ." }, { "role": "ass...
{ "type": "number", "value": "0", "tests": [] }
train
wiki-read-ru-2bf215504bc2c54e1838
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-a6d577dbbca9bae5fc7860
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5275673281067941779-3 (Apache-2.0). Wikipedia contributors, “Ирландия” (https://ru.wikipedia.org/wiki/%D0%98%D1%80%D0%BB%D0%B0%D0%BD%D0%B4%D0%B8%D1%8F), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Ирландия\n\n4 статья Конституции Ирландии (принятой в 1937 году) гласит: «название государства — Éire, или, по-английски, Ireland». В 1947 году было принято название Republic of Ireland как описание государства (Description of the State); названием же его по-прежнему осталось п...
{ "type": "exact", "value": "1937, 1947, 1998", "tests": [] }
train
reason2-editing_history-037
reasoning
ru
Original
CC0-1.0
reason2-editing_history
workshop_editing_history
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В редакторе поле сначала содержит Z. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать J; записать W; отме...
{ "type": "exact", "value": "H", "tests": [] }
train
reason2-assembly_units-006
reasoning
ru
Original
CC0-1.0
reason2-assembly_units
workshop_assembly_units
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для сборки используются спецификации (правая часть — состав одной единицы): U = 4×B + 4×D; B = 3×W + 6×G; D = 1×W + 1×G. Заказ включает изделия U в количестве 6 и отдельно узлы B в количестве 7. Сколько отдельных деталей G потребуется?\nПокажи короткую проверку, а в конце на от...
{ "type": "number", "value": "210", "tests": [] }
train
wiki-read-ru-9bd5099ddf8a794bc932
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-c898b4f5f217da9074e68b
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-308149156421763932-1 (Apache-2.0). Wikipedia contributors, “Зачарованные” (https://ru.wikipedia.org/wiki/%D0%97%D0%B0%D1%87%D0%B0%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normaliz...
[ { "role": "user", "content": "Зачарованные\n\nСериал стал довольно успешным. Первая его серия собрала у экранов 7,7 миллионов телезрителей, что до выхода сериала Тайны Смолвиля, первая серия которого вышла на том же канале в 2001 году и собрала у экранов 8,4 миллиона телезрителей, было своего рода рекордом ...
{ "type": "exact", "value": "2006-05-21", "tests": [] }
train
reason2-pareto-047
reasoning
en
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Poster printing options are listed as (days, price): U (14, 64); D (23, 39); Y (4, 51); H (3, 67); L (10, 74); G (26, 38); Z (13, 34); F (16, 22). Discard any option if another is both faster and cheaper. Give the surviving codes alphabetically, separated by spaces.\nShow a sho...
{ "type": "exact", "value": "F H Y Z", "tests": [] }
train
wiki-read-en-b8c8bae2a3e16b80426c
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d6cc631402c18771632272
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--2922602029552719336-2 (Apache-2.0). Wikipedia contributors, “Athletic Bilbao” (https://en.wikipedia.org/wiki/Athletic_Bilbao), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Athletic Bilbao\n\nThe club is one of three founding members of the Primera División that have never been relegated from the top division since its inception in 1929, the others being Real Madrid and Barcelona. Athletic have won La Liga on eight occasions, fourth most in the hi...
{ "type": "exact", "value": "which has won five championships in the Primera División Femenina", "tests": [] }
train
algpy-52ed06964d0774c6-trace
code
ru
TheAlgorithms/Python
MIT
algpy-52ed06964d0774c6
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/stacks/stock_span_problem.py#calculate_span; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(price):\n n = len(price)\n s = [0] * n\n st = []\n st.append(0)\n s[0] = 1\n for i in range(1, n):\n while len(st) > 0 and price[st[-1]] <= price[i]:\n st.pop()\n s[i] = i + 1 if len(st) <= 0 else i - st[-1]\n ...
{ "type": "exact", "value": "[1, 1, 1, 1, 1]", "tests": [] }
train
algpy-2afda71fcfd838dd-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-2afda71fcfd838dd
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/binary_and_operator.py#binary_and; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(a, b):\n if not isinstance(a, int) or not isinstance(b, int):\n ...
{ "type": "exact", "value": "A: '0b000000'", "tests": [] }
train
reason2-missing_cells-002
reasoning
ru
Original
CC0-1.0
reason2-missing_cells
workshop_missing_cells
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В таблице учёта столбцы идут в порядке U, W, T. После вертикальной черты указан итог строки. Строки: R6: 12 / 3 / 2 | 17; R3: 5 / 11 / 6 | 22; R9: 4 / 14 / ? | 21; R8: 10 / 6 / 6 | 22; R10: ? / 7 / ? | 26. Итоги столбцов: U=39, W=41, T=28. Какое число скрыто в строке R10, столб...
{ "type": "number", "value": "11", "tests": [] }
train
verified-code-route_count-repair
code
ru
Original
CC0-1.0
verified-code-grid_walks
verified_repair
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Исправь одну строку. route_count([[1, 2], [4, 0]]) даёт 0, ожидается 2. Непустая прямоугольная таблица содержит целые стоимости либо None (закрытая клетка). Из верхней левой клетки разрешены шаги только вправо и вниз до нижней правой, включая обе конечные клетки. Верни число пу...
{ "type": "code", "value": "", "tests": [ "assert route_count([[None]]) == 0", "assert route_count([[0]]) == 1", "assert route_count([[1, None], [4, 2]]) == 1", "assert route_count([[0, -3, 6], [1, None, 2], [3, 0, -1]]) == 2", "assert route_count([[1, None, 3], [None, 2, 0]]) == 0", "asse...
train
wiki-read-ru-79219cda45572213210e
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-6c999068102a03ef881030
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--477274190422514459-0 (Apache-2.0). Wikipedia contributors, “Борис Акунин” (https://ru.wikipedia.org/wiki/%D0%91%D0%BE%D1%80%D0%B8%D1%81_%D0%90%D0%BA%D1%83%D0%BD%D0%B8%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. ...
[ { "role": "user", "content": "Борис Акунин\n\nБори́с Аку́нин (настоящее имя Григо́рий Ша́лвович Чхартишви́ли, Georgian:გრიგორი შალვას ძე ჩხარტიშვილი; род. 20 мая 1956 года, Зестафони, Грузинская ССР, СССР) — русский писатель, учёный-японист, литературовед, переводчик, общественный деятель. Также публиковалс...
{ "type": "exact", "value": "1956-05-20", "tests": [] }
train
reason2-balanced_load-012
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: S=15, M=11, K=18, J=17, D=13, N=14. Какой наименьшей разницы масс между тележками можно добиться?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "assistant", ...
{ "type": "number", "value": "0", "tests": [] }
train
reason2-ballot_points-048
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты S, R, G. Баллы за места, начиная с первого: 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 3 × R>G>S; 2 × S>G>R; 4 × S>R>G; 5 × G>R>S; 6 × G>S>R. У какого макета больше всего баллов?\nПриведи ход решения в нескольк...
{ "type": "exact", "value": "G", "tests": [] }
train
algpy-fde5363caa668606-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-fde5363caa668606
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/numbers_different_signs.py#different_signs; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(num1, num2):\n return num1 ^ num2 < 0\n```\n```python\n# A\nassert c...
{ "type": "exact", "value": "A: True", "tests": [] }
train
algpy-c51be3854676aed1-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-c51be3854676aed1
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/harshad_numbers.py#is_harshad_number_in_base; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `return False` заменяют на `return True`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef int_to_base(number, base):\n if base < 2 or base > 36:\n raise V...
{ "type": "exact", "value": "A", "tests": [] }
train
algpy-fd5763ec42bfdaa0-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-fd5763ec42bfdaa0
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/missing_number.py#find_missing_number; 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(nums):\n low = min(nums)\n high = max(nums)\n missing_number = high\n ...
{ "type": "exact", "value": "A: 2", "tests": [] }
train
wiki-read-en-d180ba7a031c0dcec7a9
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-eb109477ba29675ea52815
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6077580469407086051-28 (Apache-2.0). Wikipedia contributors, “Perth” (https://en.wikipedia.org/wiki/Perth), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Perth\n\nPerth is Australia's fourth-most-populous city, having overtaken Adelaide's population in 1984. In June 2017 there were an estimated 2,022,044 residents in the Greater Perth area, representing a population increase of approximately 1.0% from the 2015 estimated populati...
{ "type": "exact", "value": "1.0%", "tests": [] }
train
wiki-read-en-d46600f8399a35c9beca
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-4c1558ccb624d56925b166
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4931283081476894219-0 (Apache-2.0). Wikipedia contributors, “Ramsay Street” (https://en.wikipedia.org/wiki/Ramsay_Street), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Ramsay Street\n\nRamsay Street is the fictional cul-de-sac in which the characters of the Australian soap opera Neighbours live. The street is set in the equally fictional Melbourne suburb of Erinsborough. Neighbours storylines primarily centre on the residents of the Street, w...
{ "type": "exact", "value": "the fictional cul-de-sac in which the characters of the Australian soap opera Neighbours live", "tests": [] }
train
algpy-5fcea831928d2a6c-repair
code
en
TheAlgorithms/Python
MIT
algpy-5fcea831928d2a6c
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/binary_search.py#bisect_right; adapted exercises
[ { "role": "user", "content": "Repair this Python function. Given a sorted integer list and a target, return the insertion index after any equal values. It may equal the list length. Calls use the entire list with the default lo and hi bounds.\nFor bisect_right([1], 1) it should return 1, but returns 0. Keep...
{ "type": "code", "value": "", "tests": [ "assert bisect_right([], 1) == 0", "assert bisect_right([1], 1) == 1", "assert bisect_right([1, 1, 2, 5], 1) == 2", "assert bisect_right([1, 1, 2, 5], 3) == 3", "assert bisect_right([0, 2, 4, 4], 7) == 4", "assert bisect_right([1, 4, 4], 0) == 0" ...
train
algpy-e54734cd6e6f060d-trace
code
en
TheAlgorithms/Python
MIT
algpy-e54734cd6e6f060d
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/power_using_recursion.py#power; adapted exercises
[ { "role": "user", "content": "```python\ndef power(base, exponent):\n return base * power(base, exponent - 1) if exponent else 1\n```\nWhat does power('a', 1) return? Give the Python repr of the value." }, { "role": "assistant", "content": "'a'" } ]
{ "type": "exact", "value": "'a'", "tests": [] }
train
wiki-read-en-f95165391804b0e76be3
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-a6247ede3b9c1c797dc4a7
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7860606253848705553-0 (Apache-2.0). Wikipedia contributors, “Cullinan Diamond” (https://en.wikipedia.org/wiki/Cullinan_Diamond), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Cullinan Diamond\n\nThe Cullinan Diamond is the largest gem-quality rough diamond ever found, weighing 3,106.75 carats (621.35g), discovered at the Premier No. 2 mine in Cullinan, South Africa, on 26 January 1905. It was named after Thomas Cullinan, the mine's chairman.\n\nFind...
{ "type": "exact", "value": "1905-01-26", "tests": [] }
train
wiki-read-en-6c0ae07a5ca4e19aa298
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-83c2323df4ba014ecc0842
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3211778415932478788-1 (Apache-2.0). Wikipedia contributors, “Ethnography” (https://en.wikipedia.org/wiki/Ethnography), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Ethnography\n\nEthnography (from Greek ἔθνος ethnos \"folk, people, nation\" and γράφω grapho \"I write\") is the systematic study of people and cultures. It is designed to explore cultural phenomena where the researcher observes society from the point of view of the subject of...
{ "type": "exact", "value": "which partly depends on whether it is used as a count noun or uncountable", "tests": [] }
train
gsm-train-3048
math
en
GSM8K
MIT
gsm8k-07cffbe419242b83dbaf
word_problem_3_steps
OpenAI (2021), GSM8K, original train row 3048
[ { "role": "user", "content": "A play was held in an auditorium and its ticket costs $10. An auditorium has 20 rows and each row has 10 seats. If only 3/4 of the seats were sold, how much was earned from the play?\nShow a short calculation. Put the final number alone on the last line." }, { "role": "...
{ "type": "number", "value": "1500", "tests": [] }
train
reason2-balanced_load-058
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: Y=110, B=60, G=95, P=100, J=40, K=120, Z=25, D=125. Какой наименьшей разницы масс между тележками можно добиться?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role"...
{ "type": "number", "value": "5", "tests": [] }
train
gsm-train-3783
math
en
GSM8K
MIT
gsm8k-e7434b6f2d7e4cee131f
word_problem_3_steps
OpenAI (2021), GSM8K, original train row 3783
[ { "role": "user", "content": "Simon collected treasures on the beach during his summer vacation. He collected a bucket of pearly seashells, a jar full of smooth sea glass, and a bag of ten sand dollars. If the jar holds three times as many pieces of glass as the bag does sand dollars, and the bucket holds f...
{ "type": "number", "value": "190", "tests": [] }
train
algpy-0cc14dc97af7758e-repair
code
en
TheAlgorithms/Python
MIT
algpy-0cc14dc97af7758e
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/automorphic_number.py#is_automorphic_number; adapted exercises
[ { "role": "user", "content": "Repair this Python function. For nonnegative n, return True when the decimal representation of n*n ends with every digit of n.\nFor is_automorphic_number(0) it should return True, but returns False. Keep the signature.\n```python\ndef is_automorphic_number(number):\n if not ...
{ "type": "code", "value": "", "tests": [ "assert is_automorphic_number(0) == True", "assert is_automorphic_number(1) == True", "assert is_automorphic_number(2) == False", "assert is_automorphic_number(3) == False", "assert is_automorphic_number(4) == False", "assert is_automorphic_number(...
train
reason2-join_catalogs-042
reasoning
ru
Original
CC0-1.0
reason2-join_catalogs
workshop_join_catalogs
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Каталог связывает код книги с полкой: B50=S9, B72=S6, B91=S6, B16=S4, B76=S4. Соответствие полок и залов: S4=M, S9=R, S6=N. Число выданных экземпляров по коду книги: B91=16, B50=5, B76=7, B72=9, B16=15. В каком зале больше всего выдач?\nКратко обоснуй ответ и запиши сам ответ н...
{ "type": "exact", "value": "N", "tests": [] }
train
wiki-read-ru-206b14b72b41475e7c8a
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-12cdb18bebfbd617399b2d
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6769506150810361027-1 (Apache-2.0). Wikipedia contributors, “Мыльная опера” (https://ru.wikipedia.org/wiki/%D0%9C%D1%8B%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norma...
[ { "role": "user", "content": "Мыльная опера\n\nТермин «мыльная опера» был придуман в американской прессе в 1930-х годах для обозначения чрезвычайно популярного жанра последовательных драматических программ на радио, количество которых к 1940 году равнялось 90 % от общего количества дневного коммерческого эф...
{ "type": "exact", "value": "90 %", "tests": [] }
train
algpy-2afda71fcfd838dd-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-2afda71fcfd838dd
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/binary_and_operator.py#binary_and; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `max_len = max(a.bit_length(), b.bit_length())` заменяют на `max_len = min(a.bit_length(), b.bit_length())`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute...
{ "type": "exact", "value": "A", "tests": [] }
train
verified-code-distant_nodes-repair
code
ru
Original
CC0-1.0
verified-code-hops
verified_repair
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Исправь одну строку. distant_nodes(5, [(1, 0), (0, 2), (2, 3), (3, 2)], 2) даёт [3], ожидается []. Вершины ориентированного графа пронумерованы от 0 до n−1, n ≥ 1. В списке edges указаны пары (откуда, куда), k ≥ 0. Верни по возрастанию только достижимые из 0 вершины, кратчайшее...
{ "type": "code", "value": "", "tests": [ "assert distant_nodes(1, [], 0) == []", "assert distant_nodes(4, [(0, 1), (1, 2)], 1) == [2]", "assert distant_nodes(6, [(0, 3), (0, 1), (1, 2), (2, 3), (3, 4)], 1) == [2, 4]", "assert distant_nodes(3, [], 8) == []", "assert distant_nodes(3, [(0, 0), (...
train
wiki-read-ru-e2b9ae57e4d83ccf5502
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-f1a9b24f9654bc741748e9
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7892633440123170574-4 (Apache-2.0). Wikipedia contributors, “Российский рубль” (https://ru.wikipedia.org/wiki/%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D1%80%D1%83%D0%B1%D0%BB%D1%8C), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and re...
[ { "role": "user", "content": "Российский рубль\n\nРубль — старейшая в мире национальная валюта после британского фунта. Денежные единицы других государств неоднократно меняли названия. На территории России рубль используется с XIII века.\n\nКак в начале отрывка определяется «Рубль»? Выпиши всю часть первого...
{ "type": "exact", "value": "старейшая в мире национальная валюта после британского фунта", "tests": [] }
train
reason2-event_selection-001
reasoning
ru
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: A 2–4; E 7–13; G 5–7; R 12–19; B 13–18; H 10–13; C 8–13; U 4–11. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПокажи короткую проверку,...
{ "type": "number", "value": "4", "tests": [] }
train
wiki-read-en-bf2a84ba005f5a8fcdf5
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-09affaab137cb486403f42
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8287993248363819757-0 (Apache-2.0). Wikipedia contributors, “Bath, Somerset” (https://en.wikipedia.org/wiki/Bath%2C_Somerset), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Bath, Somerset\n\nBath is the largest city in the ceremonial county of Somerset, England, known for its Roman-built baths. In 2011, the population was 88,859. Bath is in the valley of the River Avon, 97 miles (156km) west of London and 11 miles (18km) south-east of Bristol. The...
{ "type": "exact", "value": "1987, 2011", "tests": [] }
train
wiki-read-ru-c3530d540686ade76020
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-06db5c2bf823f0be12a717
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8622044504020063831-1 (Apache-2.0). Wikipedia contributors, “Герб Сирии” (https://ru.wikipedia.org/wiki/%D0%93%D0%B5%D1%80%D0%B1_%D0%A1%D0%B8%D1%80%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading ex...
[ { "role": "user", "content": "Герб Сирии\n\nГерб Сирии представляет собой золотого «ястреба курайшитов», смотрящего влево, имеющего на груди щиток цветов государственного флага — красная, белая и чёрная вертикальные полосы с двумя зелёными пятиконечными звездами посередине. В лапах ястреб держит зелёный сви...
{ "type": "exact", "value": "аль-Джумхури́йя аль-Араби́йя ас-Сури́йя", "tests": [] }
train
wiki-read-ru-c562d0c203f4ad74c380
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-654fcfcff9810e2c0c6a6e
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3111844561895010852-12 (Apache-2.0). Wikipedia contributors, “Географический атлас” (https://ru.wikipedia.org/wiki/%D0%93%D0%B5%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%B0%D1%82%D0%BB%D0%B0%D1%81), snapshot 2019-02-01 (CC-BY-SA-3....
[ { "role": "user", "content": "Географический атлас\n\nПервые атласы не носили такового имени до атласа 1595 года от Герарда Меркатора. Первой книгой, которая может быть названа атласом, является атлас, который был составлен Клавдием Птолемеем, географом из Александрии, примерно в 150 году нашей эры. Первое ...
{ "type": "exact", "value": "Italian, Assembled to Order — итальянское собрание карт", "tests": [] }
train
wiki-read-en-8a4f78f7dc7e93721425
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-0d1525c5d963d9530b0136
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1330125265319419030-5 (Apache-2.0). Wikipedia contributors, “Safety pin” (https://en.wikipedia.org/wiki/Safety_pin), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Safety pin\n\nAfter being issued U.S. patent #6,281 on April 10, 1849, Hunt sold the patent to W. R. Grace and Company for $400 (roughly $12,000 in 2018 dollars). Using that money, Hunt then paid the $15 owed to a friend and kept the remaining amount of $385 for himself. What H...
{ "type": "exact", "value": "roughly $12,000 in 2018 dollars", "tests": [] }
train
reason2-event_selection-004
reasoning
ru
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: M 18–25; K 16–21; Y 14–16; H 18–22; B 4–6; T 0–8; L 7–15. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nКратко обоснуй ответ и запиши са...
{ "type": "number", "value": "3", "tests": [] }
train
reason2-connected_groups-062
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка B, T, J, R, K, C, A, E, V, Z свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: E–C, K–J, V–K, T–A, Z–R, B–C. Добавляют связь A–K. Сколько кодов будет в образовавшемся архив...
{ "type": "number", "value": "5", "tests": [] }
train
algpy-92452bd3610a30a9-trace
code
en
TheAlgorithms/Python
MIT
algpy-92452bd3610a30a9
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/volume.py#vol_hemisphere; adapted exercises
[ { "role": "user", "content": "```python\nfrom math import pi\n\ndef compute(radius):\n if radius < 0:\n raise ValueError('compute() only accepts non-negative values')\n return pow(radius, 3) * pi * 2 / 3\n```\nWhat does round(compute(7), 6) return? Give the Python repr of the value." }, { ...
{ "type": "exact", "value": "718.37752", "tests": [] }
train
math-verified-binomial_divisibility-002
math
ru
Original
CC0-1.0
math-verified-binomial_divisibility
verified_math_binomial_divisibility
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Из 87 разных элементов выбирают 31 без учёта порядка. Найди наибольшее целое e ≥ 0, при котором число способов C(87,31) делится на 10 в степени e.\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью." }, { "role": "assistant", "content": "...
{ "type": "number", "value": "0", "tests": [] }
train
wiki-read-en-68787fbe8392a5642e72
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-03d286d54861be40b5972d
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7787124984607995963-0 (Apache-2.0). Wikipedia contributors, “Happy Days” (https://en.wikipedia.org/wiki/Happy_Days), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Happy Days\n\nHappy Days is an American television sitcom that aired first-run from January 15, 1974, to September 24, 1984 on ABC, with a total of 255 half-hour episodes spanning eleven seasons. Created by Garry Marshall, the series presented one of the most successful series ...
{ "type": "exact", "value": "an American television sitcom that aired first-run from January 15, 1974, to September 24, 1984 on ABC, with a total of 255 half-hour episodes spanning eleven seasons", "tests": [] }
train
reason2-connected_groups-039
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка K, E, N, L, U, J, W, T свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: W–U, K–W, E–N, N–L. Добавляют связь L–T. Сколько кодов будет в образовавшемся архиве?\nПокажи корот...
{ "type": "number", "value": "4", "tests": [] }
train
gsm-train-1165
math
en
GSM8K
MIT
gsm8k-96c1be628bdbdb31d4d1
word_problem_3_steps
OpenAI (2021), GSM8K, original train row 1165
[ { "role": "user", "content": "Hayden has a tank with a small hole in the bottom. The tank starts with 40 gallons of water. It loses 2 gallons of water per hour. Hayden does not add any water for the first two hours. He adds 1 gallon of water to the tank in hour three. He adds three gallons of water to the t...
{ "type": "number", "value": "36", "tests": [] }
train
verified-code-turn_left-implement
code
ru
Original
CC0-1.0
verified-code-rotate
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Реализуй на Python turn_left(grid). Верни новую прямоугольную таблицу целых, повернув grid на 90 градусов против часовой стрелки. Вход — пустой список либо строки одной положительной длины. Пустая таблица даёт []. Исходник не меняй.\nassert turn_left([[1, 2, 3]]) == [[3], [2], ...
{ "type": "code", "value": "", "tests": [ "assert turn_left([]) == []", "assert turn_left([[9]]) == [[9]]", "assert turn_left([[3], [2], [1]]) == [[3, 2, 1]]", "assert turn_left([[1, 2, 3], [4, 5, 6]]) == [[3, 6], [2, 5], [1, 4]]", "assert turn_left([[7, 8], [9, 0], [1, 2]]) == [[8, 0, 2], [7,...
train
wiki-read-ru-6f3fa039b159605cbc03
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-485ec451093d716d5ad90f
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3070515854827755197-78 (Apache-2.0). Wikipedia contributors, “Фуркад, Мартен” (https://ru.wikipedia.org/wiki/%D0%A4%D1%83%D1%80%D0%BA%D0%B0%D0%B4%2C_%D0%9C%D0%B0%D1%80%D1%82%D0%B5%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers ...
[ { "role": "user", "content": "Фуркад, Мартен\n\nВот уже более десяти лет Мартена связывают отношения с француженкой по имени Элен (Hélène Uzabiaga). Спортсмен не любит распространяться о своей личной жизни, поэтому широкой публике о девушке известно крайне мало. Она работает учителем в школе и в свободное в...
{ "type": "exact", "value": "поэтому широкой публике о девушке известно крайне мало", "tests": [] }
train
wiki-read-en-706911577b74134a37cd
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-3755b417b0f937026ac1b8
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1270278901882089536-3 (Apache-2.0). Wikipedia contributors, “Starfish” (https://en.wikipedia.org/wiki/Starfish), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Starfish\n\nMost starfish have five arms that radiate from a central disc, but the number varies with the group. Some species have six or seven arms and others have 10–15 arms. The Antarctic Labidiaster annulatus can have over fifty. Having descended from bilateral organisms, s...
{ "type": "exact", "value": "but the number varies with the group", "tests": [] }
train
algpy-4393b7aaff31b3ec-trace
code
ru
TheAlgorithms/Python
MIT
algpy-4393b7aaff31b3ec
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/binary_tree/binary_tree_mirror.py#binary_tree_mirror; adapted exercises
[ { "role": "user", "content": "```python\ndef binary_tree_mirror_dict(binary_tree_mirror_dictionary, root):\n if not root or root not in binary_tree_mirror_dictionary:\n return\n left_child, right_child = binary_tree_mirror_dictionary[root][:2]\n binary_tree_mirror_dictionary[root] = [right_c...
{ "type": "exact", "value": "{1: [3, 2], 2: [5, 4], 3: [7, 6], 7: [9, 8]}", "tests": [] }
train
wiki-read-en-f92a6e43f77c54bb3b2f
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-c3bca6d2a65ceb3bdef680
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3163451412262661814-0 (Apache-2.0). Wikipedia contributors, “Emperor Gaozu of Tang” (https://en.wikipedia.org/wiki/Emperor_Gaozu_of_Tang), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Emperor Gaozu of Tang\n\nEmperor Gaozu of Tang (7 April 566 – 25 June 635), born Li Yuan, courtesy name Shude, was the founder of the Tang Dynasty of China, and the first emperor of this dynasty from 618 to 626. Under the Sui dynasty, Li Yuan was the governor in the area of mod...
{ "type": "exact", "value": "7 April 566 – 25 June 635", "tests": [] }
train
math-verified-rounded_scales-007
math
ru
Original
CC0-1.0
math-verified-rounded_scales
verified_math_rounded_scales
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Длина детали — целое число миллиметров. Один прибор округляет длину до ближайшего числа, кратного 6 мм, другой — до ближайшего числа, кратного 18 мм. Ровно посередине оба выбирают большее значение. Приборы показали соответственно 72 и 72 мм. Сколько целых значений длины согласу...
{ "type": "number", "value": "6", "tests": [] }
train
reason2-frequency_median-040
reasoning
en
Original
CC0-1.0
reason2-frequency_median
workshop_frequency_median
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "A log summarises sessions as minutes × number of sessions: 18×10; 7×4; 32×4; 6×11; 3×2; 53×5; 35×7; 54×12. What is the median duration of an individual session?\nExplain in a few sentences and use the final line for the answer alone." }, { "role": "assistant", "cont...
{ "type": "number", "value": "32", "tests": [] }
train
algpy-5226971c2381b54c-trace
code
ru
TheAlgorithms/Python
MIT
algpy-5226971c2381b54c
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/primelib.py#is_odd; adapted exercises
[ { "role": "user", "content": "```python\ndef is_odd(number):\n assert isinstance(number, int), \"'number' must been an int\"\n assert isinstance(number % 2 != 0, bool), 'compare must been from type bool'\n return number % 2 != 0\n```\nЧто вернёт выражение is_odd(0)? Запиши repr результата Python." ...
{ "type": "exact", "value": "False", "tests": [] }
train
wiki-read-en-532bcb3b6a644236bb79
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-1cf18a243c25a56a993c82
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8959983100117539137-0 (Apache-2.0). Wikipedia contributors, “Goldfish” (https://en.wikipedia.org/wiki/Goldfish), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Goldfish\n\nThe goldfish (Carassius auratus) is a freshwater fish in the family Cyprinidae of order Cypriniformes. It is one of the most commonly kept aquarium fish.\n\nWhat parenthetical detail immediately follows “The goldfish”? Quote the entire detail without the parentheses...
{ "type": "exact", "value": "Carassius auratus", "tests": [] }
train
algpy-5d84d52ea882ea31-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-5d84d52ea882ea31
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/z_function.py#z_function; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef go_next(i, z_result, s):\n return i + z_result[i] < len(s) and s[z_result[i]...
{ "type": "exact", "value": "B: [0, 0, 0, 1, 0, 1, 0, 4, 0, 0, 1]", "tests": [] }
train
math-verified-conditional_draw-001
math
en
Original
CC0-1.0
math-verified-conditional_draw
verified_math_conditional_draw
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A bag has 8 red, 3 blue and 5 yellow tokens. Two distinct tokens are drawn uniformly without replacement. Given that at least one is red, what is the probability that the pair consists of one red and one blue?\nGive the exact number on the last line; use a reduced fraction for ...
{ "type": "number", "value": "6/23", "tests": [] }
train
algpy-cd376bdf2179b857-trace
code
en
TheAlgorithms/Python
MIT
algpy-cd376bdf2179b857
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/primelib.py#get_divisors; adapted exercises
[ { "role": "user", "content": "```python\ndef get_divisors(n):\n assert isinstance(n, int) and n >= 1, \"'n' must been int and >= 1\"\n ans = []\n for divisor in range(1, n + 1):\n if n % divisor == 0:\n ans.append(divisor)\n assert ans[0] == 1 and ans[len(ans) - 1] == n, 'Error...
{ "type": "exact", "value": "[1, 2, 4, 8, 103, 206, 412, 824]", "tests": [] }
train
verified-code-last_score-implement
code
ru
Original
CC0-1.0
verified-code-keyed_rows
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Реализуй на Python last_score(rows). rows — список пар (строковый ключ, целое значение) в порядке поступления. Для каждого ключа выбери последнее встретившееся значение. Верни список пар (ключ, выбранное значение), отсортированный по ключу, либо [] для пустого входа.\nassert la...
{ "type": "code", "value": "", "tests": [ "assert last_score([]) == []", "assert last_score([('b', 2)]) == [('b', 2)]", "assert last_score([('x', 3), ('a', -3), ('x', 0), ('a', 8)]) == [('a', 8), ('x', 0)]", "assert last_score([('b', -5), ('b', -2), ('a', 0)]) == [('a', 0), ('b', -2)]", "asser...
train
reason2-rotate_grid-063
reasoning
ru
Original
CC0-1.0
reason2-rotate_grid
workshop_rotate_grid
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Исходные строки табло сверху вниз: A Z S / N X B / P C F. Выполни циклические сдвиги по порядку: строка 3 на 1 вправо; столбец 3 на 2 вниз; строка 1 на 1 вправо; столбец 1 на 2 вниз; строка 2 на 2 вправо. Какой символ теперь в строке 3, столбце 1? Нумерация с единицы.\nПриведи ...
{ "type": "exact", "value": "B", "tests": [] }
train
wiki-read-ru-4d31bb48016dacc93456
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-ea03a783028094de4e41c2
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-198956646948055966-5 (Apache-2.0). Wikipedia contributors, “Тройка (транспортная карта)” (https://ru.wikipedia.org/wiki/%D0%A2%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_(%D1%82%D1%80%D0%B0%D0%BD%D1%81%D0%BF%D0%BE%D1%80%D1%82%D0%BD%D0%B0%D1%8F_%D0%BA%D0%B0%D1%80%D1%82%D0%B0)), s...
[ { "role": "user", "content": "Тройка (транспортная карта)\n\nКарта выдаётся в кассах Московского метрополитена и автоматизированных киосках Мосгортранса при уплате залога в 50 рублей и минимального взноса в размере стоимости одной поездки на метро или наземном транспорте (36 рублей). При покупке неперсонали...
{ "type": "exact", "value": "однако при утере заблокировать и восстановить такую карту невозможно", "tests": [] }
train
wiki-read-en-2c67bb1a1b550e66727d
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d2f60ff5276cf4f07711c3
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7691731720888142073-1 (Apache-2.0). Wikipedia contributors, “Adventure game” (https://en.wikipedia.org/wiki/Adventure_game), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Adventure game\n\nAn adventure game is a video game in which the player assumes the role of a protagonist in an interactive story driven by exploration and puzzle-solving. The genre's focus on story allows it to draw heavily from other narrative-based media, literature and film...
{ "type": "exact", "value": "a video game in which the player assumes the role of a protagonist in an interactive story driven by exploration and puzzle-solving", "tests": [] }
train
algpy-ba7ac0b7a741bf88-implement
code
en
TheAlgorithms/Python
MIT
algpy-ba7ac0b7a741bf88
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/reverse_array.py#reverse_array; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the values of the input integer list in reverse order. Include duplicates.\nSignature: def reverse_array(arr):\nExamples:\n```python\nassert reverse_array([]) == []\nassert reverse_array([0]) == [0]\n```" }, { "role": "assistant", ...
{ "type": "code", "value": "", "tests": [ "assert reverse_array([1]) == [1]", "assert reverse_array([-3]) == [-3]", "assert reverse_array([1, -1, 0]) == [0, -1, 1]", "assert reverse_array([1, 1, 1]) == [1, 1, 1]", "assert reverse_array([-1, 0, 1, 2, -1, -4]) == [-4, -1, 2, 1, 0, -1]", "ass...
train
wiki-read-en-49e02d2eb56d7c1b10db
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-3fcac0fe0dc43e7ee5321d
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6013543838404226693-0 (Apache-2.0). Wikipedia contributors, “Peninsular Arabic” (https://en.wikipedia.org/wiki/Peninsular_Arabic), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Peninsular Arabic\n\nPeninsular Arabic, or Southern Arabic, are the varieties of Arabic spoken throughout the Arabian Peninsula. This includes the countries of Saudi Arabia, Yemen, Oman, United Arab Emirates, Kuwait, Bahrain, Qatar, Southern Iraq and the tribal people of Jordan...
{ "type": "exact", "value": "the native Jordanians", "tests": [] }
train
algpy-ba53186c63eeae50-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-ba53186c63eeae50
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/largest_smallest_words.py#find_smallest_and_largest_words; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `smallest_word = min(words, key=len)` заменяют на `smallest_word = max(words, key=len)`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(input_string):\n ...
{ "type": "exact", "value": "B", "tests": [] }
train
algpy-ec3203468005a018-repair
code
en
TheAlgorithms/Python
MIT
algpy-ec3203468005a018
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/modular_exponential.py#modular_exponential; adapted exercises
[ { "role": "user", "content": "Repair this Python function. Return (base ** exponent) modulo the third argument. The first two inputs are nonnegative integers and the modulus is positive.\nFor modular_exponential(2, 0, 7) it should return 1, but returns -1. Keep the signature.\n```python\ndef modular_exponen...
{ "type": "code", "value": "", "tests": [ "assert modular_exponential(2, 0, 7) == 1", "assert modular_exponential(0, 2, 7) == 0", "assert modular_exponential(2, 5, 7) == 4", "assert modular_exponential(3, 21, 11) == 3", "assert modular_exponential(2, 3, 1) == 0" ] }
train
reason2-critical_path-031
reasoning
en
Original
CC0-1.0
reason2-critical_path
workshop_critical_path
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "A workshop has unlimited workstations. Step durations in minutes: B=5, X=6, G=3, U=8, S=6, Z=2, A=9. X→Y means Y may start only after X finishes. The full list of dependencies is B→A, G→S, U→S, B→G, Z→G. Starting at minute zero, when can the whole job first be finished?\nBriefl...
{ "type": "number", "value": "14", "tests": [] }
train
wiki-read-ru-7d02b0d447ccf2d3cdae
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-492480ea989a48d7169d2a
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3404246235035776225-0 (Apache-2.0). Wikipedia contributors, “Стиляги (фильм, 2008)” (https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D0%B8%D0%BB%D1%8F%D0%B3%D0%B8_(%D1%84%D0%B8%D0%BB%D1%8C%D0%BC%2C_2008)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and refer...
[ { "role": "user", "content": "Стиляги (фильм, 2008)\n\n«Стиля́ги» — российский кинофильм 2008 года, посвящённый жизни одноимённой молодёжной субкультуры в 1950-е годы. Жанровую принадлежность картины кинокритики и сами авторы определяют как мюзикл, музыкальную комедию, музыкальную трагикомедию и «фильм-праз...
{ "type": "exact", "value": "российский кинофильм 2008 года, посвящённый жизни одноимённой молодёжной субкультуры в 1950-е годы", "tests": [] }
train
wiki-read-ru-266cfbfd83685c680fce
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-98d05b30673921df2dbd82
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-91942358358065841-1 (Apache-2.0). Wikipedia contributors, “Петербургский метрополитен” (https://ru.wikipedia.org/wiki/%D0%9F%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3%D1%81%D0%BA%D0%B8%D0%B9_%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%BF%D0%BE%D0%BB%D0%B8%D1%82%D0%B5%D0...
[ { "role": "user", "content": "Петербургский метрополитен\n\nНа сегодняшний день действует 5 линий петербургского метро, эксплуатационная длина составляет 118,6 км. Количество станций — 69 (среди них 7 пересадочных узлов — 6 двухстанционных и один трёхстанционный). 12 станций имеют пересадку на объекты желез...
{ "type": "exact", "value": "118,6 км", "tests": [] }
train
algpy-6186cd0b823ba42f-change-impact
code
en
TheAlgorithms/Python
MIT
algpy-6186cd0b823ba42f
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, divide_and_conquer/peak.py#peak; adapted exercises
[ { "role": "user", "content": "Suppose `if three[1] > three[0] and three[1] > three[2]:` is replaced by `if three[1] > three[-1] and three[1] > three[2]:` in the program below. Which expression changes its returned value? Briefly explain and write its letter on the last line.\n```python\ndef compute(lst):\n ...
{ "type": "exact", "value": "B", "tests": [] }
train
wiki-read-en-84727178397303a39b18
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-fb9377bdd24e8649a857fa
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7439895514018977367-0 (Apache-2.0). Wikipedia contributors, “Mercury (element)” (https://en.wikipedia.org/wiki/Mercury_(element)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Mercury (element)\n\nMercury is a chemical element with symbol Hg and atomic number 80. It is commonly known as quicksilver and was formerly named hydrargyrum (/haɪˈdrɑːrdʒərəm/ hy-DRAR-jər-əm). A heavy, silvery d-block element, mercury is the only metallic element that is liqu...
{ "type": "exact", "value": "a chemical element with symbol Hg and atomic number 80", "tests": [] }
train
gsm-train-6511
math
en
GSM8K
MIT
gsm8k-33dc41ffb5ee48b59353
word_problem_5_steps
OpenAI (2021), GSM8K, original train row 6511
[ { "role": "user", "content": "Rachel is an artist. She posts a speed painting video each week on her Instagram account to promote her work. To save time, she paints and records 4 videos at a time. It takes her about 1 hour to set up her painting supplies and her camera. Then she records herself painting for...
{ "type": "number", "value": "3", "tests": [] }
train
math-verified-quadratic_samples-009
math
ru
Original
CC0-1.0
math-verified-quadratic_samples
verified_math_quadratic_samples
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Известно, что f — квадратный многочлен. Даны значения f(-4) = -43, f(-1) = -10, f(2) = -13. Чему равно f(11)?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью." }, { "role": "assistant", "content": "Аргументы идут с шагом 3. Две соседни...
{ "type": "number", "value": "-238", "tests": [] }
train
algpy-9f2a8d5d2babba67-repair
code
en
TheAlgorithms/Python
MIT
algpy-9f2a8d5d2babba67
repair
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/is_contains_unique_chars.py#is_contains_unique_chars; adapted exercises
[ { "role": "user", "content": "Repair this Python function. Return True if every character of the input ASCII string occurs only once; compare case-sensitively.\nFor is_contains_unique_chars('') it should return True, but returns False. Keep the signature.\n```python\ndef is_contains_unique_chars(input_str):...
{ "type": "code", "value": "", "tests": [ "assert is_contains_unique_chars('') == True", "assert is_contains_unique_chars('a') == True", "assert is_contains_unique_chars('A') == True", "assert is_contains_unique_chars('hello') == False", "assert is_contains_unique_chars('AaB') == True", "a...
train
wiki-read-en-6038675d0b266fa5d23a
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-7623d62ffddafc1cecec1a
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--9013107367575491276-1 (Apache-2.0). Wikipedia contributors, “Royal Canadian Mounted Police” (https://en.wikipedia.org/wiki/Royal_Canadian_Mounted_Police), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise...
[ { "role": "user", "content": "Royal Canadian Mounted Police\n\nThe Royal Canadian Mounted Police (RCMP) was formed in 1920 by the merger of the Royal Northwest Mounted Police (RNWMP), founded in 1873, with the Dominion Police founded in 1868. The former was originally named the North West Mounted Police (NW...
{ "type": "exact", "value": "1868, 1873, 1904, 1920", "tests": [] }
train
verified-code-sum_segment_longest-trace
code
ru
Original
CC0-1.0
verified-code-target_subarrays
verified_trace
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "```python\ndef sum_segment_longest(xs, target):\n seen = {0: 0}\n prefix = answer = 0\n for i, x in enumerate(xs, 1):\n prefix += x\n need = prefix - target\n if need in seen:\n answer = max(answer, i - seen[need])\n seen.setdefau...
{ "type": "exact", "value": "5", "tests": [] }
train
reason2-motif_growth-053
reasoning
ru
Original
CC0-1.0
reason2-motif_growth
workshop_motif_growth
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Начальный орнамент TEEE. За проход каждый исходный символ одновременно заменяют по правилам T→E; E→ETT; новые символы в том же проходе не заменяются. Сколько символов T будет после 5 проходов?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "...
{ "type": "number", "value": "76", "tests": [] }
train
algpy-d212dac6e396f5e6-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-d212dac6e396f5e6
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/modular_division.py#invert_modulo; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef extended_euclid(a, b):\n if b == 0:\n return (1, 0)\n x, y = exten...
{ "type": "exact", "value": "B: 3", "tests": [] }
train
wiki-read-ru-70976411bbf2e9dff3af
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-5eb6e31eae4ccb31db049f
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--1340030790426525570-0 (Apache-2.0). Wikipedia contributors, “Петрик, Виктор Иванович” (https://ru.wikipedia.org/wiki/%D0%9F%D0%B5%D1%82%D1%80%D0%B8%D0%BA%2C_%D0%92%D0%B8%D0%BA%D1%82%D0%BE%D1%80_%D0%98%D0%B2%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%87), snapshot 2019-02-01 ...
[ { "role": "user", "content": "Петрик, Виктор Иванович\n\nВи́ктор Ива́нович Пе́трик (22 июня 1946, село Карповцы, Житомирская область, Украинская ССР, СССР) — российский предприниматель, автор ряда лженаучных исследований (в том числе в области очистки воды), действительный член общественной организации РАЕН...
{ "type": "exact", "value": "1946-06-22", "tests": [] }
train
algpy-ca5520c238117718-implement
code
en
TheAlgorithms/Python
MIT
algpy-ca5520c238117718
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, boolean_algebra/nand_gate.py#nand_gate; adapted exercises
[ { "role": "user", "content": "Implement this Python function. For integer bits a,b return integer 1 exactly when at least one input is 0, else 0.\nSignature: def nand_gate(input_1, input_2):\nExamples:\n```python\nassert nand_gate(0, 0) == 1\nassert nand_gate(1, 1) == 0\n```" }, { "role": "assistant...
{ "type": "code", "value": "", "tests": [ "assert nand_gate(0, 1) == 1", "assert nand_gate(1, 0) == 1" ] }
train
math-verified-grid_triangle-020
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 отмечены вершины треугольника (3, -4), (13, -4) и (10, 0). Сколько узлов с целыми координатами лежит строго внутри него? Точки на сторонах не включай.\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью." }, { "...
{ "type": "number", "value": "15", "tests": [] }
train
reason2-light_piece-024
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали A, P, D, L, C, K, V должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): A+L = V+C; P+V+A > K+C+D; D+P+A < L+V+K. Какая деталь легче?\nПокажи короткую проверку, а в конце на отдел...
{ "type": "exact", "value": "D", "tests": [] }
train
reason2-room_peak-060
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: V [12,16); C [4,7); J [9,13); S [3,8); X [7,15). 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 the a...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-e474b0bc50027a7a-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-e474b0bc50027a7a
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/binary_coded_decimal.py#binary_coded_decimal; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `return '0b' + ''.join((str(bin(int(digit)))[2:].zfill(4) for digit in str(max(0, number))))` заменяют на `return '0b' + ''.join((str(bin(int(digit)))[2:-1].zfill(4) for digit in str(max(0, number))))`. Для какого из двух выражений изменится возвращаемо...
{ "type": "exact", "value": "A", "tests": [] }
train
wiki-read-en-6809b25fcf0a5039a6c2
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-fc27d95cc587c425149c25
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--645502464428915914-4 (Apache-2.0). Wikipedia contributors, “Double-decker bus” (https://en.wikipedia.org/wiki/Double-decker_bus), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Double-decker bus\n\nThe first commercial horse-drawn double-decker omnibuses were introduced in England in 1847 by Adams & Co. of Fairfield, Bow, then improved upon by John Greenwood, who introduced a new double-decker in 1852.\n\nWhich four-digit calendar years does the passa...
{ "type": "exact", "value": "1847, 1852", "tests": [] }
train
algpy-437c26e61ecf29b2-implement
code
en
TheAlgorithms/Python
MIT
algpy-437c26e61ecf29b2
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/krishnamurthy_number.py#factorial; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return n factorial for an integer n from 0 through 12; 0! equals 1.\nSignature: def factorial(digit):\nExamples:\n```python\nassert factorial(0) == 1\nassert factorial(2) == 2\n```" }, { "role": "assistant", "content": "```python\ndef...
{ "type": "code", "value": "", "tests": [ "assert factorial(1) == 1", "assert factorial(3) == 6", "assert factorial(4) == 24", "assert factorial(5) == 120", "assert factorial(6) == 720", "assert factorial(7) == 5040", "assert factorial(8) == 40320", "assert factorial(9) == 362880",...
train
reason2-missing_cells-053
reasoning
ru
Original
CC0-1.0
reason2-missing_cells
workshop_missing_cells
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В таблице учёта столбцы идут в порядке E, X, W. После вертикальной черты указан итог строки. Строки: R6: 7 / ? / 8 | 26; R7: 2 / 3 / 5 | 10; R10: ? / ? / 11 | 30; R3: 9 / 13 / 4 | 26. Итоги столбцов: E=24, X=40, W=28. Какое число скрыто в строке R10, столбце X?\nКратко обоснуй ...
{ "type": "number", "value": "13", "tests": [] }
train
gsm-train-6956
math
en
GSM8K
MIT
gsm8k-8882ba23fdce3cbe422b
word_problem_6_steps
OpenAI (2021), GSM8K, original train row 6956
[ { "role": "user", "content": "Carlo has a music recital next week. He practiced twice as long on Monday as on Tuesday. On Tuesday, he practiced 10 minutes less than on Wednesday. On Wednesday, he practiced 5 minutes more than on Thursday. On Thursday, he practiced for 50 minutes. If he needs to practice for...
{ "type": "number", "value": "60", "tests": [] }
train
verified-code-cancel_ab-implement
code
en
Original
CC0-1.0
verified-code-cancellation
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement cancel_ab(text) in Python. From a string of ASCII letters, repeatedly remove only the adjacent lowercase pair ab in that order. Always remove the leftmost eligible pair until no pair remains. Return the final string.\nassert cancel_ab('aa') == 'aa'" }, { "role...
{ "type": "code", "value": "", "tests": [ "assert cancel_ab('') == ''", "assert cancel_ab('a') == 'a'", "assert cancel_ab('aA') == 'aA'", "assert cancel_ab('ab') == ''", "assert cancel_ab('abbaca') == 'baca'", "assert cancel_ab('aAbBc') == 'aAbBc'", "assert cancel_ab('aabbaba') == 'a'"...
train