Asking the agent to refactor to reduce spectral complexity, it worked. Trivial change, but this did reduce code complexity. Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
280 lines
No EOL
5.2 KiB
JSON
280 lines
No EOL
5.2 KiB
JSON
{
|
|
"graph": {
|
|
"n_nodes": 36,
|
|
"n_edges": 78,
|
|
"n_modules": 8,
|
|
"connected_components": 2,
|
|
"modules": [
|
|
"error",
|
|
"config",
|
|
"channel",
|
|
"actor",
|
|
"address_map",
|
|
"runtime",
|
|
"worker",
|
|
"python"
|
|
]
|
|
},
|
|
"spectral": {
|
|
"eigenvalues": [
|
|
0.0,
|
|
0.0,
|
|
0.18637427422819514,
|
|
0.4813940269111958,
|
|
0.6123548189907484,
|
|
0.7985629750697533,
|
|
0.8319091149970231,
|
|
1.004600219615323,
|
|
1.2394224070963267,
|
|
1.3689639255261323,
|
|
1.4526860286383532,
|
|
1.626080007307936,
|
|
2.321279039207482,
|
|
2.3935870074779477,
|
|
2.909249108581605,
|
|
3.1569529438124246,
|
|
3.219980753498557,
|
|
3.3901681819448264,
|
|
3.4799333923457128,
|
|
3.605153966968332,
|
|
3.8847634489335645,
|
|
4.186333826694949,
|
|
4.707024553452379,
|
|
5.173220891347629,
|
|
5.586454240023603,
|
|
5.795938099946378,
|
|
5.8549806331718415,
|
|
6.1828765255391644,
|
|
6.461944112192484,
|
|
6.898584006266002,
|
|
7.3807011063714905,
|
|
7.896480708195232,
|
|
9.160238969430825,
|
|
11.171010263156152,
|
|
14.04747425561517,
|
|
15.533322167445291
|
|
],
|
|
"fiedler_value": 0.0,
|
|
"fiedler_vector": [
|
|
0.0,
|
|
1.6667674979754847e-17,
|
|
-4.4166826078552935e-16,
|
|
-5.256955919501151e-16,
|
|
-1.6422080940489055e-18,
|
|
-7.037238109196825e-17,
|
|
8.390622125197347e-16,
|
|
2.3690827037115515e-17,
|
|
1.4176669953736474e-16,
|
|
1.4226827878099615e-16,
|
|
3.1675939003075104e-17,
|
|
2.7236604915425953e-18,
|
|
-1.744993274089968e-16,
|
|
2.918795638720409e-17,
|
|
-2.1047785816801073e-16,
|
|
1.6100142369066343e-16,
|
|
-1.1048855416219909e-16,
|
|
2.623380592723269e-16,
|
|
-6.257340472605819e-17,
|
|
-2.7901019807352287e-17,
|
|
7.954130131218555e-17,
|
|
-2.8145783605573126e-16,
|
|
5.097927800469914e-17,
|
|
1.0000000000000002,
|
|
-7.635525673846673e-17,
|
|
4.0203070989124624e-17,
|
|
5.607482503879278e-17,
|
|
1.4848475991077948e-17,
|
|
-8.451175680174382e-17,
|
|
-1.3333327282927672e-16,
|
|
2.6566833162138994e-16,
|
|
1.0987812721413363e-16,
|
|
4.959951093541129e-16,
|
|
-1.2067067461630528e-16,
|
|
-2.172546179303562e-16,
|
|
-2.3212297109883297e-16
|
|
],
|
|
"node_names": [
|
|
"Error",
|
|
"BackoffPolicy",
|
|
"RuntimeConfig",
|
|
"HybridChannel",
|
|
"Receiver",
|
|
"Sender",
|
|
"Actor",
|
|
"ActorAddress",
|
|
"ActorInterface",
|
|
"AnyActor",
|
|
"ContextInner",
|
|
"Ctx",
|
|
"Message",
|
|
"AddressMap",
|
|
"Placement",
|
|
"WorkerId",
|
|
"Envelope",
|
|
"Inbox",
|
|
"InboxRegistry",
|
|
"Runtime",
|
|
"RuntimeHandle",
|
|
"SenderT",
|
|
"ActorPool",
|
|
"Mailbox",
|
|
"TickContext",
|
|
"Worker",
|
|
"WorkerContext",
|
|
"Effect",
|
|
"PyActor",
|
|
"PyActorAddress",
|
|
"PyCtx",
|
|
"PyInbox",
|
|
"PyMsg",
|
|
"PyRuntime",
|
|
"PyRuntimeConfig",
|
|
"PyRuntimeHandle"
|
|
],
|
|
"node_modules": [
|
|
"error",
|
|
"config",
|
|
"config",
|
|
"channel",
|
|
"channel",
|
|
"channel",
|
|
"actor",
|
|
"actor",
|
|
"actor",
|
|
"actor",
|
|
"actor",
|
|
"actor",
|
|
"actor",
|
|
"address_map",
|
|
"address_map",
|
|
"address_map",
|
|
"runtime",
|
|
"runtime",
|
|
"runtime",
|
|
"runtime",
|
|
"runtime",
|
|
"runtime",
|
|
"worker",
|
|
"worker",
|
|
"worker",
|
|
"worker",
|
|
"worker",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python",
|
|
"python"
|
|
]
|
|
},
|
|
"module_coupling": {
|
|
"module_names": [
|
|
"error",
|
|
"config",
|
|
"channel",
|
|
"actor",
|
|
"address_map",
|
|
"runtime",
|
|
"worker",
|
|
"python"
|
|
],
|
|
"coupling_matrix": [
|
|
[
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
[
|
|
0.0,
|
|
1.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
[
|
|
0.0,
|
|
0.0,
|
|
3.0,
|
|
0.0,
|
|
0.0,
|
|
1.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
[
|
|
2.0,
|
|
0.0,
|
|
0.0,
|
|
7.0,
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
[
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
1.0,
|
|
2.0,
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
[
|
|
2.0,
|
|
1.0,
|
|
2.0,
|
|
6.0,
|
|
2.0,
|
|
6.0,
|
|
1.0,
|
|
0.0
|
|
],
|
|
[
|
|
1.0,
|
|
1.0,
|
|
2.0,
|
|
9.0,
|
|
4.0,
|
|
3.0,
|
|
3.0,
|
|
0.0
|
|
],
|
|
[
|
|
0.0,
|
|
0.0,
|
|
0.0,
|
|
5.0,
|
|
0.0,
|
|
3.0,
|
|
0.0,
|
|
10.0
|
|
]
|
|
],
|
|
"cross_module_edges": 46,
|
|
"total_edges": 78
|
|
},
|
|
"metrics": {
|
|
"algebraic_connectivity": 0.0,
|
|
"normalized_algebraic_connectivity": 0.0,
|
|
"spectral_entropy": 4.641128070102523,
|
|
"normalized_spectral_entropy": 0.9122677088609219,
|
|
"edge_density": 0.06190476190476191,
|
|
"cross_module_ratio": 0.5897435897435898,
|
|
"spectral_radius": 6.676215667817795,
|
|
"normalized_spectral_radius": 0.19074901908050843,
|
|
"cci": 0.383913712311739
|
|
}
|
|
} |