Skip to content

Commit 68f4bcc

Browse files
committed
Add empirical validation test for Harmonizer metrics
Creates scripts/empirical_validation.py that tests whether Harmonizer metrics correlate with real technical debt indicators from git history: - Analyzes 51 Python files with git history - Correlates LJPW dimensions with fix ratio, churn, and commits - Results: 75% of correlations match expected direction (STRONG VALIDATION) Key findings: - Complexity (P) vs Churn: +0.449 correlation (complex files change more) - Voltage vs Total Commits: +0.468 correlation (active files have more energy) - Abstraction (W) vs Fix Ratio: -0.234 correlation (docs reduce bugs) - Structure (J) vs Fix Ratio: -0.347 correlation (structure reduces bugs)
1 parent c6bbd70 commit 68f4bcc

File tree

1 file changed

+457
-0
lines changed

1 file changed

+457
-0
lines changed

0 commit comments

Comments
 (0)