Global Metrics
path: .metrics.cyclomatic.sum
old: 66.0
new: 3.0
path: .metrics.cyclomatic.average
old: 2.2
new: 1.0
path: .metrics.halstead.level
old: 0.021782774543264403
new: 0.22608695652173913
path: .metrics.halstead.n2
old: 217.0
new: 13.0
path: .metrics.halstead.purity_ratio
old: 1.2835040456413018
new: 1.3887292281458372
path: .metrics.halstead.N2
old: 586.0
new: 23.0
path: .metrics.halstead.difficulty
old: 45.90783410138249
new: 4.423076923076923
path: .metrics.halstead.bugs
old: 2.1817781290704517
new: 0.028560087911802867
path: .metrics.halstead.N1
old: 861.0
new: 20.0
path: .metrics.halstead.volume
old: 11534.823522566769
new: 179.30677506201943
path: .metrics.halstead.n1
old: 34.0
new: 5.0
path: .metrics.halstead.length
old: 1447.0
new: 43.0
path: .metrics.halstead.time
old: 29418.820259039974
new: 44.06042549600905
path: .metrics.halstead.estimated_program_length
old: 1857.2303540429637
new: 59.71535681027101
path: .metrics.halstead.vocabulary
old: 251.0
new: 18.0
path: .metrics.halstead.effort
old: 529538.7646627196
new: 793.0876589281629
path: .metrics.nexits.sum
old: 15.0
new: 0.0
path: .metrics.nexits.average
old: 0.5357142857142857
new: null
path: .metrics.mi.mi_original
old: 5.200436246488948
new: 89.3449764715618
path: .metrics.mi.mi_visual_studio
old: 3.0411907874204376
new: 52.24852425237531
path: .metrics.mi.mi_sei
old: -32.69141157438759
new: 95.9546778339502
path: .metrics.cognitive.average
old: 1.5
new: null
path: .metrics.cognitive.sum
old: 42.0
new: 0.0
path: .metrics.nargs.average
old: 0.4642857142857143
new: null
path: .metrics.nargs.sum
old: 13.0
new: 0.0
path: .metrics.loc.ploc
old: 376.0
new: 11.0
path: .metrics.loc.sloc
old: 542.0
new: 28.0
path: .metrics.loc.lloc
old: 175.0
new: 0.0
path: .metrics.loc.cloc
old: 85.0
new: 12.0
path: .metrics.loc.blank
old: 81.0
new: 5.0
path: .metrics.nom.total
old: 28.0
new: 0.0
path: .metrics.nom.functions
old: 28.0
new: 0.0
Spaces Data
Minimal test - lines (9, 28)
path: .spaces[0].metrics.cyclomatic.average
old: 2.2413793103448274
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 65.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 510.0
new: 20.0
path: .spaces[0].metrics.loc.blank
old: 77.0
new: 4.0
path: .spaces[0].metrics.loc.ploc
old: 356.0
new: 10.0
path: .spaces[0].metrics.loc.lloc
old: 175.0
new: 0.0
path: .spaces[0].metrics.loc.cloc
old: 77.0
new: 6.0
path: .spaces[0].metrics.nexits.average
old: 0.5357142857142857
new: null
path: .spaces[0].metrics.nexits.sum
old: 15.0
new: 0.0
path: .spaces[0].metrics.halstead.effort
old: 537161.8985969517
new: 786.8365969406902
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.209962860595593
new: 1.3006950115021592
path: .spaces[0].metrics.halstead.N1
old: 860.0
new: 20.0
path: .spaces[0].metrics.halstead.length
old: 1429.0
new: 42.0
path: .spaces[0].metrics.halstead.n2
old: 203.0
new: 12.0
path: .spaces[0].metrics.halstead.volume
old: 11273.014102675612
new: 171.67343933251425
path: .spaces[0].metrics.halstead.N2
old: 569.0
new: 22.0
path: .spaces[0].metrics.halstead.vocabulary
old: 237.0
new: 17.0
path: .spaces[0].metrics.halstead.bugs
old: 2.2026671694574387
new: 0.028409817651624727
path: .spaces[0].metrics.halstead.level
old: 0.02098625038767704
new: 0.2181818181818182
path: .spaces[0].metrics.halstead.n1
old: 34.0
new: 5.0
path: .spaces[0].metrics.halstead.difficulty
old: 47.65024630541872
new: 4.583333333333333
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1729.0369277911022
new: 54.62919048309068
path: .spaces[0].metrics.halstead.time
old: 29842.327699830657
new: 43.713144274482794
path: .spaces[0].metrics.cognitive.average
old: 1.5
new: null
path: .spaces[0].metrics.cognitive.sum
old: 42.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.4642857142857143
new: null
path: .spaces[0].metrics.nargs.sum
old: 13.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: -31.340718242370414
new: 99.43785442594492
path: .spaces[0].metrics.mi.mi_visual_studio
old: 3.822033777698537
new: 55.70295206871246
path: .spaces[0].metrics.mi.mi_original
old: 6.535677759864498
new: 95.25204803749833
path: .spaces[0].metrics.nom.functions
old: 28.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 28.0
new: 0.0
Code
namespace mozilla {
namespace widget {
// Start the audio session in the current process
nsresult StartAudioSession();
// Pass the information necessary to start an audio session in another process
nsresult GetAudioSessionData(nsID& aID, nsString& aSessionName,
nsString& aIconPath);
// Receive the information necessary to start an audio session in a non-chrome
// process
nsresult RecvAudioSessionData(const nsID& aID, const nsString& aSessionName,
const nsString& aIconPath);
// Stop the audio session in the current process
nsresult StopAudioSession();
} // namespace widget
} // namespace mozilla
Minimal test - lines (10, 27)
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.748383207835454
new: 1.241584706986177
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 10.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.time
old: 63.868492957779914
new: 42.42424242424242
path: .spaces[0].spaces[0].metrics.halstead.length
old: 38.0
new: 40.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 20.0
new: 16.0
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 7.0
new: 4.7727272727272725
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.03658065923319219
new: 0.027848585803083945
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 10.0
new: 11.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 164.2332676057198
new: 160.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 14.0
new: 21.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 24.0
new: 19.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 66.43856189774725
new: 49.66338827944708
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 1149.6328732400384
new: 763.6363636363636
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.14285714285714285
new: 0.20952380952380953
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 0.0
new: null
path: .spaces[0].spaces[0].metrics.nargs.average
old: 4.0
new: null
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 4.0
new: 0.0
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 112.71955912580437
new: 97.55507368286624
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 87.02091682937993
new: 101.58075092370922
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 65.91787083380372
new: 57.04975069173465
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 7.0
new: 18.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 0.0
new: 5.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 7.0
new: 8.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 0.0
new: 5.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.0
new: null
path: .spaces[0].spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nom.total
old: 1.0
new: 0.0
Code
namespace widget {
// Start the audio session in the current process
nsresult StartAudioSession();
// Pass the information necessary to start an audio session in another process
nsresult GetAudioSessionData(nsID& aID, nsString& aSessionName,
nsString& aIconPath);
// Receive the information necessary to start an audio session in a non-chrome
// process
nsresult RecvAudioSessionData(const nsID& aID, const nsString& aSessionName,
const nsString& aIconPath);
// Stop the audio session in the current process
nsresult StopAudioSession();
} // namespace widget