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-5d766d0b089aef0e-trace
code
ru
TheAlgorithms/Python
MIT
algpy-5d766d0b089aef0e
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/endianness.py#swap_endianness_64; adapted exercises
[ { "role": "user", "content": "```python\ndef swap_endianness_64(value):\n if value < 0 or value > 18446744073709551615:\n msg = f'value must be between 0 and {18446744073709551615}'\n raise ValueError(msg)\n return (value & 255) << 56 | (value & 65280) << 40 | (value & 16711680) << 24 | ...
{ "type": "exact", "value": "0", "tests": [] }
train
algpy-b5e157f5f337845b-trace
code
en
TheAlgorithms/Python
MIT
algpy-b5e157f5f337845b
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#fahrenheit_to_rankine; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(fahrenheit, ndigits=2):\n return round(float(fahrenheit) + 459.67, ndigits)\n```\nWhat does round(compute(20.0), 6) return? Give the Python repr of the value." }, { "role": "assistant", "content": "479.67" } ]
{ "type": "exact", "value": "479.67", "tests": [] }
train
wiki-read-ru-b65c06dd13eca1a53fec
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-a61544274e04e77d95d32d
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8711654092077331021-0 (Apache-2.0). Wikipedia contributors, “Языки Молдавии” (https://ru.wikipedia.org/wiki/%D0%AF%D0%B7%D1%8B%D0%BA%D0%B8_%D0%9C%D0%BE%D0%BB%D0%B4%D0%B0%D0%B2%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference marker...
[ { "role": "user", "content": "Языки Молдавии\n\nЯзыки Молдавии — это языки, использующиеся на территории Молдавии. Государственным языком является молдавский язык. За русским и украинским в праве Молдавии закреплён официальный статус на территории АТО Приднестровье (не контролируется властями РМ), за русски...
{ "type": "exact", "value": "это языки, использующиеся на территории Молдавии", "tests": [] }
train
wiki-read-ru-dfa54567d85762c2c3bc
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-75c0af4e6e43004a53436d
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1960900646418749379-0 (Apache-2.0). Wikipedia contributors, “Языки США” (https://ru.wikipedia.org/wiki/%D0%AF%D0%B7%D1%8B%D0%BA%D0%B8_%D0%A1%D0%A8%D0%90), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Языки США\n\nЯзыки́ Соединённых Шта́тов Аме́рики — множество языков, имеющих разную степень распространения и разный статус на территории США. Население США в настоящее время составляет свыше 300 млн человек (без учёта значительного числа нелегальных иммигрантов). Доминирующим ...
{ "type": "exact", "value": "множество языков, имеющих разную степень распространения и разный статус на территории США", "tests": [] }
train
algpy-0cc14dc97af7758e-implement
code
en
TheAlgorithms/Python
MIT
algpy-0cc14dc97af7758e
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/automorphic_number.py#is_automorphic_number; adapted exercises
[ { "role": "user", "content": "Implement this Python function. For nonnegative n, return True when the decimal representation of n*n ends with every digit of n.\nSignature: def is_automorphic_number(number):\nExamples:\n```python\nassert is_automorphic_number(0) == True\nassert is_automorphic_number(2) == Fa...
{ "type": "code", "value": "", "tests": [ "assert is_automorphic_number(1) == True", "assert is_automorphic_number(3) == False", "assert is_automorphic_number(4) == False", "assert is_automorphic_number(7) == False", "assert is_automorphic_number(8) == False", "assert is_automorphic_number...
train
wiki-read-en-8d57808af50549032c4a
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d3a823d6f4ca3af9d5f58f
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-4251050334289006599-1 (Apache-2.0). Wikipedia contributors, “Universal Declaration of Human Rights” (https://en.wikipedia.org/wiki/Universal_Declaration_of_Human_Rights), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New r...
[ { "role": "user", "content": "Universal Declaration of Human Rights\n\nThe Universal Declaration of Human Rights (UDHR) is a historic document that was adopted by the United Nations General Assembly at its third session on10 December 1948 as Resolution 217 at the Palais de Chaillot in Paris, France. Of the ...
{ "type": "exact", "value": "UDHR", "tests": [] }
train
reason2-room_peak-055
reasoning
ru
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Репетиции занимают отдельные комнаты в такие минуты: J [1,6); B [16,23); L [0,6); K [14,20); H [2,9). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПриведи ход решения в нескольких фразах. На последней стро...
{ "type": "number", "value": "3", "tests": [] }
train
reason2-assembly_units-008
reasoning
ru
Original
CC0-1.0
reason2-assembly_units
workshop_assembly_units
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для сборки используются спецификации (правая часть — состав одной единицы): C = 5×U + 6×F; U = 4×X + 4×J; F = 1×X + 3×J. Заказ включает изделия C в количестве 5 и отдельно узлы U в количестве 2. Сколько отдельных деталей X потребуется?\nПриведи ход решения в нескольких фразах. ...
{ "type": "number", "value": "138", "tests": [] }
train
verified-code-best_rewards-implement
code
ru
Original
CC0-1.0
verified-code-interval_plans
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Реализуй на Python best_rewards(events). Событие — тройка целых (начало, конец, награда), начало < конец. Интервалы полуоткрытые: можно начать в момент окончания предыдущего. Выбери события, которые не пересекаются по времени, так, чтобы максимизировать сумму наград. Верни толь...
{ "type": "code", "value": "", "tests": [ "assert best_rewards([]) == 0", "assert best_rewards([(0, 1, 3)]) == 3", "assert best_rewards([(0, 4, 10), (0, 2, 2), (2, 3, 2), (3, 5, 7)]) == 11", "assert best_rewards([(2, 6, -5), (3, 5, 2)]) == 2", "assert best_rewards([(4, 9, 5), (0, 5, 8), (5, 7,...
train
reason2-balanced_load-047
reasoning
en
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Two carts must carry all crates, with each crate kept intact. Crate weights: N=35, U=50, G=100, K=75, F=30, P=120. What is the smallest possible difference between the two cart loads?\nExplain in a few sentences and use the final line for the answer alone." }, { "role":...
{ "type": "number", "value": "0", "tests": [] }
train
algpy-1b1b919ee449b878-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-1b1b919ee449b878
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#reaumur_to_fahrenheit; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(reaumur, ndigits=2):\n return round(float(reaumur) * 2.25 + 32, ndig...
{ "type": "exact", "value": "B: 32.0", "tests": [] }
train
wiki-read-en-b30e759eceff03630b15
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-56d38d585c458092ea1c31
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3482417288552356094-31 (Apache-2.0). Wikipedia contributors, “Georgetown Hoyas” (https://en.wikipedia.org/wiki/Georgetown_Hoyas), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Georgetown Hoyas\n\nBaseball is Georgetown's oldest sport, with the first recorded game taking place in 1866, and the team formally organized and sanctioned in 1870. The Hoyas have seen little national success, with no appearances in the NCAA Division I Baseball Championship si...
{ "type": "exact", "value": "1866, 1870, 1947, 2000", "tests": [] }
train
wiki-read-en-3bc3f976a061900d17d8
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-cbcbb699e3722ae1daf918
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6017753237312218347-0 (Apache-2.0). Wikipedia contributors, “History of the Philadelphia Eagles” (https://en.wikipedia.org/wiki/History_of_the_Philadelphia_Eagles), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New readin...
[ { "role": "user", "content": "History of the Philadelphia Eagles\n\nThe history of the Philadelphia Eagles begins in 1933. In their history, the Eagles have appeared in the Super Bowl three times, losing in their first two appearances but winning the third, in 2018. They won three NFL Championships, the pre...
{ "type": "exact", "value": "1933, 2018", "tests": [] }
train
wiki-read-ru-7a62d0e23d60df5e0b62
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-de25f1ed8fbb59f483c2b8
colon_explanation
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2690076441793338192-0 (Apache-2.0). Wikipedia contributors, “Список персонажей мультсериала «Финес и Ферб»” (https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BF%D0%B5%D1%80%D1%81%D0%BE%D0%BD%D0%B0%D0%B6%D0%B5%D0%B9_%D0%BC%D1%83%D0%BB%D1%8C%D1%8...
[ { "role": "user", "content": "Список персонажей мультсериала «Финес и Ферб»\n\nОсновной сюжет мультсериала мультсериала «Финес и Ферб» разворачивается вокруг пяти основных персонажей: Финеса и его брата Ферба, их сестры Кендэс, доктора Хайнца Фуфелшмертца и Утконоса Перри. Второстепенные персонажи играют ро...
{ "type": "exact", "value": "Финеса и его брата Ферба, их сестры Кендэс, доктора Хайнца Фуфелшмертца и Утконоса Перри", "tests": [] }
train
algpy-8ce1cc85b7f71f8e-implement
code
en
TheAlgorithms/Python
MIT
algpy-8ce1cc85b7f71f8e
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/xor_swap_two_integers.py#xor_swap; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the two integer arguments in reverse order as a tuple.\nSignature: def xor_swap(a, b):\nExamples:\n```python\nassert xor_swap(0, 1) == (1, 0)\nassert xor_swap(-5, 7) == (7, -5)\n```" }, { "role": "assistant", "content": "```pyt...
{ "type": "code", "value": "", "tests": [ "assert xor_swap(2, 2) == (2, 2)", "assert xor_swap(4, 9) == (9, 4)" ] }
train
reason2-fair_slots-001
reasoning
ru
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Клуб делит часы студии по одному. Веса секций: B=27, D=25, E=15, W=28. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 6, если сначала ни у кого нет ...
{ "type": "exact", "value": "B", "tests": [] }
train
wiki-read-en-faa58122505e4def2acc
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-0e3e77afbdfd954c959806
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3701046436936823655-0 (Apache-2.0). Wikipedia contributors, “The New Edition Story” (https://en.wikipedia.org/wiki/The_New_Edition_Story), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "The New Edition Story\n\nThe New Edition Story is an American biographical three-part miniseries about the R&B group New Edition, from their rise to fame as a boy band from the Orchard Park Projects of Roxbury, Massachusetts, to becoming a successful adult act. It was originall...
{ "type": "exact", "value": "2017-01-26", "tests": [] }
train
algpy-d33589693d91d878-trace
code
ru
TheAlgorithms/Python
MIT
algpy-d33589693d91d878
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/count_1s_brian_kernighan_method.py#get_1s_count; adapted exercises
[ { "role": "user", "content": "```python\ndef get_1s_count(number):\n if not isinstance(number, int) or number < 0:\n raise ValueError('Input must be a non-negative integer')\n count = 0\n while number:\n number &= number - 1\n count += 1\n return count\n```\nЧто вернёт выраж...
{ "type": "exact", "value": "3", "tests": [] }
train
reason2-editing_history-019
reasoning
en
Original
CC0-1.0
reason2-editing_history
workshop_editing_history
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "An editor field starts at K. Writing replaces its value and discards any redo history. Undo moves to the previous value, redo restores an undone edit, and an unavailable action has no effect. Commands: write L; write R; undo; redo; undo; redo; write B; undo; write C; undo; undo...
{ "type": "exact", "value": "M", "tests": [] }
train
math-verified-departures-024
math
ru
Original
CC0-1.0
math-verified-departures
verified_math_departures
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Время отсчитывают в целых минутах от открытия станции. Первый трамвай линии A уходит в минуту 31, далее интервал составляет 35 мин. Первый трамвай линии B уходит в минуту 11, интервал составляет 25 мин. На какой минуте, начиная с минуты 179 включительно, обе линии впервые отпра...
{ "type": "number", "value": "311", "tests": [] }
train
wiki-read-en-807fb265ae04d3b6925f
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-3e64810b342a8604e053ce
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-387578838454588688-7 (Apache-2.0). Wikipedia contributors, “Andy Richter” (https://en.wikipedia.org/wiki/Andy_Richter), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Andy Richter\n\nAfter seven years with the show, Richter departed from Late Night after the show on May 26, 2000. He later said of the decision, \"After seven years of being on the show, I got itchy. I have a philosophy that if you enjoy good fortune, rather than sit there and ...
{ "type": "exact", "value": "2000-05-26", "tests": [] }
train
verified-code-most_events-implement
code
en
Original
CC0-1.0
verified-code-interval_plans
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement most_events(events) in Python. Each event is an integer triple (start, end, reward), start < end. Half-open intervals may touch. Choose nonoverlapping events to maximize the number of events. Return the maximum alone. Choosing nothing is allowed.\nassert most_events([...
{ "type": "code", "value": "", "tests": [ "assert most_events([]) == 0", "assert most_events([(0, 1, 3)]) == 1", "assert most_events([(0, 4, 10), (0, 2, 2), (2, 3, 2), (3, 5, 7)]) == 3", "assert most_events([(2, 6, -5), (3, 5, 2)]) == 1", "assert most_events([(4, 9, 5), (0, 5, 8), (5, 7, 1), (...
train
wiki-read-en-1479152f8f2a7fe1db2f
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-a08ebfb6519e8d814f1b8a
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-584072325199119759-3 (Apache-2.0). Wikipedia contributors, “Osmosis” (https://en.wikipedia.org/wiki/Osmosis), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Osmosis\n\nOsmosis is the movement of a solvent across a semipermeable membrane toward a higher concentration of solute (lower concentration of solvent). In biological systems, the solvent is typically water, but osmosis can occur in other liquids, supercritical liquids, and ev...
{ "type": "exact", "value": "the movement of a solvent across a semipermeable membrane toward a higher concentration of solute (lower concentration of solvent)", "tests": [] }
train
algpy-0f8e235b0d0430a2-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-0f8e235b0d0430a2
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/lucas_lehmer_primality_test.py#lucas_lehmer_test; 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(p):\n if p < 2:\n raise ValueError('p should not be less than 2!')\n ...
{ "type": "exact", "value": "A: True", "tests": [] }
train
wiki-read-en-3be07430f272f2386c04
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-e5fb5636bb92c15b4d6820
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--2417952446953531065-1 (Apache-2.0). Wikipedia contributors, “The Last House on the Left (1972 film)” (https://en.wikipedia.org/wiki/The_Last_House_on_the_Left_(1972_film)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. Ne...
[ { "role": "user", "content": "The Last House on the Left (1972 film)\n\nCraven's directorial debut, the film was made on a modest budget of $87,000, and was filmed in New York City and rural Connecticut in 1971. It was released theatrically in the United States on August 30, 1972, and was a major box office...
{ "type": "exact", "value": "1972-08-30", "tests": [] }
train
reason2-line_breaks-041
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 5, 2, 6, 5, 3, 8, 2. Предельная длина строки — 17. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nКратко обоснуй ответ и запиши сам ответ ...
{ "type": "number", "value": "3", "tests": [] }
train
wiki-read-en-165ebe2756f520b66aa9
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-77fd17c092c21ac984b673
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7915033271052672248-5 (Apache-2.0). Wikipedia contributors, “Yoshiro Nakamatsu” (https://en.wikipedia.org/wiki/Yoshiro_Nakamatsu), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Yoshiro Nakamatsu\n\nBased upon a patent issued in 1952, Nakamatsu claims to have invented the first floppy disk well before IBM's floppy disk patent was filed in 1969. However, what Nakamatsu patented in 1952 was a paper for optical sound player. In contrast to a floppy disk, ...
{ "type": "exact", "value": "sometimes he uses the phrase \"floppy media\"", "tests": [] }
train
algpy-20f35cfa91cf7646-implement
code
en
TheAlgorithms/Python
MIT
algpy-20f35cfa91cf7646
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/z_function.py#find_pattern; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return how many times the nonempty pattern (first argument) occurs in the text (second argument), counting overlapping matches.\nSignature: def find_pattern(pattern, input_str):\nExamples:\n```python\nassert find_pattern('a', '') == 0\nassert fin...
{ "type": "code", "value": "", "tests": [ "assert find_pattern('aa', 'aaaa') == 3", "assert find_pattern('c', 'abc') == 1", "assert find_pattern('abcd', 'abc') == 0" ] }
train
reason2-bottleneck-026
reasoning
en
Original
CC0-1.0
reason2-bottleneck
workshop_bottleneck
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Bidirectional conveyors admit boxes up to their listed width in cm: Z–U=15; W–U=12; Y–Z=11; Z–F=6; F–W=7; F–U=15. A box must travel from Y to U without rotation. What is its largest possible width?\nBriefly justify your result, then put the answer alone on the last line." }, ...
{ "type": "number", "value": "11", "tests": [] }
train
reason2-bottleneck-005
reasoning
ru
Original
CC0-1.0
reason2-bottleneck
workshop_bottleneck
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): J–P=15; G–J=12; A–J=4; V–A=15; G–V=18; E–A=15; J–M=13; P–M=15; V–E=14; A–M=13; E–M=18. Нужно перевезти коробку из G в M, не поворачивая её. Какова наибольшая допустимая ширина?\nПокажи короткую проверку, ...
{ "type": "number", "value": "15", "tests": [] }
train
reason2-bottleneck-055
reasoning
ru
Original
CC0-1.0
reason2-bottleneck
workshop_bottleneck
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): L–X=16; L–S=8; M–S=11; S–H=15; Z–M=7; L–H=15; P–M=11; Z–L=4; X–P=18. Нужно перевезти коробку из Z в H, не поворачивая её. Какова наибольшая допустимая ширина?\nКратко обоснуй ответ и запиши сам ответ на п...
{ "type": "number", "value": "7", "tests": [] }
train
reason2-editing_history-060
reasoning
ru
Original
CC0-1.0
reason2-editing_history
workshop_editing_history
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В редакторе поле сначала содержит E. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать V; записать L; отме...
{ "type": "exact", "value": "U", "tests": [] }
train
wiki-read-ru-e00209beadd6de9ea971
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-d73351d23390ed2996dd1d
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--279698325990001995-1 (Apache-2.0). Wikipedia contributors, “Европейский союз” (https://ru.wikipedia.org/wiki/%D0%95%D0%B2%D1%80%D0%BE%D0%BF%D0%B5%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D1%81%D0%BE%D1%8E%D0%B7), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and re...
[ { "role": "user", "content": "Европейский союз\n\nНацеленный на региональную интеграцию, союз был юридически закреплён Маастрихтским договором в 1992 году (вступившим в силу 1 ноября 1993 года) на принципах Европейских сообществ.\n\nНайди полную календарную дату, у которой месяц написан словом, и запиши её ...
{ "type": "exact", "value": "1993-11-01", "tests": [] }
train
math-verified-skipped_payment-004
math
en
Original
CC0-1.0
math-verified-skipped_payment
verified_math_skipped_payment
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A savings schedule starts at 19 dollars on day 1 and increases the scheduled payment by 7 dollars each day for 13 days. Exactly one payment was skipped; all other scheduled amounts were paid. The total paid was 767 dollars. On which day was the payment missed?\nGive the exact n...
{ "type": "number", "value": "2", "tests": [] }
train
algpy-7c5e3ffa548dfcde-implement
code
en
TheAlgorithms/Python
MIT
algpy-7c5e3ffa548dfcde
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/hamming_distance.py#hamming_distance; adapted exercises
[ { "role": "user", "content": "Implement this Python function. For ASCII strings of equal length, return the number of positions at which their characters differ.\nSignature: def hamming_distance(string1, string2):\nExamples:\n```python\nassert hamming_distance('', '') == 0\nassert hamming_distance('ab', 'ba...
{ "type": "code", "value": "", "tests": [ "assert hamming_distance('ab', 'ab') == 0", "assert hamming_distance('a', 'A') == 1", "assert hamming_distance('10110', '11111') == 2" ] }
train
algpy-ad6170dda1e198f6-trace
code
ru
TheAlgorithms/Python
MIT
algpy-ad6170dda1e198f6
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/split.py#split; adapted exercises
[ { "role": "user", "content": "```python\ndef split(string, separator=' '):\n split_words = []\n separator_length = len(separator)\n if separator_length == 0:\n return [string]\n last_index = 0\n index = 0\n while index < len(string):\n if string[index:index + separator_length...
{ "type": "exact", "value": "['apple', 'banana', 'cherry', 'orange']", "tests": [] }
train
wiki-read-en-9dd45c72160a41793c57
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-f0f23261cb43eaf45c289a
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-454586304174195002-0 (Apache-2.0). Wikipedia contributors, “WWE Network” (https://en.wikipedia.org/wiki/WWE_Network), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "WWE Network\n\nWWE Network is an over-the-top streaming service and television network owned by the WWE. In Malaysia and MENA it operates as a television network, and in the rest of the world as a streaming service using the infrastructure of BAMTech. It was originally announce...
{ "type": "exact", "value": "an over-the-top streaming service and television network owned by the WWE", "tests": [] }
train
reason2-ballot_points-032
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты R, P, L, U. Баллы за места, начиная с первого: 3, 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 9 × P>R>L>U; 3 × R>P>U>L; 7 × P>U>R>L. У какого макета больше всего баллов?\nПриведи ход решения в нескольких фразах....
{ "type": "exact", "value": "P", "tests": [] }
train
wiki-read-ru-5775da5f8b90480809d8
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-92099ed043530c9666ce36
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3575640221931532453-0 (Apache-2.0). Wikipedia contributors, “Ламбьель, Стефан” (https://ru.wikipedia.org/wiki/%D0%9B%D0%B0%D0%BC%D0%B1%D1%8C%D0%B5%D0%BB%D1%8C%2C_%D0%A1%D1%82%D0%B5%D1%84%D0%B0%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and refer...
[ { "role": "user", "content": "Ламбьель, Стефан\n\nСтефа́н Ламбье́ль (French: Stéphane Lambiel; 2 апреля 1985, Мартиньи) — швейцарский фигурист, серебряный призёр Олимпийских игр в Турине в мужском одиночном катании, двукратный чемпион мира (2005 и 2006 год).\n\nНайди полную календарную дату, у которой месяц...
{ "type": "exact", "value": "1985-04-02", "tests": [] }
train
wiki-read-ru-7c68b934dd481cbbd6e3
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-8cd5f1288170b08d306469
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-584659523028333929-4 (Apache-2.0). Wikipedia contributors, “Урарту” (https://ru.wikipedia.org/wiki/%D0%A3%D1%80%D0%B0%D1%80%D1%82%D1%83), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Урарту\n\nПрорыв в изучении урартского языка произошёл лишь в конце XIX века, когда немецкий учёный А. Сэйс опубликовал первую корректную грамматику. Впервые попытка дешифровки клинообразных урартских надписей, содержащихся в материалах Шульца, была предпринята ассириологом Ста...
{ "type": "exact", "value": "когда немецкий учёный А. Сэйс опубликовал первую корректную грамматику", "tests": [] }
train
wiki-read-en-4439828f24c7ac6bc2f2
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-9041bd65105f2c7670ad50
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3929109166845163486-4 (Apache-2.0). Wikipedia contributors, “Magnesium” (https://en.wikipedia.org/wiki/Magnesium), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Magnesium\n\nElemental magnesium is a gray-white lightweight metal, two-thirds the density of aluminium. It tarnishes slightly when exposed to air, although, unlike the heavier alkaline earth metals, an oxygen-free environment is unnecessary for storage because magnesium is pro...
{ "type": "exact", "value": "a gray-white lightweight metal, two-thirds the density of aluminium", "tests": [] }
train
reason2-light_piece-010
reasoning
en
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Parts H, U, M, A, X, F, R, N have identical weights except for one lighter part. Each balance test puts the same number on both pans. Signs compare left weight with right: X+F = U+R; U+M > N+H; A+M+U+N < F+H+R+X. Which part is lighter?\nExplain in a few sentences and use the fi...
{ "type": "exact", "value": "N", "tests": [] }
train
reason2-order_count-054
reasoning
en
Original
CC0-1.0
reason2-order_count
workshop_order_count
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Display items K, H, F, E, X must be brought in one at a time, each exactly once. X→Y requires X before Y. Given E→X, F→X, F→E, K→E, how many complete orders are possible?\nShow a short check. Give the final answer on a separate line." }, { "role": "assistant", "cont...
{ "type": "number", "value": "10", "tests": [] }
train
reason2-bottleneck-045
reasoning
ru
Original
CC0-1.0
reason2-bottleneck
workshop_bottleneck
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): L–C=16; U–H=7; A–L=18; X–S=10; X–L=7; C–U=4; X–A=12; L–U=13; S–U=5; C–S=18; A–C=16; X–U=13. Нужно перевезти коробку из X в H, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход решения в...
{ "type": "number", "value": "7", "tests": [] }
train
wiki-read-ru-9105f8c9e5523e5d46b7
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-4b87251fb0c2e99cf836fd
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6959038461691095975-2 (Apache-2.0). Wikipedia contributors, “Кирсанов, Николай Васильевич” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B8%D1%80%D1%81%D0%B0%D0%BD%D0%BE%D0%B2%2C_%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0%D0%B9_%D0%92%D0%B0%D1%81%D0%B8%D0%BB%D1%8C%D0%B5%D0%B2...
[ { "role": "user", "content": "Кирсанов, Николай Васильевич\n\nВ 1943 году Кирсанов был переведён в ОКБ А. Н. Туполева на должность начальника отдела специальных конструкций, занимал этот пост в течение 25 лет. За это время он участвовал в разработке катапультируемых кресел и систем аварийного покидания для ...
{ "type": "exact", "value": "1943, 1952, 1965, 1968, 1974", "tests": [] }
train
wiki-read-ru-d9ef105bb17f407e3d47
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-758b0512475a918338412c
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6107013402200807284-20 (Apache-2.0). Wikipedia contributors, “Исход” (https://ru.wikipedia.org/wiki/%D0%98%D1%81%D1%85%D0%BE%D0%B4), 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": "которые позволили бы отнести события исхода к какому-либо определённому периоду истории древнего Ближнего Востока", "tests": [] }
train
reason2-frequency_median-039
reasoning
ru
Original
CC0-1.0
reason2-frequency_median
workshop_frequency_median
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 43×2; 46×7; 24×2; 51×10; 12×10; 3×8; 7×4. Какова медианная длительность одного занятия?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ." }, { "role": "assistant",...
{ "type": "number", "value": "12", "tests": [] }
train
wiki-read-en-7912a0cf6c8ff7c3cc75
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-3411b775f248b4af07c292
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7515008454000009718-1 (Apache-2.0). Wikipedia contributors, “Cherrapunji” (https://en.wikipedia.org/wiki/Cherrapunji), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Cherrapunji\n\nCherrapunji has often been credited as being the wettest place on Earth, but for now nearby Mawsynram currently holds that distinction. Cherrapunji still holds the all-time record for the most rainfall in a calendar month and in a year, however: it received 9,300...
{ "type": "exact", "value": "but for now nearby Mawsynram currently holds that distinction", "tests": [] }
train
reason2-room_peak-047
reasoning
ru
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Репетиции занимают отдельные комнаты в такие минуты: S [5,13); V [7,13); L [19,22); C [3,5); P [11,16). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПриведи ход решения в нескольких фразах. На последней ст...
{ "type": "number", "value": "3", "tests": [] }
train
math-verified-route_speed-020
math
ru
Original
CC0-1.0
math-verified-route_speed
verified_math_route_speed
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Велосипедист ехал 30 мин со скоростью 40 км/ч, отдыхал 5 мин, затем ехал 70 мин со скоростью 36 км/ч. На обеих частях пути скорость была постоянной. Какова средняя скорость в км/ч за всё время от старта до финиша вместе с остановкой?\nЗапиши точное число в последней строке; нец...
{ "type": "number", "value": "248/7", "tests": [] }
train
wiki-read-ru-fff7459948ea4fe02982
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-37885a4547c7f868823666
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2976424308186075037-43 (Apache-2.0). Wikipedia contributors, “Silent Hill (серия игр)” (https://ru.wikipedia.org/wiki/Silent_Hill_(%D1%81%D0%B5%D1%80%D0%B8%D1%8F_%D0%B8%D0%B3%D1%80)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norm...
[ { "role": "user", "content": "Silent Hill (серия игр)\n\nАвтором музыки для всех игр сериала Silent Hill, кроме — Silent Hill: Downpour и Silent Hill: Book of Memories, — является Акира Ямаока, получивший широкую известность после игры Silent Hill 2. Саундтрек к этой игре получил титул не только лучшего сау...
{ "type": "exact", "value": "но и был признан одним из лучших игровых саундтреков за всю историю видеоигр вообще", "tests": [] }
train
algpy-a195df8254e8cdc2-trace
code
ru
TheAlgorithms/Python
MIT
algpy-a195df8254e8cdc2
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/primelib.py#factorial; adapted exercises
[ { "role": "user", "content": "```python\ndef factorial(n):\n assert isinstance(n, int) and n >= 0, \"'n' must been a int and >= 0\"\n ans = 1\n for factor in range(1, n + 1):\n ans *= factor\n return ans\n```\nЧто вернёт выражение factorial(0)? Запиши repr результата Python." }, { ...
{ "type": "exact", "value": "1", "tests": [] }
train
reason2-line_breaks-047
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 5, 6, 6, 4, 2, 6, 3, 2, 5, 7. Предельная длина строки — 13. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПриведи ход решения в нескольки...
{ "type": "number", "value": "5", "tests": [] }
train
wiki-read-en-42974236c0219225e163
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-c448ea3aaa14c61667c75d
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-890528526807595288-0 (Apache-2.0). Wikipedia contributors, “Frustration–aggression hypothesis” (https://en.wikipedia.org/wiki/Frustration%E2%80%93aggression_hypothesis), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New re...
[ { "role": "user", "content": "Frustration–aggression hypothesis\n\nFrustration–aggression hypothesis, otherwise known as the frustration–aggression–displacement theory, is a theory of aggression proposed by John Dollard, Neal Miller, Leonard Doob, Orval Mowrer, and Robert Sears in 1939, and further develope...
{ "type": "exact", "value": "1939, 1941, 1969", "tests": [] }
train
reason2-rotate_grid-036
reasoning
ru
Original
CC0-1.0
reason2-rotate_grid
workshop_rotate_grid
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Исходные строки табло сверху вниз: G M E / L B V / W C Y / A D R. Выполни циклические сдвиги по порядку: столбец 1 на 2 вниз; строка 2 на 2 вправо; столбец 3 на 1 вниз; строка 2 на 1 вправо; столбец 2 на 3 вниз. Какой символ теперь в строке 3, столбце 3? Нумерация с единицы.\nП...
{ "type": "exact", "value": "A", "tests": [] }
train
reason2-frequency_median-008
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: 15×5; 43×6; 46×8; 34×4. 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", "content": "There are 23 sess...
{ "type": "number", "value": "43", "tests": [] }
train
gsm-train-7362
math
en
GSM8K
MIT
gsm8k-a4c845b048faf4b4b3f2
word_problem_5_steps
OpenAI (2021), GSM8K, original train row 7362
[ { "role": "user", "content": "John works at 2 different hospitals. At the first hospital, he sees 20 different patients each day. At the second hospital, he sees 20% more individual patients a day. He works 5 days a week. How many patients does he treat a year if he works 50 weeks a year?\nShow a short ...
{ "type": "number", "value": "11000", "tests": [] }
train
reason2-room_peak-020
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: R [19,22); D [7,15); Z [15,21); J [12,20); X [8,12). 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 t...
{ "type": "number", "value": "3", "tests": [] }
train
math-verified-break_even-005
math
en
Original
CC0-1.0
math-verified-break_even
verified_math_break_even
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Print plan A charges a monthly fee of $22 plus $4 per page. Plan B costs $86 per month, includes the first 8 pages, and charges $1 per additional page. What is the smallest whole number of pages in a month at which B is strictly cheaper?\nGive the exact number on the last line;...
{ "type": "number", "value": "19", "tests": [] }
train
reason2-critical_path-056
reasoning
ru
Original
CC0-1.0
reason2-critical_path
workshop_critical_path
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: R=2, X=3, S=2, B=4, U=2, E=4, Z=8. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: B→Z, E→Z, R→Z, S→Z, S→E, R→U, X→U, B→S, B→R, E→R, X→R. Время отсчитывают ...
{ "type": "number", "value": "20", "tests": [] }
train
algpy-ba53186c63eeae50-trace
code
ru
TheAlgorithms/Python
MIT
algpy-ba53186c63eeae50
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/largest_smallest_words.py#find_smallest_and_largest_words; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(input_string):\n words = input_string.split()\n if not words:\n return (None, None)\n words = [word.strip('.,!?()[]{}') for word in words]\n smallest_word = min(words, key=len)\n largest_word = max(words, key=len)\n return (smalle...
{ "type": "exact", "value": "('OnlyOneWord', 'OnlyOneWord')", "tests": [] }
train
wiki-read-ru-20c02a2208f9006e9997
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-6d84d270cfd13e4fe09e0b
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5768610870193200647-2 (Apache-2.0). Wikipedia contributors, “Льюис Кэрролл” (https://ru.wikipedia.org/wiki/%D0%9B%D1%8C%D1%8E%D0%B8%D1%81_%D0%9A%D1%8D%D1%80%D1%80%D0%BE%D0%BB%D0%BB), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norma...
[ { "role": "user", "content": "Льюис Кэрролл\n\nЛьюис Кэрролл родился 27 января 1832 года в доме приходского священника в деревне Дарсбери, графство Чешир. Всего в семье было 7 девочек и 4 мальчика. Учиться начал дома, показал себя умным и сообразительным. Его образованием занимался отец. Был левшой; по непр...
{ "type": "exact", "value": "предположительно, это привело к заиканию", "tests": [] }
train
reason2-connected_groups-052
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка E, P, W, F, S, D, K, L, N, T свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: W–T, T–K, N–L, S–T, P–W, K–P, F–D, E–L. Добавляют связь F–T. Сколько кодов будет в образовавш...
{ "type": "number", "value": "7", "tests": [] }
train
reason2-frequency_median-066
reasoning
ru
Original
CC0-1.0
reason2-frequency_median
workshop_frequency_median
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 43×6; 8×3; 49×5; 4×7; 10×2; 27×11; 11×3. Какова медианная длительность одного занятия?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "assistant", "content": "Общее...
{ "type": "number", "value": "27", "tests": [] }
train
wiki-read-en-d760657814e6019e431a
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-a6de14562c5bac17a4cb31
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3277035445278051433-1 (Apache-2.0). Wikipedia contributors, “World Intellectual Property Organization” (https://en.wikipedia.org/wiki/World_Intellectual_Property_Organization), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized....
[ { "role": "user", "content": "World Intellectual Property Organization\n\nWIPO currently has 191 member states, administers 26 international treaties, and is headquartered in Geneva, Switzerland. The current Director-General of WIPO is Francis Gurry, who took office on 1 October 2008. 188 of the UN member s...
{ "type": "exact", "value": "2008-10-01", "tests": [] }
train
reason2-pareto-010
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): W (27, 63); D (20, 46); S (9, 36); A (29, 30); Y (24, 26); K (14, 71). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nКратко обоснуй от...
{ "type": "exact", "value": "S Y", "tests": [] }
train
algpy-3db1af0da9ea5c25-implement
code
en
TheAlgorithms/Python
MIT
algpy-3db1af0da9ea5c25
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, sorts/counting_sort.py#counting_sort; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the input list's nonnegative integers in ascending order, preserving duplicates. The list can be empty.\nSignature: def counting_sort(collection):\nExamples:\n```python\nassert counting_sort([]) == []\nassert counting_sort([1]) == [1]\n```...
{ "type": "code", "value": "", "tests": [ "assert counting_sort([2, 1]) == [1, 2]", "assert counting_sort([4, 0, 4, 1]) == [0, 1, 4, 4]", "assert counting_sort([3, 3]) == [3, 3]", "assert counting_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5]", "assert counting_sort([0, 2, 6, 1, 7]) == [0, 1, 2, 6,...
train
wiki-read-en-8a5eb2611ec2b3292ce5
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-dc233a25412415d0d1aac8
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7960378244840807791-0 (Apache-2.0). Wikipedia contributors, “1790 United States Census” (https://en.wikipedia.org/wiki/1790_United_States_Census), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "1790 United States Census\n\nThe United States Census of 1790 was the first census of the whole United States. It recorded the population of the United States as of Census Day, August 2, 1790, as mandated by Article I, Section 2 of the United States Constitution and applicable ...
{ "type": "exact", "value": "1790-08-02", "tests": [] }
train
algpy-d2fbafa5afe1cb00-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-d2fbafa5afe1cb00
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/cramers_rule_2x2.py#cramers_rule_2x2; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(equation1, equation2):\n if not len(equation1) == len(equation2) == ...
{ "type": "exact", "value": "B: (0.0, 0.0)", "tests": [] }
train
gsm-train-5156
math
en
GSM8K
MIT
gsm8k-66842412d2bb161bfb97
word_problem_6_steps
OpenAI (2021), GSM8K, original train row 5156
[ { "role": "user", "content": "There are 6 forks in the cutlery drawer. There are 9 more knives than forks, and there are twice as many spoons as knives and half as many teaspoons as forks. After 2 of each cutlery is added to the drawer, how many pieces of cutlery are there in all?\nShow a short calculation....
{ "type": "number", "value": "62", "tests": [] }
train
wiki-read-ru-cd95754bce6f8fe0771b
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-4179858d5ce48ea85390fa
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2085385490669611785-1 (Apache-2.0). Wikipedia contributors, “Государственная дума Российской империи” (https://ru.wikipedia.org/wiki/%D0%93%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%B4%D1%83%D0%BC%D0%B0_%D0%A0%D0%BE%D1%8...
[ { "role": "user", "content": "Государственная дума Российской империи\n\nМанифестом от 6 августа 1905 года император Николай II учредил Государственную думу как «особое законосовещательное установление, коему предоставляется предварительная разработка и обсуждение законодательных предположений и рассмотрени...
{ "type": "exact", "value": "1905-08-06", "tests": [] }
train
reason2-balanced_load-060
reasoning
ru
Original
CC0-1.0
reason2-balanced_load
workshop_balanced_load
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: S=68, D=52, H=44, K=16, U=60, X=88, F=12. Какой наименьшей разницы масс между тележками можно добиться?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "assista...
{ "type": "number", "value": "4", "tests": [] }
train
reason2-room_peak-023
reasoning
ru
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Репетиции занимают отдельные комнаты в такие минуты: C [3,9); Y [6,14); L [18,20); K [2,7); R [16,19). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПокажи короткую проверку, а в конце на отдельной строке д...
{ "type": "number", "value": "3", "tests": [] }
train
math-verified-conditional_draw-022
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, 5 blue and 1 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": "10/19", "tests": [] }
train
algpy-96d9e458987e6f36-implement
code
en
TheAlgorithms/Python
MIT
algpy-96d9e458987e6f36
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/palindrome.py#is_palindrome_ignore_case_and_spaces; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Ignore punctuation, spaces and letter case in an ASCII string, then return True if the remaining letters and digits read the same in both directions.\nSignature: def is_palindrome_ignore_case_and_spaces(s):\nExamples:\n```python\nassert is_palind...
{ "type": "code", "value": "", "tests": [ "assert is_palindrome_ignore_case_and_spaces('a') == True", "assert is_palindrome_ignore_case_and_spaces('A') == True", "assert is_palindrome_ignore_case_and_spaces('AaB') == False", "assert is_palindrome_ignore_case_and_spaces('a! b') == False", "asse...
train
reason2-frequency_median-069
reasoning
ru
Original
CC0-1.0
reason2-frequency_median
workshop_frequency_median
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 40×11; 36×4; 9×11; 34×9; 3×2. Какова медианная длительность одного занятия?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ." }, { "role": "assistant", "content": "Общее числ...
{ "type": "number", "value": "34", "tests": [] }
train
algpy-74473f25ff98bc6c-trace
code
ru
TheAlgorithms/Python
MIT
algpy-74473f25ff98bc6c
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/sieve_of_eratosthenes.py#prime_sieve; adapted exercises
[ { "role": "user", "content": "```python\nimport math\n\ndef compute(num):\n if num <= 0:\n msg = f'{num}: Invalid input, please enter a positive integer.'\n raise ValueError(msg)\n sieve = [True] * (num + 1)\n prime = []\n start = 2\n end = int(math.sqrt(num))\n while start <...
{ "type": "exact", "value": "[2, 3, 5, 7]", "tests": [] }
train
math-verified-stock-018
math
en
Original
CC0-1.0
math-verified-stock
verified_math_stock
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A warehouse shipped 1/8 of its boxes, received 66 more, then shipped 1/6 of its new stock. It ended with 440 boxes. How many boxes were there before the first shipment?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer." }, { "role"...
{ "type": "number", "value": "528", "tests": [] }
train
algpy-0e1c3bbb363bf523-trace
code
en
TheAlgorithms/Python
MIT
algpy-0e1c3bbb363bf523
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/fibonacci.py#fib_iterative; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(n):\n if n < 0:\n raise ValueError('n is negative')\n if n == 0:\n return [0]\n fib = [0, 1]\n for _ in range(n - 1):\n fib.append(fib[-1] + fib[-2])\n return fib\n```\nWhat does compute(10) return? Give the Python repr...
{ "type": "exact", "value": "[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]", "tests": [] }
train
reason2-minimum_cover-061
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, 6, 8. Наборы перечислены с типами внутри: J=1/3/4/8; D=2; Y=1/5/6/8; N=2; U=4/5/6. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { ...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-85e451958ae9ae2b-trace
code
en
TheAlgorithms/Python
MIT
algpy-85e451958ae9ae2b
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/maclaurin_series.py#maclaurin_sin; adapted exercises
[ { "role": "user", "content": "```python\nfrom math import factorial\nfrom math import pi\n\ndef compute(theta, accuracy=30):\n if not isinstance(theta, (int, float)):\n raise ValueError('compute() requires either an int or float for theta')\n if not isinstance(accuracy, int) or accuracy <= 0:\n...
{ "type": "exact", "value": "0.544021", "tests": [] }
train
reason2-line_breaks-052
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 6, 5, 5, 6, 5, 5, 9, 9, 7. Предельная длина строки — 17. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nКратко обоснуй ответ и запиши сам ...
{ "type": "number", "value": "5", "tests": [] }
train
gsm-train-4834
math
en
GSM8K
MIT
gsm8k-ced6729c848e30396678
word_problem_5_steps
OpenAI (2021), GSM8K, original train row 4834
[ { "role": "user", "content": "John wants to start a zoo. He has 15 snakes. He has twice as many monkeys as he does snakes. He has 5 fewer lions than he does monkeys. John has 8 more pandas than he does lions. John has 1/3 as many dogs as he does pandas. How many total animals does John have?\nShow a ...
{ "type": "number", "value": "114", "tests": [] }
train
wiki-read-ru-7a481243df335df44087
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-4f37950ffb421ceb5f6934
colon_explanation
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6702880318842224410-2 (Apache-2.0). Wikipedia contributors, “Тормозная система” (https://ru.wikipedia.org/wiki/%D0%A2%D0%BE%D1%80%D0%BC%D0%BE%D0%B7%D0%BD%D0%B0%D1%8F_%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace...
[ { "role": "user", "content": "Тормозная система\n\nРабочая тормозная система служит для регулирования скорости движения транспортного средства и его остановки. Тормозные системы также делятся по типам приводов: механический, гидравлический, пневматический и комбинированный. Так, на легковых машинах в наше в...
{ "type": "exact", "value": "механический, гидравлический, пневматический и комбинированный", "tests": [] }
train
wiki-read-ru-f4bdc058499100ad4c58
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-17c1435e8bbdbd5e1a3833
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8784746690495912436-0 (Apache-2.0). Wikipedia contributors, “Государственная Третьяковская галерея” (https://ru.wikipedia.org/wiki/%D0%93%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%A2%D1%80%D0%B5%D1%82%D1%8C%D1%8F%D0%BA%D...
[ { "role": "user", "content": "Государственная Третьяковская галерея\n\nГосуда́рственная Третьяко́вская галере́я — московский художественный музей, основанный в 1856 году купцом Павлом Третьяковым. В 1867-м галерея была открыта для посещения, а в 1892 году передана в собственность Москве. На момент передачи ...
{ "type": "exact", "value": "московский художественный музей, основанный в 1856 году купцом Павлом Третьяковым", "tests": [] }
train
wiki-read-en-78e785a160c33bdda04e
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-45066dd976d8bf0c05dc8d
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3859324872409750445-0 (Apache-2.0). Wikipedia contributors, “Paradox” (https://en.wikipedia.org/wiki/Paradox), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Paradox\n\nA paradox is a statement that, despite apparently valid reasoning from true premises, leads to an apparently-self-contradictory or logically unacceptable conclusion. A paradox involves contradictory-yet-interrelated elements that exist simultaneously and persist over...
{ "type": "exact", "value": "a statement that, despite apparently valid reasoning from true premises, leads to an apparently-self-contradictory or logically unacceptable conclusion", "tests": [] }
train
math-verified-tank_posts-004
math
en
Original
CC0-1.0
math-verified-tank_posts
verified_math_tank_posts
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A tank has a rectangular inner base measuring 31 by 13 cm and vertical sides. Two solid rectangular posts rise from opposite corners of the floor. Their footprints measure 4 by 6 and 3 by 2 cm. They do not overlap and both extend above the final water level. How many liters mus...
{ "type": "number", "value": "1119/250", "tests": [] }
train
reason2-fair_slots-008
reasoning
ru
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Клуб делит часы студии по одному. Веса секций: B=26, K=18, P=17, W=27, Y=7. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 5, если сначала ни у кого...
{ "type": "exact", "value": "W", "tests": [] }
train
algpy-234eb856b849fa23-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-234eb856b849fa23
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/round_robin.py#calculate_waiting_times; 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(burst_times):\n quantum = 2\n rem_burst_times = list(burst_times)\n wa...
{ "type": "exact", "value": "A: [13, 10, 13]", "tests": [] }
train
wiki-read-en-84d9d3271df82e7c3654
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-9c9b6e238ee3e16fea9c53
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8828292711831571094-0 (Apache-2.0). Wikipedia contributors, “List of islands of Indonesia” (https://en.wikipedia.org/wiki/List_of_islands_of_Indonesia), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "List of islands of Indonesia\n\nThe islands of Indonesia, also known as the Indonesian archipelago and formerly known as the Indian archipelago, may refer either to the islands comprising the nation-state of Indonesia or to the geographical groups which include its islands. Acc...
{ "type": "exact", "value": "UNGEGN", "tests": [] }
train
wiki-read-ru-9e150369fa7e4db06c8d
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-37a904be101c8ed8508e48
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3292759581053150592-0 (Apache-2.0). Wikipedia contributors, “The Sims 3” (https://ru.wikipedia.org/wiki/The_Sims_3), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "The Sims 3\n\nThe Sims 3 — однопользовательская видеоигра в жанре симулятора жизни, разработанная компанией Maxis под руководством геймдизайнера Рода Хамбла и изданная компанией Electronic Arts. В США игра вышла 2 июня 2009 года для операционных систем персональных компьютеров ...
{ "type": "exact", "value": "однопользовательская видеоигра в жанре симулятора жизни, разработанная компанией Maxis под руководством геймдизайнера Рода Хамбла и изданная компанией Electronic Arts", "tests": [] }
train
reason2-line_breaks-003
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 6, 2, 5, 3, 7, 4, 9, 8. Предельная длина строки — 13. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПриведи ход решения в нескольких фраз...
{ "type": "number", "value": "5", "tests": [] }
train
reason2-line_breaks-036
reasoning
ru
Original
CC0-1.0
reason2-line_breaks
workshop_line_breaks
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Длины слов заголовка в символах, от первого слова к последнему: 8, 2, 4, 6, 8, 7, 4, 4, 3, 8. Предельная длина строки — 15. Между соседними словами ровно один пробел. Менять порядок и переносить часть слова нельзя. Каково наименьшее число строк?\nПриведи ход решения в нескольки...
{ "type": "number", "value": "6", "tests": [] }
train
math-verified-grid_triangle-015
math
en
Original
CC0-1.0
math-verified-grid_triangle
verified_math_grid_triangle
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A unit square grid contains a triangle with vertices (-3, -4), (8, -4) and (0, 1). How many lattice points are strictly inside it? Exclude all points on the edges.\nGive the exact number on the last line; use a reduced fraction for a noninteger answer." }, { "role": "as...
{ "type": "number", "value": "22", "tests": [] }
train
algpy-1d1b2ac1b01cce3d-trace
code
en
TheAlgorithms/Python
MIT
algpy-1d1b2ac1b01cce3d
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/sum_of_arithmetic_series.py#sum_of_ap_series; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(a, d, n):\n if n <= 0:\n raise ValueError(\"Number of terms 'n' must be a positive integer\")\n return n * (2 * a + (n - 1) * d) // 2\n```\nWhat does compute(5, 0, 3) return? Give the Python repr of the value." }, { "role": "assistant...
{ "type": "exact", "value": "15", "tests": [] }
train
wiki-read-en-82aa955ee8179e892941
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-5470eff95825e6abc813fe
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8593075070574975703-25 (Apache-2.0). Wikipedia contributors, “Santa Barbara, California” (https://en.wikipedia.org/wiki/Santa_Barbara%2C_California), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Santa Barbara, California\n\nAccording to the United States Census Bureau, the city has a total area of 42.0 square miles (108.8km2), of which 19.5 square miles (51km2) of it is land and 22.5 square miles (58km2) of it (53.61%) is water. The high official figures for water is d...
{ "type": "exact", "value": "53.61%", "tests": [] }
train
gsm-train-5028
math
en
GSM8K
MIT
gsm8k-05857a46f7512b5bbb9e
word_problem_4_steps
OpenAI (2021), GSM8K, original train row 5028
[ { "role": "user", "content": "Collin learned that he could earn $0.25 per aluminum can that he brought into the recycling center. He found 12 cans at home and three times as many at his grandparents' house. His neighbor gave him 46. His dad brought home 250 cans from the office. His dad told him he cou...
{ "type": "number", "value": "43", "tests": [] }
train
algpy-98d6c3a7b6237c4d-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-98d6c3a7b6237c4d
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/prime_sieve_eratosthenes.py#prime_sieve_eratosthenes; 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(num):\n if num <= 0:\n raise ValueError('Input must be a positive int...
{ "type": "exact", "value": "A: [2, 3, 5, 7]", "tests": [] }
train
gsm-train-3466
math
en
GSM8K
MIT
gsm8k-f46356d74da8f216bedd
word_problem_4_steps
OpenAI (2021), GSM8K, original train row 3466
[ { "role": "user", "content": "Wyatt's mother gave him $74 to go to the store. Wyatt bought 5 loaves of bread and 4 cartons of orange juice. Each loaf of bread cost $5 and each carton of orange juice cost $2. How much money does Wyatt have left?\nShow a short calculation. Put the final number alone on the la...
{ "type": "number", "value": "41", "tests": [] }
train
algpy-a26f84996c4aa415-trace
code
en
TheAlgorithms/Python
MIT
algpy-a26f84996c4aa415
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/max_subarray_sum.py#max_subarray_sum; adapted exercises
[ { "role": "user", "content": "```python\ndef max_subarray_sum(arr, allow_empty_subarrays=False):\n if not arr:\n return 0\n max_sum = 0 if allow_empty_subarrays else float('-inf')\n curr_sum = 0.0\n for num in arr:\n curr_sum = max(0 if allow_empty_subarrays else num, curr_sum + nu...
{ "type": "exact", "value": "8", "tests": [] }
train