mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-03 22:25:27 +00:00
reverted back
This commit is contained in:
parent
0df03fb0a9
commit
067298c51b
|
|
@ -162,9 +162,6 @@ Generated: {timestamp}
|
|||
|
||||
# bloat metrics: package all of the source code and assess its weight
|
||||
packaged = run_command('files-to-prompt . -e py -e md -e rs -e html -e toml -e sh --ignore "*target*" --cxml')
|
||||
# run_command can return None if 'files-to-prompt' fails or times out
|
||||
if not packaged:
|
||||
packaged = ""
|
||||
num_chars = len(packaged)
|
||||
num_lines = len(packaged.split('\n'))
|
||||
num_files = len([x for x in packaged.split('\n') if x.startswith('<source>')])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user