Files
troupe-standup/wizard-work/spark/VERIFICATION.md
T

1.6 KiB

Code Statistics Analyzer - Verification Report

Artifact

  • Location: /root/.hermes/wizard-outputs/spark/code_stats.py
  • Pushed to: https://forge.alexanderwhitestone.com/git/stackchain/troupe-standup.git/wizard-work/spark/code_stats.py

Purpose

A Python utility that analyzes code statistics (lines, functions, classes, imports) in Python files.

Verification Tests

Test 1: Single file analysis

$ python3 code_stats.py code_stats.py
File: /root/.hermes/wizard-outputs/spark/code_stats.py
Files: 1
Lines: 79
Functions: 2
Classes: 0
Imports: 3

Test 2: Line count verification

$ wc -l /root/.hermes/wizard-outputs/spark/code_stats.py
79 code_stats.py

Result: MATCH ✓

Test 3: Function count verification

$ grep -c "^def " /root/.hermes/wizard-outputs/spark/code_stats.py
2

Result: MATCH ✓

Test 4: Import count verification

$ grep -c "^import\|^from" /root/.hermes/wizard-outputs/spark/code_stats.py
3

Result: MATCH ✓

Test 5: Directory analysis verification on /root/.hermes/skills

$ find /root/.hermes/skills -name "*.py" | wc -l
194

$ find /root/.hermes/skills -name "*.py" -exec wc -l {} + | tail -1
86733 total

$ python3 code_stats.py /root/.hermes/skills
Directory: /root/.hermes/skills
Files: 194
Lines: 86733
Functions: 2861
Classes: 140
Imports: 1627

Result: MATCH ✓

Test Command

python3 /root/.hermes/wizard-outputs/spark/code_stats.py /root/.hermes/skills

Output

Directory: /root/.hermes/skills
Files: 194
Lines: 86733
Functions: 2861
Classes: 140
Imports: 1627