Global Metrics
path: .metrics.halstead.time
old: 9053.801590177894
new: 249.8975112122524
path: .metrics.halstead.n1
old: 30.0
new: 9.0
path: .metrics.halstead.length
old: 553.0
new: 82.0
path: .metrics.halstead.effort
old: 162968.4286232021
new: 4498.155201820543
path: .metrics.halstead.n2
old: 72.0
new: 16.0
path: .metrics.halstead.vocabulary
old: 102.0
new: 25.0
path: .metrics.halstead.level
old: 0.022641509433962263
new: 0.08465608465608465
path: .metrics.halstead.estimated_program_length
old: 591.4413179721021
new: 92.5293250129808
path: .metrics.halstead.purity_ratio
old: 1.0695141373817398
new: 1.1284064025973268
path: .metrics.halstead.volume
old: 3689.851214110237
new: 380.7962075615274
path: .metrics.halstead.N1
old: 341.0
new: 40.0
path: .metrics.halstead.N2
old: 212.0
new: 42.0
path: .metrics.halstead.bugs
old: 0.9945220059807346
new: 0.0908311966797802
path: .metrics.halstead.difficulty
old: 44.166666666666664
new: 11.8125
path: .metrics.mi.mi_visual_studio
old: 22.580043233960065
new: 45.35601376511861
path: .metrics.mi.mi_original
old: 38.61187393007171
new: 77.55878353835283
path: .metrics.mi.mi_sei
old: 3.784902773455435
new: 59.66122829400759
path: .metrics.cyclomatic.average
old: 2.4615384615384617
new: 1.4
path: .metrics.cyclomatic.sum
old: 32.0
new: 7.0
path: .metrics.loc.cloc
old: 12.0
new: 4.0
path: .metrics.loc.lloc
old: 51.0
new: 8.0
path: .metrics.loc.sloc
old: 161.0
new: 43.0
path: .metrics.loc.blank
old: 34.0
new: 7.0
path: .metrics.loc.ploc
old: 115.0
new: 32.0
path: .metrics.nom.total
old: 8.0
new: 4.0
path: .metrics.nom.functions
old: 8.0
new: 4.0
path: .metrics.nexits.sum
old: 14.0
new: 2.0
path: .metrics.nexits.average
old: 1.75
new: 0.5
path: .metrics.nargs.sum
old: 2.0
new: 6.0
path: .metrics.nargs.average
old: 0.25
new: 1.5
path: .metrics.cognitive.average
old: 3.0
new: 1.0
path: .metrics.cognitive.sum
old: 24.0
new: 4.0
Spaces Data
Minimal test - lines (27, 29)
path: .spaces[1].metrics.nexits.average
old: 1.75
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 14.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 8.0
new: 1.0
path: .spaces[1].metrics.nom.total
old: 8.0
new: 1.0
path: .spaces[1].metrics.nargs.sum
old: 2.0
new: 1.0
path: .spaces[1].metrics.nargs.average
old: 0.25
new: 1.0
path: .spaces[1].metrics.cognitive.sum
old: 24.0
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: 3.0
new: 0.0
path: .spaces[1].metrics.halstead.volume
old: 3421.495380575727
new: 39.86313713864835
path: .spaces[1].metrics.halstead.length
old: 522.0
new: 12.0
path: .spaces[1].metrics.halstead.difficulty
old: 46.40625
new: 3.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.0176373905522136
new: 1.9349400790728015
path: .spaces[1].metrics.halstead.N1
old: 324.0
new: 6.0
path: .spaces[1].metrics.halstead.vocabulary
old: 94.0
new: 10.0
path: .spaces[1].metrics.halstead.level
old: 0.02154882154882155
new: 0.3333333333333333
path: .spaces[1].metrics.halstead.n1
old: 30.0
new: 5.0
path: .spaces[1].metrics.halstead.n2
old: 64.0
new: 5.0
path: .spaces[1].metrics.halstead.bugs
old: 0.9774030745506168
new: 0.008091093705353408
path: .spaces[1].metrics.halstead.estimated_program_length
old: 531.2067178682555
new: 23.21928094887362
path: .spaces[1].metrics.halstead.time
old: 8821.042778046794
new: 6.643856189774725
path: .spaces[1].metrics.halstead.N2
old: 198.0
new: 6.0
path: .spaces[1].metrics.halstead.effort
old: 158778.7700048423
new: 119.58941141594504
path: .spaces[1].metrics.loc.lloc
old: 51.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 136.0
new: 3.0
path: .spaces[1].metrics.loc.ploc
old: 101.0
new: 3.0
path: .spaces[1].metrics.loc.cloc
old: 5.0
new: 0.0
path: .spaces[1].metrics.loc.blank
old: 30.0
new: 0.0
path: .spaces[1].metrics.mi.mi_visual_studio
old: 24.81184757523172
new: 78.25036867974562
path: .spaces[1].metrics.mi.mi_original
old: 42.42825935364624
new: 133.808130442365
path: .spaces[1].metrics.mi.mi_sei
old: 3.097723112499695
new: 117.44529408721525
path: .spaces[1].metrics.cyclomatic.average
old: 2.9
new: 1.0
path: .spaces[1].metrics.cyclomatic.sum
old: 29.0
new: 1.0
Code
static inline gboolean gtk_widget_get_mapped(GtkWidget* widget) {
return GTK_WIDGET_MAPPED(widget);
}
Minimal test - lines (20, 25)
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .spaces[0].metrics.mi.mi_original
old: 113.57316278553655
new: 117.36266392297036
path: .spaces[0].metrics.mi.mi_visual_studio
old: 66.41705426054769
new: 68.6331367970587
path: .spaces[0].metrics.mi.mi_sei
old: 88.35422645556476
new: 93.8213209539836
path: .spaces[0].metrics.nargs.average
old: null
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: null
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.halstead.bugs
old: 0.010737799098685566
new: 0.024340816280384765
path: .spaces[0].metrics.halstead.estimated_program_length
old: 31.019550008653873
new: 48.0
path: .spaces[0].metrics.halstead.level
old: 0.3333333333333333
new: 0.16666666666666666
path: .spaces[0].metrics.halstead.N1
old: 11.0
new: 14.0
path: .spaces[0].metrics.halstead.difficulty
old: 3.0
new: 6.0
path: .spaces[0].metrics.halstead.N2
old: 6.0
new: 12.0
path: .spaces[0].metrics.halstead.vocabulary
old: 12.0
new: 16.0
path: .spaces[0].metrics.halstead.n1
old: 6.0
new: 8.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.8246794122737573
new: 1.8461538461538465
path: .spaces[0].metrics.halstead.time
old: 10.157393752043276
new: 34.666666666666664
path: .spaces[0].metrics.halstead.effort
old: 182.83308753677895
new: 624.0
path: .spaces[0].metrics.halstead.n2
old: 6.0
new: 8.0
path: .spaces[0].metrics.halstead.volume
old: 60.94436251225965
new: 104.0
path: .spaces[0].metrics.halstead.length
old: 17.0
new: 26.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 7.0
new: 6.0
path: .spaces[0].metrics.loc.sloc
old: 9.0
new: 6.0
Code
static inline void gtk_widget_set_mapped(GtkWidget* widget, gboolean mapped) {
if (mapped)
GTK_WIDGET_SET_FLAGS(widget, GTK_MAPPED);
else
GTK_WIDGET_UNSET_FLAGS(widget, GTK_MAPPED);
}