nanochat/dev
Tsvika Shapira 52661e5b5c refactor: use Path convenience methods for file operations
Simplified file reading patterns by using Path.read_text() instead of
with path.open() as f: f.read(). This makes the code more concise and
Pythonic while maintaining the same functionality.

Changes:
- Replace path.open().read() with path.read_text()
- Replace yaml.safe_load(f) with yaml.safe_load(path.read_text())
- Eliminate redundant file reads in configurator.py (read file once)
- Reduce code by 10 lines overall

All changes preserve existing behavior and encoding specifications.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 12:49:38 +02:00
..
gen_synthetic_data.py refactor: use Path convenience methods for file operations 2025-12-26 12:49:38 +02:00
generate_logo.html initial commit 2025-10-13 06:49:24 -07:00
nanochat.png Update logo 2025-10-14 14:19:44 -04:00
repackage_data_reference.py refactor: migrate from os.path to pathlib.Path across codebase 2025-12-26 12:49:38 +02:00
runcpu.sh move eval bundle download to be lazy and inside the python code so that we can substantially simplify the run bash scripts 2025-11-01 16:04:38 +00:00