# sharkdp/bat SLOC report

> As of 2026-10-21 (commit a9aa73d21545), sharkdp/bat contains 16,265 total lines: 11,603 code, 2,271 comments, 2,391 blank, across 110 files in 6 languages (top: Rust 85.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

sharkdp/bat has 11,603 source lines of code out of 16,265 total lines across 110 files, counted from the master ref at commit a9aa73d21545 by the OctoCounts tokei engine on 2026-10-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 sharkdp/bat to commit a9aa73d21545, 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 71.3% of all lines, comments represent 14.0%, and the repository averages 105 code lines per file. Rust accounts for 85.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 48 | 11,869 | 9,972 | 480 | 1,417 |
| Autoconf | 5 | 1,271 | 1,053 | 76 | 142 |
| TOML | 49 | 332 | 288 | 29 | 15 |
| Shell | 2 | 330 | 253 | 25 | 52 |
| Nix | 1 | 40 | 37 | 0 | 3 |
| Markdown | 5 | 2,423 | 0 | 1,661 | 762 |

Top language (Rust 85.9%). Generated at 2026-10-21T03:19:15.523289830+00:00. Canonical report: https://octocounts.com/github/sharkdp/bat

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/sharkdp/bat/commit/a9aa73d215455a479f072da75dd39f19826acfea?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=bfd782ffe0a6330ec422578dc7b30ef747403ed06a8cfb39cb496aba1cee3d9b).

## Report FAQ

### How many lines of code does sharkdp/bat have?

sharkdp/bat has 16,265 total lines, including 11,603 code lines, 2,271 comment lines, and 2,391 blank lines.

### How was the sharkdp/bat line count measured?

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

### What commit was counted for sharkdp/bat?

This OctoCounts report was generated from master at commit a9aa73d21545 on 2026-10-21T03:19:15.523289830+00:00.

## Similar repository reports

- [WildPixelGames/voxelis](https://octocounts.com/github/WildPixelGames/voxelis) — Rust, 11,596 code lines
- [QuantumBadger/Speedy2D](https://octocounts.com/github/QuantumBadger/Speedy2D) — Rust, 11,427 code lines
- [icodesign/remote-installer](https://octocounts.com/github/icodesign/remote-installer) — Rust, 11,910 code lines
- [lsd-rs/lsd](https://octocounts.com/github/lsd-rs/lsd) — Rust, 11,213 code lines
- [rust-lang/hashbrown](https://octocounts.com/github/rust-lang/hashbrown) — Rust, 12,025 code lines
- [chrichuang218/claude-desktop-cn](https://octocounts.com/github/chrichuang218/claude-desktop-cn) — Rust, 11,068 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
