simplify redundant if/elif in bloat metrics

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andrej Karpathy
2026-01-04 01:40:42 +00:00
parent ee79f29fbd
commit be56d29b87

View File

@@ -173,10 +173,7 @@ Generated: {timestamp}
if wc_output:
total_line = wc_output.strip().split('\n')[-1]
parts = total_line.split()
if 'total' in parts:
num_lines = int(parts[0])
num_chars = int(parts[1])
elif len(parts) >= 2:
if len(parts) >= 2:
num_lines = int(parts[0])
num_chars = int(parts[1])
num_tokens = num_chars // 4 # assume approximately 4 chars per token