# Lightning-AI/pytorch-lightning SLOC report

> As of 2026-07-15 (commit d710d689510d), Lightning-AI/pytorch-lightning contains 72,390 total lines: 50,493 code, 11,530 comments, 10,367 blank, across 365 files in 8 languages (top: Python 99.4%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving Lightning-AI/pytorch-lightning to commit d710d689510d, 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 medium-sized codebase by counted code lines. Code represents 69.8% of all lines, comments represent 15.9%, and the repository averages 138 code lines per file. Python accounts for 99.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 314 | 64,396 | 50,172 | 5,754 | 8,470 |
| TOML | 1 | 181 | 137 | 26 | 18 |
| Makefile | 1 | 118 | 88 | 14 | 16 |
| Jupyter Notebooks | 1 | 82 | 53 | 18 | 11 |
| Shell | 2 | 57 | 22 | 29 | 6 |
| Autoconf | 3 | 24 | 21 | 2 | 1 |
| Markdown | 21 | 7,350 | 0 | 5,526 | 1,824 |
| Plain Text | 22 | 182 | 0 | 161 | 21 |

Top language (Python 99.4%). Generated at 2026-07-15T03:37:13.814016032+00:00. Canonical report: https://octocounts.com/github/Lightning-AI/pytorch-lightning

## Report FAQ

### How many lines of code does Lightning-AI/pytorch-lightning have?

Lightning-AI/pytorch-lightning has 72,390 total lines, including 50,493 code lines, 11,530 comment lines, and 10,367 blank lines.

### How was the Lightning-AI/pytorch-lightning line count measured?

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

### What commit was counted for Lightning-AI/pytorch-lightning?

This OctoCounts report was generated from master at commit d710d689510d on 2026-07-15T03:37:13.814016032+00:00.

## Similar repository reports

- [ygyang11/Arktor](https://octocounts.com/github/ygyang11/Arktor) — Python, 51,221 code lines
- [doronz88/pymobiledevice3](https://octocounts.com/github/doronz88/pymobiledevice3) — Python, 51,656 code lines
- [wanshuiyin/Auto-claude-code-research-in-sleep](https://octocounts.com/github/wanshuiyin/Auto-claude-code-research-in-sleep) — Python, 49,305 code lines
- [mvanhorn/last30days-skill](https://octocounts.com/github/mvanhorn/last30days-skill) — Python, 49,238 code lines
- [microsoft/graphrag](https://octocounts.com/github/microsoft/graphrag) — Python, 51,784 code lines
- [elder-plinius/OBLITERATUS](https://octocounts.com/github/elder-plinius/OBLITERATUS) — Python, 53,126 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
