@@ -34,12 +34,12 @@ def analyze_with_v2(code, function_name):
3434 disharmony = engine .get_distance (intent_coords , execution_coords )
3535
3636 return {
37- ' function' : function_name ,
38- ' intent_concepts' : intent_concepts ,
39- ' execution_concepts' : execution_concepts ,
40- ' intent_coords' : intent_coords ,
41- ' execution_coords' : execution_coords ,
42- ' disharmony' : disharmony
37+ " function" : function_name ,
38+ " intent_concepts" : intent_concepts ,
39+ " execution_concepts" : execution_concepts ,
40+ " intent_coords" : intent_coords ,
41+ " execution_coords" : execution_coords ,
42+ " disharmony" : disharmony ,
4343 }
4444
4545
@@ -51,28 +51,32 @@ def print_analysis(result):
5151
5252 print (f"\n INTENT (what function claims to do):" )
5353 print (f" Concepts: { result ['intent_concepts' ]} " )
54- print (f" Coordinates: L={ result ['intent_coords' ].love :.3f} , J={ result ['intent_coords' ].justice :.3f} , "
55- f"P={ result ['intent_coords' ].power :.3f} , W={ result ['intent_coords' ].wisdom :.3f} " )
54+ print (
55+ f" Coordinates: L={ result ['intent_coords' ].love :.3f} , J={ result ['intent_coords' ].justice :.3f} , "
56+ f"P={ result ['intent_coords' ].power :.3f} , W={ result ['intent_coords' ].wisdom :.3f} "
57+ )
5658
5759 print (f"\n EXECUTION (what function actually does):" )
5860 print (f" Concepts: { result ['execution_concepts' ]} " )
59- print (f" Coordinates: L={ result ['execution_coords' ].love :.3f} , J={ result ['execution_coords' ].justice :.3f} , "
60- f"P={ result ['execution_coords' ].power :.3f} , W={ result ['execution_coords' ].wisdom :.3f} " )
61+ print (
62+ f" Coordinates: L={ result ['execution_coords' ].love :.3f} , J={ result ['execution_coords' ].justice :.3f} , "
63+ f"P={ result ['execution_coords' ].power :.3f} , W={ result ['execution_coords' ].wisdom :.3f} "
64+ )
6165
6266 print (f"\n DISHARMONY SCORE: { result ['disharmony' ]:.3f} " )
6367
64- if result [' disharmony' ] < 0.5 :
68+ if result [" disharmony" ] < 0.5 :
6569 print ("STATUS: ✅ EXCELLENT HARMONY" )
66- elif result [' disharmony' ] < 1.0 :
70+ elif result [" disharmony" ] < 1.0 :
6771 print ("STATUS: ⚠️ MEDIUM DISHARMONY" )
6872 else :
6973 print ("STATUS: 🚨 CRITICAL DISHARMONY - Likely Bug!" )
7074
7175
7276# Test examples
73- print ("=" * 70 )
77+ print ("=" * 70 )
7478print ("ENHANCED PARSER V2 - REAL-WORLD DEMONSTRATION" )
75- print ("=" * 70 )
79+ print ("=" * 70 )
7680
7781# Example 1: Harmonious function
7882code1 = '''
@@ -131,7 +135,7 @@ def fetch_validate_and_save(data_id):
131135
132136print (f"\n { '=' * 70 } " )
133137print ("DEMONSTRATION COMPLETE" )
134- print ("=" * 70 )
138+ print ("=" * 70 )
135139print ("\n ✅ Enhanced Parser V2 Features:" )
136140print (" • 184 programming verbs (7.4x more than V1)" )
137141print (" • Compound pattern detection (get_user, send_notification, etc.)" )
0 commit comments