diff --git a/check_harmony.py b/check_harmony.py index cacc800..3ac39d0 100644 --- a/check_harmony.py +++ b/check_harmony.py @@ -7,9 +7,7 @@ import sys import os import argparse -from harmonizer.main import PythonCodeHarmonizer from harmonizer.legacy_mapper import LegacyCodeMapper -from harmonizer.config import ConfigLoader def check_harmony( @@ -30,7 +28,7 @@ def check_harmony( warnings = [] config = mapper.config - print(f"\n--- CONFIGURATION ---") + print("\n--- CONFIGURATION ---") print(f"Max Disharmony: {config.max_disharmony}") print(f"Max Imbalance: {config.max_imbalance}") print(f"Min Density: {config.min_density}") diff --git a/harmonizer/visualizer.py b/harmonizer/visualizer.py index b154f79..fe891fb 100644 --- a/harmonizer/visualizer.py +++ b/harmonizer/visualizer.py @@ -103,7 +103,7 @@ def _get_html_template(self, data: Dict) -> str: --power: #ef4444; --wisdom: #3b82f6; }} - + body {{ font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-color); @@ -111,70 +111,70 @@ def _get_html_template(self, data: Dict) -> str: margin: 0; padding: 20px; }} - + .container {{ max_width: 1400px; margin: 0 auto; }} - + header {{ margin-bottom: 30px; border-bottom: 1px solid #334155; padding-bottom: 20px; }} - + h1 {{ margin: 0; font-size: 2rem; }} .subtitle {{ color: var(--text-secondary); margin-top: 5px; }} - + .grid {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 30px; }} - + .card {{ background-color: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }} - + .card h2 {{ margin-top: 0; font-size: 1.2rem; color: var(--accent); }} - + #galaxy-graph {{ width: 100%; height: 600px; background-color: #020617; border-radius: 8px; }} - + table {{ width: 100%; border-collapse: collapse; margin-top: 10px; }} - + th, td {{ text-align: left; padding: 12px; border-bottom: 1px solid #334155; }} - + th {{ color: var(--text-secondary); font-weight: 600; }} - + .badge {{ padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }} - + .badge-love {{ background: rgba(244, 114, 182, 0.2); color: var(--love); }} .badge-justice {{ background: rgba(251, 191, 36, 0.2); color: var(--justice); }} .badge-power {{ background: rgba(239, 68, 68, 0.2); color: var(--power); }} .badge-wisdom {{ background: rgba(59, 130, 246, 0.2); color: var(--wisdom); }} - + @@ -183,7 +183,7 @@ def _get_html_template(self, data: Dict) -> str:

LJPW Code Harmony Report

Generated on {datetime.now().strftime("%Y-%m-%d %H:%M")}
- +

System Balance (Average)

@@ -194,16 +194,16 @@ def _get_html_template(self, data: Dict) -> str:
- +

Dependency Galaxy (Gravitational Pull)

- Nodes are sized by Mass (Complexity). Links show imports. + Nodes are sized by Mass (Complexity). Links show imports. Colors represent dominant LJPW dimension.

- +

File Analysis

@@ -228,13 +228,13 @@ def _get_html_template(self, data: Dict) -> str: