Skip to content

Commit 4c0fcee

Browse files
committed
chore: update stats script to find .h instead of .hpp and refresh README
The calculate-stats.sh script was still searching for *.hpp files after the extension migration, resulting in 0 header files being reported. Updated to search for *.h and regenerated README statistics.
1 parent 4c1c354 commit 4c0fcee

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,18 @@ cmake --build build --target run_full_benchmarks
482482
|--------|-------|
483483
| **Header Files** | 282 files |
484484
| **Source Files** | 204 files |
485-
| **Header LOC** | ~83,600 lines |
486-
| **Source LOC** | ~115,000 lines |
485+
| **Header LOC** | ~76,800 lines |
486+
| **Source LOC** | ~110,100 lines |
487487
| **Example LOC** | ~35,600 lines |
488488
| **Test LOC** | ~85,300 lines |
489-
| **Total LOC** | ~319,500 lines |
489+
| **Total LOC** | ~307,800 lines |
490490
| **Test Files** | 180 files |
491491
| **Test Cases** | 2584+ tests |
492492
| **Example Programs** | 32 apps |
493493
| **Documentation** | 72 markdown files |
494-
| **CI/CD Workflows** | 13 workflows |
494+
| **CI/CD Workflows** | 14 workflows |
495495
| **Version** | 0.1.0 |
496-
| **Last Updated** | 2026-03-26 |
496+
| **Last Updated** | 2026-04-03 |
497497

498498
<!-- STATS_END -->
499499

scripts/calculate-stats.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ calculate_stats() {
3636
local doc_files
3737
local workflow_files
3838

39-
header_files=$(find include -name '*.hpp' -type f 2>/dev/null | wc -l | tr -d ' ')
39+
header_files=$(find include -name '*.h' -type f 2>/dev/null | wc -l | tr -d ' ')
4040
source_files=$(find src -name '*.cpp' -type f 2>/dev/null | wc -l | tr -d ' ')
4141
test_files=$(find tests -name '*.cpp' -type f 2>/dev/null | wc -l | tr -d ' ')
4242
example_dirs=$(find examples -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l | tr -d ' ')
@@ -50,7 +50,7 @@ calculate_stats() {
5050
local example_loc
5151
local total_loc
5252

53-
header_loc=$(find include -name '*.hpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
53+
header_loc=$(find include -name '*.h' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
5454
source_loc=$(find src -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
5555
test_loc=$(find tests -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
5656
example_loc=$(find examples -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
@@ -133,13 +133,13 @@ export_raw_stats() {
133133
local header_files source_files test_files example_dirs doc_files workflow_files
134134
local header_loc source_loc test_loc example_loc total_loc test_cases
135135

136-
header_files=$(find include -name '*.hpp' -type f 2>/dev/null | wc -l | tr -d ' ')
136+
header_files=$(find include -name '*.h' -type f 2>/dev/null | wc -l | tr -d ' ')
137137
source_files=$(find src -name '*.cpp' -type f 2>/dev/null | wc -l | tr -d ' ')
138138
test_files=$(find tests -name '*.cpp' -type f 2>/dev/null | wc -l | tr -d ' ')
139139
example_dirs=$(find examples -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l | tr -d ' ')
140140
doc_files=$(find docs -name '*.md' -type f 2>/dev/null | wc -l | tr -d ' ')
141141
workflow_files=$(find .github/workflows -name '*.yml' -type f 2>/dev/null | wc -l | tr -d ' ')
142-
header_loc=$(find include -name '*.hpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
142+
header_loc=$(find include -name '*.h' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
143143
source_loc=$(find src -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
144144
test_loc=$(find tests -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')
145145
example_loc=$(find examples -name '*.cpp' -type f -exec cat {} + 2>/dev/null | wc -l | tr -d ' ')

0 commit comments

Comments
 (0)