sourcegraph/sourcegraph-public-snapshot

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.

As of 2026-11-04 (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 language: Go 48.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-04 (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 language: Go 48.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

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.

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.

LanguageFilesLinesCodeCommentsBlanks
Go52731239401952000133614153787
HTML9522287320991741212544
TSX1852238951204867972424360
TypeScript17991862681453702204818850
JSON21211908911908306
YAML110711515010743411796537
Bazel121867525634188483259
GraphQL7949155463841252646
SQL101642741370549704717
Sass755352742842919654880
Svelte19392498564159526
Rust3781676727508932

Top language: Go 48.8%. Generated on .

Counting rules and retention

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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does sourcegraph/sourcegraph-public-snapshot have?

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.

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 c864f15af264f0f456a6d8a83290b5c940715349 at commit c864f15af264 on November 4, 2026.

Similar repository reports

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.