{"data":{"kind":"file","path":"README.md","version_id":"gxpppmhkhkniqclxpalq2kyq","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1375,"modified_at":"2026-08-11T10:34:18.319000","content_hash":"54f831ddafc73b87faeb04870fed43ff207168cffb5c211873eb64466cfb39fd"},"entries":[],"content":"# Legacy Code Modernization Environment\n\nEvaluates an LLM's ability to modernize legacy Python code across multiple dimensions:\n\n- **Python 2 to 3 migration** — print statements, dict methods, unicode handling\n- **Deprecated API replacement** — updating old stdlib/third-party calls\n- **Type hint addition** — adding PEP 484/585 annotations to untyped code\n- **Async conversion** — transforming sync I/O to async/await patterns\n- **Error handling** — adding proper exception handling to bare try/except\n- **Configuration modernization** — hardcoded values to env vars / config files\n- **Comprehension refactoring** — loops to list/dict/set comprehensions\n\n## Rubric Dimensions\n\n| Metric | Weight | Description |\n|--------|--------|-------------|\n| syntax_valid | 0.20 | Modernized code parses without SyntaxError |\n| modernization_depth | 0.25 | Number of legacy patterns actually fixed |\n| correctness_preserved | 0.20 | Logic/behavior preserved after refactoring |\n| type_coverage | 0.15 | Fraction of functions with type annotations |\n| best_practices | 0.10 | Uses modern idioms (f-strings, pathlib, etc.) |\n| explanation_quality | 0.10 | Clear explanation of changes made |\n\n## Usage\n\n```python\nimport verifiers as vf\nenv = load_environment()\n```\n\n## Tags\n`code-modernization` `refactoring` `legacy-code` `python-migration` `type-hints` `async-conversion`\n","encoding":"utf-8","truncated":false,"total_bytes":1375},"status":null}