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-8050f750ac07547f-trace | code | en | TheAlgorithms/Python | MIT | algpy-8050f750ac07547f | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/kth_largest_element.py#kth_largest_element; adapted exercises | [
{
"role": "user",
"content": "```python\ndef partition(arr, low, high):\n pivot = arr[high]\n i = low - 1\n for j in range(low, high):\n if arr[j] >= pivot:\n i += 1\n arr[i], arr[j] = (arr[j], arr[i])\n arr[i + 1], arr[high] = (arr[high], arr[i + 1])\n return i +... | {
"type": "exact",
"value": "9",
"tests": []
} | train |
reason2-rotate_grid-004 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: P W N / H U S / F C R / L Q E. Выполни циклические сдвиги по порядку: строка 3 на 2 вправо; столбец 3 на 1 вниз; строка 3 на 2 вправо; столбец 1 на 1 вниз. Какой символ теперь в строке 4, столбце 1? Нумерация с единицы.\nПокажи короткую провер... | {
"type": "exact",
"value": "R",
"tests": []
} | train |
math-verified-route_speed-003 | math | en | Original | CC0-1.0 | math-verified-route_speed | verified_math_route_speed | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A cyclist rode for 40 minutes at 12 km/h, rested for 15 minutes and rode for 60 minutes at 48 km/h. Each riding speed was constant. What was the average speed in km/h over the entire elapsed time, including the stop?\nGive the exact number on the last line; use a reduced fracti... | {
"type": "number",
"value": "672/23",
"tests": []
} | train |
wiki-read-en-73ffe3adda3d4b0af9a2 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-139fddb8c2d9a31ebf8aea | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8233333775151803466-0 (Apache-2.0). Wikipedia contributors, “The Bold and the Beautiful” (https://en.wikipedia.org/wiki/The_Bold_and_the_Beautiful), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "The Bold and the Beautiful\n\nThe Bold and the Beautiful (often referred to as B&B) is an American television soap opera created by William J. Bell and Lee Phillip Bell for CBS. It premiered on March 23, 1987, as a sister show to the Bells' other soap opera The Young and the Re... | {
"type": "exact",
"value": "often referred to as B&B",
"tests": []
} | train |
reason2-fair_slots-044 | reasoning | ru | Original | CC0-1.0 | reason2-fair_slots | workshop_fair_slots | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Клуб делит часы студии по одному. Веса секций: A=25, K=26, Y=31, Z=20. Следующий час получает секция с наибольшим отношением «вес / (1 + число уже выделенных часов)». При равенстве выбирают первый код по алфавиту. Какой секции достанется час номер 5, если сначала ни у кого нет ... | {
"type": "exact",
"value": "Y",
"tests": []
} | train |
algpy-bebd07da33da0f71-implement | code | en | TheAlgorithms/Python | MIT | algpy-bebd07da33da0f71 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/trimorphic_number.py#is_trimorphic; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. For nonnegative n, return True when the decimal representation of n cubed ends with every digit of n.\nSignature: def is_trimorphic(number):\nExamples:\n```python\nassert is_trimorphic(0) == True\nassert is_trimorphic(2) == False\n```"
},
{
... | {
"type": "code",
"value": "",
"tests": [
"assert is_trimorphic(1) == True",
"assert is_trimorphic(3) == False",
"assert is_trimorphic(4) == True",
"assert is_trimorphic(7) == False",
"assert is_trimorphic(8) == False",
"assert is_trimorphic(15) == False",
"assert is_trimorphic(16) == ... | train |
reason2-assembly_units-047 | reasoning | ru | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для сборки используются спецификации (правая часть — состав одной единицы): Y = 2×F + 6×T; F = 2×A + 4×B; T = 4×A + 6×B. Заказ включает изделия Y в количестве 7 и отдельно узлы F в количестве 5. Сколько отдельных деталей A потребуется?\nКратко обоснуй ответ и запиши сам ответ н... | {
"type": "number",
"value": "206",
"tests": []
} | train |
wiki-read-ru-8c237014d80d13d7df9f | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-471fc82224b7f076ebc5b0 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--1790092124561911971-36 (Apache-2.0). Wikipedia contributors, “Покемон” (https://ru.wikipedia.org/wiki/%D0%9F%D0%BE%D0%BA%D0%B5%D0%BC%D0%BE%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Покемон\n\nИзначально проект назывался Capsule Monsters (букв. «капсульные монстры»), но из-за проблем с регистрацией торговой марки проект переименовали сначала в Capumon, затем в Kapumon, пока, наконец, выбор не пал на Pocket Monsters. Тадзири думал, что Nintendo не захочет п... | {
"type": "exact",
"value": "букв. «капсульные монстры»",
"tests": []
} | train |
algpy-f0e9c1a065f3eb1d-trace | code | en | TheAlgorithms/Python | MIT | algpy-f0e9c1a065f3eb1d | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/reverse_words.py#reverse_words; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(sentence):\n return ' '.join(sentence.split()[::-1])\n```\nWhat does compute('I Love Python') return? Give the Python repr of the value."
},
{
"role": "assistant",
"content": "'Python Love I'"
}
] | {
"type": "exact",
"value": "'Python Love I'",
"tests": []
} | train |
wiki-read-en-dc48ece4de7b32279992 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-be7de517c819c19e558850 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5303491581022245003-0 (Apache-2.0). Wikipedia contributors, “The Walking Dead (comic book)” (https://en.wikipedia.org/wiki/The_Walking_Dead_(comic_book)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise... | [
{
"role": "user",
"content": "The Walking Dead (comic book)\n\nThe Walking Dead is a black-and-white comic book series created by writer Robert Kirkman with art by Tony Moore. It focuses on Rick Grimes, a Kentucky deputy who is shot in the line of duty and awakens from a coma in a zombie apocalypse that has... | {
"type": "exact",
"value": "a black-and-white comic book series created by writer Robert Kirkman with art by Tony Moore",
"tests": []
} | train |
math-verified-rounded_scales-014 | math | en | Original | CC0-1.0 | math-verified-rounded_scales | verified_math_rounded_scales | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A part's length is a whole number of millimeters. One instrument rounds to the nearest multiple of 4 mm, another to the nearest multiple of 18 mm. An exact tie rounds upward for both. They read 96 and 90 mm respectively. How many integer lengths agree with both readings?\nGive ... | {
"type": "number",
"value": "4",
"tests": []
} | train |
algpy-a6d935897ef9ec37-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-a6d935897ef9ec37 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/derangement.py#derangement; 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(objects):\n if objects < 0:\n raise ValueError('k must be a non-negat... | {
"type": "exact",
"value": "A: 2",
"tests": []
} | train |
wiki-read-en-34c889f3af74530c8f33 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-25b9d22ca178987d9ec90d | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5484562770490650862-1 (Apache-2.0). Wikipedia contributors, “Indigenous peoples of Mexico” (https://en.wikipedia.org/wiki/Indigenous_peoples_of_Mexico), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Indigenous peoples of Mexico\n\nAccording to the National Commission for the Development of Indigenous Peoples (Comisión Nacional para el Desarrollo de los Pueblos Indígenas, or CDI in Spanish) and the INEGI (official census institute), in 2015, 25,694,928 people in Mexico self... | {
"type": "exact",
"value": "21.5%",
"tests": []
} | train |
verified-code-peak_load-repair | code | en | Original | CC0-1.0 | verified-code-coverage | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Correct one line. peak_load([(0, 1), (0, 1), (1, 2)]) returns 5; expected 2. Given half-open intervals [a,b) with integer endpoints a ≤ b, return the maximum number active at once. Empty intervals cover nothing; an empty list yields 0.\n```python\ndef peak_load(intervals):\n ... | {
"type": "code",
"value": "",
"tests": [
"assert peak_load([]) == 0",
"assert peak_load([(1, 1)]) == 0",
"assert peak_load([(-3, -1), (2, 5), (7, 8)]) == 1",
"assert peak_load([(0, 3)]) == 1",
"assert peak_load([(0, 2), (2, 4)]) == 1",
"assert peak_load([(0, 5), (2, 6), (3, 4)]) == 3",
... | train |
wiki-read-en-b354ce68b32b61d05650 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-d381c7ec253a3d6d47a7a3 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8596965011767689709-0 (Apache-2.0). Wikipedia contributors, “Hydroxide” (https://en.wikipedia.org/wiki/Hydroxide), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Hydroxide\n\nHydroxide is a diatomic anion with chemical formula OH−. It consists of an oxygen and hydrogen atom held together by a covalent bond, and carries a negative electric charge. It is an important but usually minor constituent of water. It functions as a base, a ligand... | {
"type": "exact",
"value": "a diatomic anion with chemical formula OH−",
"tests": []
} | train |
algpy-b4a43a4d77faa14d-trace | code | en | TheAlgorithms/Python | MIT | algpy-b4a43a4d77faa14d | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/hex_to_rgb.py#hex_to_rgb; adapted exercises | [
{
"role": "user",
"content": "```python\ndef hex_to_rgb(hex_color):\n hex_color = hex_color.lstrip('#')\n if not (len(hex_color) == 6 or len(hex_color) == 3):\n raise ValueError('Invalid hex color code')\n if len(hex_color) == 3:\n hex_color = ''.join([char * 2 for char in hex_color])... | {
"type": "exact",
"value": "'rgb(0, 255, 0)'",
"tests": []
} | train |
wiki-read-en-e9e73bdc762f4491a642 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9fe3b18c44622d610936f3 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4336064457432258503-3 (Apache-2.0). Wikipedia contributors, “Babylon” (https://en.wikipedia.org/wiki/Babylon), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Babylon\n\nThe remains of the city are in present-day Hillah, Babil Governorate, Iraq, about 85 kilometres (53mi) south of Baghdad, comprising a large tell of broken mud-brick buildings and debris.\n\nWhich value is expressed numerically in kilometres? Copy just the number and ... | {
"type": "exact",
"value": "85 kilometres",
"tests": []
} | train |
reason2-light_piece-036 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали Z, L, N, V, D, X, G, E должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): D+L+G > Z+X+E; E+V+N+D > G+L+X+Z; L+G+X+V < D+E+N+Z. Какая деталь легче?\nПриведи ход решения в несколь... | {
"type": "exact",
"value": "X",
"tests": []
} | train |
wiki-read-en-73d496058e9082cb5343 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f34fa074dc4f982ab3bde5 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7296569160258546737-20 (Apache-2.0). Wikipedia contributors, “Agriculture in China” (https://en.wikipedia.org/wiki/Agriculture_in_China), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Agriculture in China\n\nAlthough China's agricultural output is the largest in the world, only about 15% of its total land area can be cultivated. China's arable land, which represents 10% of the total arable land in the world, supports over 20% of the world's population. Of th... | {
"type": "exact",
"value": "the largest in the world, only about 15% of its total land area can be cultivated",
"tests": []
} | train |
reason2-connected_groups-055 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка X, Z, N, S, E, R, Y, D, T, B, M свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: D–T, X–Z, M–D, T–M, Y–Z, S–E, R–Z, B–T, Y–R. Добавляют связь Z–B. Сколько кодов будет в об... | {
"type": "number",
"value": "8",
"tests": []
} | train |
algpy-a18ae6afa49b4a9a-repair | code | en | TheAlgorithms/Python | MIT | algpy-a18ae6afa49b4a9a | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/capitalize.py#capitalize; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Uppercase only the first ASCII character if it is a letter, leave the rest unchanged and preserve the empty string.\nFor capitalize('hello') it should return 'Hello', but returns 'Hell'. Keep the signature.\n```python\ndef capitalize(sentence):\n ... | {
"type": "code",
"value": "",
"tests": [
"assert capitalize('') == ''",
"assert capitalize('a') == 'A'",
"assert capitalize('A') == 'A'",
"assert capitalize('hello') == 'Hello'",
"assert capitalize('AaB') == 'AaB'",
"assert capitalize('a! b') == 'A! b'",
"assert capitalize('aBc') == '... | train |
wiki-read-ru-5294a07e5aba1524440c | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-85567e6d88f0956fb3a0e3 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6134097351980805061-8 (Apache-2.0). Wikipedia contributors, “Золотой мяч France Football 2018” (https://ru.wikipedia.org/wiki/%D0%97%D0%BE%D0%BB%D0%BE%D1%82%D0%BE%D0%B9_%D0%BC%D1%8F%D1%87_France_Football_2018), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace... | [
{
"role": "user",
"content": "Золотой мяч France Football 2018\n\n30 претендентов на премию были объявлены 8 октября 2018. Победитель был объявлен 3 декабря, им стал, Лука Модрич, опередивший занявшего второе место Криштиану Роналду на 275 очков.\n\nНайди полную календарную дату, у которой месяц написан сло... | {
"type": "exact",
"value": "2018-10-08",
"tests": []
} | train |
wiki-read-ru-43f7d999cb8edd8b9405 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-164256f0b5097d81fac55a | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--787076017816881504-35 (Apache-2.0). Wikipedia contributors, “Большой адронный коллайдер” (https://ru.wikipedia.org/wiki/%D0%91%D0%BE%D0%BB%D1%8C%D1%88%D0%BE%D0%B9_%D0%B0%D0%B4%D1%80%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BA%D0%BE%D0%BB%D0%BB%D0%B0%D0%B9%D0%B4%D0%B5%D1%8... | [
{
"role": "user",
"content": "Большой адронный коллайдер\n\nК середине сентября 2008 года была успешно завершена первая часть предварительных испытаний. Команде БАК удалось запустить и непрерывно удерживать циркулирующий пучок. Запущенные пучки протонов успешно прошли весь периметр коллайдера по и против ча... | {
"type": "exact",
"value": "который занял остаток 2008 и бо́льшую часть 2009 года",
"tests": []
} | train |
wiki-read-en-ec7f155dbf9e1c81ea35 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-08a103334423d041046bcc | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8451830731648538283-9 (Apache-2.0). Wikipedia contributors, “Wichita Falls, Texas” (https://en.wikipedia.org/wiki/Wichita_Falls%2C_Texas), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Wichita Falls, Texas\n\nWichita Falls is about 15 miles (24km) south of the border with Oklahoma, 115mi (185km) northwest of Fort Worth, and 140mi (230km) southwest of Oklahoma City. According to the United States Census Bureau, the city has a total area of 70.71 square miles (... | {
"type": "exact",
"value": "0.03%",
"tests": []
} | train |
wiki-read-ru-5e1a3be0636882bf3cd5 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-d98b27e087c762972bdb27 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2380714983637251837-0 (Apache-2.0). Wikipedia contributors, “Штаты и территории Индии” (https://ru.wikipedia.org/wiki/%D0%A8%D1%82%D0%B0%D1%82%D1%8B_%D0%B8_%D1%82%D0%B5%D1%80%D1%80%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D0%B8_%D0%98%D0%BD%D0%B4%D0%B8%D0%B8), snapshot 2019-0... | [
{
"role": "user",
"content": "Штаты и территории Индии\n\nШтаты и территории Индии — первый уровень административного деления Республики Индия. В настоящее время существует 29 штатов и 7 территорий (в том числе 6 союзных территорий и один Национальный столичный округ Дели). Каждый штат, в свою очередь, подр... | {
"type": "exact",
"value": "первый уровень административного деления Республики Индия",
"tests": []
} | train |
wiki-read-en-1ef608a466c472373998 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-6fe21ad022004a65409fe7 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--660322627841846788-0 (Apache-2.0). Wikipedia contributors, “Jon Brower Minnoch” (https://en.wikipedia.org/wiki/Jon_Brower_Minnoch), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Jon Brower Minnoch\n\nJon Brower Minnoch (September 30, 1941 – September 10, 1983) was an American man who, at his peak weight, was the heaviest human being ever recorded, weighing approximately 1,400lb (635 kilograms; 100 stone). This figure was only a close estimation because... | {
"type": "exact",
"value": "635 kilograms",
"tests": []
} | train |
algpy-f3eb66bf1998edc2-implement | code | en | TheAlgorithms/Python | MIT | algpy-f3eb66bf1998edc2 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/binary_to_gray_code.py#gray_to_decimal; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Decode the supplied nonempty string of reflected binary Gray-code digits as a nonnegative decimal integer.\nSignature: def gray_to_decimal(gray_string):\nExamples:\n```python\nassert gray_to_decimal('0') == 0\nassert gray_to_decimal('1') == 1\n``... | {
"type": "code",
"value": "",
"tests": [
"assert gray_to_decimal('11') == 2",
"assert gray_to_decimal('10') == 3",
"assert gray_to_decimal('101') == 6",
"assert gray_to_decimal('11011') == 18",
"assert gray_to_decimal('10000') == 31"
]
} | train |
wiki-read-en-015e7a02a033440b6c3e | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-2f2e1641c10ed897cfff5f | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-827548331942671449-5 (Apache-2.0). Wikipedia contributors, “Eurozone” (https://en.wikipedia.org/wiki/Eurozone), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Eurozone\n\nIn 1998, eleven member states of the European Union had met the euro convergence criteria, and the eurozone came into existence with the official launch of the euro (alongside national currencies) on 1 January 1999. Greece qualified in 2000, and was admitted on 1 Ja... | {
"type": "exact",
"value": "alongside national currencies",
"tests": []
} | train |
math-verified-route_speed-012 | math | en | Original | CC0-1.0 | math-verified-route_speed | verified_math_route_speed | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A cyclist rode for 70 minutes at 12 km/h, rested for 10 minutes and rode for 40 minutes at 15 km/h. Each riding speed was constant. What was the average speed in km/h over the entire elapsed time, including the stop?\nGive the exact number on the last line; use a reduced fracti... | {
"type": "number",
"value": "12",
"tests": []
} | train |
wiki-read-en-3a244bed6c5fe4d9a558 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-d53c2109ee5175c4496606 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8474064085053244453-22 (Apache-2.0). Wikipedia contributors, “Dinesh D'Souza” (https://en.wikipedia.org/wiki/Dinesh_D%27Souza), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Dinesh D'Souza\n\nLions Gate Entertainment released America in three theaters on June 27, 2014 and expanded its distribution on the weekend of the U.S. holiday Independence Day on July 4, 2014. CinemaScore reported that the opening-weekend audiences gave the film an \"A+\" grad... | {
"type": "exact",
"value": "which made it the highest-grossing documentary in the United States in 2014",
"tests": []
} | train |
wiki-read-ru-67b6ac999d24decbaeb4 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-2af4b0cdab3b4c0ab7d3c5 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1862523083795074648-9 (Apache-2.0). Wikipedia contributors, “Царскосельская железная дорога” (https://ru.wikipedia.org/wiki/%D0%A6%D0%B0%D1%80%D1%81%D0%BA%D0%BE%D1%81%D0%B5%D0%BB%D1%8C%D1%81%D0%BA%D0%B0%D1%8F_%D0%B6%D0%B5%D0%BB%D0%B5%D0%B7%D0%BD%D0%B0%D1%8F_%D0%B4%D... | [
{
"role": "user",
"content": "Царскосельская железная дорога\n\nТоржественное открытие движения на участке Санкт-Петербург — Царское Село состоялось 30 октября 1837 года. Машинистом первого поезда, который состоял из паровоза Р. Стефенсона, ещё не имевшего имени паровоза «Проворный», и восьми вагонов, стал ... | {
"type": "exact",
"value": "1837-10-30",
"tests": []
} | train |
reason2-room_peak-050 | reasoning | ru | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Репетиции занимают отдельные комнаты в такие минуты: K [6,13); Y [0,7); Z [2,6); H [10,17); L [11,16); A [15,17); D [10,16). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПокажи короткую проверку, а в конце... | {
"type": "number",
"value": "4",
"tests": []
} | train |
verified-code-exact_hops-implement | code | en | Original | CC0-1.0 | verified-code-hops | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Implement exact_hops(n, edges, k) in Python. Directed graph on 0..n-1 with n ≥ 1, edges as (source, destination), and k ≥ 0. Return reachable vertices whose shortest distance from 0 is equal to k, sorted numerically. Vertex 0 has distance 0.\nassert exact_hops(5, [(1, 0), (0, 2... | {
"type": "code",
"value": "",
"tests": [
"assert exact_hops(1, [], 0) == [0]",
"assert exact_hops(4, [(0, 1), (1, 2)], 1) == [1]",
"assert exact_hops(6, [(0, 3), (0, 1), (1, 2), (2, 3), (3, 4)], 1) == [1, 3]",
"assert exact_hops(3, [], 8) == []",
"assert exact_hops(3, [(0, 0), (1, 2)], 0) == ... | train |
algpy-c96f9feaafdfed37-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-c96f9feaafdfed37 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/three_sum.py#three_sum; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(nums):\n nums.sort()\n ans = []\n for i in range(len(nums) - 2... | {
"type": "exact",
"value": "B: [[-1, -1, 2], [-1, 0, 1]]",
"tests": []
} | train |
wiki-read-ru-ee902670670d40576e25 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ec9e58e4bcfb4458c1bf8b | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7334391857704473585-0 (Apache-2.0). Wikipedia contributors, “Южно-Африканская Республика” (https://ru.wikipedia.org/wiki/%D0%AE%D0%B6%D0%BD%D0%BE-%D0%90%D1%84%D1%80%D0%B8%D0%BA%D0%B0%D0%BD%D1%81%D0%BA%D0%B0%D1%8F_%D0%A0%D0%B5%D1%81%D0%BF%D1%83%D0%B1%D0%BB%D0%B8%D0%B... | [
{
"role": "user",
"content": "Южно-Африканская Республика\n\nЮ́жно-Африка́нская Респу́блика (сокращённо — ЮА́Р) — государство на крайнем юге Африки. На севере граничит с Намибией, Ботсваной и Зимбабве, на северо-востоке — с Мозамбиком и Свазилендом. Внутри территории ЮАР находится государство-анклав Лесото.... | {
"type": "exact",
"value": "сокращённо — ЮА́Р",
"tests": []
} | train |
wiki-read-ru-d178c3ba469cc691fd01 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-da9fd5828daec985389700 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--6163512937361697061-28 (Apache-2.0). Wikipedia contributors, “Кинешма” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B8%D0%BD%D0%B5%D1%88%D0%BC%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Кинешма\n\nГлавными реками Кинешмы являются Волга (Горьковское водохранилище) и её правый приток Кинешемка, уровень которых поднят подпором Нижегородской ГЭС. В черте города в Волгу впадают ещё несколько рек: Казоха, Томна, Чёрная речка. Всё это создаёт идеальные условия для от... | {
"type": "exact",
"value": "Горьковское водохранилище",
"tests": []
} | train |
algpy-a69189bbb033ef0a-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-a69189bbb033ef0a | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#reaumur_to_kelvin; 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(reaumur, ndigits=2):\n return round(float(reaumur) * 1.25 + 273.15, ndigits)... | {
"type": "exact",
"value": "A: 273.15",
"tests": []
} | train |
algpy-54bdc0dfed290436-repair | code | en | TheAlgorithms/Python | MIT | algpy-54bdc0dfed290436 | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/next_prime_number.py#is_prime; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. For a nonnegative integer, return True exactly when it is prime; 0 and 1 are not prime.\nFor is_prime(13) it should return True, but returns False. Keep the signature.\n```python\ndef is_prime(number):\n if number <= 1:\n return False\n ... | {
"type": "code",
"value": "",
"tests": [
"assert is_prime(0) == False",
"assert is_prime(1) == False",
"assert is_prime(2) == True",
"assert is_prime(3) == True",
"assert is_prime(4) == False",
"assert is_prime(6) == False",
"assert is_prime(9) == False",
"assert is_prime(13) == T... | train |
wiki-read-ru-fc8e798a1eb394c06fb5 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-5acc607d101967fb60a3d4 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7136429014407644205-2 (Apache-2.0). Wikipedia contributors, “Внутриматочная спираль” (https://ru.wikipedia.org/wiki/%D0%92%D0%BD%D1%83%D1%82%D1%80%D0%B8%D0%BC%D0%B0%D1%82%D0%BE%D1%87%D0%BD%D0%B0%D1%8F_%D1%81%D0%BF%D0%B8%D1%80%D0%B0%D0%BB%D1%8C), snapshot 2019-02-01 ... | [
{
"role": "user",
"content": "Внутриматочная спираль\n\nВ 1926 году немецкий врач Эрнст Грэфенберг предложил использовать в качестве ВМС кольцо, сделанное из сплава бронзы, латуни с небольшим содержанием меди. В 1960 году американец Джек Липпс разработал так называемую «петлю Липпса», впервые использовав эл... | {
"type": "exact",
"value": "1926, 1960",
"tests": []
} | train |
reason2-event_selection-035 | reasoning | en | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "One photographer wants to cover as many entire demonstrations as possible. Their start and end times are K 15–21; X 14–21; D 14–17; B 0–6; J 7–12; Y 1–7; U 9–11. Finishing one at the instant another starts is allowed. What is the maximum count?\nShow a short check. Give the fin... | {
"type": "number",
"value": "3",
"tests": []
} | train |
algpy-062426d8f2e05d28-trace | code | ru | TheAlgorithms/Python | MIT | algpy-062426d8f2e05d28 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/allocation_number.py#allocation_num; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(number_of_bytes, partitions):\n if partitions <= 0:\n raise ValueError('partitions must be a positive number!')\n if partitions > number_of_bytes:\n raise ValueError('partitions can not > number_of_bytes!')\n bytes_per_partition = n... | {
"type": "exact",
"value": "['1-4161', '4162-8322', '8323-12483', '12484-16647']",
"tests": []
} | train |
wiki-read-en-d75739c8134a4af7b809 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-a9df2353f65998905eae7c | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--3823029043254404888-0 (Apache-2.0). Wikipedia contributors, “Machine industry” (https://en.wikipedia.org/wiki/Machine_industry), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Machine industry\n\nThe machine industry or machinery industry is a subsector of the industry, that produces and maintains machines for consumers, the industry, and most other companies in the economy.\n\nHow does the first sentence define “The machine industry or machinery ind... | {
"type": "exact",
"value": "a subsector of the industry, that produces and maintains machines for consumers, the industry, and most other companies in the economy",
"tests": []
} | train |
wiki-read-ru-e91879d96b57405b0f0b | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-4f294feff1bbbdb20ac17e | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-934867613397026779-0 (Apache-2.0). Wikipedia contributors, “Во все тяжкие” (https://ru.wikipedia.org/wiki/%D0%92%D0%BE_%D0%B2%D1%81%D0%B5_%D1%82%D1%8F%D0%B6%D0%BA%D0%B8%D0%B5), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized.... | [
{
"role": "user",
"content": "Во все тяжкие\n\n«Во все тяжкие» (English: Breaking Bad) — американская телевизионная криминальная драма, транслировавшаяся с 20 января 2008 года по 29 сентября 2013 года по кабельному каналу AMC. На протяжении пяти сезонов, состоящих из 62 эпизодов, показана история Уолтера Уа... | {
"type": "exact",
"value": "чтобы обеспечить финансовое будущее своей семьи",
"tests": []
} | train |
reason2-minimum_cover-060 | 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 2, 3, 5, 6, 7. Available kits and the types they contain: W=2/6; U=6; L=2/6/7; G=2; X=3/6; H=2/5; N=5/6. Duplicate samples are allowed. What is the fewest kits that cover every type?\nBriefly justify your result, then put the answer alone o... | {
"type": "number",
"value": "3",
"tests": []
} | train |
verified-code-sum_segment_shortest-implement | code | en | Original | CC0-1.0 | verified-code-target_subarrays | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Implement sum_segment_shortest(xs, target) in Python. Consider every nonempty contiguous segment of integer list xs whose sum is target. Return the shortest such length, or 0 if none. Values may be negative or zero.\nassert sum_segment_shortest([1, 1, 1], 2) == 2"
},
{
... | {
"type": "code",
"value": "",
"tests": [
"assert sum_segment_shortest([], 0) == 0",
"assert sum_segment_shortest([2], 2) == 1",
"assert sum_segment_shortest([3, -2, 2, 0], 3) == 1",
"assert sum_segment_shortest([0, 0, 1, -1], 0) == 1",
"assert sum_segment_shortest([-2, 1, -1, -1], -2) == 1",
... | train |
reason2-pareto-013 | reasoning | ru | Original | CC0-1.0 | reason2-pareto | workshop_pareto | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для печати плаката доступны заказы (дни, цена): F (7, 54); U (14, 53); B (29, 52); V (8, 66); K (22, 67); P (12, 59); E (15, 29); T (20, 43); C (9, 38). Отбрось любой вариант, для которого другой вариант одновременно дешевле и быстрее. Запиши коды оставшихся в алфавитном порядк... | {
"type": "exact",
"value": "C E F",
"tests": []
} | train |
wiki-read-en-2e57b5dfb929abbeee8b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9e648c69552570990c5d6d | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--2611005509289299951-0 (Apache-2.0). Wikipedia contributors, “Edmund Hillary” (https://en.wikipedia.org/wiki/Edmund_Hillary), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Edmund Hillary\n\nSir Edmund Percival Hillary KGONZKBE (20 July 1919 – 11 January 2008) was a New Zealand mountaineer, explorer, and philanthropist. On 29 May 1953, Hillary and Nepalese Sherpa mountaineer Tenzing Norgay became the first climbers confirmed to have reached the su... | {
"type": "exact",
"value": "20 July 1919 – 11 January 2008",
"tests": []
} | train |
wiki-read-en-33b56c54d5a7d65d901b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-ec752d1d10b6d764a0e397 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-982151245211001624-12 (Apache-2.0). Wikipedia contributors, “Algebra” (https://en.wikipedia.org/wiki/Algebra), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Algebra\n\nToday, algebra has grown until it includes many branches of mathematics, as can be seen in the Mathematics Subject Classification where none of the first level areas (two digit entries) is called algebra. Today algebra includes section 08-General algebraic systems, 1... | {
"type": "exact",
"value": "two digit entries",
"tests": []
} | train |
math-verified-break_even-016 | math | ru | Original | CC0-1.0 | math-verified-break_even | verified_math_break_even | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Мастерская выбирает тариф на печать. Тариф A стоит 13 руб. в месяц плюс 11 руб. за каждую страницу. Абонентская плата по тарифу B — 125 руб. в месяц за пакет объёмом 9 стр. Каждая страница сверх пакета стоит 8 руб. При каком наименьшем целом числе страниц за месяц B обойдётся с... | {
"type": "number",
"value": "14",
"tests": []
} | train |
gsm-train-7044 | math | en | GSM8K | MIT | gsm8k-895f73b804d04066603d | word_problem_7_steps | OpenAI (2021), GSM8K, original train row 7044 | [
{
"role": "user",
"content": "Stephanie is checking her household budget, and needs to calculate how much she has left to pay for her bills. Her electricity bill costs $60, and this is paid in full. Her gas bill was $40, and she has already paid three-quarters of this. She makes another payment of $5 toward... | {
"type": "number",
"value": "30",
"tests": []
} | train |
wiki-read-ru-ec7405b335a740c9d78c | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ff7a165c9a24112b2fe153 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--81647716727109111-0 (Apache-2.0). Wikipedia contributors, “Перепончатокрылые” (https://ru.wikipedia.org/wiki/%D0%9F%D0%B5%D1%80%D0%B5%D0%BF%D0%BE%D0%BD%D1%87%D0%B0%D1%82%D0%BE%D0%BA%D1%80%D1%8B%D0%BB%D1%8B%D0%B5), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whites... | [
{
"role": "user",
"content": "Перепончатокрылые\n\nПерепончатокры́лые — один из крупнейших и наиболее развитых в эволюционном плане отрядов насекомых. Группа включает более 155 тыс. видов из 9100 родов (вероятно, до 300 000 видов), в том числе общественные насекомые (муравьи, осы, пчёлы, шмели). К отличител... | {
"type": "exact",
"value": "один из крупнейших и наиболее развитых в эволюционном плане отрядов насекомых",
"tests": []
} | train |
reason2-light_piece-062 | 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, V, T, D, P, U, X, 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: N+D+T+B > P+X+V+U; P+V+T > D+U+X; U+B+P+N > V+X+T+D. Which part is lighter?\nShow a short check. Give the ... | {
"type": "exact",
"value": "X",
"tests": []
} | train |
reason2-join_catalogs-002 | reasoning | ru | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Каталог связывает код книги с полкой: B65=S8, B26=S6, B10=S6, B15=S1, B47=S8. Соответствие полок и залов: S6=F, S1=S, S8=R. Число выданных экземпляров по коду книги: B10=9, B15=14, B47=8, B26=4, B65=16. В каком зале больше всего выдач?\nКратко обоснуй ответ и запиши сам ответ н... | {
"type": "exact",
"value": "R",
"tests": []
} | train |
math-verified-quadratic_samples-012 | 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(5) = 20, f(8) = 53, f(11) = 104. Чему равно f(20)?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role": "assistant",
"content": "Аргументы идут с шагом 3. Две соседние р... | {
"type": "number",
"value": "365",
"tests": []
} | train |
wiki-read-en-0cab87614006f053b205 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9ff3579aa65952e9b249ed | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6923181179444624621-1 (Apache-2.0). Wikipedia contributors, “Demographics of Rio de Janeiro” (https://en.wikipedia.org/wiki/Demographics_of_Rio_de_Janeiro), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercis... | [
{
"role": "user",
"content": "Demographics of Rio de Janeiro\n\nRio de Janeiro City is home to more than 6million people, accounting for about 35% of the population of Rio de Janeiro State. Portuguese remains the most widely spoken language and Rio de Janeiro is the second city in the Portuguese speaking wo... | {
"type": "exact",
"value": "35%",
"tests": []
} | train |
algpy-7243a7f8722db531-trace | code | en | TheAlgorithms/Python | MIT | algpy-7243a7f8722db531 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/count_number_of_one_bits.py#get_set_bits_count_using_modulo_operator; adapted exercises | [
{
"role": "user",
"content": "```python\ndef get_set_bits_count_using_modulo_operator(number):\n if number < 0:\n raise ValueError('the value of input must not be negative')\n result = 0\n while number:\n if number % 2 == 1:\n result += 1\n number >>= 1\n return r... | {
"type": "exact",
"value": "4",
"tests": []
} | train |
reason2-critical_path-038 | reasoning | ru | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: J=4, Y=2, N=5, P=8, A=6, M=3, T=4. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: N→T, Y→T, P→A, Y→A, J→M, P→M, Y→M, A→N, P→N, Y→N, P→Y. Время отсчитывают ... | {
"type": "number",
"value": "25",
"tests": []
} | train |
reason2-assembly_units-031 | reasoning | ru | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для сборки используются спецификации (правая часть — состав одной единицы): D = 5×A + 2×R; A = 2×K + 4×J; R = 2×K + 4×J. Заказ включает изделия D в количестве 6 и отдельно узлы A в количестве 4. Сколько отдельных деталей J потребуется?\nПокажи короткую проверку, а в конце на от... | {
"type": "number",
"value": "184",
"tests": []
} | train |
reason2-light_piece-060 | reasoning | ru | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Детали G, E, M, U, H, C, R, D должны весить одинаково, но ровно одна легче. На чаши каждый раз кладут поровну деталей. Результаты (знаки сравнивают массу левой и правой чаш): E+U+D > R+H+G; R+U = C+D; E+G+U = M+D+C. Какая деталь легче?\nПокажи короткую проверку, а в конце на от... | {
"type": "exact",
"value": "H",
"tests": []
} | train |
reason2-connected_groups-059 | reasoning | ru | Original | CC0-1.0 | reason2-connected_groups | workshop_connected_groups | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Сначала у каждого кода из списка L, M, P, A, Z, E, C, W, G, D, N свой архив. Связь между двумя кодами объединяет их архивы целиком; это распространяется по цепочке. Все действующие связи: P–G, G–M, Z–M, M–E, M–A, E–G, A–G, E–P, D–C, N–Z, L–Z. Добавляют связь P–W. Сколько кодов ... | {
"type": "number",
"value": "9",
"tests": []
} | train |
wiki-read-ru-2ba899755f824d9bad12 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-7589fd6afdc7777fe7af78 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-9168029175149709631-1 (Apache-2.0). Wikipedia contributors, “Колпино” (https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BB%D0%BF%D0%B8%D0%BD%D0%BE), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Колпино\n\nРасположен на Приневской низине, на реке Ижоре (левый приток Невы), в 26 км к юго-востоку от исторического центра Санкт-Петербурга. Находится на железнодорожной магистрали Москва — Санкт-Петербург.\n\nКакое значение записано цифрами в километрах? Выпиши только число ... | {
"type": "exact",
"value": "26 км",
"tests": []
} | train |
algpy-19127820f1e860d4-trace | code | ru | TheAlgorithms/Python | MIT | algpy-19127820f1e860d4 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/sum_of_geometric_progression.py#sum_of_geometric_progression; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(first_term, common_ratio, num_of_terms):\n if common_ratio == 1:\n return num_of_terms * first_term\n return first_term / (1 - common_ratio) * (1 - common_ratio ** num_of_terms)\n```\nЧто вернёт выражение round(compute(1, 2, 0), 6)? Запиши re... | {
"type": "exact",
"value": "-0.0",
"tests": []
} | train |
wiki-read-ru-8e231b615b0b080dfda5 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-b8bf3d6ab578a1a15656f9 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3538592407943166092-7 (Apache-2.0). Wikipedia contributors, “География Москвы” (https://ru.wikipedia.org/wiki/%D0%93%D0%B5%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D1%8F_%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D1%8B), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and r... | [
{
"role": "user",
"content": "География Москвы\n\nСредняя высота над уровнем моря составляет 186 м. Наивысшая точка находится на Теплостанской возвышенности и составляет 255 м. Протяжённость Москвы (без учёта чересполосных участков) с севера на юг в пределах МКАД — 38 км, за пределами МКАД — 51,7 км, с запа... | {
"type": "exact",
"value": "без учёта чересполосных участков",
"tests": []
} | train |
wiki-read-en-a2e164b57974f19bc8b5 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-ce7e2222b27bdbddf2a09c | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--5318933988163386592-0 (Apache-2.0). Wikipedia contributors, “Romulus Augustulus” (https://en.wikipedia.org/wiki/Romulus_Augustulus), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Romulus Augustulus\n\nFlavius Romulus Augustus (c. AD 460 – after AD 476; possibly still alive as late as AD 507), known derisively and historiographically as Romulus Augustulus, was the Roman emperor who ruled the Western Roman Empire from 31 October 475 until 4 September 476.... | {
"type": "exact",
"value": "c. AD 460 – after AD 476; possibly still alive as late as AD 507",
"tests": []
} | train |
reason2-motif_growth-020 | reasoning | en | Original | CC0-1.0 | reason2-motif_growth | workshop_motif_growth | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A pattern starts as NNFN. During each pass, replace every current symbol simultaneously using N→NF; F→NN. Newly produced symbols wait for the next pass. After 5 passes, how many F symbols are there?\nExplain in a few sentences and use the final line for the answer alone."
},
... | {
"type": "number",
"value": "43",
"tests": []
} | train |
reason2-connected_groups-065 | 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 Y, C, B, D, E, S, M, N, K, X initially has its own archive. Linking two codes merges their entire archives, including indirect links. The full list of existing links is Y–E, D–X, B–E, X–B, K–C, Y–S, S–E, S–B. One new link B–C is added. How many codes belong to the ... | {
"type": "number",
"value": "8",
"tests": []
} | train |
wiki-read-en-40b299aa8a762783528f | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-ed0f48330fead1a3b05cb3 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1585393845801426174-7 (Apache-2.0). Wikipedia contributors, “National debt of the United States” (https://en.wikipedia.org/wiki/National_debt_of_the_United_States), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading... | [
{
"role": "user",
"content": "National debt of the United States\n\nAs of December 31, 2018, debt held by the public was $16.1 trillion and intragovernmental holdings were $5.87 trillion, for a total or \"National Debt\" of $21.97 trillion. Debt held by the public was approximately 76.4% of GDP in Q3 2018. ... | {
"type": "exact",
"value": "2018-12-31",
"tests": []
} | train |
wiki-read-en-f9fbfc6d07dd64a474d3 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-91203464b41df6e5223ac0 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--919580403979457087-21 (Apache-2.0). Wikipedia contributors, “The Early Show” (https://en.wikipedia.org/wiki/The_Early_Show), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "The Early Show\n\nThe Early Show began on November 1, 1999 (around the time when Viacom, a former CBS division, had purchased the network) when CBS executives successfully lured former Today host Bryant Gumbel to head up the broadcast, teamed with ABC News correspondent Jane Cl... | {
"type": "exact",
"value": "around the time when Viacom, a former CBS division, had purchased the network",
"tests": []
} | train |
reason2-light_piece-006 | reasoning | en | Original | CC0-1.0 | reason2-light_piece | workshop_light_piece | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Parts A, U, L, F, J, S, Y, B have identical weights except for one lighter part. Each balance test puts the same number on both pans. Signs compare left weight with right: J+S+L > B+U+A; B+S+J > Y+A+U; B+U+J+Y < S+F+A+L. Which part is lighter?\nShow a short check. Give the fina... | {
"type": "exact",
"value": "U",
"tests": []
} | train |
verified-code-dearest_route-implement | code | en | Original | CC0-1.0 | verified-code-grid_walks | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Implement dearest_route(grid) in Python. A nonempty rectangular grid holds integer costs or None for blocked cells. Paths go only right or down from top left to bottom right and include both endpoints. Return the maximum sum over visited cells, or None for no path.\nassert dear... | {
"type": "code",
"value": "",
"tests": [
"assert dearest_route([[None]]) == None",
"assert dearest_route([[0]]) == 0",
"assert dearest_route([[1, None], [4, 2]]) == 7",
"assert dearest_route([[0, -3, 6], [1, None, 2], [3, 0, -1]]) == 4",
"assert dearest_route([[1, None, 3], [None, 2, 0]]) == ... | train |
algpy-f7e3465470113a1e-implement | code | en | TheAlgorithms/Python | MIT | algpy-f7e3465470113a1e | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/nth_fibonacci_using_matrix_exponentiation.py#nth_fibonacci_bruteforce; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return F(n) for 0 ≤ n ≤ 12, where F(0)=0, F(1)=1 and F(n)=F(n−1)+F(n−2).\nSignature: def nth_fibonacci_bruteforce(n):\nExamples:\n```python\nassert nth_fibonacci_bruteforce(0) == 0\nassert nth_fibonacci_bruteforce(1) == 1\n```"
},
{
"role... | {
"type": "code",
"value": "",
"tests": [
"assert nth_fibonacci_bruteforce(2) == 1",
"assert nth_fibonacci_bruteforce(3) == 2",
"assert nth_fibonacci_bruteforce(4) == 3",
"assert nth_fibonacci_bruteforce(5) == 5",
"assert nth_fibonacci_bruteforce(6) == 8",
"assert nth_fibonacci_bruteforce(... | train |
verified-code-last_score-repair | code | en | Original | CC0-1.0 | verified-code-keyed_rows | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Correct one line. last_score([('b', -5), ('b', -2), ('a', 0)]) returns [('a', 0), ('b', -5)]; expected [('a', 0), ('b', -2)]. rows lists (string key, integer score) pairs in arrival order. For each key choose its last score. Return (key, chosen score) pairs sorted by key, or []... | {
"type": "code",
"value": "",
"tests": [
"assert last_score([]) == []",
"assert last_score([('b', 2)]) == [('b', 2)]",
"assert last_score([('b', 4), ('b', 1)]) == [('b', 1)]",
"assert last_score([('x', 3), ('a', -3), ('x', 0), ('a', 8)]) == [('a', 8), ('x', 0)]",
"assert last_score([('x', 1),... | train |
reason2-join_catalogs-045 | reasoning | en | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A catalog maps book codes to shelves: B36=S1, B50=S2, B57=S1, B58=S2, B63=S4. Shelves map to rooms: S4=X, S2=C, S1=N. Loans by book code: B36=4, B58=15, B57=10, B63=14, B50=5. Which room accounts for the most loans?\nBriefly justify your result, then put the answer alone on the... | {
"type": "exact",
"value": "C",
"tests": []
} | train |
reason2-connected_groups-037 | 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 H, D, B, L, P, A, N, V, K initially has its own archive. Linking two codes merges their entire archives, including indirect links. The full list of existing links is A–B, H–N, B–H, N–L, D–V, V–P, N–A, K–P, D–P, L–A. One new link H–P is added. How many codes belong ... | {
"type": "number",
"value": "9",
"tests": []
} | train |
wiki-read-ru-a7856ca738d09a22bb2b | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-df19e9992e046626427c5b | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7397391521772292884-3 (Apache-2.0). Wikipedia contributors, “Новомосковск (Россия)” (https://ru.wikipedia.org/wiki/%D0%9D%D0%BE%D0%B2%D0%BE%D0%BC%D0%BE%D1%81%D0%BA%D0%BE%D0%B2%D1%81%D0%BA_(%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D1%8F)), snapshot 2019-02-01 (CC-BY-SA-3.0). E... | [
{
"role": "user",
"content": "Новомосковск (Россия)\n\nГород расположен на высоте 236 метров над уровнем моря, между реками Дон и Шат в 220 километрах к югу от Москвы и в 60 километрах юго-восточнее областного центра Тулы. В черте Новомосковска находится исток реки Дон. В непосредственной близости от Новомо... | {
"type": "exact",
"value": "236 метров",
"tests": []
} | train |
reason2-rotate_grid-018 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: G P K T / U R Z L / Q B D H / M A E N. Выполни циклические сдвиги по порядку: строка 3 на 2 вправо; столбец 3 на 3 вниз; строка 2 на 1 вправо; столбец 1 на 3 вниз; строка 2 на 1 вправо. Какой символ теперь в строке 2, столбце 4? Нумерация с ед... | {
"type": "exact",
"value": "R",
"tests": []
} | train |
algpy-696fc98ff920769c-trace | code | ru | TheAlgorithms/Python | MIT | algpy-696fc98ff920769c | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, knapsack/greedy_knapsack.py#calc_profit; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(profit, weight, max_weight):\n if len(profit) != len(weight):\n raise ValueError('The length of profit and weight must be same.')\n if max_weight <= 0:\n raise ValueError('max_weight must greater than zero.')\n if any((p < 0 for p i... | {
"type": "exact",
"value": "6",
"tests": []
} | train |
reason2-minimum_cover-063 | 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, 7, 9. Наборы перечислены с типами внутри: Z=1/9; H=4; X=2; S=7; V=1/3; K=2/7/9. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role"... | {
"type": "number",
"value": "3",
"tests": []
} | train |
algpy-a6f8594b7bc8d6d5-trace | code | en | TheAlgorithms/Python | MIT | algpy-a6f8594b7bc8d6d5 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/prime_check.py#is_prime; adapted exercises | [
{
"role": "user",
"content": "```python\nimport math\n\ndef is_prime(number):\n if not isinstance(number, int) or not number >= 0:\n raise ValueError('is_prime() only accepts positive integers')\n if 1 < number < 4:\n return True\n elif number < 2 or number % 2 == 0 or number % 3 == 0... | {
"type": "exact",
"value": "False",
"tests": []
} | train |
reason2-event_selection-054 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: T 19–26; U 6–11; C 9–11; Y 1–9; V 6–9; H 15–19. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nПриведи ход решения в нескольких фразах. Н... | {
"type": "number",
"value": "4",
"tests": []
} | train |
math-verified-spaced_seats-018 | math | en | Original | CC0-1.0 | math-verified-spaced_seats | verified_math_spaced_seats | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "A row is numbered 1 through 15. Seat 14 is closed. How many sets of exactly 2 available seats can be chosen so that no two chosen numbers are consecutive? The order of selection does not matter.\nGive the exact number on the last line; use a reduced fraction for a noninteger an... | {
"type": "number",
"value": "79",
"tests": []
} | train |
wiki-read-ru-72177bd70c0e345d6c43 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-d7f159676274cb524b1a10 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--8433571733303331332-8 (Apache-2.0). Wikipedia contributors, “Футбол” (https://ru.wikipedia.org/wiki/%D0%A4%D1%83%D1%82%D0%B1%D0%BE%D0%BB), 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": "11 метров",
"tests": []
} | train |
gsm-train-2889 | math | en | GSM8K | MIT | gsm8k-e6c8c2192f4b5933eb1e | word_problem_5_steps | OpenAI (2021), GSM8K, original train row 2889 | [
{
"role": "user",
"content": "A liter of chlorine costs $10 and is now sold at 20% off. A box of soap that costs $16 is now sold at 25% off. How much will you save if you buy 3 liters of chlorine and 5 boxes of soap?\nShow a short calculation. Put the final number alone on the last line."
},
{
"role... | {
"type": "number",
"value": "26",
"tests": []
} | train |
algpy-92b75e47d92cd486-implement | code | en | TheAlgorithms/Python | MIT | algpy-92b75e47d92cd486 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/abs.py#abs_val; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Return the absolute value of a signed integer.\nSignature: def abs_val(num):\nExamples:\n```python\nassert abs_val(-101) == 101\nassert abs_val(-17) == 17\n```"
},
{
"role": "assistant",
"content": "```python\ndef abs_val(num):\n r... | {
"type": "code",
"value": "",
"tests": [
"assert abs_val(-2) == 2",
"assert abs_val(-1) == 1",
"assert abs_val(0) == 0",
"assert abs_val(1) == 1",
"assert abs_val(2) == 2",
"assert abs_val(17) == 17",
"assert abs_val(101) == 101",
"assert abs_val(2048) == 2048"
]
} | train |
algpy-a936edcd8aa8a685-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-a936edcd8aa8a685 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/non_preemptive_shortest_job_first.py#calculate_turnaroundtime; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(burst_time, no_of_processes, waiting_time):\n turn_around_time = [0]... | {
"type": "exact",
"value": "A: [0, 11, 17]",
"tests": []
} | train |
gsm-train-4963 | math | en | GSM8K | MIT | gsm8k-cb5c85400d0c9025bb5d | word_problem_5_steps | OpenAI (2021), GSM8K, original train row 4963 | [
{
"role": "user",
"content": "Kendra wants enough shirts that she only has to do laundry once every two weeks. She wears one shirt to school for each of the five weekdays. Three days a week, she changes into a different shirt for an after-school club. On Saturday, she wears one shirt all day. On Sunday, she... | {
"type": "number",
"value": "22",
"tests": []
} | train |
math-verified-grid_triangle-016 | math | ru | Original | CC0-1.0 | math-verified-grid_triangle | verified_math_grid_triangle | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "На квадратной решётке с шагом 1 отмечены вершины треугольника (3, 1), (15, 1) и (6, 11). Сколько узлов с целыми координатами лежит строго внутри него? Точки на сторонах не включай.\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"ro... | {
"type": "number",
"value": "54",
"tests": []
} | train |
math-verified-stock-017 | math | ru | Original | CC0-1.0 | math-verified-stock | verified_math_stock | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Утром со склада отгрузили 1/3 всех коробок. Затем привезли ещё 8 коробок и отгрузили 1/2 нового запаса. Остаток к вечеру — 16 коробок. Сколько коробок было до первой отгрузки?\nЗапиши точное число в последней строке; нецелый ответ дай несократимой дробью."
},
{
"role": ... | {
"type": "number",
"value": "36",
"tests": []
} | train |
verified-code-turn_around-repair | code | ru | Original | CC0-1.0 | verified-code-rotate | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исправь одну строку. turn_around([[1, 2, 3], [4, 5, 6]]) даёт [[3, 2, 1], [6, 5, 4]], ожидается [[6, 5, 4], [3, 2, 1]]. Верни новую прямоугольную таблицу целых, повернув grid на 180 градусов. Вход — пустой список либо строки одной положительной длины. Пустая таблица даёт []. Ис... | {
"type": "code",
"value": "",
"tests": [
"assert turn_around([]) == []",
"assert turn_around([[9]]) == [[9]]",
"assert turn_around([[1, 2, 3]]) == [[3, 2, 1]]",
"assert turn_around([[3], [2], [1]]) == [[1], [2], [3]]",
"assert turn_around([[7, 8], [9, 0], [1, 2]]) == [[2, 1], [0, 9], [8, 7]]"... | train |
algpy-3f670d71fadefd96-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-3f670d71fadefd96 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/largest_divisible_subset.py#largest_divisible_subset; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(items):\n items = sorted(items)\n number_of_items = len(items)\n ... | {
"type": "exact",
"value": "A: [16, 8, 4, 1]",
"tests": []
} | train |
wiki-read-ru-a5d5cfafb89b6ca1e9a9 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-35d7dbc349ebfa66209c6f | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2117148274465568076-9 (Apache-2.0). Wikipedia contributors, “Княгинин (Минская область)” (https://ru.wikipedia.org/wiki/%D0%9A%D0%BD%D1%8F%D0%B3%D0%B8%D0%BD%D0%B8%D0%BD_(%D0%9C%D0%B8%D0%BD%D1%81%D0%BA%D0%B0%D1%8F_%D0%BE%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C)), snapsh... | [
{
"role": "user",
"content": "Княгинин (Минская область)\n\nВ 1793 году, в результате второго раздела Речи Посполитой, Княгинин вошёл в состав Российской империи. Волостной центр Вилейского уезда (10 сельских общин, 55 населённых пунктов, 473 двора, 6051 житель, 17 696 десятин земли).\n\nКакое пояснение в с... | {
"type": "exact",
"value": "10 сельских общин, 55 населённых пунктов, 473 двора, 6051 житель, 17 696 десятин земли",
"tests": []
} | train |
wiki-read-ru-88a30cf4100a8652968e | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-db9d5bced6ec25350ffe9a | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--3899980982232836995-18 (Apache-2.0). Wikipedia contributors, “Як-141” (https://ru.wikipedia.org/wiki/%D0%AF%D0%BA-141), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Як-141\n\nВ июне 1987 года закончилась сборка второго лётного образца (изделие 48-3), получившего б/н 77. В отличие от первого образца, здесь струйные рули в концах хвостовых балок отсутствовали — их заменили единственным маленьким поворачивающимся соплом в носовой части машины... | {
"type": "exact",
"value": "изделие 48-3",
"tests": []
} | train |
wiki-read-ru-b8078412fc6dd2e979d0 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-ecf17169b1e222c2c6f18a | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-5393619211917708022-5 (Apache-2.0). Wikipedia contributors, “Квислинг, Видкун” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B2%D0%B8%D1%81%D0%BB%D0%B8%D0%BD%D0%B3%2C_%D0%92%D0%B8%D0%B4%D0%BA%D1%83%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and refer... | [
{
"role": "user",
"content": "Квислинг, Видкун\n\nФамилия Квислинг произошла от латинизированного имени Куислинус (Quislinus), которое придумал предок Квислинга Лориц Ибсен Квислинг (Danish: Laurits Ibsøn Quislinus) (1634—1703), по названию деревни Квислемарк на датском полуострове Ютландия, откуда он эмигр... | {
"type": "exact",
"value": "которые показывали что между членами семьи Видкуна были тёплые и нежные отношения",
"tests": []
} | train |
reason2-missing_cells-065 | reasoning | ru | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В таблице учёта столбцы идут в порядке A, K, S. После вертикальной черты указан итог строки. Строки: R9: 7 / 14 / 2 | 23; R1: 5 / 5 / 13 | 23; R7: 5 / 6 / ? | 16; R5: 15 / ? / ? | 32. Итоги столбцов: A=32, K=38, S=24. Какое число скрыто в строке R5, столбце S?\nПриведи ход реше... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-en-ce3edab90aa10b21fd68 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-e2e7a7eaad25cc069e641f | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-5559424265618547881-0 (Apache-2.0). Wikipedia contributors, “2011 Virginia earthquake” (https://en.wikipedia.org/wiki/2011_Virginia_earthquake), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2011 Virginia earthquake\n\nOn August 23, 2011, a magnitude 5.8 earthquake hit the Piedmont region of the Commonwealth of Virginia, United States, at 1:51:04p.m. local time. The epicenter, in Louisa County, was 38mi (61km) northwest of Richmond and 5mi (8km) south-southwest of ... | {
"type": "exact",
"value": "2011-08-23",
"tests": []
} | train |
wiki-read-ru-3dcc0533a934d4349069 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-5e0c77159a60a3ef5d856f | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5198413917063566519-17 (Apache-2.0). Wikipedia contributors, “Днепр” (https://ru.wikipedia.org/wiki/%D0%94%D0%BD%D0%B5%D0%BF%D1%80), 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 |
gsm-train-6816 | math | en | GSM8K | MIT | gsm8k-430e83dc148ac1a3b3c1 | word_problem_6_steps | OpenAI (2021), GSM8K, original train row 6816 | [
{
"role": "user",
"content": "A zoo is arranging the layout of its animal enclosures. There are 4 tiger enclosures in a row and behind each of these are 2 zebra enclosures. There are three times as many giraffe enclosures as zebra enclosures scattered around the zoo. The tiger enclosures hold 4 tigers, the ... | {
"type": "number",
"value": "144",
"tests": []
} | train |
algpy-ee8093973720a8d1-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-ee8093973720a8d1 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/special_numbers/harshad_numbers.py#harshad_numbers_in_base; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef int_to_base(number, base):\n if base < 2 or base > 36:\n raise ValueE... | {
"type": "exact",
"value": "A: ['1', '10', '100', '110', '1000', '1010', '1100']",
"tests": []
} | train |
wiki-read-ru-a324de9e18b182a2efd9 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-fd0f6711dca2a763fb3e23 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5177966451368506599-1 (Apache-2.0). Wikipedia contributors, “Берингов пролив” (https://ru.wikipedia.org/wiki/%D0%91%D0%B5%D1%80%D0%B8%D0%BD%D0%B3%D0%BE%D0%B2_%D0%BF%D1%80%D0%BE%D0%BB%D0%B8%D0%B2), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and referenc... | [
{
"role": "user",
"content": "Берингов пролив\n\nНаименьшая ширина — 86 км, наименьшая глубина фарватера — 36 м. Пролив соединяет Чукотское море (Северный Ледовитый океан) с Беринговым морем (Тихий океан). Назван в честь российского мореплавателя Витуса Беринга, который прошёл по этому проливу в 1728 году. ... | {
"type": "exact",
"value": "1648, 1728",
"tests": []
} | train |
wiki-read-ru-ef9bf56f948154d9f7dc | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-e50802d4b95bf1fe9f3544 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2689515037943730939-1 (Apache-2.0). Wikipedia contributors, “История Крыма” (https://ru.wikipedia.org/wiki/%D0%98%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D0%9A%D1%80%D1%8B%D0%BC%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers norm... | [
{
"role": "user",
"content": "История Крыма\n\nС этого периода за полуостровом закрепилось название Таврика, произошедшее от имени древнейших племён тавров, населявших южную часть Крыма. Современное название «Крым» стало широко использоваться только после XIII века, предположительно по названию города «Къыр... | {
"type": "exact",
"value": "русское слово «перекоп» — это перевод тюркского слова «qirim», которое означает «ров»",
"tests": []
} | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.