# karpathy/nanochat SLOC report

> As of 2026-09-16 (commit dc54a1a3077c), karpathy/nanochat contains 11,370 total lines: 7,459 code, 2,303 comments, 1,608 blank, across 47 files in 7 languages (top: Python 89.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

karpathy/nanochat has 7,459 source lines of code out of 11,370 total lines across 47 files, counted from the dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a ref at commit dc54a1a3077c by the OctoCounts tokei engine on 2026-09-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving karpathy/nanochat to commit dc54a1a3077c, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a small codebase by counted code lines. Code represents 65.6% of all lines, comments represent 20.3%, and the repository averages 159 code lines per file. Python accounts for 89.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 34 | 8,564 | 6,658 | 976 | 930 |
| Jupyter Notebooks | 2 | 785 | 445 | 216 | 124 |
| Shell | 4 | 409 | 223 | 116 | 70 |
| TOML | 1 | 71 | 63 | 1 | 7 |
| HTML | 2 | 66 | 62 | 1 | 3 |
| SVG | 1 | 8 | 8 | 0 | 0 |
| Markdown | 3 | 1,467 | 0 | 993 | 474 |

Top language (Python 89.3%). Generated at 2026-09-16T21:12:44.407822526+00:00. Canonical report: https://octocounts.com/github/karpathy/nanochat

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/karpathy/nanochat/commit/dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does karpathy/nanochat have?

karpathy/nanochat has 11,370 total lines, including 7,459 code lines, 2,303 comment lines, and 1,608 blank lines.

### How was the karpathy/nanochat line count measured?

OctoCounts resolved the public GitHub repository to commit dc54a1a3077c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for karpathy/nanochat?

This OctoCounts report was generated from dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a at commit dc54a1a3077c on 2026-09-16T21:12:44.407822526+00:00.

## Similar repository reports

- [walkingddd/TgtoDrive](https://octocounts.com/github/walkingddd/TgtoDrive) — Python, 7,394 code lines
- [encode/httpx](https://octocounts.com/github/encode/httpx) — Python, 7,552 code lines
- [MrGeDiao/shuorenhua](https://octocounts.com/github/MrGeDiao/shuorenhua) — Python, 7,303 code lines
- [xinxinshuhao-create/grok-register](https://octocounts.com/github/xinxinshuhao-create/grok-register) — Python, 7,303 code lines
- [Purrple-hub/MMO](https://octocounts.com/github/Purrple-hub/MMO) — Python, 7,619 code lines
- [Edge0-AI/edge0](https://octocounts.com/github/Edge0-AI/edge0) — Python, 7,298 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
