# home-assistant/core SLOC report

> As of 2026-08-29 (commit a2454d3d2b2e), home-assistant/core contains 1,787,866 total lines: 1,513,961 code, 37,975 comments, 235,930 blank, across 14,415 files in 12 languages (top: Python 83.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

home-assistant/core has 1,513,961 source lines of code out of 1,787,866 total lines across 14,415 files, counted from the dev ref at commit a2454d3d2b2e by the OctoCounts tokei engine on 2026-08-29. 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 home-assistant/core to commit a2454d3d2b2e, 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 very large codebase by counted code lines. Code represents 84.7% of all lines, comments represent 2.1%, and the repository averages 105 code lines per file. Python accounts for 83.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 10,199 | 1,530,936 | 1,266,972 | 32,415 | 231,549 |
| JSON | 3,382 | 187,037 | 187,024 | 0 | 13 |
| YAML | 792 | 56,454 | 53,102 | 1,496 | 1,856 |
| INI | 1 | 6,495 | 5,821 | 3 | 671 |
| TOML | 8 | 962 | 752 | 146 | 64 |
| Shell | 9 | 223 | 141 | 41 | 41 |
| Dockerfile | 3 | 104 | 68 | 20 | 16 |
| BASH | 3 | 80 | 54 | 10 | 16 |
| ReStructuredText | 1 | 33 | 24 | 0 | 9 |
| Autoconf | 1 | 3 | 3 | 0 | 0 |
| Markdown | 10 | 1,584 | 0 | 1,093 | 491 |
| Plain Text | 6 | 3,955 | 0 | 2,751 | 1,204 |

Top language (Python 83.7%). Generated at 2026-08-29T08:59:04.360659906+00:00. Canonical report: https://octocounts.com/github/home-assistant/core

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/home-assistant/core/commit/a2454d3d2b2ed8585c6460e548d72b8f69e365fb?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 home-assistant/core have?

home-assistant/core has 1,787,866 total lines, including 1,513,961 code lines, 37,975 comment lines, and 235,930 blank lines.

### How was the home-assistant/core line count measured?

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

### What commit was counted for home-assistant/core?

This OctoCounts report was generated from dev at commit a2454d3d2b2e on 2026-08-29T08:59:04.360659906+00:00.

## Similar repository reports

- [comet-ml/opik](https://octocounts.com/github/comet-ml/opik) — Python, 1,415,239 code lines
- [nousresearch/hermes-agent](https://octocounts.com/github/nousresearch/hermes-agent) — Python, 1,373,652 code lines
- [apache/airflow](https://octocounts.com/github/apache/airflow) — Python, 1,709,773 code lines
- [NousResearch/hermes-agent](https://octocounts.com/github/NousResearch/hermes-agent) — Python, 1,268,423 code lines
- [agentscope-ai/QwenPaw](https://octocounts.com/github/agentscope-ai/QwenPaw) — Python, 1,140,238 code lines
- [langgenius/dify](https://octocounts.com/github/langgenius/dify) — Python, 1,118,531 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)
