Global Metrics
path: .metrics.nexits.average
old: 0.8214285714285714
new: 2.0
path: .metrics.nexits.sum
old: 23.0
new: 2.0
path: .metrics.cognitive.average
old: 2.8214285714285716
new: 0.0
path: .metrics.cognitive.sum
old: 79.0
new: 0.0
path: .metrics.loc.lloc
old: 144.0
new: 2.0
path: .metrics.loc.sloc
old: 384.0
new: 20.0
path: .metrics.loc.blank
old: 26.0
new: 1.0
path: .metrics.loc.cloc
old: 12.0
new: 6.0
path: .metrics.loc.ploc
old: 346.0
new: 13.0
path: .metrics.nargs.average
old: 2.25
new: 0.0
path: .metrics.nargs.sum
old: 63.0
new: 0.0
path: .metrics.nom.functions
old: 28.0
new: 1.0
path: .metrics.nom.total
old: 28.0
new: 1.0
path: .metrics.cyclomatic.average
old: 2.966666666666667
new: 1.0
path: .metrics.cyclomatic.sum
old: 89.0
new: 4.0
path: .metrics.halstead.bugs
old: 5.024260855151286
new: 0.015202414034698918
path: .metrics.halstead.difficulty
old: 102.76510067114094
new: 3.5
path: .metrics.halstead.level
old: 0.00973092998955068
new: 0.2857142857142857
path: .metrics.halstead.length
old: 2401.0
new: 22.0
path: .metrics.halstead.time
old: 102805.80692597551
new: 17.11111111111111
path: .metrics.halstead.volume
old: 18007.129974886775
new: 88.0
path: .metrics.halstead.N2
old: 957.0
new: 9.0
path: .metrics.halstead.purity_ratio
old: 0.5146422780295136
new: 2.1900367939720016
path: .metrics.halstead.vocabulary
old: 181.0
new: 16.0
path: .metrics.halstead.effort
old: 1850504.5246675592
new: 308.0
path: .metrics.halstead.n2
old: 149.0
new: 9.0
path: .metrics.halstead.N1
old: 1444.0
new: 13.0
path: .metrics.halstead.estimated_program_length
old: 1235.656109548862
new: 48.18080946738404
path: .metrics.halstead.n1
old: 32.0
new: 7.0
path: .metrics.mi.mi_original
old: 3.177270693628671
new: 98.2669857331387
path: .metrics.mi.mi_sei
old: -48.532510475964536
new: 103.9911298068434
path: .metrics.mi.mi_visual_studio
old: 1.858053037209749
new: 57.46607352815128
Spaces Data
Minimal test - lines (8, 20)
path: .spaces[0].metrics.cognitive.average
old: 3.5454545454545454
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 78.0
new: 0.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 4.67232138151454
new: 62.12160943682772
path: .spaces[0].metrics.mi.mi_original
old: 7.989669562389864
new: 106.2279521369754
path: .spaces[0].metrics.mi.mi_sei
old: -45.61929865128292
new: 106.40587081134343
path: .spaces[0].metrics.nom.functions
old: 22.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 22.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 3.5217391304347827
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 81.0
new: 3.0
path: .spaces[0].metrics.halstead.N1
old: 1293.0
new: 13.0
path: .spaces[0].metrics.halstead.n2
old: 134.0
new: 7.0
path: .spaces[0].metrics.halstead.length
old: 2129.0
new: 20.0
path: .spaces[0].metrics.halstead.bugs
old: 4.49765761723782
new: 0.01380468012191284
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.5198947635140166
new: 1.9651484454403227
path: .spaces[0].metrics.halstead.volume
old: 15701.458949337602
new: 76.14709844115208
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1106.8559515213417
new: 39.302968908806456
path: .spaces[0].metrics.halstead.n1
old: 32.0
new: 7.0
path: .spaces[0].metrics.halstead.effort
old: 1567333.6933308938
new: 266.51484454403226
path: .spaces[0].metrics.halstead.N2
old: 836.0
new: 7.0
path: .spaces[0].metrics.halstead.level
old: 0.010017942583732058
new: 0.2857142857142857
path: .spaces[0].metrics.halstead.difficulty
old: 99.82089552238806
new: 3.5
path: .spaces[0].metrics.halstead.time
old: 87074.09407393854
new: 14.806380252446235
path: .spaces[0].metrics.halstead.vocabulary
old: 166.0
new: 14.0
path: .spaces[0].metrics.loc.blank
old: 19.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 134.0
new: 2.0
path: .spaces[0].metrics.loc.cloc
old: 6.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 309.0
new: 11.0
path: .spaces[0].metrics.loc.sloc
old: 334.0
new: 13.0
path: .spaces[0].metrics.nexits.sum
old: 17.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.7727272727272727
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 43.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 1.9545454545454544
new: 0.0
Code
namespace mozilla {
namespace widget {
mozilla::dom::MediaControlKeySource* CreateMediaControlKeySource() {
#ifndef __MINGW32__
return new WindowsSMTCProvider();
#else
return nullptr; // MinGW doesn't support the required Windows 8.1+ APIs
#endif
}
} // namespace widget
} // namespace mozilla
Minimal test - lines (9, 19)
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 114.61849872460289
new: 105.51248840280624
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 65.90372607322118
new: 64.2457396677728
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 112.69537158520822
new: 109.86021483189148
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.0
new: 2.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 7.0
new: 9.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 7.0
new: 11.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 3.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 3.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 848.5661308606972
new: 233.12770224288883
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 2.089269429967742
new: 1.9534033032627869
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 77.30296890880646
new: 35.161259458730164
path: .spaces[0].spaces[0].metrics.halstead.time
old: 47.14256282559429
new: 12.951539013493823
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.1944444444444444
new: 0.2857142857142857
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.029876923450440785
new: 0.012626258236335003
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 8.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 22.0
new: 13.0
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 5.142857142857143
new: 3.5
path: .spaces[0].spaces[0].metrics.halstead.length
old: 37.0
new: 18.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 14.0
new: 6.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 164.99896988958
new: 66.60791492653966
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 18.0
new: 6.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 19.0
new: 12.0
Code
namespace widget {
mozilla::dom::MediaControlKeySource* CreateMediaControlKeySource() {
#ifndef __MINGW32__
return new WindowsSMTCProvider();
#else
return nullptr; // MinGW doesn't support the required Windows 8.1+ APIs
#endif
}
} // namespace widget