Skip to content

zavod #50: Рукописные уроки 81–88 - #44

Merged
gon7187 merged 3 commits into
mainfrom
zavod/50-rukopisnye-uroki-81-88
Oct 22, 2026
Merged

gon7187 merged 3 commits into
mainfrom
zavod/50-rukopisnye-uroki-81-88

Conversation

@gon7187

@gon7187 gon7187 commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Рукописные уроки 81–88

Круг: 2

Критерии

  • ✓ c1 — app/handwritten/lessons_productivity_regex.py:66 объявляет LESSONS; tests/test_handwritten_productivity_regex.py:160–181 проверяет восемь id, реестр, номера, названия и 120 уроков. Отчёт test_round: 83 passed, пропусков нет.
  • ✓ c2 — tests/test_handwritten_productivity_regex.py:122–157 проверяет три карточки, исполнение примеров, id и типы вопросов, reference, starter и отсутствие шаблонных фраз; строки 198–204 проверяют сигнатуру, pass, hint и explanation. Отчёт test_round: 83 passed.
  • ✓ k81 — app/handwritten/lessons_productivity_regex.py:151–155 использует Counter.most_common; залоченный тест tests/test_handwritten_productivity_regex.py:274 проверяет требуемый вызов через run_code. Отчёт test_round: 83 passed.
  • ✓ k82 — app/handwritten/lessons_productivity_regex.py:241–244 использует combinations(items, 2); залоченный тест tests/test_handwritten_productivity_regex.py:286 проверяет оба требуемых вызова через run_code. Отчёт test_round: 83 passed.
  • ✓ k83 — app/handwritten/lessons_productivity_regex.py:338 использует reduce с начальным значением 1; залоченный тест tests/test_handwritten_productivity_regex.py:300 проверяет произведение и пустой список через run_code. Отчёт test_round: 83 passed.
  • ✓ k84 — Залоченный тест tests/test_handwritten_productivity_regex.py:314–322 проверяет nsmallest в reference и smallest([5, 1, 4, 2], 2) через run_code. Отчёт test_round: 83 passed.
  • ✓ k85 — Залоченный тест tests/test_handwritten_productivity_regex.py:325–336 проверяет findall в reference, список целых чисел и отсутствие совпадений через run_code. Отчёт test_round: 83 passed.
  • ✓ k86 — Залоченный тест tests/test_handwritten_productivity_regex.py:339–353 проверяет именованные группы, словарь числовых частей даты и None через run_code. Отчёт test_round: 83 passed.
  • ✓ k87 — Залоченный тест tests/test_handwritten_productivity_regex.py:356–367 проверяет fullmatch в reference и оба требуемых номера через run_code. Отчёт test_round: 83 passed.
  • ✓ k88 — app/handwritten/lessons_productivity_regex.py:785 использует re.sub и strip; залоченный тест tests/test_handwritten_productivity_regex.py:370–378 проверяет нормализацию пробелов, табуляции и перевода строки через run_code. Отчёт test_round: 83 passed.
  • ✓ c3 — Карточки каждого урока следуют порядку объяснение → применение → ошибка; choice содержит полный код и варианты вывода сопоставимой формы. tests/test_handwritten_productivity_regex.py:208–260 проверяет комментарии вывода, их соответствие stdout, порядок карточек, ответы choice и оформление вариантов. Отчёт test_round: 83 passed.
  • ✓ c4 — app/handwritten/lessons_productivity_regex.py:8–9 создаёт карточки без run: False. Залоченный тест tests/test_handwritten_productivity_regex.py:264–271 запускает все примеры раннером. Отчёт test_round: 83 passed.

Изменённые файлы

  • app/handwritten/lessons_productivity_regex.py
  • tests/test_handwritten_productivity_regex.py

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T23:04:05.923401Z a7d283d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gon7187
gon7187 merged commit ea0d365 into main Oct 22, 2026
3 checks passed
@gon7187
gon7187 deleted the zavod/50-rukopisnye-uroki-81-88 branch October 22, 2026 23:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7d283d7fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"import re\n"
"\n"
"def find_numbers(text):\n"
" return [int(value) for value in re.findall(r'\\d+', text)]\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve signs when extracting integers

For text containing a signed integer, such as find_numbers('температура -12'), the reference implementation returns [12], contradicting the prompt's promise to return all integers. Include an optional sign in the pattern and add a negative-number test, or explicitly narrow the exercise to non-negative digit sequences.

Useful? React with 👍 / 👎.

},
{
"id": "regex-substitution",
"subtitle": "sub заменяет, split делит по шаблону",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Cover the advertised re.split operation

Lesson 88 is still titled “Замена и разделение” in app/extended_curriculum.py:1008-1013, and this subtitle explicitly promises that split divides by a pattern, but every theory card and question in the handwritten override covers only re.sub; re.split appears nowhere else in the lesson. Because the override wholly replaces the generated theory and questions, learners never receive the advertised splitting material, so add a runnable re.split explanation/exercise or narrow the lesson title and subtitle.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant