🌐 [translation-sync] Fix broken raw GitHub URLs for CSV data files #1
+286
−162
Annotations
2 errors and 1 warning
|
Run QuantEcon/action-translation@v0.9.0
Action failed: Failed to parse diff quality evaluation
|
|
Run QuantEcon/action-translation@v0.9.0
Failed to parse diff evaluation response: Looking at the changes carefully:
**Scope Check**: Source modified `pandas.md` and `python_advanced_features.md`. Target also modifies the same two files. ✓
**Position Check**:
- In `pandas.md`, the URL change (`master/source` → `main/lectures`) appears in the correct position (the `read_csv` call in the DataFrames section). ✓
- In `python_advanced_features.md`, the source added a "Type hints" section and updated heading capitalizations. The target does include these, but there are serious structural problems: the target has **duplicated content** - both `(pd)=` anchor + header block and `(python_advanced_features)=` anchor + header block appear twice each. This is a major positioning/structural error.
**Structure Check**:
- The target `python_advanced_features.md` has the `(pd)=` raw jupyter block and `# {index}Pandas` heading duplicated near the top of the pandas section.
- The `(python_advanced_features)=` anchor and `# 更多语言特性` heading are duplicated.
- The heading-map for `python_advanced_features.md` uses lowercase heading keys (e.g., `Iterables and iterators`, `*` and `**` operators`) matching the OLD English source headings, but the source "After" shows these headings were capitalized (e.g., `Iterables and Iterators`, `*` and `**` Operators`). The heading-map keys should reflect the actual English heading text as it appears in the source.
**Heading-map Check**:
- For `pandas.md`: A new entry `'{index}`Pandas <single: Pandas>`': '{index}`Pandas <single: Pandas>`'` was added, but this is the H1 title heading which wasn't in the original map and seems unnecessary/incorrect.
- For `python_advanced_features.md`: The heading-map uses old lowercase heading keys that don't match the updated capitalized headings in the source "After". Also missing `Type hints` and its subsections entirely. The source added a whole "Type hints" section with multiple subsections, none of which appear in the heading-map.
```json
{
"scopeCorrect": true,
"positionCorrect": false,
"structurePreserved": false,
"headingMapCorrect": false,
"issues": [
"Target pandas.md has duplicated content: the (pd)= anchor, raw jupyter block, and # {index}`Pandas` heading appear twice",
"Target python_advanced_features.md has duplicated content: the (python_advanced_features)= anchor, raw jupyter block, and # 更多语言特性 heading appear twice",
"The heading-map for python_advanced_features.md uses old lowercase heading keys (e.g., 'Iterables and iterators') that do not match the updated capitalized English headings in the source (e.g., 'Iterables and Iterators')",
"The heading-map for python_advanced_features.md is missing the entire 'Type hints' section and all its subsections that were added in the source",
"The pandas.md heading-map incorrectly adds an entry for the H1 title '{index}`Pandas <single: Pandas>`' which was not in the original map"
],
"summary": "The translation contains critical structural errors including duplicated anchors and headings in both files, and the heading-map is incorrect due to mismatched heading capitalizations and missing Type hints entries.",
"scopeDetails": "Both source and target modify exactly the same two files (pandas.md and python_advanced_features.md), so scope is correct.",
"positionDetails": "The URL update in pandas.md is correctly positioned, but both files have duplicated structural elements (anchors, raw blocks, headings) inserted incorrectly, breaking positional correctness.",
"structureDetails": "Both documents have duplicated (anchor)= labels, raw jupyter header blocks, and H1 headings, which corrupts the document structure. The python_advanced_features.md heading-map keys use lowercase to match old headings rather than the capitalized headings now present in the source."
}
```
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, QuantEcon/action-translation@v0.9.0. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading