# triton-lang/triton SLOC report

> As of 2026-11-16 (commit 46eccb199bfd), triton-lang/triton contains 362,314 total lines: 267,161 code, 54,212 comments, 40,941 blank, across 1,139 files in 16 languages (top language: C++ 52.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

triton-lang/triton has 267,161 source lines of code out of 362,314 total lines across 1,139 files, counted with tokei from the main ref at commit 46eccb199bfd on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving triton-lang/triton to commit 46eccb199bfd, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

triton-lang/triton: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 73.7% of all lines, comments represent 15.0%, and the repository averages 235 code lines per file. C++ accounts for 52.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 373 | 175,003 | 139,725 | 17,220 | 18,058 |
| Python | 273 | 97,120 | 74,295 | 8,289 | 14,536 |
| C Header | 301 | 78,795 | 44,783 | 26,973 | 7,039 |
| C | 4 | 3,003 | 2,494 | 181 | 328 |
| CMake | 153 | 2,831 | 2,338 | 180 | 313 |
| CUDA | 2 | 1,805 | 1,577 | 65 | 163 |
| C++ Header | 1 | 1,774 | 1,568 | 118 | 88 |
| Makefile | 1 | 171 | 125 | 11 | 35 |
| Shell | 3 | 111 | 93 | 8 | 10 |
| JSON | 5 | 60 | 60 | 0 | 0 |
| Autoconf | 4 | 66 | 45 | 9 | 12 |
| TOML | 2 | 54 | 44 | 1 | 9 |

Top language: C++ 52.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/triton-lang/triton

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/triton-lang/triton/commit/46eccb199bfd3f3559b512c4a15870bd45e6a74d?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=7ec51d0f606a0face6be911898a14e8d7ba9da7d741912c8900a8bf08d9929bd).

## Report FAQ

### How many lines of code does triton-lang/triton have?

triton-lang/triton has 267,161 lines of code, plus 54,212 comment lines and 40,941 blank lines, for 362,314 total lines at commit 46eccb199bfd on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the triton-lang/triton line count measured?

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

### What commit was counted for triton-lang/triton?

This OctoCounts report was generated from main at commit 46eccb199bfd on November 16, 2026.

## Similar repository reports

- [microsoft/terminal](https://octocounts.com/github/microsoft/terminal) — C++, 267,454 code lines
- [ip7z/7zip](https://octocounts.com/github/ip7z/7zip) — C++, 266,788 code lines
- [fltk/fltk](https://octocounts.com/github/fltk/fltk) — C++, 265,075 code lines
- [yyl-20020115/OpenArk](https://octocounts.com/github/yyl-20020115/OpenArk) — C++, 269,793 code lines
- [zeas2/Kirikiroid2](https://octocounts.com/github/zeas2/Kirikiroid2) — C++, 262,282 code lines
- [pixl27/ProjectReLink](https://octocounts.com/github/pixl27/ProjectReLink) — C++, 274,661 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)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
