# openai/openai-cookbook SLOC report

> As of 2026-11-10 (commit 2658c92cd4cd), openai/openai-cookbook contains 418,340 total lines: 314,634 code, 52,230 comments, 51,476 blank, across 1,454 files in 21 languages (top programming language: Python 20.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

openai/openai-cookbook has 314,634 source lines of code out of 418,340 total lines across 1,454 files, counted with tokei from the main ref at commit 2658c92cd4cd on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving openai/openai-cookbook to commit 2658c92cd4cd, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

openai/openai-cookbook: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 75.2% of all lines, comments represent 12.5%, and the repository averages 216 code lines per file. Python is the largest programming language at 20.5% of counted code; data and prose formats such as JSON or YAML hold a larger share.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 242 | 105,913 | 105,913 | 0 | 0 |
| Python | 435 | 73,778 | 64,545 | 1,123 | 8,110 |
| Jupyter Notebooks | 273 | 96,189 | 55,983 | 24,749 | 15,457 |
| TeX | 2 | 63,116 | 48,112 | 569 | 14,435 |
| JavaScript | 74 | 10,824 | 9,598 | 441 | 785 |
| YAML | 20 | 10,307 | 9,108 | 43 | 1,156 |
| CSS | 9 | 7,122 | 6,165 | 2 | 955 |
| SVG | 40 | 4,354 | 4,225 | 9 | 120 |
| TSX | 22 | 3,762 | 3,398 | 28 | 336 |
| JSX | 4 | 2,892 | 2,705 | 2 | 185 |
| TypeScript | 29 | 2,498 | 2,233 | 33 | 232 |
| HTML | 19 | 1,709 | 1,612 | 19 | 78 |

Top programming language: Python 20.5%. Generated on November 10, 2026. Canonical report: https://octocounts.com/github/openai/openai-cookbook

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openai/openai-cookbook/commit/2658c92cd4cd562504571b9d7491fc51524a7dc9?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&reportId=15f32d160de0f922dc3e0ed261cdbe6dfdc2218b9f82f715408c6153438e070b).

## Report FAQ

### How many lines of code does openai/openai-cookbook have?

openai/openai-cookbook has 314,634 lines of code, plus 52,230 comment lines and 51,476 blank lines, for 418,340 total lines at commit 2658c92cd4cd on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the openai/openai-cookbook line count measured?

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

### What commit was counted for openai/openai-cookbook?

This OctoCounts report was generated from main at commit 2658c92cd4cd on November 10, 2026.

## Similar repository reports

- [PoxenStudio/MyReader](https://octocounts.com/github/PoxenStudio/MyReader) — JSON, 316,110 code lines
- [CloudburstMC/Nukkit](https://octocounts.com/github/CloudburstMC/Nukkit) — JSON, 317,832 code lines
- [josStorer/RWKV-Runner](https://octocounts.com/github/josStorer/RWKV-Runner) — JSON, 319,460 code lines
- [shirkeharsh/mooziac](https://octocounts.com/github/shirkeharsh/mooziac) — JSON, 309,457 code lines
- [OSU-NLP-Group/HippoRAG](https://octocounts.com/github/OSU-NLP-Group/HippoRAG) — JSON, 320,358 code lines
- [dotnetdreamer/open-screenshot-generator](https://octocounts.com/github/dotnetdreamer/open-screenshot-generator) — JSON, 321,473 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
