Global Metrics
path: .metrics.halstead.effort
old: 10376626.322125765
new: 4599.3047792535035
path: .metrics.halstead.difficulty
old: 267.15976331360946
new: 7.833333333333333
path: .metrics.halstead.estimated_program_length
old: 1484.0780091838794
new: 254.23640287146188
path: .metrics.halstead.length
old: 5026.0
new: 103.0
path: .metrics.halstead.level
old: 0.003743078626799557
new: 0.12765957446808512
path: .metrics.halstead.purity_ratio
old: 0.2952801450823477
new: 2.4683145909850666
path: .metrics.halstead.time
old: 576479.240118098
new: 255.5169321807502
path: .metrics.halstead.bugs
old: 15.85804077610389
new: 0.09218781855795274
path: .metrics.halstead.n1
old: 43.0
new: 13.0
path: .metrics.halstead.N2
old: 2100.0
new: 47.0
path: .metrics.halstead.volume
old: 38840.52820463464
new: 587.1452909685324
path: .metrics.halstead.n2
old: 169.0
new: 39.0
path: .metrics.halstead.vocabulary
old: 212.0
new: 52.0
path: .metrics.halstead.N1
old: 2926.0
new: 56.0
path: .metrics.nom.functions
old: 19.0
new: 3.0
path: .metrics.nom.total
old: 19.0
new: 3.0
path: .metrics.cyclomatic.sum
old: 245.0
new: 5.0
path: .metrics.cyclomatic.average
old: 12.25
new: 1.25
path: .metrics.loc.blank
old: 94.0
new: 9.0
path: .metrics.loc.lloc
old: 549.0
new: 11.0
path: .metrics.loc.cloc
old: 344.0
new: 10.0
path: .metrics.loc.ploc
old: 909.0
new: 41.0
path: .metrics.loc.sloc
old: 1347.0
new: 60.0
path: .metrics.nexits.average
old: 2.3684210526315788
new: 0.6666666666666666
path: .metrics.nexits.sum
old: 45.0
new: 2.0
path: .metrics.nargs.sum
old: 55.0
new: 1.0
path: .metrics.nargs.average
old: 2.8947368421052633
new: 0.3333333333333333
path: .metrics.cognitive.average
old: 26.210526315789473
new: 0.6666666666666666
path: .metrics.cognitive.sum
old: 498.0
new: 2.0
path: .metrics.mi.mi_sei
old: -97.76651398562812
new: 55.88734478074819
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 41.15216497844154
path: .metrics.mi.mi_original
old: -57.0308313712817
new: 70.37020211313504
Spaces Data
Minimal test - lines (39, 47)
path: .spaces[0].metrics.mi.mi_sei
old: 81.43533827620587
new: 79.93149320129929
path: .spaces[0].metrics.mi.mi_original
old: 81.78586693224509
new: 107.73496897773396
path: .spaces[0].metrics.mi.mi_visual_studio
old: 47.82799235803806
new: 63.00290583493214
path: .spaces[0].metrics.halstead.bugs
old: 0.16663932881374569
new: 0.04509040492878755
path: .spaces[0].metrics.halstead.length
old: 97.0
new: 42.0
path: .spaces[0].metrics.halstead.n1
old: 17.0
new: 12.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.376153281456245
new: 1.815210260893512
path: .spaces[0].metrics.halstead.n2
old: 16.0
new: 10.0
path: .spaces[0].metrics.halstead.time
old: 620.9771767731768
new: 87.40485972529103
path: .spaces[0].metrics.halstead.estimated_program_length
old: 133.48686830125575
new: 76.2388309575275
path: .spaces[0].metrics.halstead.N2
old: 43.0
new: 14.0
path: .spaces[0].metrics.halstead.effort
old: 11177.589181917185
new: 1573.2874750552385
path: .spaces[0].metrics.halstead.volume
old: 489.3062295777699
new: 187.29612798276648
path: .spaces[0].metrics.halstead.vocabulary
old: 33.0
new: 22.0
path: .spaces[0].metrics.halstead.N1
old: 54.0
new: 28.0
path: .spaces[0].metrics.halstead.level
old: 0.04377564979480164
new: 0.11904761904761904
path: .spaces[0].metrics.halstead.difficulty
old: 22.84375
new: 8.4
path: .spaces[0].metrics.cyclomatic.sum
old: 6.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.average
old: 6.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: 5.0
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 5.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 31.0
new: 9.0
path: .spaces[0].metrics.loc.cloc
old: 10.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 8.0
new: 4.0
path: .spaces[0].metrics.loc.blank
old: 3.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 18.0
new: 9.0
Code
NS_IMPL_COMPONENT_FACTORY(nsIClipboard) {
nsCOMPtr inst;
if (gfxPlatform::IsHeadless()) {
inst = new HeadlessClipboard();
} else {
inst = new nsClipboard();
}
return inst.forget().downcast();
}
Minimal test - lines (49, 49)
path: .spaces[1].metrics.cyclomatic.average
old: 17.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.sum
old: 17.0
new: 1.0
path: .spaces[1].metrics.cognitive.sum
old: 34.0
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: 34.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: 5.0
new: 0.0
path: .spaces[1].metrics.nargs.sum
old: 5.0
new: 0.0
path: .spaces[1].metrics.loc.blank
old: 9.0
new: 0.0
path: .spaces[1].metrics.loc.ploc
old: 92.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 123.0
new: 1.0
path: .spaces[1].metrics.loc.cloc
old: 22.0
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 65.0
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 3.0
new: 1.0
path: .spaces[1].metrics.nexits.average
old: 3.0
new: 1.0
path: .spaces[1].metrics.halstead.n2
old: 44.0
new: 3.0
path: .spaces[1].metrics.halstead.N2
old: 222.0
new: 3.0
path: .spaces[1].metrics.halstead.effort
old: 245780.0428874028
new: 44.91767875292167
path: .spaces[1].metrics.halstead.length
old: 523.0
new: 8.0
path: .spaces[1].metrics.halstead.n1
old: 30.0
new: 4.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 0.7407680862108923
new: 1.5943609377704335
path: .spaces[1].metrics.halstead.volume
old: 3247.544110223941
new: 22.458839376460833
path: .spaces[1].metrics.halstead.level
old: 0.013213213213213212
new: 0.5
path: .spaces[1].metrics.halstead.vocabulary
old: 74.0
new: 7.0
path: .spaces[1].metrics.halstead.N1
old: 301.0
new: 5.0
path: .spaces[1].metrics.halstead.difficulty
old: 75.68181818181819
new: 2.0
path: .spaces[1].metrics.halstead.time
old: 13654.446827077934
new: 2.495426597384537
path: .spaces[1].metrics.halstead.estimated_program_length
old: 387.42170908829667
new: 12.754887502163468
path: .spaces[1].metrics.halstead.bugs
old: 1.3079058703818
new: 0.00421201861424495
path: .spaces[1].metrics.mi.mi_sei
old: 24.427896126883603
new: 147.42610035996177
path: .spaces[1].metrics.mi.mi_original
old: 47.08721092032419
new: 154.58924178123317
path: .spaces[1].metrics.mi.mi_visual_studio
old: 27.53638065516035
new: 90.4030653691422
Code
nsresult nsWidgetWindowsModuleCtor() { return nsAppShellInit(); }
Minimal test - lines (51, 60)
path: .spaces[2].metrics.mi.mi_sei
old: 96.75787028526008
new: 107.51433696676968
path: .spaces[2].metrics.mi.mi_original
old: 102.80829059376836
new: 110.6169858891998
path: .spaces[2].metrics.mi.mi_visual_studio
old: 60.12180736477681
new: 64.68829584163731
path: .spaces[2].metrics.cognitive.sum
old: 5.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 5.0
new: 0.0
path: .spaces[2].metrics.nargs.average
old: 2.0
new: 0.0
path: .spaces[2].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[2].metrics.halstead.time
old: 275.2855897238957
new: 26.25
path: .spaces[2].metrics.halstead.N1
old: 36.0
new: 20.0
path: .spaces[2].metrics.halstead.vocabulary
old: 29.0
new: 8.0
path: .spaces[2].metrics.halstead.effort
old: 4955.140615030123
new: 472.5
path: .spaces[2].metrics.halstead.n2
old: 12.0
new: 3.0
path: .spaces[2].metrics.halstead.length
old: 60.0
new: 27.0
path: .spaces[2].metrics.halstead.bugs
old: 0.09688340654823288
new: 0.02022149624831887
path: .spaces[2].metrics.halstead.estimated_program_length
old: 112.50641830990963
new: 16.36452797660028
path: .spaces[2].metrics.halstead.level
old: 0.058823529411764705
new: 0.17142857142857143
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.8751069718318272
new: 0.6060936287629732
path: .spaces[2].metrics.halstead.volume
old: 291.4788597076543
new: 81.0
path: .spaces[2].metrics.halstead.n1
old: 17.0
new: 5.0
path: .spaces[2].metrics.halstead.N2
old: 24.0
new: 7.0
path: .spaces[2].metrics.halstead.difficulty
old: 17.0
new: 5.833333333333333
path: .spaces[2].metrics.loc.lloc
old: 5.0
new: 6.0
path: .spaces[2].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[2].metrics.loc.ploc
old: 9.0
new: 8.0
path: .spaces[2].metrics.nexits.average
old: 3.0
new: 0.0
path: .spaces[2].metrics.nexits.sum
old: 3.0
new: 0.0
path: .spaces[2].metrics.cyclomatic.sum
old: 6.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.average
old: 6.0
new: 1.0
Code
void nsWidgetWindowsModuleDtor() {
// Shutdown all XP level widget classes.
WidgetUtils::Shutdown();
KeyboardLayout::Shutdown();
MouseScrollHandler::Shutdown();
nsLookAndFeel::Shutdown();
nsToolkit::Shutdown();
nsAppShellShutdown();
}