sourcegraph/sourcegraph-public-snapshot has 1,949,533 source lines of code out of 2,387,445 total lines across 14,383 files, counted with tokei from the c864f15af264f0f456a6d8a83290b5c940715349 ref at commit c864f15af264 on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
sourcegraph/sourcegraph-public-snapshot: 1,949,533 code lines at commit c864f15af264, counted with tokei-15.0.0 on 2026-11-04. Saved result 0190d0e935b003879be059ed7e906ab8babe8ef9dc2c5ce5580b489bdfdf7b38.
OctoCounts produced this report by resolving sourcegraph/sourcegraph-public-snapshot to commit c864f15af264, 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.
This is a very large codebase by counted code lines. Code represents 81.7% of all lines, comments represent 8.2%, and the repository averages 136 code lines per file. Go accounts for 48.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Go | 5273 | 1239401 | 952000 | 133614 | 153787 |
| HTML | 95 | 222873 | 209917 | 412 | 12544 |
| TSX | 1852 | 238951 | 204867 | 9724 | 24360 |
| TypeScript | 1799 | 186268 | 145370 | 22048 | 18850 |
| JSON | 212 | 119089 | 119083 | 0 | 6 |
| YAML | 1107 | 115150 | 107434 | 1179 | 6537 |
| Bazel | 1218 | 67525 | 63418 | 848 | 3259 |
| GraphQL | 79 | 49155 | 46384 | 125 | 2646 |
| SQL | 1016 | 42741 | 37054 | 970 | 4717 |
| Sass | 755 | 35274 | 28429 | 1965 | 4880 |
| Svelte | 193 | 9249 | 8564 | 159 | 526 |
| Rust | 37 | 8167 | 6727 | 508 | 932 |
| Shell | 175 | 7847 | 5035 | 1303 | 1509 |
| Scheme | 95 | 4053 | 3031 | 362 | 660 |
| Lua | 21 | 2560 | 1979 | 251 | 330 |
| Protocol Buffers | 13 | 3278 | 1538 | 1323 | 417 |
| JavaScript | 40 | 2081 | 1432 | 340 | 309 |
| Templ | 13 | 1166 | 1095 | 5 | 66 |
| SVG | 45 | 739 | 733 | 3 | 3 |
| C++ | 4 | 855 | 713 | 41 | 101 |
| Nix | 10 | 741 | 499 | 181 | 61 |
| Perl | 5 | 551 | 448 | 10 | 93 |
| Java | 12 | 585 | 405 | 72 | 108 |
| CSS | 6 | 417 | 351 | 7 | 59 |
| C# | 5 | 385 | 321 | 8 | 56 |
| Python | 10 | 490 | 304 | 84 | 102 |
| C | 4 | 338 | 272 | 9 | 57 |
| HCL | 2 | 325 | 269 | 12 | 44 |
| Kotlin | 4 | 368 | 211 | 70 | 87 |
| Ruby | 3 | 257 | 200 | 31 | 26 |
| TOML | 7 | 219 | 172 | 19 | 28 |
| Dockerfile | 9 | 279 | 163 | 60 | 56 |
| Scala | 4 | 202 | 151 | 17 | 34 |
| BASH | 9 | 237 | 136 | 47 | 54 |
| GNU Style Assembly | 3 | 249 | 133 | 67 | 49 |
| Pan | 1 | 123 | 123 | 0 | 0 |
| INI | 2 | 1084 | 109 | 733 | 242 |
| Dart | 1 | 119 | 80 | 11 | 28 |
| Zig | 2 | 103 | 78 | 3 | 22 |
| Batch | 1 | 92 | 71 | 0 | 21 |
| Objective-C | 1 | 82 | 64 | 0 | 18 |
| Groovy | 1 | 71 | 50 | 0 | 21 |
| JSX | 2 | 39 | 36 | 1 | 2 |
| AWK | 1 | 46 | 32 | 0 | 14 |
| CUE | 1 | 21 | 21 | 0 | 0 |
| XML | 1 | 14 | 14 | 0 | 0 |
| Makefile | 1 | 17 | 11 | 1 | 5 |
| Just | 1 | 7 | 6 | 0 | 1 |
| Markdown | 182 | 17909 | 0 | 13688 | 4221 |
| Plain Text | 50 | 5653 | 0 | 5378 | 275 |
Top language: Go 48.8%. Generated on .
sourcegraph/sourcegraph-public-snapshot: 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.
sourcegraph/sourcegraph-public-snapshot has 1,949,533 lines of code, plus 195,689 comment lines and 242,223 blank lines, for 2,387,445 total lines at commit c864f15af264 on November 4, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit c864f15af264, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from c864f15af264f0f456a6d8a83290b5c940715349 at commit c864f15af264 on November 4, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for sourcegraph/sourcegraph-public-snapshot on this page — 1,949,533 code lines across 50 languages, counted by tokei.