sourcegraph/sourcegraph-public-snapshot SLOC report
As of 2026-08-05 (commit c864f15af264), sourcegraph/sourcegraph-public-snapshot contains 2,387,445 total lines: 1,949,533 code, 195,689 comments, 242,223 blank, across 14,383 files in 50 languages (top: Go 48.8%). Counted with tokei via OctoCounts.
Repository size insights
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 |
Top language (Go 48.8%). Generated at 2026-08-05T09:04:10.991162947+00:00.
Report FAQ
How many lines of code does sourcegraph/sourcegraph-public-snapshot have?
sourcegraph/sourcegraph-public-snapshot has 2,387,445 total lines, including 1,949,533 code lines, 195,689 comment lines, and 242,223 blank lines.
How was the sourcegraph/sourcegraph-public-snapshot line count measured?
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.
What commit was counted for sourcegraph/sourcegraph-public-snapshot?
This OctoCounts report was generated from main at commit c864f15af264 on 2026-08-05T09:04:10.991162947+00:00.