# ansible/ansible SLOC report

> As of 2026-09-21 (commit 1a4c6636245e), ansible/ansible contains 168,196 total lines: 127,514 code, 15,236 comments, 25,446 blank, across 794 files in 11 languages (top: Python 82.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ansible/ansible has 127,514 source lines of code out of 168,196 total lines across 794 files, counted from the devel ref at commit 1a4c6636245e by the OctoCounts tokei engine on 2026-09-21. 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 ansible/ansible to commit 1a4c6636245e, 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 large codebase by counted code lines. Code represents 75.8% of all lines, comments represent 9.1%, and the repository averages 161 code lines per file. Python accounts for 82.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 594 | 140,781 | 104,636 | 12,661 | 23,484 |
| YAML | 82 | 15,029 | 14,561 | 261 | 207 |
| C# | 7 | 4,901 | 4,037 | 313 | 551 |
| PowerShell | 24 | 4,531 | 3,246 | 808 | 477 |
| Jinja2 | 37 | 964 | 789 | 2 | 173 |
| TOML | 1 | 114 | 107 | 0 | 7 |
| Fish | 1 | 92 | 66 | 16 | 10 |
| Shell | 1 | 89 | 62 | 10 | 17 |
| Autoconf | 1 | 10 | 10 | 0 | 0 |
| Markdown | 40 | 1,370 | 0 | 902 | 468 |
| Plain Text | 6 | 315 | 0 | 263 | 52 |

Top language (Python 82.1%). Generated at 2026-09-21T09:06:02.111088703+00:00. Canonical report: https://octocounts.com/github/ansible/ansible

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ansible/ansible/commit/1a4c6636245e72e64422f3e83e264f32c304fb65?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 ansible/ansible have?

ansible/ansible has 168,196 total lines, including 127,514 code lines, 15,236 comment lines, and 25,446 blank lines.

### How was the ansible/ansible line count measured?

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

### What commit was counted for ansible/ansible?

This OctoCounts report was generated from devel at commit 1a4c6636245e on 2026-09-21T09:06:02.111088703+00:00.

## Similar repository reports

- [Dao-AILab/flash-attention](https://octocounts.com/github/Dao-AILab/flash-attention) — Python, 129,194 code lines
- [fla-org/flash-linear-attention](https://octocounts.com/github/fla-org/flash-linear-attention) — Python, 132,071 code lines
- [pypa/pip](https://octocounts.com/github/pypa/pip) — Python, 120,992 code lines
- [InnerAura/hyperweave](https://octocounts.com/github/InnerAura/hyperweave) — Python, 135,436 code lines
- [fastapi/fastapi](https://octocounts.com/github/fastapi/fastapi) — Python, 117,708 code lines
- [verl-project/verl](https://octocounts.com/github/verl-project/verl) — Python, 116,346 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)
