# liferay/liferay-portal SLOC report

> As of 2026-11-12 (commit 995f7e128870), liferay/liferay-portal contains 14,966,595 total lines: 9,983,038 code, 2,419,374 comments, 2,564,183 blank, across 75,286 files in 33 languages (top language: Java 76.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

liferay/liferay-portal has 9,983,038 source lines of code out of 14,966,595 total lines across 75,286 files, counted with tokei from the 995f7e1288709d3d648f72bf4116c3abb8028937 ref at commit 995f7e128870 on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving liferay/liferay-portal to commit 995f7e128870, 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.

## Counting rules and retention

liferay/liferay-portal: 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.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 66.7% of all lines, comments represent 16.2%, and the repository averages 133 code lines per file. Java accounts for 76.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 50,396 | 11,679,463 | 7,613,758 | 1,800,462 | 2,265,243 |
| JSON | 4,637 | 523,891 | 523,890 | 0 | 1 |
| TSX | 3,521 | 496,532 | 419,370 | 19,826 | 57,336 |
| JavaScript | 4,506 | 464,534 | 369,545 | 29,538 | 65,451 |
| Sass | 2,232 | 274,043 | 215,384 | 12,600 | 46,059 |
| YAML | 629 | 195,039 | 194,074 | 900 | 65 |
| XML | 1,600 | 197,883 | 176,991 | 3,923 | 16,969 |
| TypeScript | 2,793 | 211,325 | 164,635 | 18,549 | 28,141 |
| CSS | 480 | 120,544 | 107,347 | 1,490 | 11,707 |
| FreeMarker | 507 | 61,511 | 49,943 | 713 | 10,855 |
| SVG | 1,248 | 38,488 | 34,902 | 3,473 | 113 |
| JSX | 280 | 35,777 | 30,607 | 1,087 | 4,083 |

Top language: Java 76.3%. Generated on November 12, 2026. Canonical report: https://octocounts.com/github/liferay/liferay-portal

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/liferay/liferay-portal/commit/995f7e1288709d3d648f72bf4116c3abb8028937?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&reportId=412207ca4f661243eb266fd2b53fac5c9af47fa18d5de46e434cc67f405e2237).

## Report FAQ

### How many lines of code does liferay/liferay-portal have?

liferay/liferay-portal has 9,983,038 lines of code, plus 2,419,374 comment lines and 2,564,183 blank lines, for 14,966,595 total lines at commit 995f7e128870 on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the liferay/liferay-portal line count measured?

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

### What commit was counted for liferay/liferay-portal?

This OctoCounts report was generated from 995f7e1288709d3d648f72bf4116c3abb8028937 at commit 995f7e128870 on November 12, 2026.

## Similar repository reports

- [openjdk/jdk](https://octocounts.com/github/openjdk/jdk) — Java, 5,725,077 code lines
- [microsoft/openjdk-jdk25u](https://octocounts.com/github/microsoft/openjdk-jdk25u) — Java, 5,626,154 code lines
- [crdroidandroid/android_frameworks_base](https://octocounts.com/github/crdroidandroid/android_frameworks_base) — Java, 5,462,911 code lines
- [apache/netbeans](https://octocounts.com/github/apache/netbeans) — Java, 4,912,732 code lines
- [aosp-mirror/platform_frameworks_base](https://octocounts.com/github/aosp-mirror/platform_frameworks_base) — Java, 4,860,279 code lines
- [exteraless/exteraless](https://octocounts.com/github/exteraless/exteraless) — Java, 3,951,205 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
