# google/gson SLOC report

> As of 2026-09-16 (commit 698ba9ebfdbf), google/gson contains 27,175 total lines: 15,044 code, 9,424 comments, 2,707 blank, across 147 files in 4 languages (top: Java 89.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

google/gson has 15,044 source lines of code out of 27,175 total lines across 147 files, counted from the 698ba9ebfdbf629ca4ccc393d9cecd69c1e7115f ref at commit 698ba9ebfdbf by the OctoCounts tokei engine on 2026-09-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving google/gson to commit 698ba9ebfdbf, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 55.4% of all lines, comments represent 34.7%, and the repository averages 102 code lines per file. Java accounts for 89.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 122 | 23,458 | 13,408 | 8,051 | 1,999 |
| XML | 8 | 1,911 | 1,505 | 310 | 96 |
| Prolog | 4 | 157 | 131 | 0 | 26 |
| Markdown | 13 | 1,649 | 0 | 1,063 | 586 |

Top language (Java 89.1%). Generated at 2026-09-16T09:31:41.156357322+00:00. Canonical report: https://octocounts.com/github/google/gson

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/google/gson/commit/698ba9ebfdbf629ca4ccc393d9cecd69c1e7115f?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).

## Report FAQ

### How many lines of code does google/gson have?

google/gson has 27,175 total lines, including 15,044 code lines, 9,424 comment lines, and 2,707 blank lines.

### How was the google/gson line count measured?

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

### What commit was counted for google/gson?

This OctoCounts report was generated from 698ba9ebfdbf629ca4ccc393d9cecd69c1e7115f at commit 698ba9ebfdbf on 2026-09-16T09:31:41.156357322+00:00.

## Similar repository reports

- [termux/termux-x11](https://octocounts.com/github/termux/termux-x11) — Java, 14,881 code lines
- [SunghoLee/HybriDroid](https://octocounts.com/github/SunghoLee/HybriDroid) — Java, 15,947 code lines
- [iBotPeaches/Apktool](https://octocounts.com/github/iBotPeaches/Apktool) — Java, 13,560 code lines
- [MrShieh-X/console-minecraft-launcher](https://octocounts.com/github/MrShieh-X/console-minecraft-launcher) — Java, 16,880 code lines
- [Gracker/TraceFix](https://octocounts.com/github/Gracker/TraceFix) — Java, 13,172 code lines
- [dervarex/minified](https://octocounts.com/github/dervarex/minified) — Java, 13,157 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)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
