Closed KATO-Hiro closed 3 days ago
The changes in this pull request enhance the contest classification and labeling functionality within the codebase. Notable modifications include the addition of new contest types, updates to regex patterns for better contest ID matching, and a refactor of functions to improve readability. The formatting of contest names and expected outputs in test cases has been standardized, ensuring consistency across various contest types. Additionally, translations for contest types have been adjusted for better presentation.
File Path | Change Summary |
---|---|
src/lib/utils/contest.ts |
Updated classifyContest function to include "TTPC" and "TUPC". Enhanced regex for contest classification. Refactored getContestNameLabel to improve matching logic. Added getAtCoderUniversityContestLabel function. |
src/test/lib/utils/test_cases/contest_name_and_task_index.ts |
Modified test case string formatting for various contest cases to include spaces. Updated generateUniversityTestCases to use the new label function. |
src/test/lib/utils/test_cases/contest_name_labels.ts |
Removed several contest test case definitions and functions. Simplified structure by retaining only relevant contest exports. |
src/test/lib/utils/contest.test.ts |
Removed specific test cases for getContestNameLabel related to certain contest IDs due to notational inconsistencies. |
Objective | Addressed | Explanation |
---|---|---|
Improve readability of contest labels (1526) | ✅ | |
Standardize contest name formatting (1526) | ✅ | |
Update contest entries for clarity (1526) | ❌ | Some entries remain unaddressed as per the issue. |
Enhance visibility of contest sources (1526) | ❓ | Changes made, but not all objectives are clear. |
🐰 In the fields where contests bloom,
New labels dance, dispelling gloom.
With spaces bright and names so clear,
A joyful cheer for all to hear!
Let's hop along, our path is set,
For contests new, we won't forget! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
修正範囲は広いですが、それぞれ影響範囲は狭いため少しずつマージしていく方針です。
Summary by CodeRabbit
New Features
Bug Fixes
Documentation