🌐 [translation-sync] FIX: lecture cleanup batch from the 2026-08 tracker audit - #154
Conversation
✅ Deploy Preview for majestic-griffin-10b166 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-08-18 📝 Translation Quality
Summary: ترجمه فارسی بخشهای تغییریافته این PR بهطور کلی دقیق، روان و از نظر اصطلاحات فنی سازگار با واژهنامه مرجع است. ساختار MyST/Markdown از جمله بلوکهای کد، معادلات و دایرکتیوهای exercise/solution بهدرستی حفظ شدهاند و خطای نحوی جدی یافت نشد. چند مورد جزئی شامل ناهماهنگی URL در بخش pandas.md، تفاوت کد در توابع map/replace_nan نسبت به نسخه اصلی، و چند نکته سبکی کوچک شناسایی شد که تأثیر محدودی بر کیفیت کلی دارند. ترجمه اصطلاحات فنی مانند «مشتقگیری خودکار»، «گرادیان کاهشی»، «Broadcasting» و «ارزیابی تنبل» دقیق و مطابق با واژهنامه مرجع است. بلوکهای کد و عبارات ریاضی LaTeX بهدرستی و بدون تغییر حفظ شدهاند. ساختار markdown/MyST شامل هدینگها، تمرینها (exercise/solution) و دایرکتیوها بهدرستی رعایت شده است. سبک نگارش رسمی و آکادمیک در سراسر بخشهای تغییریافته حفظ شده و برای محتوای آموزشی مناسب است. Suggestions:
🔍 Diff Quality
Summary: The translation sync correctly mirrors all source changes across the six files in matching positions, preserving structure and translation metadata. This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
Pull request overview
This PR syncs the Persian (fa) lecture translations with upstream cleanup changes from QuantEcon/lecture-python-programming#595, primarily updating random-number generation patterns, a few dataset URLs, and small documentation/text adjustments while refreshing translation state metadata.
Changes:
- Update examples to use NumPy’s
default_rng()/standard_normal()instead of legacynp.random.randn(...)in multiple lectures. - Update some dataset URLs to
raw.githubusercontent.com(and adjust one Polars dataset URL to the lecture repo’s_staticpath). - Minor content cleanups (e.g., JAX RNG key splitting in
autodiff, added docstring clarification aboutseed, and refreshed.translate/state/*.ymlmetadata).
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| lectures/python_by_example.md | Switch white-noise example to default_rng() and update explanatory text accordingly. |
| lectures/polars.md | Use default_rng(), update dataset URLs, and adjust percent-change computation to handle nulls. |
| lectures/pandas.md | Switch Series example to default_rng() / standard_normal(). |
| lectures/pandas_panel.md | Update dataset URLs to raw.githubusercontent.com. |
| lectures/numpy.md | Clarify seed behavior in DiscreteRV docstring and update timing guidance to qe.Timer(). |
| lectures/autodiff.md | Make JAX randomness explicit via split(key, 3) and minor formatting cleanup. |
| .translate/state/python_by_example.md.yml | Update sync metadata (source SHA, synced-at, tool version). |
| .translate/state/polars.md.yml | Update sync metadata (source SHA, synced-at). |
| .translate/state/pandas.md.yml | Update sync metadata (source SHA, synced-at). |
| .translate/state/pandas_panel.md.yml | Update sync metadata (source SHA, synced-at, tool version). |
| .translate/state/numpy.md.yml | Update sync metadata (source SHA, synced-at, tool version). |
| .translate/state/autodiff.md.yml | Update sync metadata (source SHA, synced-at, model/mode, tool version). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ```{code-cell} ipython3 | ||
| df = pl.DataFrame({ | ||
| 'company': ['AMZN', 'AAPL', 'MSFT', 'GOOG'], | ||
| 'daily returns': np.random.randn(4) | ||
| 'daily returns': rng.standard_normal(4) | ||
| }) |
The #154 sync was regenerated from its source PR's merge-time snapshot, which predates the test_pwt repoint synced here in #153 — so it reverted two polars.md reads to the source repo's old own-repo URL (a path scheduled for deletion) and rewrote three pandas_panel.md reads to the raw.githubusercontent host form. This restores all five reads to the canonical data-lectures form the English source uses. URL-only; no translated text changes. The underlying regeneration defect is recorded in QuantEcon/action-translation#276. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…URL form (#158) Restore .translate/state/{pandas,polars}.md.yml to the versions #153 wrote (source-sha 55c87c9f, the Track D repoint) — #154 overwrote them with the stale snapshot's SHA (d35eb831), making isSourceChanged over-report both lectures as pending. Also revert the pandas_panel.md half of #155: the three data reads return to the raw.githubusercontent form, which is what source main itself serves at its last touch of that file — the regeneration's rewrite there was correct sync content, not stale damage. Measurement and ledger: QuantEcon/action-translation#276. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Automated Translation Sync
This PR contains automated translations from QuantEcon/lecture-python-programming.
Source PR
#595 - FIX: lecture cleanup batch from the 2026-08 tracker audit
Files Updated
lectures/autodiff.md.translate/state/autodiff.md.ymllectures/numpy.md.translate/state/numpy.md.ymllectures/pandas.md.translate/state/pandas.md.ymllectures/pandas_panel.md.translate/state/pandas_panel.md.ymllectures/polars.md.translate/state/polars.md.ymllectures/python_by_example.md.translate/state/python_by_example.md.ymlDetails
This PR was created automatically by the translation action.