{
 "license": "CC BY 4.0, gen-hub.ru",
 "date": "2026-10-28",
 "texts": {
  "news": {
   "label": "Новостная заметка",
   "ru": "В среду в городе открылась обновлённая детская библиотека. Ремонт занял восемь месяцев: в здании заменили окна, отопление и освещение, а на первом этаже появился зал для занятий с компьютерами и 3D-принтером. Фонд пополнили на 6 тысяч книг, в основном это современная детская литература и научно-популярные издания для подростков. По словам директора, записаться в библиотеку можно бесплатно по паспорту одного из родителей, а занятия в компьютерном классе будут проходить по выходным. В первую неделю посетителей ждут мастер-классы по робототехнике и встречи с авторами. Библиотека работает ежедневно, кроме понедельника, с 10:00 до 19:00.",
   "en": "On Wednesday, the city reopened its renovated children's library. The renovation took eight months: the building got new windows, heating and lighting, and a room for classes with computers and a 3D printer was added on the ground floor. The collection grew by 6,000 books, mostly contemporary children's literature and popular science titles for teenagers. According to the director, anyone can sign up for free with the passport of one of their parents, and classes in the computer room will be held on weekends. During the first week, visitors can attend robotics workshops and meet authors. The library is open every day except Monday, from 10:00 to 19:00."
  },
  "howto": {
   "label": "Инструкция",
   "ru": "Чтобы настроить автоматическое резервное копирование, откройте раздел «Настройки» и выберите пункт «Резервные копии». Укажите папку, которую нужно сохранять, и диск, на который будут записываться копии. Рекомендуем выбрать внешний диск или сетевое хранилище: если копия лежит на том же диске, что и оригинал, при поломке вы потеряете оба файла. Затем задайте расписание: для рабочих документов достаточно одной копии в день, для фотоархива — одной в неделю. Включите параметр «Хранить старые версии» и ограничьте срок хранения тридцатью днями, иначе диск быстро заполнится. После первого запуска проверьте, что копия действительно создалась: откройте папку назначения и попробуйте восстановить любой файл. Если программа сообщает об ошибке доступа, запустите её от имени администратора.",
   "en": "To set up automatic backups, open the Settings section and select Backups. Specify the folder you want to back up and the drive the copies will be written to. We recommend an external drive or network storage: if the copy is on the same drive as the original, you will lose both files if the drive fails. Then set a schedule: one copy a day is enough for work documents, and one a week for a photo archive. Turn on the Keep old versions option and limit the retention period to thirty days, otherwise the drive will fill up quickly. After the first run, check that the copy was actually created: open the destination folder and try to restore any file. If the program reports an access error, run it as an administrator."
  },
  "letter": {
   "label": "Деловое письмо",
   "ru": "Уважаемая Анна Сергеевна! Благодарим вас за интерес к нашему предложению. Направляем коммерческое предложение на поставку офисной мебели для вашего филиала. В стоимость включены доставка, сборка и вывоз упаковки. Срок изготовления составляет 21 рабочий день с момента внесения предоплаты в размере 50 процентов. Окончательный расчёт производится после подписания акта приёма-передачи. Гарантия на всю продукцию — 3 года. Обращаем внимание, что цены действительны до конца текущего месяца. Если вам потребуется изменить комплектацию или сроки поставки, пожалуйста, сообщите об этом вашему менеджеру. Будем рады ответить на любые вопросы и надеемся на долгосрочное сотрудничество. С уважением, отдел продаж.",
   "en": "Dear Anna Sergeevna, thank you for your interest in our offer. Please find attached our commercial proposal for the supply of office furniture for your branch. The price includes delivery, assembly and removal of packaging. Production takes 21 business days from receipt of a 50 percent prepayment. The final payment is made after the acceptance certificate is signed. All products come with a 3-year warranty. Please note that the prices are valid until the end of the current month. If you need to change the configuration or delivery dates, please let your manager know. We will be happy to answer any questions and look forward to a long-term partnership. Best regards, Sales Department."
  },
  "chat": {
   "label": "Чат поддержки",
   "ru": "Клиент: Здравствуйте, я вчера оплатил подписку, но доступ так и не появился.\nОператор: Добрый день! Сейчас проверю. Подскажите, пожалуйста, адрес почты, на который оформлен аккаунт.\nКлиент: ivan.petrov@example.com\nОператор: Спасибо. Вижу платёж от 14 октября, он прошёл успешно, но подписка привязалась к другому аккаунту — вероятно, вы входили через Google.\nКлиент: Да, точно, я входил через Google. Можно перенести?\nОператор: Конечно. Я перенёс подписку на ваш основной аккаунт, она действует до 14 ноября. Выйдите и зайдите снова, чтобы изменения применились.\nКлиент: Всё заработало, спасибо!\nОператор: Рады помочь. Хорошего дня!",
   "en": "Customer: Hi, I paid for a subscription yesterday, but I still don't have access.\nAgent: Hello! Let me check. Could you please tell me the email address the account is registered to?\nCustomer: ivan.petrov@example.com\nAgent: Thank you. I can see a payment from October 14, it went through, but the subscription was linked to a different account. You probably signed in with Google.\nCustomer: Yes, right, I signed in with Google. Can you move it?\nAgent: Sure. I've moved the subscription to your main account, it is valid until November 14. Sign out and sign in again for the changes to take effect.\nCustomer: Everything works now, thanks!\nAgent: Glad to help. Have a nice day!"
  },
  "fiction": {
   "label": "Художественный текст",
   "ru": "К вечеру дождь кончился, и над рекой поднялся туман. Старик долго сидел на крыльце, глядя, как гаснет последний свет за дальним лесом. Собака лежала у его ног и иногда поднимала голову, прислушиваясь к чему-то, чего он не слышал. Когда совсем стемнело, он зажёг керосиновую лампу и пошёл в сарай проверить лодку. Доски пахли смолой и мокрым деревом. Он провёл ладонью по борту, нашёл знакомую трещину и подумал, что весной её всё-таки придётся заделать. Утром обещали ясную погоду, а значит, можно будет выйти на дальний плёс, туда, где они рыбачили с сыном много лет назад. Он погасил лампу, постоял ещё немного в темноте и вернулся в дом.",
   "en": "By evening the rain had stopped, and fog rose over the river. The old man sat on the porch for a long time, watching the last light fade beyond the distant forest. The dog lay at his feet and now and then raised its head, listening to something he could not hear. When it was completely dark, he lit the kerosene lamp and went to the shed to check on the boat. The boards smelled of tar and wet wood. He ran his palm along the side, found the familiar crack and thought that he would have to fix it in the spring after all. Clear weather was forecast for the morning, which meant he could go out to the far reach, where he and his son had fished many years ago. He put out the lamp, stood a little longer in the dark and went back into the house."
  },
  "science": {
   "label": "Научно-популярный текст",
   "ru": "Фотосинтез — это процесс, при котором растения превращают энергию солнечного света в энергию химических связей. В листьях есть хлоропласты, а в них — пигмент хлорофилл, который поглощает в основном красный и синий свет и отражает зелёный. Поэтому листья кажутся нам зелёными. Из углекислого газа и воды растение синтезирует глюкозу, а побочным продуктом становится кислород. Почти весь кислород в атмосфере Земли появился благодаря фотосинтезу, который миллиарды лет назад начали цианобактерии. Интересно, что эффективность этого процесса невысока: в химическую энергию переходит лишь один-два процента падающего на лист света. Тем не менее этого хватает, чтобы обеспечить пищей почти все живые организмы на планете.",
   "en": "Photosynthesis is the process by which plants turn the energy of sunlight into the energy of chemical bonds. Leaves contain chloroplasts, and these contain the pigment chlorophyll, which absorbs mostly red and blue light and reflects green. That is why leaves look green to us. From carbon dioxide and water the plant synthesizes glucose, and oxygen is released as a by-product. Almost all the oxygen in Earth's atmosphere appeared thanks to photosynthesis, which cyanobacteria started billions of years ago. Interestingly, the process is not very efficient: only one or two percent of the light falling on a leaf is converted into chemical energy. Even so, this is enough to provide food for almost all living things on the planet."
  },
  "code": {
   "label": "Код с комментариями",
   "ru": "def calculate_discount(price: float, quantity: int) -> float:\n    \"\"\"Считает итоговую цену с учётом скидки за количество.\"\"\"\n    # Скидка 5% при покупке от 10 штук и 10% от 50 штук\n    if quantity >= 50:\n        discount = 0.10\n    elif quantity >= 10:\n        discount = 0.05\n    else:\n        discount = 0.0\n    total = price * quantity * (1 - discount)\n    # Округляем до копеек, чтобы не копить ошибки округления\n    return round(total, 2)\n\n\ndef format_receipt(items: list[dict]) -> str:\n    \"\"\"Собирает текст чека для печати.\"\"\"\n    lines = [\"Чек покупателя\", \"-\" * 30]\n    for item in items:\n        cost = calculate_discount(item[\"price\"], item[\"qty\"])\n        lines.append(f\"{item['name']}: {item['qty']} шт. — {cost} руб.\")\n    lines.append(\"Спасибо за покупку!\")\n    return \"\\n\".join(lines)\n",
   "en": "def calculate_discount(price: float, quantity: int) -> float:\n    \"\"\"Calculates the total price with a quantity discount.\"\"\"\n    # 5% off for 10 or more items and 10% off for 50 or more\n    if quantity >= 50:\n        discount = 0.10\n    elif quantity >= 10:\n        discount = 0.05\n    else:\n        discount = 0.0\n    total = price * quantity * (1 - discount)\n    # Round to cents so rounding errors do not pile up\n    return round(total, 2)\n\n\ndef format_receipt(items: list[dict]) -> str:\n    \"\"\"Builds the receipt text for printing.\"\"\"\n    lines = [\"Customer receipt\", \"-\" * 30]\n    for item in items:\n        cost = calculate_discount(item[\"price\"], item[\"qty\"])\n        lines.append(f\"{item['name']}: {item['qty']} pcs - {cost} USD\")\n    lines.append(\"Thank you for your purchase!\")\n    return \"\\n\".join(lines)\n"
  }
 }
}