Spark Output: Snippet Summarizer Artifacts
Generated: 2026-10-12T13:03:03 UTC
Files Produced
-
snippet-summarizer.py (3,137 bytes)
- Python utility that scans directories for Python source files
- Extracts metadata: line count, character count, file size
- Outputs structured JSON report
- Usage:
python snippet-summarizer.py <directory> [--output <file>]
-
report.json (16,156 bytes)
- Generated report scanning
/root/.hermes/profiles/spark/ - 50 Python snippets found
- 11,713 total lines of code
- 430.78 KB total size
- Average 234.26 lines per file
- Generated report scanning
Verification
The report.json file is valid JSON and contains:
- Complete file listing with paths
- Per-file statistics
- Extension-based grouping
- Aggregate statistics
JSON Validator (New Addition)
A Python CLI tool for validating JSON files with detailed error reporting.
Files
- json_validator.py - Main validation script
- sample_valid.json - Test file (valid object)
- sample_array.json - Test file (valid array)
- sample_scalar.json - Test file (valid string scalar)
- sample_bad.json - Test file (invalid JSON)
Usage
python3 json_validator.py <file.json> [file2.json ...]
Verified Tests
✓ VALID: sample_valid.json - Object with 3 keys, 73 bytes
✓ VALID: sample_array.json - Array with 3 elements, 141 bytes
✓ VALID: sample_scalar.json - Scalar value: str, 21 bytes
✗ INVALID: sample_bad.json - Missing quotes error
✗ INVALID: nonexistent.json - File not found error
quick_stats.py - File Statistics Utility
A simple file statistics utility that reports line count, word count, byte size, and top 5 most common words.
Files
- quick_stats.py - Main script (1,458 bytes)
Usage
python3 quick_stats.py <file1> [file2 ...]
Verified Test
$ python3 quick_stats.py test_input.txt
=== test_input.txt ===
Bytes: 118
Lines: 5
Words: 22
Unique: 13
Top words: [('hello', 3), ('world', 2), ('the', 2), ('this', 1), ('is', 1)]
Verification
Check: python3 /root/.hermes/wizard-outputs/spark/quick_stats.py /root/.hermes/wizard-outputs/spark/test_input.txt && echo "PASS"
syshealth.py - System Health Check Utility
A Python utility that collects system metrics: disk usage, memory info, load average, and process count.
Files
- syshealth.py - Main script (1,697 bytes)
- system-report.json - Generated report with all metrics
Usage
python3 syshealth.py
Verified Test
$ python3 /root/.hermes/wizard-outputs/spark/check_syshealth.py
PASS: Valid JSON with all required keys
Process count: 422
Verification
Check: python3 /root/.hermes/wizard-outputs/spark/check_syshealth.py && echo "PASS"