id
stringlengths
11
45
domain
stringclasses
5 values
language
stringclasses
2 values
source
stringclasses
6 values
license
stringclasses
5 values
group_id
stringlengths
8
35
task
stringclasses
77 values
attribution
stringlengths
0
758
messages
listlengths
2
2
grading
dict
split
stringclasses
1 value
reason2-connected_groups-053
reasoning
en
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Each code in N, J, B, T, D, R, E, W, K, F, V initially has its own archive. Linking two codes merges their entire archives, including indirect links. The full list of existing links is V–R, T–B, V–J, F–J, K–F, N–T, V–F, J–K, E–N, W–D, B–E, N–D, D–E, K–V. One new link F–E is add...
{ "type": "number", "value": "11", "tests": [] }
train
algpy-8437921631b167f6-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-8437921631b167f6
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, backtracking/knight_tour.py#is_complete; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `return not any((elem == 0 for row in board for elem in row))` заменяют на `return not all((elem == 0 for row in board for elem in row))`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней с...
{ "type": "exact", "value": "A", "tests": [] }
train
algpy-7eb9b9c76a43ecd3-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-7eb9b9c76a43ecd3
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#lateral_surface_cylinder; 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\nfrom math import pi\n\ndef compute(radius, height):\n if radius < 0 or height < 0:\n ...
{ "type": "exact", "value": "B: 1256.637061", "tests": [] }
train
algpy-74382ecf71578f6a-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-74382ecf71578f6a
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/radians.py#radians; 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\nfrom math import pi\n\ndef compute(degree):\n return degree / (180 / pi)\n```\n```python...
{ "type": "exact", "value": "B: 3.141593", "tests": [] }
train
wiki-read-en-b6f9a1dd155bd2166565
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-e61d15d58f92d4c1a48363
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1073277725650769342-17 (Apache-2.0). Wikipedia contributors, “Geyser” (https://en.wikipedia.org/wiki/Geyser), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Geyser\n\nYellowstone is the largest geyser locale, containing thousands of hot springs, and approximately 300 to 500 geysers. It is home to half of the world's total number of geysers in its nine geyser basins. It is located mostly in Wyoming, USA, with small portions in Monta...
{ "type": "exact", "value": "Steamboat Geyser in Norris Geyser Basin", "tests": [] }
train
math-verified-route_speed-010
math
ru
Original
CC0-1.0
math-verified-route_speed
verified_math_route_speed
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Велосипедист ехал 20 мин со скоростью 36 км/ч, отдыхал 15 мин, затем ехал 20 мин со скоростью 48 км/ч. На обеих частях пути скорость была постоянной. Какова средняя скорость в км/ч за всё время от старта до финиша вместе с остановкой?\nЗапиши точное число в последней строке; не...
{ "type": "number", "value": "336/11", "tests": [] }
train
reason2-join_catalogs-024
reasoning
ru
Original
CC0-1.0
reason2-join_catalogs
workshop_join_catalogs
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Каталог связывает код книги с полкой: B12=S8, B35=S9, B75=S2, B51=S8, B90=S9, B89=S3, B50=S9, B67=S3. Соответствие полок и залов: S8=C, S3=H, S9=Z, S2=Z. Число выданных экземпляров по коду книги: B75=14, B51=16, B35=7, B89=3, B67=4, B50=3, B12=5, B90=3. В каком зале больше всег...
{ "type": "exact", "value": "Z", "tests": [] }
train
algpy-4a9001c422cba78b-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-4a9001c422cba78b
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#area_ellipse; 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\nfrom math import pi\n\ndef compute(radius_x, radius_y):\n if radius_x < 0 or radius_y < ...
{ "type": "exact", "value": "A: 314.159265", "tests": [] }
train
wiki-read-ru-c2e020e387382230cae8
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-24d20ba465885351c3d1fc
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1615305427245912730-0 (Apache-2.0). Wikipedia contributors, “Гимн России” (https://ru.wikipedia.org/wiki/%D0%93%D0%B8%D0%BC%D0%BD_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New rea...
[ { "role": "user", "content": "Гимн России\n\nГосуда́рственный гимн Росси́йской Федера́ции — один из официальных государственных символов Российской Федерации, наряду с флагом и гербом. Музыка и основа текста были позаимствованы из гимна Советского Союза, мелодию к которому написал Александр Александров на с...
{ "type": "exact", "value": "один из официальных государственных символов Российской Федерации, наряду с флагом и гербом", "tests": [] }
train
algpy-c549ba104b13f2f5-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-c549ba104b13f2f5
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, greedy_methods/minimum_coin_change.py#find_minimum_change; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `while int(total_value) >= int(denomination):` заменяют на `while int(total_value) > int(denomination):`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(de...
{ "type": "exact", "value": "B", "tests": [] }
train
algpy-7245981387bbe2e7-trace
code
en
TheAlgorithms/Python
MIT
algpy-7245981387bbe2e7
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/shortest_job_first.py#calculate_turnaroundtime; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(burst_time, no_of_processes, waiting_time):\n turn_around_time = [0] * no_of_processes\n for i in range(no_of_processes):\n turn_around_time[i] = burst_time[i] + waiting_time[i]\n return turn_around_time\n```\nWhat does compute([3, 3], 2, ...
{ "type": "exact", "value": "[3, 6]", "tests": [] }
train
wiki-read-ru-fa8a8c1b85df9fa93865
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-cea3ef0f36bedd4bccca41
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7452935534973645532-0 (Apache-2.0). Wikipedia contributors, “Великая Китайская стена” (https://ru.wikipedia.org/wiki/%D0%92%D0%B5%D0%BB%D0%B8%D0%BA%D0%B0%D1%8F_%D0%9A%D0%B8%D1%82%D0%B0%D0%B9%D1%81%D0%BA%D0%B0%D1%8F_%D1%81%D1%82%D0%B5%D0%BD%D0%B0), snapshot 2019-02-...
[ { "role": "user", "content": "Великая Китайская стена\n\nВеликая Китайская стена ( или ) — разделительная стена длиной почти 9000 км (полная длина — 21,2 тыс. км), построенная в древнем Китае. Крупнейший памятник архитектуры.\n\nКакое значение записано цифрами в километрах? Выпиши только число и единицу изм...
{ "type": "exact", "value": "9000 км", "tests": [] }
train
wiki-read-ru-6347bb870b546107548b
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-ea13bd4356ba597d2ececd
date_normalization
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-9003466006287738174-0 (Apache-2.0). Wikipedia contributors, “Никольский, Константин Николаевич” (https://ru.wikipedia.org/wiki/%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D1%8C%D1%81%D0%BA%D0%B8%D0%B9%2C_%D0%9A%D0%BE%D0%BD%D1%81%D1%82%D0%B0%D0%BD%D1%82%D0%B8%D0%BD_%D0%9D%D0%B8%D...
[ { "role": "user", "content": "Никольский, Константин Николаевич\n\nКонстанти́н Никола́евич Нико́льский (1 февраля 1951, Москва) — российский и советский рок-музыкант, певец, гитарист, автор песен. Известен как сольной карьерой, так и участием в ансамблях «Атланты», «Осколки Сикорского», «Счастливое семейств...
{ "type": "exact", "value": "1951-02-01", "tests": [] }
train
reason2-room_peak-015
reasoning
ru
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Репетиции занимают отдельные комнаты в такие минуты: H [16,22); J [2,4); A [12,15); D [3,11); Z [5,9); P [2,6). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПокажи короткую проверку, а в конце на отдельной...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-14d1ab2287b69a59-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-14d1ab2287b69a59
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/prefix_function.py#prefix_function; 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(input_string):\n prefix_result = [0] * len(input_string)\n for i in range...
{ "type": "exact", "value": "A: [0, 1, 0, 0, 0, 1, 2, 3, 4]", "tests": [] }
train
reason2-order_count-066
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 R, H, Z, D, X, F must be brought in one at a time, each exactly once. X→Y requires X before Y. Given H→F, R→F, X→F, Z→F, H→X, how many complete orders are possible?\nExplain in a few sentences and use the final line for the answer alone." }, { "role": "ass...
{ "type": "number", "value": "72", "tests": [] }
train
algpy-8333fb5175b72637-change-impact
code
en
TheAlgorithms/Python
MIT
algpy-8333fb5175b72637
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/binary_to_decimal.py#bin_to_decimal; adapted exercises
[ { "role": "user", "content": "Suppose `bin_string = bin_string[1:]` is replaced by `bin_string = bin_string[1:-1]` in the program below. Which expression changes its returned value? Briefly explain and write its letter on the last line.\n```python\ndef compute(bin_string):\n bin_string = str(bin_string)....
{ "type": "exact", "value": "B", "tests": [] }
train
reason2-pareto-052
reasoning
ru
Original
CC0-1.0
reason2-pareto
workshop_pareto
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для печати плаката доступны заказы (дни, цена): P (23, 64); G (22, 26); V (21, 67); C (25, 49); S (17, 13); J (6, 59). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядке через пробел.\nКратко обоснуй от...
{ "type": "exact", "value": "J S", "tests": [] }
train
algpy-cfeb99f43685a797-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-cfeb99f43685a797
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/remove_digit.py#remove_digit; 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 not isinstance(num, int):\n raise TypeError('only integers...
{ "type": "exact", "value": "B: 52", "tests": [] }
train
reason2-ballot_points-005
reasoning
en
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Jurors rank designs S, Z, W. Positions from best to worst earn 2, 1, 0 points. Ballot groups, written as count × ranking from best to worst: 3 × S>Z>W; 9 × Z>W>S; 3 × W>S>Z. Which design earns the most points?\nBriefly justify your result, then put the answer alone on the last ...
{ "type": "exact", "value": "Z", "tests": [] }
train
wiki-read-ru-7ebf7be14b879a200e15
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-079b49a45244bfff827276
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6146855788401496776-5 (Apache-2.0). Wikipedia contributors, “Пороки древесины” (https://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D1%80%D0%BE%D0%BA%D0%B8_%D0%B4%D1%80%D0%B5%D0%B2%D0%B5%D1%81%D0%B8%D0%BD%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and re...
[ { "role": "user", "content": "Пороки древесины\n\nВ России изучение пороков древесины началось со второй половины XIX века. В это время появилась, например, статья студента В. Мисевича (ученика профессора Д. М. Кайгородова) «Исследование технических свойств древесины красной осины»; однако до 30-х годов XX ...
{ "type": "exact", "value": "ученика профессора Д. М. Кайгородова", "tests": [] }
train
algpy-b9b63d9de243287d-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-b9b63d9de243287d
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/series/geometric.py#is_geometric_series; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `if len(series) == 1:` заменяют на `if len(series) != 1:`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(series):\n if not isinstance(series, list):\n ...
{ "type": "exact", "value": "A", "tests": [] }
train
wiki-read-en-56db439fb26b5844f308
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-59599705876e876c23c453
colon_explanation
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-198281141179125119-1 (Apache-2.0). Wikipedia contributors, “The Kennel Club” (https://en.wikipedia.org/wiki/The_Kennel_Club), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "The Kennel Club\n\nThe Kennel Club registration system divides dogs into seven breed groups. The Kennel Club Groups are: Hound, Working, Terrier, Gundog, Pastoral, Utility and Toy. As of 2011, the Kennel Club recognised 210 breeds of dog. This was increased to 211 breeds with t...
{ "type": "exact", "value": "Hound, Working, Terrier, Gundog, Pastoral, Utility and Toy", "tests": [] }
train
math-verified-conditional_draw-024
math
ru
Original
CC0-1.0
math-verified-conditional_draw
verified_math_conditional_draw
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "В мешке красных жетонов — 5, синих — 5, жёлтых — 5. Два жетона выбирают равновероятно без возвращения. Известно, что среди них есть хотя бы один красный. Какова при этом вероятность, что выбраны ровно один красный и один синий жетон?\nЗапиши точное число в последней строке; нец...
{ "type": "number", "value": "5/12", "tests": [] }
train
gsm-train-5769
math
en
GSM8K
MIT
gsm8k-f84e837ef63a2292d1f4
word_problem_3_steps
OpenAI (2021), GSM8K, original train row 5769
[ { "role": "user", "content": "Amanda has taken 4 quizzes this semester and averaged a 92% score on them. The final quiz is coming up, which is worth the same as each previous quiz. What score does she need in order to get an A in the class, which requires her to average 93% over the 5 quizzes?\nShow a short...
{ "type": "number", "value": "97", "tests": [] }
train
algpy-0b39fde519935d7e-change-impact
code
ru
TheAlgorithms/Python
MIT
algpy-0b39fde519935d7e
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/numerical_analysis/proper_fractions.py#proper_fractions; adapted exercises
[ { "role": "user", "content": "В показанном коде строку `return [f'{numerator}/{denominator}' for numerator in range(1, denominator) if gcd(numerator, denominator) == 1]` заменяют на `return [f'{numerator}/{denominator}' for numerator in range(1, denominator) if gcd(numerator, denominator) != 1]`. Для какого...
{ "type": "exact", "value": "A", "tests": [] }
train
wiki-read-en-68fbd46314846b107edd
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-6dd1fe437df9f3dd7d9e11
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-9075880562053820404-0 (Apache-2.0). Wikipedia contributors, “Giant dog breed” (https://en.wikipedia.org/wiki/Giant_dog_breed), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Giant dog breed\n\nA giant dog breed has no universal height or weight classification, although some groups define \"giant breeds\" as those heavier than 50 kilograms (110lb). Giant breeds grow rapidly, but take longer to mature into their full adult sizes than smaller dogs.\n\...
{ "type": "exact", "value": "50 kilograms", "tests": [] }
train
math-verified-three_clubs-005
math
ru
Original
CC0-1.0
math-verified-three_clubs
verified_math_three_clubs
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Численность трёх учебных групп: A — 16, B — 25, C — 27. На A и B записаны 11, на B и C — 10, на A и C — 10. Число участников всех трёх групп — 8; они включены в каждое парное пересечение. Сколько человек записалось ровно на одно занятие?\nЗапиши точное число в последней строке;...
{ "type": "number", "value": "30", "tests": [] }
train
wiki-read-ru-402840683665354f8ede
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-98fe612e9a5dd2b51477a6
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7028593106954466426-0 (Apache-2.0). Wikipedia contributors, “Бахчисарайский фонтан (балет)” (https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D1%85%D1%87%D0%B8%D1%81%D0%B0%D1%80%D0%B0%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D1%84%D0%BE%D0%BD%D1%82%D0%B0%D0%BD_(%D0%B1%D0%B0%D0%BB%...
[ { "role": "user", "content": "Бахчисарайский фонтан (балет)\n\nБахчисарайский фонтан — хореографическая поэма в четырёх действиях с прологом и эпилогом по мотивам одноимённой поэмы Александра Пушкина композитора Бориса Асафьева, поставленная балетмейстером Ростиславом Захаровым по сценарию Николая Волкова в...
{ "type": "exact", "value": "хореографическая поэма в четырёх действиях с прологом и эпилогом по мотивам одноимённой поэмы Александра Пушкина композитора Бориса Асафьева, поставленная балетмейстером Ростиславом Захаровым по сценарию Николая Волкова в 1934 году", "tests": [] }
train
wiki-read-ru-3ac9ab195011e02be1a4
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-11c778c1c2429c68d675d0
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7986068561190162364-43 (Apache-2.0). Wikipedia contributors, “Чемпионат мира по регби 2015 (составы)” (https://ru.wikipedia.org/wiki/%D0%A7%D0%B5%D0%BC%D0%BF%D0%B8%D0%BE%D0%BD%D0%B0%D1%82_%D0%BC%D0%B8%D1%80%D0%B0_%D0%BF%D0%BE_%D1%80%D0%B5%D0%B3%D0%B1%D0%B8_2015_(%D1...
[ { "role": "user", "content": "Чемпионат мира по регби 2015 (составы)\n\nСостав был предоставлен 30 августа 2015 года. 10 октября Джо Муди заменил в составе Тони Вудкока, получившего травму во время игры с командой Тонга. 29 октября Ману Паулиаси заменил в составе Уайатта Крокетта, получившего травму во врем...
{ "type": "exact", "value": "105 кг", "tests": [] }
train
reason2-light_piece-068
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали J, T, A, S, U, X, V, E должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): S+V+U+J < E+X+A+T; X+J+V+A < U+S+T+E; S+X = E+V. Какая деталь легче?\nПриведи ход решения в нескольких ...
{ "type": "exact", "value": "J", "tests": [] }
train
algpy-b51b15365e77733b-change-impact
code
en
TheAlgorithms/Python
MIT
algpy-b51b15365e77733b
change-impact
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/two_pointer.py#two_pointer; adapted exercises
[ { "role": "user", "content": "Suppose `while i < j:` is replaced by `while i <= j:` in the program below. Which expression changes its returned value? Briefly explain and write its letter on the last line.\n```python\ndef compute(nums, target):\n i = 0\n j = len(nums) - 1\n while i < j:\n if...
{ "type": "exact", "value": "A", "tests": [] }
train
algpy-f7009c007f8b2533-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-f7009c007f8b2533
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/abs.py#abs_max; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(x):\n if len(x) == 0:\n raise ValueError('compute() arg is an...
{ "type": "exact", "value": "A: 11", "tests": [] }
train
reason2-minimum_cover-019
reasoning
ru
Original
CC0-1.0
reason2-minimum_cover
workshop_minimum_cover
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для выставки нужны образцы всех типов 1, 3, 4, 6, 8. Наборы перечислены с типами внутри: A=1/6/8; R=3/6; Y=1/8; D=1/6/8; Z=1/8; T=4/6. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ." }, {...
{ "type": "number", "value": "3", "tests": [] }
train
wiki-read-en-2b0c60379ebc9ca98e70
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-1d4639f538880153e970ce
measurement
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1475385789907800108-0 (Apache-2.0). Wikipedia contributors, “University of Freiburg” (https://en.wikipedia.org/wiki/University_of_Freiburg), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "University of Freiburg\n\nThe University of Freiburg (colloquially German: Uni Freiburg), officially the Albert Ludwig University of Freiburg (German: Albert-Ludwigs-Universität Freiburg), is a public research university located in Freiburg im Breisgau, Baden-Württemberg, Germa...
{ "type": "exact", "value": "16%", "tests": [] }
train
math-verified-skipped_payment-023
math
ru
Original
CC0-1.0
math-verified-skipped_payment
verified_math_skipped_payment
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "В первый день планировали отложить 16 руб., а в каждый следующий — на 6 руб. больше, чем было запланировано накануне. План рассчитан на 10 дней. Ровно в один день взнос пропустили; все остальные суммы внесли по расписанию. Всего отложили 396 руб. В какой по счёту день пропустил...
{ "type": "number", "value": "4", "tests": [] }
train
algpy-b9086e220cd94ef8-trace
code
ru
TheAlgorithms/Python
MIT
algpy-b9086e220cd94ef8
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/nth_fibonacci_using_matrix_exponentiation.py#nth_fibonacci_matrix; adapted exercises
[ { "role": "user", "content": "```python\ndef identity(n):\n return [[int(row == column) for column in range(n)] for row in range(n)]\n\ndef multiply(matrix_a, matrix_b):\n matrix_c = []\n n = len(matrix_a)\n for i in range(n):\n list_1 = []\n for j in range(n):\n val = 0...
{ "type": "exact", "value": "354224848179261915075", "tests": [] }
train
reason2-ballot_points-012
reasoning
ru
Original
CC0-1.0
reason2-ballot_points
workshop_ballot_points
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Жюри оценивает макеты H, F, N. Баллы за места, начиная с первого: 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 6 × F>N>H; 2 × H>F>N; 9 × F>H>N; 8 × H>N>F; 8 × N>F>H. У какого макета больше всего баллов?\nКратко обоснуй ответ и запиши ...
{ "type": "exact", "value": "F", "tests": [] }
train
algpy-216188043fd1b3a3-check-assertions
code
en
TheAlgorithms/Python
MIT
algpy-216188043fd1b3a3
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/levenshtein_distance.py#levenshtein_distance_optimized; 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(first_word, second_word):\n if len(first_word) < len(second_word):\n ...
{ "type": "exact", "value": "B: 3", "tests": [] }
train
reason2-event_selection-000
reasoning
ru
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: M 0–6; P 16–18; L 9–16; V 15–17; U 15–17; Z 10–14; Y 12–16. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПриведи ход решения в нескольк...
{ "type": "number", "value": "3", "tests": [] }
train
gsm-train-6661
math
en
GSM8K
MIT
gsm8k-26f7748625f0a8327ee0
word_problem_7_steps
OpenAI (2021), GSM8K, original train row 6661
[ { "role": "user", "content": "James started a food fight in his school's cafeteria, and the school administration is making him work off the cost of all the food he wasted at minimum wage ($8). James has to pay for 20 wasted pounds of meat at $5/pound, 15 wasted pounds of fruits and vegetables at $4/pound, ...
{ "type": "number", "value": "50", "tests": [] }
train
wiki-read-en-4872abe62c5c94808873
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-ef5bdda2fee89f13e63904
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3870442546814732554-10 (Apache-2.0). Wikipedia contributors, “New France” (https://en.wikipedia.org/wiki/New_France), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "New France\n\nIn 1534, Jacques Cartier planted a cross in the Gaspé Peninsula and claimed the land in the name of King Francis I. It was the first province of New France. The first settlement of 400 people, Fort Charlesbourg-Royal (present-day Quebec City), was attempted in 154...
{ "type": "exact", "value": "1534, 1541", "tests": [] }
train
reason2-bottleneck-058
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: P–J=17; J–H=14; J–F=6; H–C=3; J–W=8; G–F=11; C–W=7; W–G=7; W–F=7; P–W=10. A box must travel from P to F without rotation. What is its largest possible width?\nShow a short check. Give the final answer on a sepa...
{ "type": "number", "value": "7", "tests": [] }
train
wiki-read-ru-bf1a0d4870373f711cec
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-bc3a84332b6ffe6e283682
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2637242268973711320-0 (Apache-2.0). Wikipedia contributors, “Дом-музей Островского” (https://ru.wikipedia.org/wiki/%D0%94%D0%BE%D0%BC-%D0%BC%D1%83%D0%B7%D0%B5%D0%B9_%D0%9E%D1%81%D1%82%D1%80%D0%BE%D0%B2%D1%81%D0%BA%D0%BE%D0%B3%D0%BE), snapshot 2019-02-01 (CC-BY-SA-3....
[ { "role": "user", "content": "Дом-музей Островского\n\nДом-музей Алекса́ндра Никола́евича Остро́вского (Дом Островского) — музей, посвящённый творчеству драматурга Александра Островского. Расположен в двухэтажном деревянном доме на Малой Ордынке, в котором писатель прожил первые три года жизни с 1823-го по ...
{ "type": "exact", "value": "Дом Островского", "tests": [] }
train
wiki-read-en-e6db7ea122177053efdd
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-8af7d5e99e0c4825ccfce6
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3208297455521247864-0 (Apache-2.0). Wikipedia contributors, “Catopsbaatar” (https://en.wikipedia.org/wiki/Catopsbaatar), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Catopsbaatar\n\nCatopsbaatar is a genus of multituberculate, an extinct order of rodent-like mammals. It lived in what is now Mongolia during the late Campanian age of the Late Cretaceous Period, about 72 million years ago. The first fossils were collected in the early 1970s, a...
{ "type": "exact", "value": "Catopsbaatar, Greek and Mongolian for \"visible hero\"", "tests": [] }
train
reason2-light_piece-002
reasoning
en
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Parts B, T, A, Z, R, L, M, G, U, V have identical weights except for one lighter part. Each balance test puts the same number on both pans. Signs compare left weight with right: M+A = V+B; B+G+Z+R > U+A+M+L; L+V < A+Z. Which part is lighter?\nBriefly justify your result, then p...
{ "type": "exact", "value": "L", "tests": [] }
train
reason2-light_piece-030
reasoning
en
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Parts V, Y, C, R, H, L, U, Z have identical weights except for one lighter part. Each balance test puts the same number on both pans. Signs compare left weight with right: R+Y+V+U < L+Z+C+H; Z+U+R > V+Y+L; V+C < L+Y. Which part is lighter?\nBriefly justify your result, then put...
{ "type": "exact", "value": "V", "tests": [] }
train
math-verified-quadratic_samples-004
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(-3) = -27, f(1) = -11, f(5) = -91. Чему равно f(9)?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью." }, { "role": "assistant", "content": "Аргументы идут с шагом 4. Две соседние ...
{ "type": "number", "value": "-267", "tests": [] }
train
reason2-pareto-055
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 (25, 46); N (26, 29); T (18, 57); E (4, 51); C (15, 21); F (9, 64); Y (21, 28); M (24, 41). Discard any option if another is both faster and cheaper. Give the surviving codes alphabetically, separated by spaces.\nExplain in...
{ "type": "exact", "value": "C E", "tests": [] }
train
reason2-fair_slots-006
reasoning
en
Original
CC0-1.0
reason2-fair_slots
workshop_fair_slots
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "A club allocates studio hours one by one. Section weights: D=29, F=15, G=25, S=22. Each next hour goes to the largest weight / (1 + hours already awarded), ties to the alphabetically first code. Starting from zero, which section gets hour 8?\nShow a short check. Give the final ...
{ "type": "exact", "value": "D", "tests": [] }
train
reason2-room_peak-031
reasoning
ru
Original
CC0-1.0
reason2-room_peak
workshop_room_peak
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Репетиции занимают отдельные комнаты в такие минуты: R [18,25); X [17,24); E [5,9); A [4,11); C [2,9); L [4,9); B [15,21); D [16,21). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nКратко обоснуй ответ и зап...
{ "type": "number", "value": "4", "tests": [] }
train
reason2-editing_history-014
reasoning
ru
Original
CC0-1.0
reason2-editing_history
workshop_editing_history
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В редакторе поле сначала содержит S. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать Z; записать W; повт...
{ "type": "exact", "value": "J", "tests": [] }
train
reason2-light_piece-029
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали D, W, P, B, R, F, E, L, K, G, Z должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): Z+D+B+P = W+L+G+R; P+R+L+F = W+B+Z+D; E+D+B+W+G > R+L+K+P+Z. Какая деталь легче?\nПриведи ход ...
{ "type": "exact", "value": "K", "tests": [] }
train
verified-code-coin_reachable-repair
code
ru
Original
CC0-1.0
verified-code-coin_tables
verified_repair
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Исправь одну строку. coin_reachable([1, 2], 5) даёт False, ожидается True. coins содержит разные положительные целые номиналы, запас каждого неограничен. Для целой суммы target ≥ 0 верни True, если сумму можно набрать, иначе False. Пустой набор даёт сумму 0 одним способом.\n```...
{ "type": "code", "value": "", "tests": [ "assert coin_reachable([], 0) == True", "assert coin_reachable([], 3) == False", "assert coin_reachable([2], 4) == True", "assert coin_reachable([2, 4], 7) == False", "assert coin_reachable([1, 3, 4], 6) == True", "assert coin_reachable([4, 3], 12)...
train
gsm-train-1837
math
en
GSM8K
MIT
gsm8k-1c9cd56d97f9a49a6639
word_problem_6_steps
OpenAI (2021), GSM8K, original train row 1837
[ { "role": "user", "content": "Caleb, Andy and Billy went on a picnic with their father. Billy took 6 candies with him, Caleb took 11 and Andy left with 9. On the way, their father bought a packet of 36 candies. He gave 8 candies to Billy, 11 to Caleb and the rest to Andy. How many more candies does Andy now...
{ "type": "number", "value": "4", "tests": [] }
train
reason2-join_catalogs-040
reasoning
ru
Original
CC0-1.0
reason2-join_catalogs
workshop_join_catalogs
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Каталог связывает код книги с полкой: B16=S4, B39=S9, B44=S4, B38=S6, B32=S9. Соответствие полок и залов: S6=P, S4=R, S9=W. Число выданных экземпляров по коду книги: B39=5, B38=8, B16=13, B32=10, B44=11. В каком зале больше всего выдач?\nПокажи короткую проверку, а в конце на о...
{ "type": "exact", "value": "R", "tests": [] }
train
reason2-minimum_cover-043
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, 5, 6, 7, 9. Наборы перечислены с типами внутри: Y=2/7; U=1/2/9; W=1/7; H=1/2/6/9; F=1; M=5; V=2/6/7/9. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПриведи ход решения в нескольких фразах. На последней строке ост...
{ "type": "number", "value": "3", "tests": [] }
train
reason2-event_selection-008
reasoning
ru
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: D 18–25; E 9–17; F 19–26; Z 17–24; H 14–18; M 4–8. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nКратко обоснуй ответ и запиши сам ответ...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-804b4257f8f677ef-implement
code
en
TheAlgorithms/Python
MIT
algpy-804b4257f8f677ef
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/largest_pow_of_two_le_num.py#largest_pow_of_two_le_num; adapted exercises
[ { "role": "user", "content": "Implement this Python function. For a positive integer n, return the greatest power of two no larger than n.\nSignature: def largest_pow_of_two_le_num(number):\nExamples:\n```python\nassert largest_pow_of_two_le_num(1) == 1\nassert largest_pow_of_two_le_num(2) == 2\n```" }, ...
{ "type": "code", "value": "", "tests": [ "assert largest_pow_of_two_le_num(3) == 2", "assert largest_pow_of_two_le_num(4) == 4", "assert largest_pow_of_two_le_num(7) == 4", "assert largest_pow_of_two_le_num(8) == 8", "assert largest_pow_of_two_le_num(15) == 8", "assert largest_pow_of_two_...
train
reason2-connected_groups-012
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка E, J, P, F, H, T, G, L, X свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: H–G, L–J, E–X, F–H, J–E, G–F. Добавляют связь E–G. Сколько кодов будет в образовавшемся архиве?\...
{ "type": "number", "value": "7", "tests": [] }
train
reason2-connected_groups-050
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка G, X, H, D, N, F, Z, E свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: F–H, N–H, E–N, F–E, G–D, D–X, Z–G. Добавляют связь X–F. Сколько кодов будет в образовавшемся архиве...
{ "type": "number", "value": "8", "tests": [] }
train
wiki-read-ru-19d1837f462fa005a0f7
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-067a3c7e9262be06209db8
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3209282395933864984-0 (Apache-2.0). Wikipedia contributors, “Планеты-гиганты” (https://ru.wikipedia.org/wiki/%D0%9F%D0%BB%D0%B0%D0%BD%D0%B5%D1%82%D1%8B-%D0%B3%D0%B8%D0%B3%D0%B0%D0%BD%D1%82%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference...
[ { "role": "user", "content": "Планеты-гиганты\n\nПланеты-гиганты — четыре планеты Солнечной системы (Юпитер, Сатурн, Уран и Нептун) расположенные за пределами пояса астероидов. Эти планеты, имеющие ряд сходных физических характеристик, также называют внешними планетами.\n\nКак в начале отрывка определяется ...
{ "type": "exact", "value": "четыре планеты Солнечной системы (Юпитер, Сатурн, Уран и Нептун) расположенные за пределами пояса астероидов", "tests": [] }
train
wiki-read-en-cad3d2531a69822cdce3
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-831af0095cf04f59682777
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7198568690822443860-0 (Apache-2.0). Wikipedia contributors, “WFRV-TV” (https://en.wikipedia.org/wiki/WFRV-TV), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "WFRV-TV\n\nWFRV-TV, virtual channel 5 (UHF digital channel 39), is a CBS-affiliated television station licensed to Green Bay, Wisconsin, United States. The station is owned by the Nexstar Media Group. WFRV's studios are located on East Mason Street in the City of Green Bay, and...
{ "type": "exact", "value": "UHF digital channel 39", "tests": [] }
train
wiki-read-ru-8e8533fc4c0dd3b91079
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-9fad41ccf117b7646ab260
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5249573168675624912-12 (Apache-2.0). Wikipedia contributors, “Бердск” (https://ru.wikipedia.org/wiki/%D0%91%D0%B5%D1%80%D0%B4%D1%81%D0%BA), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Бердск\n\nВ 1716 году под руководством Ивана Буткеева (пленённого поляка, прижившегося в России и ставшего служилым человеком) началось строительство острога. С двух сторон он был защищён естественными преградами: Обью и Бердью и их высокими крутыми берегами, с которых хорошо п...
{ "type": "exact", "value": "пленённого поляка, прижившегося в России и ставшего служилым человеком", "tests": [] }
train
algpy-6a5b501fd1b70f94-trace
code
ru
TheAlgorithms/Python
MIT
algpy-6a5b501fd1b70f94
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/spearman_rank_correlation_coefficient.py#assign_ranks; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(data):\n n = len(data)\n ranked_data = sorted(((value, index) for index, value in enumerate(data)))\n ranks = [0.0] * n\n i = 0\n while i < n:\n j = i\n while j < n - 1 and ranked_data[j + 1][0] == ranked_data[i][0]:\n ...
{ "type": "exact", "value": "[3.0, 1.0, 5.0, 2.0, 4.0]", "tests": [] }
train
algpy-26f69244f8616d30-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-26f69244f8616d30
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#fahrenheit_to_kelvin; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(fahrenheit, ndigits=2):\n return round((float(fahrenheit) - 32) * 5 ...
{ "type": "exact", "value": "B: 407.236", "tests": [] }
train
algpy-27800ed39d75373e-trace
code
ru
TheAlgorithms/Python
MIT
algpy-27800ed39d75373e
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/modular_division.py#extended_gcd; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(a, b):\n assert a >= 0\n assert b >= 0\n if b == 0:\n d, x, y = (a, 1, 0)\n else:\n d, p, q = compute(b, a % b)\n x = q\n y = p - q * (a // b)\n assert a % d == 0\n assert b % d == 0\n assert d == a * x + b...
{ "type": "exact", "value": "(2, -1, 2)", "tests": [] }
train
wiki-read-en-9db221f0e1aaf08eeddc
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-e63e17e879f9d82c252852
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-2919324936441894936-6 (Apache-2.0). Wikipedia contributors, “Ram Trucks” (https://en.wikipedia.org/wiki/Ram_Trucks), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Ram Trucks\n\nIn August 2014, Ram truck brand CEO Reid Bigland was tapped to lead the Alfa Romeo brand in North America. It was announced that the new head of the Ram Trucks brand would be longtime Chrysler employee Robert Hegbloom, who joined Chrysler in 1986 and had previousl...
{ "type": "exact", "value": "who joined Chrysler in 1986 and had previously been a director for the Dodge brand", "tests": [] }
train
algpy-3c2da6e7d8ab3ad2-trace
code
ru
TheAlgorithms/Python
MIT
algpy-3c2da6e7d8ab3ad2
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#area_circle; 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 pi * radius ** 2\n```\nЧто вернёт выражение round(compute(1.6), 6)? Запиши repr результата Python." }, { "role"...
{ "type": "exact", "value": "8.042477", "tests": [] }
train
gsm-train-814
math
en
GSM8K
MIT
gsm8k-8842d16ffa0963d6b950
word_problem_4_steps
OpenAI (2021), GSM8K, original train row 814
[ { "role": "user", "content": "Tom cannot afford a normal doctor, so he goes to a discount clinic that is 70% cheaper. It takes two visits, though, instead of 1. A normal doctor charges $200 for a visit. How much money does he save?\nShow a short calculation. Put the final number alone on the last line...
{ "type": "number", "value": "80", "tests": [] }
train
wiki-read-en-133bff2214c65697a8f5
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-3fe44c475eaaac1e55abc7
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6585443390122142993-0 (Apache-2.0). Wikipedia contributors, “Ronnie Van Zant” (https://en.wikipedia.org/wiki/Ronnie_Van_Zant), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Ronnie Van Zant\n\nRonald Wayne Van Zant (January 15, 1948 – October 20, 1977) was an American lead vocalist, primary lyricist, and founding member of the Southern rock band Lynyrd Skynyrd. He was the older brother of two other rock vocalists: current Lynyrd Skynyrd lead vocali...
{ "type": "exact", "value": "January 15, 1948 – October 20, 1977", "tests": [] }
train
reason2-minimum_cover-054
reasoning
ru
Original
CC0-1.0
reason2-minimum_cover
workshop_minimum_cover
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Для выставки нужны образцы всех типов 2, 3, 4, 5, 6, 7, 8. Наборы перечислены с типами внутри: S=6; J=5; X=6/8; F=2/5/7; R=3; Z=5; B=2/4/8. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ." }...
{ "type": "number", "value": "4", "tests": [] }
train
wiki-read-ru-eb9d0c513375b562017f
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-1029ab7c5eace8087a2d22
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7872253149647494296-0 (Apache-2.0). Wikipedia contributors, “Гусиное перо” (https://ru.wikipedia.org/wiki/%D0%93%D1%83%D1%81%D0%B8%D0%BD%D0%BE%D0%B5_%D0%BF%D0%B5%D1%80%D0%BE), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. ...
[ { "role": "user", "content": "Гусиное перо\n\nГусиное перо — перо гуся, использовавшееся в качестве письменного инструмента на протяжении VII—XIX веков, до изобретения металлического пера. В современной культуре является негласным символом литературного творчества и поэзии.\n\nКак в начале отрывка определяе...
{ "type": "exact", "value": "перо гуся, использовавшееся в качестве письменного инструмента на протяжении VII—XIX веков, до изобретения металлического пера", "tests": [] }
train
wiki-read-ru-3235dac7dc7971809c9f
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-bb465b121e2f41a2fb94cd
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5258587205119781193-0 (Apache-2.0). Wikipedia contributors, “Вселенная Стивена” (https://ru.wikipedia.org/wiki/%D0%92%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%A1%D1%82%D0%B8%D0%B2%D0%B5%D0%BD%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespac...
[ { "role": "user", "content": "Вселенная Стивена\n\n«Вселенная Стивена» — американский мультсериал, созданный Ребеккой Шугар, известной по работе над «Временем приключений» для телеканала Cartoon Network. Сериал был номинирован на премию «Эмми» и дважды на «Энни».\n\nКак в начале отрывка определяется ««Вселе...
{ "type": "exact", "value": "американский мультсериал, созданный Ребеккой Шугар, известной по работе над «Временем приключений» для телеканала Cartoon Network", "tests": [] }
train
algpy-8bb5f5e58893d5ab-implement
code
en
TheAlgorithms/Python
MIT
algpy-8bb5f5e58893d5ab
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/catalan_numbers.py#catalan_numbers; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the list of all Catalan numbers from index 0 through index n inclusive, with C_i = binomial(2i,i)/(i+1), for 0 ≤ n ≤ 12.\nSignature: def catalan_numbers(upper_limit):\nExamples:\n```python\nassert catalan_numbers(0) == [1]\nassert catalan_...
{ "type": "code", "value": "", "tests": [ "assert catalan_numbers(2) == [1, 1, 2]", "assert catalan_numbers(3) == [1, 1, 2, 5]", "assert catalan_numbers(4) == [1, 1, 2, 5, 14]", "assert catalan_numbers(5) == [1, 1, 2, 5, 14, 42]", "assert catalan_numbers(6) == [1, 1, 2, 5, 14, 42, 132]", "...
train
wiki-read-ru-f8d8b3a4bddc9df1be9f
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-8c1fcdd90eb8ca3eecb85f
colon_explanation
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1943649382977343695-19 (Apache-2.0). Wikipedia contributors, “Янтарь” (https://ru.wikipedia.org/wiki/%D0%AF%D0%BD%D1%82%D0%B0%D1%80%D1%8C), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Янтарь\n\nЯнтарь различают и по цвету: оттенков янтаря ничуть не меньше, чем цветов в спектре. Причиной такого разнообразия обычно становится присутствие в теле янтаря посторонних по отношению к смоле веществ и минералов. Например, серный колчедан или водоросли придают янтарю з...
{ "type": "exact", "value": "оттенков янтаря ничуть не меньше, чем цветов в спектре", "tests": [] }
train
reason2-connected_groups-034
reasoning
ru
Original
CC0-1.0
reason2-connected_groups
workshop_connected_groups
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Сначала у каждого кода из списка G, H, K, S, Y, T, J, C, M, E, D свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: S–Y, E–H, E–Y, E–K, Y–H, K–Y, T–J, D–J, G–S, T–D, C–D, M–J, C–T, H–G. Добавляют связь S–J....
{ "type": "number", "value": "11", "tests": [] }
train
reason2-frequency_median-053
reasoning
ru
Original
CC0-1.0
reason2-frequency_median
workshop_frequency_median
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 21×11; 29×10; 37×7; 5×9; 44×11; 30×5. Какова медианная длительность одного занятия?\nКратко обоснуй ответ и запиши сам ответ на последней строке." }, { "role": "assistant", "content": "Общее чи...
{ "type": "number", "value": "29", "tests": [] }
train
math-verified-tank_posts-001
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 22 by 12 cm and vertical sides. Two solid rectangular posts rise from opposite corners of the floor. Their footprints measure 2 by 4 and 4 by 2 cm. They do not overlap and both extend above the final water level. How many liters mus...
{ "type": "number", "value": "248/125", "tests": [] }
train
wiki-read-ru-ce7f5f161c39ea374763
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-3203ef4d302b454b13e7ab
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8850135302320534131-3 (Apache-2.0). Wikipedia contributors, “Польский злотый” (https://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D0%BB%D1%8C%D1%81%D0%BA%D0%B8%D0%B9_%D0%B7%D0%BB%D0%BE%D1%82%D1%8B%D0%B9), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference...
[ { "role": "user", "content": "Польский злотый\n\nВ настоящее время в обращении находятся банкноты номиналом 10, 20, 50, 100, 200 и 500 злотых, а также монеты — 1, 2, 5, 10, 20 и 50 грошей и 1, 2 и 5 злотых. Также законным платёжным средством формально являются памятные монеты (из благородных металлов) номин...
{ "type": "exact", "value": "из благородных металлов", "tests": [] }
train
wiki-read-en-9d32c380b5aef7cc1ec7
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-025f1985e3910d8a72a279
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7173018109879591741-0 (Apache-2.0). Wikipedia contributors, “The Doctor (Doctor Who)” (https://en.wikipedia.org/wiki/The_Doctor_(Doctor_Who)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "The Doctor (Doctor Who)\n\nThe Doctor is the title character in the long-running BBC science fiction television programme Doctor Who. Since the show's inception in 1963, the character has been portrayed by thirteen lead actors. In the programme, \"the Doctor\" is the alias assu...
{ "type": "exact", "value": "the title character in the long-running BBC science fiction television programme Doctor Who", "tests": [] }
train
algpy-b910aa39df991842-implement
code
en
TheAlgorithms/Python
MIT
algpy-b910aa39df991842
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/equilibrium_index_in_array.py#equilibrium_index; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return the first zero-based index of an integer list at which the sum before the index equals the sum after it, excluding the indexed item. Return -1 if no such index exists.\nSignature: def equilibrium_index(arr):\nExamples:\n```python\nassert e...
{ "type": "code", "value": "", "tests": [ "assert equilibrium_index([1]) == 0", "assert equilibrium_index([-3]) == 0", "assert equilibrium_index([1, -1, 0]) == 2", "assert equilibrium_index([1, 1, 1]) == 1", "assert equilibrium_index([-1, 0, 1, 2, -1, -4]) == -1", "assert equilibrium_index...
train
reason2-minimum_cover-028
reasoning
en
Original
CC0-1.0
reason2-minimum_cover
workshop_minimum_cover
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "The exhibition needs all sample types 1, 2, 3, 5, 6, 7, 8, 9. Available kits and the types they contain: Y=1/2/5; K=1/3/5/8; Z=7/9; V=2/3/6; P=1/6/8/9; U=8. Duplicate samples are allowed. What is the fewest kits that cover every type?\nShow a short check. Give the final answer ...
{ "type": "number", "value": "3", "tests": [] }
train
math-verified-syrup-026
math
ru
Original
CC0-1.0
math-verified-syrup
verified_math_syrup
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "Смешали два сахарных сиропа с массовыми долями сахара 10% и 15%. При нагревании испарилось 10 г воды; сахар полностью остался в смеси. После нагревания масса смеси составила 390 г, в том числе 51 г сахара. Сколько граммов 15%-го сиропа взяли?\nЗапиши точное число в последней ст...
{ "type": "number", "value": "220", "tests": [] }
train
verified-code-coin_minimum-implement
code
en
Original
CC0-1.0
verified-code-coin_tables
verified_implement
Original algorithm and independent oracle, release 2; CC0-1.0.
[ { "role": "user", "content": "Implement coin_minimum(coins, target) in Python. coins contains distinct positive integer denominations in unlimited supply. For integer target ≥ 0 return the fewest coins, or -1 if impossible. The empty collection makes zero in one way.\nassert coin_minimum([2], 4) == 2" }, ...
{ "type": "code", "value": "", "tests": [ "assert coin_minimum([], 0) == 0", "assert coin_minimum([], 3) == -1", "assert coin_minimum([2, 4], 7) == -1", "assert coin_minimum([1, 3, 4], 6) == 2", "assert coin_minimum([4, 3], 12) == 3", "assert coin_minimum([3, 5], 9) == 3", "assert coin...
train
algpy-95d89ffed5e3ffc7-implement
code
en
TheAlgorithms/Python
MIT
algpy-95d89ffed5e3ffc7
implement
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/lucas_series.py#dynamic_lucas_number; adapted exercises
[ { "role": "user", "content": "Implement this Python function. Return L(n) for integer 0 ≤ n ≤ 12, where L(0)=2, L(1)=1 and L(n)=L(n−1)+L(n−2).\nSignature: def dynamic_lucas_number(n_th_number):\nExamples:\n```python\nassert dynamic_lucas_number(0) == 2\nassert dynamic_lucas_number(1) == 1\n```" }, { ...
{ "type": "code", "value": "", "tests": [ "assert dynamic_lucas_number(2) == 3", "assert dynamic_lucas_number(3) == 4", "assert dynamic_lucas_number(4) == 7", "assert dynamic_lucas_number(5) == 11", "assert dynamic_lucas_number(6) == 18", "assert dynamic_lucas_number(7) == 29", "assert...
train
wiki-read-en-5a770969e7d3bb064dbf
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-e8d3c452be16c70d69f584
definition
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-2755817057464857721-0 (Apache-2.0). Wikipedia contributors, “Kaine Parker” (https://en.wikipedia.org/wiki/Kaine_Parker), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Kaine Parker\n\nKaine Parker is a fictional character appearing in American comic books published by Marvel Comics. The character has been depicted as a superhero and former supervillain who serves as an ally, an enemy, and a foil of Spider-Man (Peter Parker) and Ben Reilly. Cr...
{ "type": "exact", "value": "a fictional character appearing in American comic books published by Marvel Comics", "tests": [] }
train
math-verified-tickets-005
math
en
Original
CC0-1.0
math-verified-tickets
verified_math_tickets
Original bilingual mathematics exercises, CC0-1.0
[ { "role": "user", "content": "A group paid 2575 dollars for 36 tickets, including a single booking fee of 10 dollars for the entire order. Full-price tickets cost 75 dollars and reduced tickets cost 30. How many full-price tickets were in the order?\nGive the exact number on the last line; use a reduced fra...
{ "type": "number", "value": "33", "tests": [] }
train
wiki-read-en-3f4c4dc80eadcf470b55
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-d0f8e4f6980cda86901376
chronology
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--6856343532751120635-0 (Apache-2.0). Wikipedia contributors, “History of the telescope” (https://en.wikipedia.org/wiki/History_of_the_telescope), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "History of the telescope\n\nThe earliest known telescope appeared in 1608 in the Netherlands when an eyeglass maker named Hans Lippershey tried to obtain a patent on one. Although Lippershey did not receive his patent, news of the new invention soon spread across Europe. The de...
{ "type": "exact", "value": "1608, 1611, 1655", "tests": [] }
train
reason2-light_piece-051
reasoning
ru
Original
CC0-1.0
reason2-light_piece
workshop_light_piece
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Детали V, M, X, H, C, L, S должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): H+V+M > L+X+S; H+M+L > C+S+X; M+V > H+S. Какая деталь легче?\nКратко обоснуй ответ и запиши сам ответ на п...
{ "type": "exact", "value": "S", "tests": [] }
train
wiki-read-ru-97a4093b98f4da91dc80
ru
ru
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-ru-b93bad1f95110cf8836e96
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-3206071995480568774-2 (Apache-2.0). Wikipedia contributors, “Зоология” (https://ru.wikipedia.org/wiki/%D0%97%D0%BE%D0%BE%D0%BB%D0%BE%D0%B3%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\nОписания животных известны с древнейших времён. Так, имеются книги о животных, созданные в Древнем Китае и Индии. Однако зоология как наука берёт начало в античной Греции и связана с именем Аристотеля. В его произведениях описано около 500 видов животных; ему принад...
{ "type": "exact", "value": "корреляции", "tests": [] }
train
algpy-39175ca9e806f40e-trace
code
ru
TheAlgorithms/Python
MIT
algpy-39175ca9e806f40e
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, sorts/stalin_sort.py#stalin_sort; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(sequence):\n if not sequence:\n return []\n result = [sequence[0]]\n for element in sequence[1:]:\n if element >= result[-1]:\n result.append(element)\n return result\n```\nЧто вернёт выражение compute([1, 2, 3, 4, 5])...
{ "type": "exact", "value": "[1, 2, 3, 4, 5]", "tests": [] }
train
algpy-15ea4c47d66faa61-trace
code
en
TheAlgorithms/Python
MIT
algpy-15ea4c47d66faa61
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/binary_to_gray_code.py#binary_to_gray; adapted exercises
[ { "role": "user", "content": "```python\ndef compute(binary_number):\n if not isinstance(binary_number, int):\n raise TypeError('Input must be an integer')\n if binary_number < 0:\n raise ValueError('Input must be a non-negative integer')\n return binary_number ^ binary_number >> 1\n`...
{ "type": "exact", "value": "1", "tests": [] }
train
wiki-read-en-2e5f52a467d787bc08a2
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-2c0fa16afec706f78fa543
parenthetical_detail
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6536893078341813290-2 (Apache-2.0). Wikipedia contributors, “Eurasian eagle-owl” (https://en.wikipedia.org/wiki/Eurasian_eagle-owl), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Eurasian eagle-owl\n\nWith a total range in Europe and Asia of about 32 million square kilometres (12 million square miles) and a total population estimated to be between 250 thousand and 2.5 million, the IUCN lists the bird's conservation status as being of \"least concern\". ...
{ "type": "exact", "value": "12 million square miles", "tests": [] }
train
gsm-train-2184
math
en
GSM8K
MIT
gsm8k-2130f4cda243951ac6ca
word_problem_5_steps
OpenAI (2021), GSM8K, original train row 2184
[ { "role": "user", "content": "Andrew installed hardwood flooring in his house. His bedroom took eight wooden planks, his living room took twenty planks, and his kitchen took eleven planks. The guest bedroom took two fewer planks than Andrew’s bedroom, and each of his two hallways took four planks. He accide...
{ "type": "number", "value": "65", "tests": [] }
train
reason2-event_selection-044
reasoning
ru
Original
CC0-1.0
reason2-event_selection
workshop_event_selection
Original procedural reasoning, release 2; CC0-1.0.
[ { "role": "user", "content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: U 15–19; J 12–15; F 4–6; G 14–22; X 4–6; E 3–6. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПокажи короткую проверку, а в конце на отд...
{ "type": "number", "value": "3", "tests": [] }
train
algpy-835d04e7b479ea35-trace
code
en
TheAlgorithms/Python
MIT
algpy-835d04e7b479ea35
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, sorts/bead_sort.py#bead_sort; adapted exercises
[ { "role": "user", "content": "```python\ndef bead_sort(sequence):\n if any((not isinstance(x, int) or x < 0 for x in sequence)):\n raise TypeError('Sequence must be list of non-negative integers')\n for _ in range(len(sequence)):\n for i, (rod_upper, rod_lower) in enumerate(zip(sequence,...
{ "type": "exact", "value": "[1, 2, 3, 4, 5, 6, 7, 8, 9]", "tests": [] }
train
algpy-f7e3465470113a1e-trace
code
ru
TheAlgorithms/Python
MIT
algpy-f7e3465470113a1e
trace
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/nth_fibonacci_using_matrix_exponentiation.py#nth_fibonacci_bruteforce; adapted exercises
[ { "role": "user", "content": "```python\ndef nth_fibonacci_bruteforce(n):\n if n <= 1:\n return n\n fib0 = 0\n fib1 = 1\n for _ in range(2, n + 1):\n fib0, fib1 = (fib1, fib0 + fib1)\n return fib1\n```\nЧто вернёт выражение nth_fibonacci_bruteforce(100)? Запиши repr результата P...
{ "type": "exact", "value": "354224848179261915075", "tests": [] }
train
wiki-read-en-c5c30f1e3a6fa59376fd
en
en
TyDiQA-GoldP
Apache-2.0 AND CC-BY-SA-3.0
tydi-wiki-en-b982a09b35429d8f87552f
clause
Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1203231337305279938-2 (Apache-2.0). Wikipedia contributors, “Oxygen” (https://en.wikipedia.org/wiki/Oxygen), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise.
[ { "role": "user", "content": "Oxygen\n\nOxygen was isolated by Michael Sendivogius before 1604, but it is commonly believed that the element was discovered independently by Carl Wilhelm Scheele, in Uppsala, in 1773 or earlier, and Joseph Priestley in Wiltshire, in 1774. Priority is often given for Priestley...
{ "type": "exact", "value": "who first recognized oxygen as a chemical element and correctly characterized the role it plays in combustion", "tests": [] }
train
algpy-cd9092a450d00f9b-check-assertions
code
ru
TheAlgorithms/Python
MIT
algpy-cd9092a450d00f9b
check-assertions
TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/series/arithmetic.py#is_arithmetic_series; adapted exercises
[ { "role": "user", "content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(series):\n if not isinstance(series, list):\n raise ValueErro...
{ "type": "exact", "value": "A: True", "tests": [] }
train