# jqlang/jq SLOC report

> As of 2026-07-15 (commit 579e6f76cffd), jqlang/jq contains 30,731 total lines: 24,028 code, 3,542 comments, 3,161 blank, across 77 files in 14 languages (top: C 83.6%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving jqlang/jq to commit 579e6f76cffd, 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 78.2% of all lines, comments represent 11.5%, and the repository averages 312 code lines per file. C accounts for 83.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 21 | 24,511 | 20,095 | 2,049 | 2,367 |
| C Header | 21 | 2,321 | 1,830 | 181 | 310 |
| Happy | 1 | 972 | 901 | 0 | 71 |
| M4 | 8 | 858 | 438 | 341 | 79 |
| jq | 1 | 244 | 212 | 19 | 13 |
| Automake | 1 | 260 | 174 | 34 | 52 |
| Lex | 1 | 192 | 158 | 9 | 25 |
| Shell | 3 | 162 | 110 | 19 | 33 |
| RPM Specfile | 1 | 69 | 51 | 6 | 12 |
| Dockerfile | 1 | 34 | 29 | 0 | 5 |
| Python | 1 | 31 | 20 | 2 | 9 |
| Autoconf | 1 | 11 | 10 | 0 | 1 |

Top language (C 83.6%). Generated at 2026-07-15T06:35:00.484142796+00:00. Canonical report: https://octocounts.com/github/jqlang/jq

## Report FAQ

### How many lines of code does jqlang/jq have?

jqlang/jq has 30,731 total lines, including 24,028 code lines, 3,542 comment lines, and 3,161 blank lines.

### How was the jqlang/jq line count measured?

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

### What commit was counted for jqlang/jq?

This OctoCounts report was generated from master at commit 579e6f76cffd on 2026-07-15T06:35:00.484142796+00:00.

## Similar repository reports

- [ijl/orjson](https://octocounts.com/github/ijl/orjson) — C, 24,057 code lines
- [aubio/aubio](https://octocounts.com/github/aubio/aubio) — C, 23,852 code lines
- [mirror/tar](https://octocounts.com/github/mirror/tar) — C, 23,508 code lines
- [thesofproject/linux-firmware](https://octocounts.com/github/thesofproject/linux-firmware) — C, 25,073 code lines
- [torch/torch7](https://octocounts.com/github/torch/torch7) — C, 25,099 code lines
- [microsoft/mimalloc](https://octocounts.com/github/microsoft/mimalloc) — C, 22,594 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
