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.

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.

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
Shell1757847503513031509
Scheme9540533031362660
Lua2125601979251330
Protocol Buffers13327815381323417
JavaScript4020811432340309
Templ1311661095566
SVG4573973333
C++485571341101
Nix1074149918161
Perl55514481093
Java1258540572108
CSS6417351759
C#5385321856
Python1049030484102
C4338272957
HCL23252691244
Kotlin43682117087
Ruby32572003126
TOML72191721928
Dockerfile92791636056
Scala42021511734
BASH92371364754
GNU Style Assembly32491336749
Pan112312300
INI21084109733242
Dart1119801128
Zig210378322
Batch19271021
Objective-C18264018
Groovy17150021
JSX2393612
AWK14632014
CUE1212100
XML1141400
Makefile1171115
Just17601
Markdown182179090136884221
Plain Text50565305378275

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.