Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 198 additions & 0 deletions CODE_COUNT_REPORT_20260116.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# ThemisDB Code Count Report
## Date: 17.01.2026 06:57:42

This report provides a thematic count of C++ code in ThemisDB.

## 1. Source Code by Theme (`./src`)

| Theme | Files | Lines |
|-------|-------|-------|
| [root] | 4 | 2,371 |
| acceleration | 16 | 5,566 |
| analytics | 6 | 5,212 |
| api | 3 | 1,408 |
| aql | 2 | 801 |
| auth | 2 | 722 |
| base | 1 | 419 |
| cache | 2 | 600 |
| cdc | 2 | 715 |
| content | 20 | 10,374 |
| exporters | 1 | 657 |
| geo | 3 | 252 |
| governance | 1 | 185 |
| gpu | 1 | 170 |
| importers | 1 | 414 |
| index | 15 | 14,513 |
| llm | 83 | 37,777 |
| metadata | 1 | 680 |
| network | 1 | 340 |
| observability | 1 | 295 |
| performance | 12 | 1,964 |
| plugins | 3 | 1,020 |
| query | 16 | 11,331 |
| replication | 1 | 748 |
| scheduler | 2 | 1,511 |
| search | 1 | 251 |
| security | 18 | 7,205 |
| server | 62 | 35,140 |
| sharding | 42 | 15,642 |
| storage | 13 | 5,899 |
| temporal | 1 | 234 |
| timeseries | 11 | 2,774 |
| transaction | 3 | 1,020 |
| updates | 4 | 1,539 |
| utils | 28 | 8,316 |
| voice | 2 | 738 |
| **TOTAL** | **385** | **178,803** |

## 2. Headers by Theme (`./include`)

| Theme | Files | Lines |
|-------|-------|-------|
| [root] | 1 | 262 |
| acceleration | 8 | 1,165 |
| analytics | 7 | 3,323 |
| api | 2 | 475 |
| aql | 2 | 332 |
| auth | 2 | 284 |
| cache | 7 | 380 |
| cdc | 2 | 372 |
| content | 20 | 3,301 |
| document | 2 | 306 |
| exporters | 2 | 287 |
| geo | 2 | 72 |
| governance | 1 | 74 |
| importers | 2 | 250 |
| index | 17 | 4,348 |
| llm | 110 | 22,448 |
| metadata | 1 | 233 |
| network | 1 | 279 |
| observability | 1 | 135 |
| performance | 19 | 2,995 |
| plugins | 5 | 1,763 |
| projects | 1 | 221 |
| query | 35 | 20,935 |
| replication | 2 | 891 |
| scheduler | 2 | 546 |
| search | 1 | 120 |
| security | 18 | 3,097 |
| server | 63 | 8,512 |
| sharding | 44 | 9,803 |
| storage | 11 | 2,399 |
| temporal | 1 | 124 |
| themis | 6 | 1,027 |
| timeseries | 10 | 1,324 |
| transaction | 3 | 510 |
| updates | 4 | 567 |
| utils | 31 | 3,515 |
| voice | 1 | 235 |
| **TOTAL** | **447** | **96,910** |

## 3. Themis-Specific Headers (`./include/themis`)

| Component | Files | Lines |
|-----------|-------|-------|
| [themis-root] | 3 | 378 |
| base | 2 | 427 |
| network | 1 | 222 |
| **TOTAL** | **6** | **1,027** |

## 4. Tools (`./tools`)

- **Files**: 12
- **Lines**: 864

## 5. Examples (`./examples`)

- **Files**: 20
- **Lines**: 4,566

## 6. Tests (`./tests`)

- **Files**: 353
- **Lines**: 106,016

## 7. Benchmarks (`./benchmarks`)

- **Files**: 86
- **Lines**: 28,477

## 8. Scripts (`./scripts`)

- **Files**: 0
- **Lines**: 0

## 9. Documentation (`./docs`)

| Category/Language | Files | Lines |
|-------------------|-------|-------|
| [root] | 258 | 103,933 |
| analysis | 6 | 4,263 |
| api | 1 | 626 |
| architecture | 8 | 4,928 |
| archive | 13 | 4,848 |
| build-guide | 12 | 4,006 |
| de | 802 | 338,570 |
| deployment | 1 | 167 |
| en | 76 | 33,743 |
| es | 2 | 98 |
| features | 5 | 1,460 |
| fr | 14 | 2,875 |
| gimini | 24 | 5,688 |
| ja | 2 | 98 |
| llm | 2 | 485 |
| planning | 1 | 411 |
| reports | 43 | 12,795 |
| research | 15 | 12,042 |
| security | 5 | 1,676 |
| sharding | 1 | 126 |
| testing | 1 | 297 |
| tools | 14 | 3,503 |
| **TOTAL** | **1306** | **536,638** |

## 10. Root Documentation

- **Files**: 52
- **Lines**: 22,541

## 11. Grand Total

### C++ Code

| Category | Files | Lines |
|----------|-------|-------|
| Source (`./src`) | 385 | 178,803 |
| Headers (`./include`) | 447 | 96,910 |
| Tools | 12 | 864 |
| Examples | 20 | 4,566 |
| Tests | 353 | 106,016 |
| Benchmarks | 86 | 28,477 |
| Scripts | 0 | 0 |
| **C++ TOTAL** | **1303** | **415,636** |

### Documentation

| Category | Files | Lines |
|----------|-------|-------|
| Documentation (`./docs`) | 1306 | 536,638 |
| Root Documentation | 52 | 22,541 |
| **DOCUMENTATION TOTAL** | **1358** | **559,179** |

### Overall Total

| Type | Files | Lines |
|------|-------|-------|
| C++ Code | 1303 | 415,636 |
| Documentation | 1358 | 559,179 |
| **GRAND TOTAL** | **2661** | **974,815** |

## 12. Statistics

- **Average lines per C++ file**: 319.0
- **Average lines per documentation file**: 411.8
- **Average lines per file (all)**: 366.3
- **Themis-specific files in include**: 6 files, 1,027 lines
- **Code-to-documentation ratio**: 0.74:1

---
*Report generated automatically for issue #581*
Loading