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-bottleneck-031 | reasoning | ru | Original | CC0-1.0 | reason2-bottleneck | workshop_bottleneck | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Двусторонние конвейеры допускают коробки шириной не более указанной (см): T–W=10; V–D=12; J–D=18; T–H=7; H–F=16; W–V=9; H–V=3; W–H=17; D–F=13; H–J=17; V–F=16; J–V=18; T–D=7. Нужно перевезти коробку из T в F, не поворачивая её. Какова наибольшая допустимая ширина?\nПриведи ход р... | {
"type": "number",
"value": "10",
"tests": []
} | train |
algpy-1dbc9346079e0410-implement | code | en | TheAlgorithms/Python | MIT | algpy-1dbc9346079e0410 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, data_structures/arrays/pairs_with_given_sum.py#pairs_with_sum; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. Count unordered pairs of different indices whose two integer values sum to the target. Repeated values at different indices count separately.\nSignature: def pairs_with_sum(arr, req_sum):\nExamples:\n```python\nassert pairs_with_sum([], -2) == 0\... | {
"type": "code",
"value": "",
"tests": [
"assert pairs_with_sum([], 0) == 0",
"assert pairs_with_sum([], 2) == 0",
"assert pairs_with_sum([], 4) == 0",
"assert pairs_with_sum([0], -2) == 0",
"assert pairs_with_sum([0], 0) == 0",
"assert pairs_with_sum([0], 2) == 0",
"assert pairs_with... | train |
algpy-cdc6dea4628375bf-implement | code | en | TheAlgorithms/Python | MIT | algpy-cdc6dea4628375bf | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/single_bit_manipulation_operations.py#clear_bit; adapted exercises | [
{
"role": "user",
"content": "Implement this Python function. For a nonnegative integer and a zero-based bit index counted from the right, clear that bit and return the new integer.\nSignature: def clear_bit(number, position):\nExamples:\n```python\nassert clear_bit(0, 0) == 0\nassert clear_bit(1, 1) == 1\n... | {
"type": "code",
"value": "",
"tests": [
"assert clear_bit(0, 1) == 0",
"assert clear_bit(0, 3) == 0",
"assert clear_bit(0, 8) == 0",
"assert clear_bit(1, 0) == 0",
"assert clear_bit(1, 3) == 1",
"assert clear_bit(1, 8) == 1",
"assert clear_bit(6, 0) == 6",
"assert clear_bit(6, 1)... | train |
reason2-ballot_points-064 | reasoning | ru | Original | CC0-1.0 | reason2-ballot_points | workshop_ballot_points | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Жюри оценивает макеты A, K, J, F. Баллы за места, начиная с первого: 3, 2, 1, 0. Бюллетени записаны как число одинаковых голосов × порядок от лучшего к худшему: 3 × A>F>K>J; 6 × A>J>K>F; 4 × J>A>F>K. У какого макета больше всего баллов?\nПокажи короткую проверку, а в конце на о... | {
"type": "exact",
"value": "A",
"tests": []
} | train |
wiki-read-ru-29d6cb6c4c6e7bc93b9e | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-8c5c14eb59dde8228e16dd | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-6639659381674747645-49 (Apache-2.0). Wikipedia contributors, “Маккартни, Пол” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B0%D0%BA%D0%BA%D0%B0%D1%80%D1%82%D0%BD%D0%B8%2C_%D0%9F%D0%BE%D0%BB), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers ... | [
{
"role": "user",
"content": "Маккартни, Пол\n\n8 мая 1970 года в Англии вышел последний битловский студийный альбом, Let It Be, с материалом, записанным годом ранее. Как и во всех альбомах второй половины 60-х годов Пол Маккартни здесь — основной автор: ему принадлежат «Let It Be», «Long and Winding Road»,... | {
"type": "exact",
"value": "вышедшей синглом 6 марта",
"tests": []
} | train |
algpy-2184ddda2ffd169c-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-2184ddda2ffd169c | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/double_linear_search.py#double_linear_search; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(array, search_item):\n start_ind, end_ind = (0, len(array) - 1)\n ... | {
"type": "exact",
"value": "B: 0",
"tests": []
} | train |
reason2-assembly_units-064 | reasoning | ru | Original | CC0-1.0 | reason2-assembly_units | workshop_assembly_units | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Для сборки используются спецификации (правая часть — состав одной единицы): A = 6×T + 3×L; T = 5×U + 5×F; L = 3×U + 1×F. Заказ включает изделия A в количестве 8 и отдельно узлы T в количестве 2. Сколько отдельных деталей F потребуется?\nПриведи ход решения в нескольких фразах. ... | {
"type": "number",
"value": "274",
"tests": []
} | train |
wiki-read-en-fcddadf22ade1e19983d | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-fed33514dbe387dd5f2b71 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-3658002055792319322-0 (Apache-2.0). Wikipedia contributors, “IP address” (https://en.wikipedia.org/wiki/IP_address), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "IP address\n\nAn Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and loc... | {
"type": "exact",
"value": "IP address",
"tests": []
} | train |
gsm-train-3432 | math | en | GSM8K | MIT | gsm8k-1c84605ab8a895518a8e | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 3432 | [
{
"role": "user",
"content": "The school is hosting a race after school. The winner is the person who runs the most laps around the school in 12 minutes. One lap around the school is 100 meters. The winner is awarded a gift certificate equal to $3.5 for every one hundred meters they run. The winner runs 24... | {
"type": "number",
"value": "7",
"tests": []
} | train |
math-verified-three_clubs-016 | math | en | Original | CC0-1.0 | math-verified-three_clubs | verified_math_three_clubs | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Classes A, B and C have 64, 51 and 55 members respectively. There are 34 in A and B, 25 in B and C, and 36 in A and C. Each pairwise count includes the 18 people in all three classes. How many people joined exactly one class?\nGive the exact number on the last line; use a reduc... | {
"type": "number",
"value": "34",
"tests": []
} | train |
wiki-read-ru-07c8dd3f992f55534b8f | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-5066923b2da6f26fbf913a | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2432448999849298666-68 (Apache-2.0). Wikipedia contributors, “Московский государственный университет” (https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D1%81%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%B... | [
{
"role": "user",
"content": "Московский государственный университет\n\nВ 2018 году МГУ занял общее 199 место место в рейтинге лучших университетов мира и 33 место в аналогичном репутационном рейтинге в 2017 году.\n\nКакие четырёхзначные календарные годы упомянуты в отрывке? Запиши их по одному разу, от ран... | {
"type": "exact",
"value": "2017, 2018",
"tests": []
} | train |
wiki-read-en-bc43af798d175f295757 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-dffe1e971a7e2c5f2b8277 | colon_explanation | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-2355959901772967734-5 (Apache-2.0). Wikipedia contributors, “Penelope Spheeris” (https://en.wikipedia.org/wiki/Penelope_Spheeris), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Penelope Spheeris\n\nSpheeris launched her career by producing short subjects for comedian Albert Brooks, many of them being highlights in the first season of the television series Saturday Night Live. Her first feature film was The Decline of Western Civilization (1981), a pun... | {
"type": "exact",
"value": "The Metal Years, this time about the Los Angeles heavy metal scene of 1988, with footage and interviews of legendary metal bands such as Kiss, Ozzy Osbourne, Aerosmith, Megadeth and Motörhead",
"tests": []
} | train |
reason2-editing_history-034 | reasoning | ru | Original | CC0-1.0 | reason2-editing_history | workshop_editing_history | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В редакторе поле сначала содержит N. Запись заменяет значение и стирает возможность повтора отменённых записей. «Отмена» возвращает предыдущее значение, «повтор» восстанавливает отменённую запись. Если действие недоступно, поле не меняется. Команды: записать K; записать J; отме... | {
"type": "exact",
"value": "C",
"tests": []
} | train |
algpy-5beb664810ca250b-trace | code | en | TheAlgorithms/Python | MIT | algpy-5beb664810ca250b | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/volume.py#vol_conical_frustum; adapted exercises | [
{
"role": "user",
"content": "```python\nfrom math import pi\n\ndef compute(height, radius_1, radius_2):\n if radius_1 < 0 or radius_2 < 0 or height < 0:\n raise ValueError('compute() only accepts non-negative values')\n return 1 / 3 * pi * height * (pow(radius_1, 2) + pow(radius_2, 2) + radius... | {
"type": "exact",
"value": "0.0",
"tests": []
} | train |
verified-code-coin_minimum-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_minimum([4, 3], 12) даёт -1, ожидается 3. coins содержит разные положительные целые номиналы, запас каждого неограничен. Для целой суммы target ≥ 0 верни минимальное число монет либо -1, если суммы не набрать. Пустой набор даёт сумму 0 одним способом.\... | {
"type": "code",
"value": "",
"tests": [
"assert coin_minimum([], 0) == 0",
"assert coin_minimum([], 3) == -1",
"assert coin_minimum([2], 4) == 2",
"assert coin_minimum([2, 4], 7) == -1",
"assert coin_minimum([1, 3, 4], 6) == 2",
"assert coin_minimum([3, 5], 9) == 3",
"assert coin_min... | train |
algpy-ef736bbc8d6b693b-trace | code | en | TheAlgorithms/Python | MIT | algpy-ef736bbc8d6b693b | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/pig_latin.py#pig_latin; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(word):\n if not (word or '').strip():\n return ''\n word = word.lower()\n if word[0] in 'aeiou':\n return f'{word}way'\n for i, char in enumerate(word):\n if char in 'aeiou':\n break\n return f'{word[i:]}{wor... | {
"type": "exact",
"value": "'iendsfray'",
"tests": []
} | train |
wiki-read-en-2f61eb578089231e4f01 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-0562ad9321de00aa89c0ed | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8723456827173530877-2 (Apache-2.0). Wikipedia contributors, “Brass instrument” (https://en.wikipedia.org/wiki/Brass_instrument), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Brass instrument\n\nThe view of most scholars (see organology) is that the term \"brass instrument\" should be defined by the way the sound is made, as above, and not by whether the instrument is actually made of brass. Thus one finds brass instruments made of wood, like the al... | {
"type": "exact",
"value": "see organology",
"tests": []
} | train |
wiki-read-ru-3c1e0fbfa7ae30ba7bd8 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-a171e08ec9cc33dd8029c3 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7231976295371546436-49 (Apache-2.0). Wikipedia contributors, “Падение метеорита Челябинск” (https://ru.wikipedia.org/wiki/%D0%9F%D0%B0%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_%D0%BC%D0%B5%D1%82%D0%B5%D0%BE%D1%80%D0%B8%D1%82%D0%B0_%D0%A7%D0%B5%D0%BB%D1%8F%D0%B1%D0%B8%D0%BD%D1%... | [
{
"role": "user",
"content": "Падение метеорита Челябинск\n\nВ сентябре 2013 года началась подготовка к подъёму основной части метеорита, покоящейся в озере Чебаркуль на глубине примерно 11 метров под пятиметровым слоем ила. 16 октября 2013 года из озера был поднят осколок весом 570 кг. 17 октября осколок б... | {
"type": "exact",
"value": "2013-10-16",
"tests": []
} | train |
verified-code-covered_units-implement | code | ru | Original | CC0-1.0 | verified-code-coverage | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Реализуй на Python covered_units(intervals). Дан список полуоткрытых интервалов [a,b) с целыми концами, a ≤ b. Верни суммарную длину объединения. Пустые интервалы ничего не покрывают, для пустого списка ответ 0.\nassert covered_units([(-3, -1), (2, 5), (7, 8)]) == 6"
},
{
... | {
"type": "code",
"value": "",
"tests": [
"assert covered_units([]) == 0",
"assert covered_units([(1, 1)]) == 0",
"assert covered_units([(0, 3)]) == 3",
"assert covered_units([(0, 2), (2, 4)]) == 4",
"assert covered_units([(0, 5), (2, 6), (3, 4)]) == 6",
"assert covered_units([(-2, 1), (-1... | train |
reason2-event_selection-021 | reasoning | ru | Original | CC0-1.0 | reason2-event_selection | workshop_event_selection | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Один фотограф хочет целиком снять как можно больше коротких показов. Начала и окончания: N 15–21; V 11–15; T 2–8; Z 10–12; L 6–9. В момент окончания одного показа можно сразу начать следующий. Каково максимальное число показов?\nКратко обоснуй ответ и запиши сам ответ на послед... | {
"type": "number",
"value": "3",
"tests": []
} | train |
wiki-read-en-7182389e9d17062f192f | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-997a311405248fa8e92230 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--1853537886809026668-1 (Apache-2.0). Wikipedia contributors, “Hermitage Museum” (https://en.wikipedia.org/wiki/Hermitage_Museum), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Hermitage Museum\n\nIts collections, of which only a small part is on permanent display, comprise over three million items (the numismatic collection accounts for about one-third of them), including the largest collection of paintings in the world. The collections occupy a larg... | {
"type": "exact",
"value": "the numismatic collection accounts for about one-third of them",
"tests": []
} | train |
algpy-f01077b6e05540b2-trace | code | ru | TheAlgorithms/Python | MIT | algpy-f01077b6e05540b2 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/reverse_factorial_recursive.py#reverse_factorial_recursive; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(value, current_divisor=1):\n if not isinstance(value, int):\n raise TypeError('value must be an integer')\n if not isinstance(current_divisor, int):\n raise TypeError('current_divisor must be an integer')\n if value < 1:\n ra... | {
"type": "exact",
"value": "-1",
"tests": []
} | train |
reason2-critical_path-023 | reasoning | en | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A workshop has unlimited workstations. Step durations in minutes: S=5, H=6, T=7, P=4, Y=7, Z=6, E=7. X→Y means Y may start only after X finishes. The full list of dependencies is P→Y, S→Y, Z→Y, T→H, H→S, H→E, S→E, Z→E. Starting at minute zero, when can the whole job first be fi... | {
"type": "number",
"value": "25",
"tests": []
} | train |
wiki-read-ru-645032427a542ea4fb2f | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-9b20267d630a007196fa81 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-8560808003730189655-74 (Apache-2.0). Wikipedia contributors, “Антология поэзии битников” (https://ru.wikipedia.org/wiki/%D0%90%D0%BD%D1%82%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F_%D0%BF%D0%BE%D1%8D%D0%B7%D0%B8%D0%B8_%D0%B1%D0%B8%D1%82%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2), sna... | [
{
"role": "user",
"content": "Антология поэзии битников\n\nОтличительной чертой издания «Антологии поэзии битников» является предоставление текстов стихотворений (для основного раздела и «Beatitude») в переводе на русский язык параллельно с текстом на английском. Каждая страница горизонтально разделена попо... | {
"type": "exact",
"value": "для основного раздела и «Beatitude»",
"tests": []
} | train |
math-verified-three_clubs-020 | 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 — 35, B — 45, C — 55. На A и B записаны 13, на B и C — 25, на A и C — 23. Число участников всех трёх групп — 8; они включены в каждое парное пересечение. Сколько человек записалось ровно на одно занятие?\nЗапиши точное число в последней строке;... | {
"type": "number",
"value": "37",
"tests": []
} | train |
wiki-read-en-15a5298293caae28844c | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f0b5dfaf9c6fdbf0f351a5 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8989229087934695398-24 (Apache-2.0). Wikipedia contributors, “Gupta Empire” (https://en.wikipedia.org/wiki/Gupta_Empire), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Gupta Empire\n\nSkandagupta, son and successor of Kumaragupta I is generally considered to be the last of the great Gupta rulers. He assumed the titles of Vikramaditya and Kramaditya. He defeated the Pushyamitra threat, but then was faced with invading Kidarites (sometimes desc... | {
"type": "exact",
"value": "sometimes described as the Hephthalites or \"White Huns\", known in India as the Sweta Huna",
"tests": []
} | train |
wiki-read-ru-b92385f68465966ad8f7 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-157387db759fc88ddc4a09 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--2691264378272824566-1 (Apache-2.0). Wikipedia contributors, “Высшая школа менеджмента Санкт-Петербургского государственного университета” (https://ru.wikipedia.org/wiki/%D0%92%D1%8B%D1%81%D1%88%D0%B0%D1%8F_%D1%88%D0%BA%D0%BE%D0%BB%D0%B0_%D0%BC%D0%B5%D0%BD%D0%B5%D0%... | [
{
"role": "user",
"content": "Высшая школа менеджмента Санкт-Петербургского государственного университета\n\nВ 1993 году в СПбГУ был открыт факультет менеджмента — первая бизнес-школа в России, являющаяся университетским факультетом. Первоначально на факультете обучалось 33 студента-бакалавра, а в штате чис... | {
"type": "exact",
"value": "первая бизнес-школа в России, являющаяся университетским факультетом",
"tests": []
} | train |
reason2-room_peak-032 | reasoning | en | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Rehearsals each need a room for the following minute intervals: A [19,26); M [11,13); T [19,21); U [6,10); X [18,20); D [12,19); B [8,10); Y [13,21). A room is free at the right endpoint, and all rooms are interchangeable. What is the minimum room count?\nBriefly justify your r... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-ru-4bf63c19f91defbc8bfc | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-dccc122e21a7d0a8fe9417 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4956166005163582181-4 (Apache-2.0). Wikipedia contributors, “Антисемитизм в СССР” (https://ru.wikipedia.org/wiki/%D0%90%D0%BD%D1%82%D0%B8%D1%81%D0%B5%D0%BC%D0%B8%D1%82%D0%B8%D0%B7%D0%BC_%D0%B2_%D0%A1%D0%A1%D0%A1%D0%A0), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; w... | [
{
"role": "user",
"content": "Антисемитизм в СССР\n\n25 июля 1918 года председатель Совета народных комиссаров РСФСР В. И. Ленин подписал декрет СНК «О борьбе с антисемитизмом и еврейскими погромами». 27 июля он был опубликован в газете Правда. В марте 1919 года Ленин произнёс речь О погромной травле евреев... | {
"type": "exact",
"value": "1918-07-25",
"tests": []
} | train |
reason2-missing_cells-043 | reasoning | ru | Original | CC0-1.0 | reason2-missing_cells | workshop_missing_cells | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В таблице учёта столбцы идут в порядке S, A, D. После вертикальной черты указан итог строки. Строки: R5: ? / 8 / 2 | 24; R9: ? / 4 / ? | 22; R10: 9 / 13 / 5 | 27; R11: 11 / 8 / 13 | 32; R8: 12 / 7 / 5 | 24. Итоги столбцов: S=58, A=40, D=31. Какое число скрыто в строке R9, столб... | {
"type": "number",
"value": "12",
"tests": []
} | train |
math-verified-binomial_divisibility-018 | math | en | Original | CC0-1.0 | math-verified-binomial_divisibility | verified_math_binomial_divisibility | Original bilingual mathematics exercises, CC0-1.0 | [
{
"role": "user",
"content": "Choose 4 of 40 distinct items without regard to order. What is the greatest integer e ≥ 0 such that 10 to the power e divides the number of choices C(40,4)?\nGive the exact number on the last line; use a reduced fraction for a noninteger answer."
},
{
"role": "assistant... | {
"type": "number",
"value": "1",
"tests": []
} | train |
algpy-b1387bbfb7a366e4-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-b1387bbfb7a366e4 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/area.py#surface_area_cone; 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": "A: 1130.973355",
"tests": []
} | train |
wiki-read-en-234be148ca8ec79ca521 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-750779d6c19ddaada3ed6d | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6123218615806227296-2 (Apache-2.0). Wikipedia contributors, “Daisy Ridley” (https://en.wikipedia.org/wiki/Daisy_Ridley), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Daisy Ridley\n\nRidley began her career with minor roles in the television programmes Youngers, Toast of London, Silent Witness, Mr Selfridge, and Casualty. She appeared in the short film Blue Season, which was entered into the Sci-Fi-London 48-Hour Film Challenge. Ridley playe... | {
"type": "exact",
"value": "which was entered into the Sci-Fi-London 48-Hour Film Challenge",
"tests": []
} | train |
reason2-rotate_grid-034 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: N F L E / U C P Z / J B K D. Выполни циклические сдвиги по порядку: строка 3 на 1 вправо; столбец 4 на 2 вниз; строка 1 на 2 вправо; столбец 2 на 1 вниз; строка 2 на 3 вправо. Какой символ теперь в строке 2, столбце 1? Нумерация с единицы.\nПр... | {
"type": "exact",
"value": "Z",
"tests": []
} | train |
reason2-critical_path-046 | reasoning | ru | Original | CC0-1.0 | reason2-critical_path | workshop_critical_path | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Число рабочих мест в мастерской не ограничено. Время выполнения каждого этапа в минутах: E=6, C=6, S=9, D=5, V=6, P=6, G=5. Стрелка X→Y означает, что Y начинает работу после завершения X. Все зависимости: E→P, D→S, G→S, P→S, G→C, G→E, C→V, E→V, S→V. Время отсчитывают с нуля. Ко... | {
"type": "number",
"value": "32",
"tests": []
} | train |
wiki-read-en-0784910f43f364727aec | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-dbf77ea52a7533fd404ae6 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-5977328970869948406-0 (Apache-2.0). Wikipedia contributors, “Grammy Award for Best Rap Performance” (https://en.wikipedia.org/wiki/Grammy_Award_for_Best_Rap_Performance), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New r... | [
{
"role": "user",
"content": "Grammy Award for Best Rap Performance\n\nThe Grammy Award for Best Rap Performance is an honor presented to recording artists for quality rap performances. It was first presented at the 31st Annual Grammy Awards in 1989 and again at the 32nd Annual Grammy Awards in 1990, after ... | {
"type": "exact",
"value": "an honor presented to recording artists for quality rap performances",
"tests": []
} | train |
reason2-frequency_median-006 | reasoning | ru | Original | CC0-1.0 | reason2-frequency_median | workshop_frequency_median | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "В журнале длительности занятий записаны парами «минуты × число занятий»: 51×4; 36×5; 19×7; 39×2; 38×9. Какова медианная длительность одного занятия?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role": "assistant",
"content": "Общее число заня... | {
"type": "number",
"value": "38",
"tests": []
} | train |
gsm-train-1964 | math | en | GSM8K | MIT | gsm8k-f46c32512d85710f64ed | word_problem_3_steps | OpenAI (2021), GSM8K, original train row 1964 | [
{
"role": "user",
"content": "Christine makes money by commission rate. She gets a 12% commission on all items she sells. This month, she sold $24000 worth of items. Sixty percent of all her earning will be allocated to her personal needs and the rest will be saved. How much did she save this month?\nShow ... | {
"type": "number",
"value": "1152",
"tests": []
} | train |
algpy-9ed71ea0cfc15617-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-9ed71ea0cfc15617 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, dynamic_programming/minimum_partition.py#find_min; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(numbers):\n n = len(numbers)\n s = sum(numbers)\n dp = [[False... | {
"type": "exact",
"value": "A: 1",
"tests": []
} | train |
reason2-balanced_load-009 | reasoning | ru | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: N=55, V=50, R=95, P=65, X=35, J=90. Какой наименьшей разницы масс между тележками можно добиться?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},
{
"role": "assista... | {
"type": "number",
"value": "0",
"tests": []
} | train |
wiki-read-ru-8ddcb486a5597a2e8162 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-9d5bb70e83902c1f239b95 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--1196255469100678265-0 (Apache-2.0). Wikipedia contributors, “Overkill’s The Walking Dead” (https://ru.wikipedia.org/wiki/Overkill%E2%80%99s_The_Walking_Dead), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exer... | [
{
"role": "user",
"content": "Overkill’s The Walking Dead\n\nOverkill's The Walking Dead — компьютерная игра в жанре шутера от первого лица, разработчиком является студия Overkill Software, издателем — компании Starbreeze Publishing и 505 Games. Выход игры состоялся 6 ноября 2018 года. В данный момент релиз... | {
"type": "exact",
"value": "2018-11-06",
"tests": []
} | train |
wiki-read-ru-79ef29735d585c612aeb | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-861d1f191062f4cc2c4016 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4126154489346025659-20 (Apache-2.0). Wikipedia contributors, “Биткойн” (https://ru.wikipedia.org/wiki/%D0%91%D0%B8%D1%82%D0%BA%D0%BE%D0%B9%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Биткойн\n\n3 января 2009 года был сгенерирован первый блок и первые 50 биткойнов. Первая транзакция по переводу биткойнов произошла 12 января 2009 года — Сатоси Накамото отправил Хэлу Финни 10 биткойнов. Первый обмен биткойнов на национальные деньги произошёл в сентябре 2009 го... | {
"type": "exact",
"value": "Martti Malmi",
"tests": []
} | train |
algpy-f7cc351d321e1afb-trace | code | en | TheAlgorithms/Python | MIT | algpy-f7cc351d321e1afb | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, boolean_algebra/nimply_gate.py#nimply_gate; adapted exercises | [
{
"role": "user",
"content": "```python\ndef nimply_gate(input_1, input_2):\n return int(input_1 == 1 and input_2 == 0)\n```\nWhat does nimply_gate(1, 1) return? Give the Python repr of the value."
},
{
"role": "assistant",
"content": "0"
}
] | {
"type": "exact",
"value": "0",
"tests": []
} | train |
wiki-read-ru-2e759905c12357775a39 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-dc08400ed2426fc7b0b80d | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2373155163548687988-7 (Apache-2.0). Wikipedia contributors, “Елизавета Алексеевна” (https://ru.wikipedia.org/wiki/%D0%95%D0%BB%D0%B8%D0%B7%D0%B0%D0%B2%D0%B5%D1%82%D0%B0_%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B5%D0%B2%D0%BD%D0%B0), snapshot 2019-02-01 (CC-BY-SA-3.0)... | [
{
"role": "user",
"content": "Елизавета Алексеевна\n\nАлександру оставалось после прибытия сестер 31 октября 1792 года в Петербург остановить свой выбор на одной из них. И его избранницей оказалась старшая — Луиза, а младшая пробыв в Петербурге до августа 1793 уехала обратно в Карлсруэ.\n\nНайди полную кале... | {
"type": "exact",
"value": "1792-10-31",
"tests": []
} | train |
reason2-frequency_median-020 | reasoning | en | Original | CC0-1.0 | reason2-frequency_median | workshop_frequency_median | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A log summarises sessions as minutes × number of sessions: 47×5; 15×3; 45×5; 16×3; 48×3; 29×4; 28×8. What is the median duration of an individual session?\nShow a short check. Give the final answer on a separate line."
},
{
"role": "assistant",
"content": "There are... | {
"type": "number",
"value": "29",
"tests": []
} | train |
algpy-fead4e5444b12471-implement | code | en | TheAlgorithms/Python | MIT | algpy-fead4e5444b12471 | implement | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/lucas_series.py#recursive_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 recursive_lucas_number(n_th_number):\nExamples:\n```python\nassert recursive_lucas_number(0) == 2\nassert recursive_lucas_number(1) == 1\n```"
},
... | {
"type": "code",
"value": "",
"tests": [
"assert recursive_lucas_number(2) == 3",
"assert recursive_lucas_number(3) == 4",
"assert recursive_lucas_number(4) == 7",
"assert recursive_lucas_number(5) == 11",
"assert recursive_lucas_number(6) == 18",
"assert recursive_lucas_number(7) == 29",... | train |
wiki-read-ru-9934a831c9cc94e39f92 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-bba1264d024cee9655fbfd | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5114689569113710312-2 (Apache-2.0). Wikipedia contributors, “Центр искусств королевы Софии” (https://ru.wikipedia.org/wiki/%D0%A6%D0%B5%D0%BD%D1%82%D1%80_%D0%B8%D1%81%D0%BA%D1%83%D1%81%D1%81%D1%82%D0%B2_%D0%BA%D0%BE%D1%80%D0%BE%D0%BB%D0%B5%D0%B2%D1%8B_%D0%A1%D0%BE%... | [
{
"role": "user",
"content": "Центр искусств королевы Софии\n\nОфициально Национальный музей Центр искусств королевы Софии был открыт 10 сентября 1992 года королевской четой — Хуаном Карлосом и Софией. Это здание старинного госпиталя сегодня знаменито тем, что в нём собрана великолепная коллекция современно... | {
"type": "exact",
"value": "1992-09-10",
"tests": []
} | train |
wiki-read-ru-ff7f7792eaf4d5e5045e | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-5c774cefe43c5edf258db3 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4154338926024694592-0 (Apache-2.0). Wikipedia contributors, “Метрострой (компания, Санкт-Петербург)” (https://ru.wikipedia.org/wiki/%D0%9C%D0%B5%D1%82%D1%80%D0%BE%D1%81%D1%82%D1%80%D0%BE%D0%B9_(%D0%BA%D0%BE%D0%BC%D0%BF%D0%B0%D0%BD%D0%B8%D1%8F%2C_%D0%A1%D0%B0%D0%BD%D... | [
{
"role": "user",
"content": "Метрострой (компания, Санкт-Петербург)\n\nОАО «Метрострой» — советская и российская строительная компания. Официальное название — «ОАО по строительству метрополитена в городе Санкт-Петербурге „Метрострой“». Монополист строительства Петербургского метрополитена . Штаб-квартира —... | {
"type": "exact",
"value": "советская и российская строительная компания",
"tests": []
} | train |
wiki-read-en-c0d4707cb6b44de3dbf8 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-3f88a11717dfc99ff462d9 | measurement | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-946354591010600149-1 (Apache-2.0). Wikipedia contributors, “Demographics of Georgia (U.S. state)” (https://en.wikipedia.org/wiki/Demographics_of_Georgia_(U.S._state)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New read... | [
{
"role": "user",
"content": "Demographics of Georgia (U.S. state)\n\nThe demographics of Georgia are inclusive of the ninth most populous state in the United States, with over 9.68 million people (2010 census), just over 3% of America's population.\n\nWhich value is expressed numerically in percent? Copy j... | {
"type": "exact",
"value": "3%",
"tests": []
} | train |
wiki-read-ru-b5390eea212677c2c6ea | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-e5f6ace61e55b93060eac1 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--7781947748960100563-1 (Apache-2.0). Wikipedia contributors, “Станиславский, Константин Сергеевич” (https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D0%B0%D0%BD%D0%B8%D1%81%D0%BB%D0%B0%D0%B2%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... | [
{
"role": "user",
"content": "Станиславский, Константин Сергеевич\n\nВ 1888 году стал одним из основателей Московского общества искусства и литературы. В 1898 году вместе с Вл. И. Немировичем-Данченко основал Московский Художественный театр.\n\nКакие четырёхзначные календарные годы упомянуты в отрывке? Запи... | {
"type": "exact",
"value": "1888, 1898",
"tests": []
} | train |
algpy-29457b622b837a2b-repair | code | en | TheAlgorithms/Python | MIT | algpy-29457b622b837a2b | repair | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/is_pangram.py#is_pangram_fastest; adapted exercises | [
{
"role": "user",
"content": "Repair this Python function. Return True if the text contains every ASCII letter a through z at least once, ignoring case.\nFor is_pangram_fastest('') it should return False, but returns True. Keep the signature.\n```python\ndef is_pangram_fastest(input_str='The quick brown fox... | {
"type": "code",
"value": "",
"tests": [
"assert is_pangram_fastest('') == False",
"assert is_pangram_fastest('a') == False",
"assert is_pangram_fastest('A') == False",
"assert is_pangram_fastest('hello') == False",
"assert is_pangram_fastest('AaB') == False",
"assert is_pangram_fastest('... | train |
verified-code-nearby_nodes-implement | code | ru | Original | CC0-1.0 | verified-code-hops | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Реализуй на Python nearby_nodes(n, edges, k). Вершины ориентированного графа пронумерованы от 0 до n−1, n ≥ 1. В списке edges указаны пары (откуда, куда), k ≥ 0. Верни по возрастанию только достижимые из 0 вершины, кратчайшее расстояние до которых не больше k. Расстояние от 0 д... | {
"type": "code",
"value": "",
"tests": [
"assert nearby_nodes(1, [], 0) == [0]",
"assert nearby_nodes(4, [(0, 1), (1, 2)], 1) == [0, 1]",
"assert nearby_nodes(6, [(0, 3), (0, 1), (1, 2), (2, 3), (3, 4)], 1) == [0, 1, 3]",
"assert nearby_nodes(3, [], 8) == [0]",
"assert nearby_nodes(3, [(0, 0)... | train |
algpy-2184ddda2ffd169c-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-2184ddda2ffd169c | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, searches/double_linear_search.py#double_linear_search; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `elif array[end_ind] == search_item:` заменяют на `elif array[end_ind] != search_item:`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(array, search_item)... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
reason2-rotate_grid-035 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: B Y S / X V W / F N R / A G H. Выполни циклические сдвиги по порядку: строка 4 на 1 вправо; столбец 1 на 3 вниз; строка 3 на 1 вправо; столбец 1 на 2 вниз. Какой символ теперь в строке 2, столбце 1? Нумерация с единицы.\nКратко обоснуй ответ и... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
wiki-read-en-0d4078e9ca2eed3237af | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-65d1e6606925c5b89d9e2d | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-7710565394818068300-0 (Apache-2.0). Wikipedia contributors, “Dinoponera” (https://en.wikipedia.org/wiki/Dinoponera), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Dinoponera\n\nDinoponera is a strictly South American genus of ant in the subfamily Ponerinae, commonly called tocandiras or giant Amazonian ants. These ants are generally less well known than Paraponera clavata, the bullet ant, yet Dinoponera females may surpass 3–4cm (1.2–1.6... | {
"type": "exact",
"value": "a strictly South American genus of ant in the subfamily Ponerinae, commonly called tocandiras or giant Amazonian ants",
"tests": []
} | train |
reason2-minimum_cover-016 | 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, 8, 9. Available kits and the types they contain: E=2/8; S=3/5/8; G=5/7/8/9; V=6/7; M=2/5/7; T=5/6/7/9; H=7/9. Duplicate samples are allowed. What is the fewest kits that cover every type?\nBriefly justify your result, then pu... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-order_count-017 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты D, C, N, X, H, R выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: C→N, C→X, D→X, N→X, C→R, N→R. Сколько полных порядков допускают эти условия?\nКратко обоснуй ответ и запиши сам ответ на последней строке."
},
{
"role": "ass... | {
"type": "number",
"value": "42",
"tests": []
} | train |
reason2-line_breaks-014 | reasoning | en | Original | CC0-1.0 | reason2-line_breaks | workshop_line_breaks | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "A heading contains words of lengths 5, 6, 5, 5, 2, 7, 4, 2, 5, 2, 4, in the given order. Each line holds 15 characters, with one space between adjacent words. Words cannot be split or reordered. What is the fewest lines needed?\nBriefly justify your result, then put the answer ... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-ru-f81c1d907660da845c45 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-3aec4127e6a0b4e64eea39 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-4753435117822441218-0 (Apache-2.0). Wikipedia contributors, “Договор о ненападении между Германией и Советским Союзом” (https://ru.wikipedia.org/wiki/%D0%94%D0%BE%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D0%BE_%D0%BD%D0%B5%D0%BD%D0%B0%D0%BF%D0%B0%D0%B4%D0%B5%D0%BD%D0%B8%D0%B8... | [
{
"role": "user",
"content": "Договор о ненападении между Германией и Советским Союзом\n\nДоговор о ненападении между Германией и Советским Союзом (German: Deutsch-sowjetischer Nichtangriffspakt; также известен как пакт Молотова — Риббентропа) — межправительственное соглашение, подписанное 23 августа 1939 г... | {
"type": "exact",
"value": "1939-08-23",
"tests": []
} | train |
algpy-8437921631b167f6-trace | code | ru | TheAlgorithms/Python | MIT | algpy-8437921631b167f6 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, backtracking/knight_tour.py#is_complete; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(board):\n return not any((elem == 0 for row in board for elem in row))\n```\nЧто вернёт выражение compute([[1]])? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "True"
}
] | {
"type": "exact",
"value": "True",
"tests": []
} | train |
algpy-53914cfcef34e9fd-check-assertions | code | en | TheAlgorithms/Python | MIT | algpy-53914cfcef34e9fd | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, matrix/max_area_of_island.py#is_safe; 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(row, col, rows, cols):\n return 0 <= row < rows and 0 <= col < cols\n```\n``... | {
"type": "exact",
"value": "A: True",
"tests": []
} | train |
algpy-a69189bbb033ef0a-trace | code | ru | TheAlgorithms/Python | MIT | algpy-a69189bbb033ef0a | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, conversions/temperature_conversions.py#reaumur_to_kelvin; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(reaumur, ndigits=2):\n return round(float(reaumur) * 1.25 + 273.15, ndigits)\n```\nЧто вернёт выражение round(compute(0), 6)? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "273.15"
}
] | {
"type": "exact",
"value": "273.15",
"tests": []
} | train |
wiki-read-en-7f838e440b001780ae03 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-b5bebff53e16743e824f66 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1057178719854760261-1 (Apache-2.0). Wikipedia contributors, “Assassin's Creed” (https://en.wikipedia.org/wiki/Assassin%27s_Creed), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Assassin's Creed\n\nThe video game series took inspiration from the novel Alamut by the Slovenian writer Vladimir Bartol, while building upon concepts from the Prince of Persia series. It begins with the self-titled game in 2007, and has featured eleven main games. The most rec... | {
"type": "exact",
"value": "while building upon concepts from the Prince of Persia series",
"tests": []
} | train |
algpy-1596c537c6f4b728-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-1596c537c6f4b728 | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, boolean_algebra/imply_gate.py#recursive_imply_list; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `first_implication = imply_gate(input_list[0], input_list[1])` заменяют на `first_implication = imply_gate(input_list[-1], input_list[1])`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней ... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
wiki-read-en-fce8494e434b1eb70a25 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-9b762e3b5de8a1e2fbabb0 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7668270689411376314-0 (Apache-2.0). Wikipedia contributors, “Ronnie Spector” (https://en.wikipedia.org/wiki/Ronnie_Spector), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Ronnie Spector\n\nRonnie Spector (born Veronica Yvette Bennett; August 10, 1943) is an American rock and roll singer known as \"The Bad Girl of Rock & Roll\". Spector was the lead singer of the rock/pop vocal girl group the Ronettes, who had a string of hits during the early to... | {
"type": "exact",
"value": "1943-08-10",
"tests": []
} | train |
wiki-read-en-9f0fb7c01b688534b4a6 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-7e6f3b93df176dc0bc9c5a | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4094984626714520142-0 (Apache-2.0). Wikipedia contributors, “Transformers (film series)” (https://en.wikipedia.org/wiki/Transformers_(film_series)), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Transformers (film series)\n\nTransformers is a series of American science fiction action films based on the franchise of the same name which began in the 1980s. Michael Bay has directed the first five films: Transformers (2007), Revenge of the Fallen (2009), Dark of the Moon (... | {
"type": "exact",
"value": "a series of American science fiction action films based on the franchise of the same name which began in the 1980s",
"tests": []
} | train |
reason2-minimum_cover-026 | 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, 4, 5, 6, 8, 9. Наборы перечислены с типами внутри: S=4/6; F=1/4/5/9; Z=2/6; E=9; P=5/8; U=1/2. Дубли допустимы. Какое наименьшее число наборов покроет все типы?\nПокажи короткую проверку, а в конце на отдельной строке дай ответ."
},... | {
"type": "number",
"value": "3",
"tests": []
} | train |
reason2-room_peak-029 | reasoning | ru | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Репетиции занимают отдельные комнаты в такие минуты: D [9,15); B [19,26); P [16,24); C [15,23); T [10,12); F [4,7); G [18,25). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПокажи короткую проверку, а в кон... | {
"type": "number",
"value": "4",
"tests": []
} | train |
wiki-read-ru-1c9bdb0c067b06bc7822 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-853f784ee329d08138c1eb | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-2437100812216287354-3 (Apache-2.0). Wikipedia contributors, “Воронежский трамвай” (https://ru.wikipedia.org/wiki/%D0%92%D0%BE%D1%80%D0%BE%D0%BD%D0%B5%D0%B6%D1%81%D0%BA%D0%B8%D0%B9_%D1%82%D1%80%D0%B0%D0%BC%D0%B2%D0%B0%D0%B9), snapshot 2019-02-01 (CC-BY-SA-3.0). Excer... | [
{
"role": "user",
"content": "Воронежский трамвай\n\nЗакат воронежского трамвая начался в 2001 году, после демонтажа основной трамвайной линии по Московскому проспекту. Официальной причиной были названы имеющиеся долги предприятия, износ фондов и общее устаревание трамвайного транспорта в мире. Система закр... | {
"type": "exact",
"value": "вместо Тольятти",
"tests": []
} | train |
wiki-read-ru-4b501ab67d0a105db00e | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-62e7b9912d7d731bd6db88 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-9139017798234664723-7 (Apache-2.0). Wikipedia contributors, “Калужская область” (https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D0%BB%D1%83%D0%B6%D1%81%D0%BA%D0%B0%D1%8F_%D0%BE%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace... | [
{
"role": "user",
"content": "Калужская область\n\nС севера на юг Калужская область протянулась более чем на 220 км от 53°30' до 55°30' северной широты, с запада на восток — на 220 км. Площадь территории составляет 29,777 тыс. км². Через территорию области проходят важнейшие международные автомобильные и же... | {
"type": "exact",
"value": "2012-07-01",
"tests": []
} | train |
wiki-read-ru-e8de6ee8b5f021a71540 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-96eebba49dbbf422d245f0 | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7688724427946708201-2 (Apache-2.0). Wikipedia contributors, “Intel” (https://ru.wikipedia.org/wiki/Intel), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Intel\n\nКомпанию основали Роберт Нойс и Гордон Мур 18 июля 1968 года после того, как ушли из компании Fairchild Semiconductor. Вскоре к ним присоединился Энди Гроув, разработавший и внедривший метод корпоративного управления OKR, эффективно используемый в менеджменте. Бизнес-п... | {
"type": "exact",
"value": "1968-07-18",
"tests": []
} | train |
reason2-room_peak-046 | reasoning | ru | Original | CC0-1.0 | reason2-room_peak | workshop_room_peak | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Репетиции занимают отдельные комнаты в такие минуты: D [15,21); V [3,8); C [15,18); X [19,21); A [19,26); M [6,13); B [8,13). Конец интервала уже свободен; одна комната подходит любой группе. Сколько комнат как минимум требуется одновременно?\nПриведи ход решения в нескольких ф... | {
"type": "number",
"value": "3",
"tests": []
} | train |
math-verified-three_clubs-011 | 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 — 34, B — 50, C — 47. На A и B записаны 20, на B и C — 24, на A и C — 17. Число участников всех трёх групп — 10; они включены в каждое парное пересечение. Сколько человек записалось ровно на одно занятие?\nЗапиши точное число в последней строке... | {
"type": "number",
"value": "39",
"tests": []
} | train |
wiki-read-en-3c7ed75e1de39b60ca5b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-43ff792d79f75890d3c518 | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-6903215309307958171-0 (Apache-2.0). Wikipedia contributors, “Platinum” (https://en.wikipedia.org/wiki/Platinum), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Platinum\n\nPlatinum is a chemical element with symbol Pt and atomic number 78. It is a dense, malleable, ductile, highly unreactive, precious, silverish-white transition metal. Its name is derived from the Spanish term platino, meaning \"little silver\".\n\nHow does the first ... | {
"type": "exact",
"value": "a chemical element with symbol Pt and atomic number 78",
"tests": []
} | train |
verified-code-heavier_left-repair | code | en | Original | CC0-1.0 | verified-code-pivots | verified_repair | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Correct one line. heavier_left([0, 0, 0]) returns [0, 1, 2]; expected []. Return increasing zero-based indices i where the sum strictly to the left > the sum strictly to the right. Exclude xs[i] from both sums. xs is a list of integers.\n```python\ndef heavier_left(xs):\n ri... | {
"type": "code",
"value": "",
"tests": [
"assert heavier_left([]) == []",
"assert heavier_left([0]) == []",
"assert heavier_left([5]) == []",
"assert heavier_left([2, 1, -1, 2]) == [1, 2, 3]",
"assert heavier_left([4, -2, 3, 1, 1]) == [3, 4]",
"assert heavier_left([-1, -4, -1]) == [0]",
... | train |
wiki-read-ru-9ea35e1ecd3f6e0e8a12 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-76d2cf325034990040a8bd | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-7172627941960463542-3 (Apache-2.0). Wikipedia contributors, “Субъективное избирательное право” (https://ru.wikipedia.org/wiki/%D0%A1%D1%83%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D0%BE%D0%B5_%D0%B8%D0%B7%D0%B1%D0%B8%D1%80%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%... | [
{
"role": "user",
"content": "Субъективное избирательное право\n\nВ большинстве стран мира приобретение активного избирательного права связывается с достижением человеком определённого возраста, часто (но не всегда) приравниваемого к возрасту гражданского совершеннолетия. Например, в Японии лицо получает пр... | {
"type": "exact",
"value": "но не всегда",
"tests": []
} | train |
wiki-read-en-55a4c6fd0ac7bd7ffce5 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-560431a806520bfcf8b900 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--7407710291301149004-2 (Apache-2.0). Wikipedia contributors, “Mind–body dualism” (https://en.wikipedia.org/wiki/Mind%E2%80%93body_dualism), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Mind–body dualism\n\nDualism is closely associated with the thought of René Descartes (1641), which holds that the mind is a nonphysical—and therefore, non-spatial—substance. Descartes clearly identified the mind with consciousness and self-awareness and distinguished this from... | {
"type": "exact",
"value": "but property dualism may be considered a form of emergent materialism or non-reductive physicalism in some sense",
"tests": []
} | train |
reason2-order_count-003 | reasoning | ru | Original | CC0-1.0 | reason2-order_count | workshop_order_count | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Экспонаты R, Y, G, K, V выносят по одному, каждый ровно раз. Правило X→Y требует вынести X раньше Y. Правила: R→Y, K→V, Y→V. Сколько полных порядков допускают эти условия?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
{
"role": "... | {
"type": "number",
"value": "15",
"tests": []
} | train |
gsm-train-1975 | math | en | GSM8K | MIT | gsm8k-9543a3142a0598c7ec8f | word_problem_5_steps | OpenAI (2021), GSM8K, original train row 1975 | [
{
"role": "user",
"content": "Kathleen receives a weekly allowance for completing all of her chores. During middle school, her allowance was $2 more than $8 but during her senior year, her allowance was $5 more than twice her middle school allowance. What is the percentage increase in Kathleen's weekly all... | {
"type": "number",
"value": "150",
"tests": []
} | train |
wiki-read-en-982c1f9f65f77ce7b57b | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-f260c0132889f99c43cb8e | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--8654972544689081303-1 (Apache-2.0). Wikipedia contributors, “Vienna State Opera” (https://en.wikipedia.org/wiki/Vienna_State_Opera), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Vienna State Opera\n\nThe opera house was the first major building on the Vienna Ringstrasse commissioned by the Viennese \"city expansion fund\". Work commenced on the house in 1861 and was completed in 1869, following plans drawn up by architects August Sicard von Sicardsburg... | {
"type": "exact",
"value": "1861, 1869",
"tests": []
} | train |
wiki-read-en-fb230879382389455390 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-91f9cb70ab0713308783cf | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--499986559145539512-0 (Apache-2.0). Wikipedia contributors, “French language in Canada” (https://en.wikipedia.org/wiki/French_language_in_Canada), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "French language in Canada\n\nFrench is the mother tongue of about 7.2 million Canadians (20.6% of the Canadian population, second to English at 56%) according to Census Canada 2016. Most native speakers of the French language in Canada live in Quebec, where French is the majori... | {
"type": "exact",
"value": "the mother tongue of about 7.2 million Canadians (20.6% of the Canadian population, second to English at 56%) according to Census Canada 2016",
"tests": []
} | train |
wiki-read-en-d9417a015048082ba7c9 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-66e31f22dc30c077bd8de2 | parenthetical_detail | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--448333017712235449-0 (Apache-2.0). Wikipedia contributors, “Middle Ages” (https://en.wikipedia.org/wiki/Middle_Ages), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Middle Ages\n\nIn the history of Europe, the Middle Ages (or medieval period) lasted from the 5th to the 15th century. It began with the fall of the Western Roman Empire and merged into the Renaissance and the Age of Discovery. The Middle Ages is the middle period of the three ... | {
"type": "exact",
"value": "or medieval period",
"tests": []
} | train |
algpy-a18ae6afa49b4a9a-trace | code | ru | TheAlgorithms/Python | MIT | algpy-a18ae6afa49b4a9a | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, strings/capitalize.py#capitalize; adapted exercises | [
{
"role": "user",
"content": "```python\ndef capitalize(sentence):\n return sentence[:1].upper() + sentence[1:]\n```\nЧто вернёт выражение capitalize('a')? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "'A'"
}
] | {
"type": "exact",
"value": "'A'",
"tests": []
} | train |
wiki-read-ru-06dba1b682bdaf4b66dc | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-5547bbfd96a6f2e76270e6 | clause | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian--5713519290153569836-24 (Apache-2.0). Wikipedia contributors, “Крепостное право в России” (https://ru.wikipedia.org/wiki/%D0%9A%D1%80%D0%B5%D0%BF%D0%BE%D1%81%D1%82%D0%BD%D0%BE%D0%B5_%D0%BF%D1%80%D0%B0%D0%B2%D0%BE_%D0%B2_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8), snapsho... | [
{
"role": "user",
"content": "Крепостное право в России\n\nПервые шаги к ограничению и последующей отмене крепостного права были сделаны Павлом I и Александром I в 1797 и 1803 годах подписанием Манифеста о трёхдневной барщине об ограничении подневольного труда и Указа о свободных хлебопашцах, в котором проп... | {
"type": "exact",
"value": "в котором прописано правовое положение отпускаемых на волю крестьян",
"tests": []
} | train |
algpy-1527064db8dc86de-trace | code | ru | TheAlgorithms/Python | MIT | algpy-1527064db8dc86de | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/single_bit_manipulation_operations.py#clear_least_significant_set_bit; adapted exercises | [
{
"role": "user",
"content": "```python\ndef clear_least_significant_set_bit(number):\n return number & number - 1\n```\nЧто вернёт выражение clear_least_significant_set_bit(8)? Запиши repr результата Python."
},
{
"role": "assistant",
"content": "0"
}
] | {
"type": "exact",
"value": "0",
"tests": []
} | train |
wiki-read-en-1fb4047d6bf775b9c8f3 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-e21d70f8a5dd339e0f48ea | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-8208376931182822906-0 (Apache-2.0). Wikipedia contributors, “Tortricidae” (https://en.wikipedia.org/wiki/Tortricidae), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Tortricidae\n\nThe Tortricidae are a family of moths, commonly known as tortrix moths or leafroller moths, in the order Lepidoptera. This large family has over 10,350 species described, and is the sole member of the superfamily Tortricoidea, although the genus Heliocosma is som... | {
"type": "exact",
"value": "a family of moths, commonly known as tortrix moths or leafroller moths, in the order Lepidoptera",
"tests": []
} | train |
reason2-join_catalogs-066 | reasoning | ru | Original | CC0-1.0 | reason2-join_catalogs | workshop_join_catalogs | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Каталог связывает код книги с полкой: B75=S3, B21=S2, B54=S2, B46=S1, B88=S1, B79=S2. Соответствие полок и залов: S3=E, S1=P, S2=R. Число выданных экземпляров по коду книги: B88=15, B46=7, B75=17, B54=10, B21=5, B79=6. В каком зале больше всего выдач?\nКратко обоснуй ответ и за... | {
"type": "exact",
"value": "P",
"tests": []
} | train |
algpy-0c9aede5a1df7c7e-change-impact | code | ru | TheAlgorithms/Python | MIT | algpy-0c9aede5a1df7c7e | change-impact | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, divide_and_conquer/power.py#actual_power; adapted exercises | [
{
"role": "user",
"content": "В показанном коде строку `if b % 2 == 0:` заменяют на `if b % 2 != 0:`. Для какого из двух выражений изменится возвращаемое значение? Дай короткое объяснение и запиши букву в последней строке.\n```python\ndef compute(a, b):\n if b == 0:\n return 1\n half = compute(... | {
"type": "exact",
"value": "B",
"tests": []
} | train |
verified-code-window_spreads-implement | code | en | Original | CC0-1.0 | verified-code-windows | verified_implement | Original algorithm and independent oracle, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Implement window_spreads(xs, k) in Python. For each consecutive window of k integers in xs, collect its range (maximum minus minimum) into a list, left to right. k is positive. Return [] if there is no full window.\nassert window_spreads([4, -2, 7, 7, 0], 3) == [9, 9, 7]"
},
... | {
"type": "code",
"value": "",
"tests": [
"assert window_spreads([], 1) == []",
"assert window_spreads([3], 1) == [0]",
"assert window_spreads([1, 0], 3) == []",
"assert window_spreads([8, 1, 9, 0], 2) == [7, 8, 9]",
"assert window_spreads([2, 4, 1], 3) == [3]",
"assert window_spreads([-4,... | train |
reason2-rotate_grid-067 | reasoning | ru | Original | CC0-1.0 | reason2-rotate_grid | workshop_rotate_grid | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Исходные строки табло сверху вниз: E L C / F H P / J A N. Выполни циклические сдвиги по порядку: строка 2 на 2 вправо; столбец 2 на 2 вниз; строка 3 на 1 вправо; столбец 2 на 1 вниз; строка 2 на 2 вправо. Какой символ теперь в строке 3, столбце 3? Нумерация с единицы.\nКратко о... | {
"type": "exact",
"value": "L",
"tests": []
} | train |
wiki-read-en-a561a41768fb605ad923 | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-3a7e9d04fe2973182f9d5c | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english--4952481492896941045-4 (Apache-2.0). Wikipedia contributors, “Hyacinth Graf Strachwitz” (https://en.wikipedia.org/wiki/Hyacinth_Graf_Strachwitz), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Hyacinth Graf Strachwitz\n\nStrachwitz was born on 30 July 1893 in Groß Stein, in the district of Groß Strehlitz in Silesia, a province in the Kingdom of Prussia. Today it is Kamień Śląski, in Gogolin, Opole Voivodeship, Poland. Strachwitz was the second child of Hyacinth Graf ... | {
"type": "exact",
"value": "1893-07-30",
"tests": []
} | train |
algpy-8001c2f8df35d55c-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-8001c2f8df35d55c | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, scheduling/shortest_job_first.py#calculate_waitingtime; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(arrival_time, burst_time, no_of_processes):\n remaining_time = [0] *... | {
"type": "exact",
"value": "B: [0, 3, 5, 0]",
"tests": []
} | train |
math-verified-tickets-011 | 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 2858 dollars for 50 tickets, including a single booking fee of 8 dollars for the entire order. Full-price tickets cost 65 dollars and reduced tickets cost 55. How many full-price tickets were in the order?\nGive the exact number on the last line; use a reduced frac... | {
"type": "number",
"value": "10",
"tests": []
} | train |
algpy-1d1f2b5738795b58-trace | code | ru | TheAlgorithms/Python | MIT | algpy-1d1f2b5738795b58 | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/perfect_number.py#find_perfect_numbers; adapted exercises | [
{
"role": "user",
"content": "```python\ndef perfect(number):\n if not isinstance(number, int):\n raise ValueError('number must be an integer')\n if number <= 0:\n return False\n if number == 1:\n return False\n divisor_sum = sum((i for i in range(1, number // 2 + 1) if numb... | {
"type": "exact",
"value": "[]",
"tests": []
} | train |
wiki-read-ru-1534a6c8c307f1d59dd8 | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-4a62f1b3003d6ab6176417 | chronology | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-62989826540002512-2 (Apache-2.0). Wikipedia contributors, “Мун, Кит Джон” (https://ru.wikipedia.org/wiki/%D0%9C%D1%83%D0%BD%2C_%D0%9A%D0%B8%D1%82_%D0%94%D0%B6%D0%BE%D0%BD), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New... | [
{
"role": "user",
"content": "Мун, Кит Джон\n\nМуна считают одним из лучших рок-барабанщиков в мире; в составе группы The Who он был включён в Зал славы рок-н-ролла, оказался на третьем месте в списке 50 лучших барабанщиков рок-музыки, составленном в 2005 году британским журналом Classic Rock. В 2010 году ч... | {
"type": "exact",
"value": "2005, 2010",
"tests": []
} | train |
wiki-read-en-484e38d90951cc90cacc | en | en | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-en-679fd05997ef1e3cd4deed | date_normalization | Clark et al. (2020), TyDiQA-GoldP v1.1 train, english-1750395196689089715-0 (Apache-2.0). Wikipedia contributors, “2015 Vuelta a España” (https://en.wikipedia.org/wiki/2015_Vuelta_a_Espa%C3%B1a), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "2015 Vuelta a España\n\nThe 2015 Vuelta a España was a three-week Grand Tour cycling race. The race was the 70th edition of the Vuelta a España and took place principally in Spain, although two stages took place partly or wholly in Andorra, and was the 22nd race in the 2015 UCI... | {
"type": "exact",
"value": "2015-08-22",
"tests": []
} | train |
reason2-balanced_load-057 | reasoning | ru | Original | CC0-1.0 | reason2-balanced_load | workshop_balanced_load | Original procedural reasoning, release 2; CC0-1.0. | [
{
"role": "user",
"content": "Две тележки должны увезти все ящики без деления содержимого. Масса каждого ящика: F=16, P=7, X=6, J=19, V=11, Z=23, E=15, W=4. Какой наименьшей разницы масс между тележками можно добиться?\nПриведи ход решения в нескольких фразах. На последней строке оставь только ответ."
},
... | {
"type": "number",
"value": "1",
"tests": []
} | train |
wiki-read-ru-64f8855dea20f517b1cd | ru | ru | TyDiQA-GoldP | Apache-2.0 AND CC-BY-SA-3.0 | tydi-wiki-ru-8a6a373a095fa1a504aa4c | definition | Clark et al. (2020), TyDiQA-GoldP v1.1 train, russian-1690667904604121255-1 (Apache-2.0). Wikipedia contributors, “Citroën DS” (https://ru.wikipedia.org/wiki/Citro%C3%ABn_DS), snapshot 2019-02-01 (CC-BY-SA-3.0). Excerpt; whitespace and reference markers normalized. New reading exercise. | [
{
"role": "user",
"content": "Citroën DS\n\nCitroën DS — автомобиль бизнес-класса, выпускавшийся французской фирмой Citroen в 1955—1975 годах. Имел неофициальное название «Богиня» из-за того, что DS (de-es) по-французски звучит так же, как слово Déesse (Russian: Деэ́с) — богиня. Помимо необычного внешнего в... | {
"type": "exact",
"value": "автомобиль бизнес-класса, выпускавшийся французской фирмой Citroen в 1955—1975 годах",
"tests": []
} | train |
algpy-a512c3f69a6b4cee-trace | code | ru | TheAlgorithms/Python | MIT | algpy-a512c3f69a6b4cee | trace | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, bit_manipulation/binary_shifts.py#logical_left_shift; adapted exercises | [
{
"role": "user",
"content": "```python\ndef compute(number, shift_amount):\n if number < 0 or shift_amount < 0:\n raise ValueError('both inputs must be positive integers')\n binary_number = str(bin(number))\n binary_number += '0' * shift_amount\n return binary_number\n```\nЧто вернёт выр... | {
"type": "exact",
"value": "'0b111101111110000'",
"tests": []
} | train |
algpy-062426d8f2e05d28-check-assertions | code | ru | TheAlgorithms/Python | MIT | algpy-062426d8f2e05d28 | check-assertions | TheAlgorithms and contributors, TheAlgorithms/Python@30507bbe41397065728167fb09aa820f9fce8dc7, maths/allocation_number.py#allocation_num; adapted exercises | [
{
"role": "user",
"content": "Один из тестов противоречит фактическому поведению этой функции. Определи его и вычисли верный результат. В последней строке запиши букву и результат через двоеточие, например A: 42.\n```python\ndef compute(number_of_bytes, partitions):\n if partitions <= 0:\n raise V... | {
"type": "exact",
"value": "B: ['1-4161', '4162-8322', '8323-12483', '12484-16647']",
"tests": []
} | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.