# Global Metrics

path: .metrics.cognitive.sum
old: 7.0
new: 1.0
path: .metrics.cognitive.average
old: 0.4375
new: 0.25
path: .metrics.cyclomatic.sum
old: 29.0
new: 8.0
path: .metrics.cyclomatic.average
old: 1.45
new: 1.1428571428571428
path: .metrics.nexits.sum
old: 16.0
new: 1.0
path: .metrics.nexits.average
old: 1.0
new: 0.25
path: .metrics.nargs.average
old: 0.875
new: 0.25
path: .metrics.nargs.sum
old: 14.0
new: 1.0
path: .metrics.nom.functions
old: 16.0
new: 4.0
path: .metrics.nom.total
old: 16.0
new: 4.0
path: .metrics.loc.lloc
old: 26.0
new: 1.0
path: .metrics.loc.sloc
old: 124.0
new: 93.0
path: .metrics.loc.ploc
old: 77.0
new: 36.0
path: .metrics.loc.cloc
old: 33.0
new: 45.0
path: .metrics.loc.blank
old: 14.0
new: 12.0
path: .metrics.halstead.N1
old: 257.0
new: 57.0
path: .metrics.halstead.difficulty
old: 44.4
new: 5.7272727272727275
path: .metrics.halstead.vocabulary
old: 56.0
new: 29.0
path: .metrics.halstead.N2
old: 148.0
new: 36.0
path: .metrics.halstead.length
old: 405.0
new: 93.0
path: .metrics.halstead.time
old: 5801.547567135545
new: 143.75207399218405
path: .metrics.halstead.volume
old: 2351.9787434333293
new: 451.79223254686417
path: .metrics.halstead.purity_ratio
old: 0.6710211641269822
new: 1.266225592090578
path: .metrics.halstead.level
old: 0.022522522522522525
new: 0.1746031746031746
path: .metrics.halstead.bugs
old: 0.7391904038992595
new: 0.06282557828980748
path: .metrics.halstead.effort
old: 104427.8562084398
new: 2587.537331859313
path: .metrics.halstead.estimated_program_length
old: 271.7635714714278
new: 117.75898006442377
path: .metrics.halstead.n2
old: 35.0
new: 22.0
path: .metrics.halstead.n1
old: 21.0
new: 7.0
path: .metrics.mi.mi_sei
old: 29.27347706564869
new: 61.40610287699547
path: .metrics.mi.mi_visual_studio
old: 26.826768904283703
new: 37.39364425166499
path: .metrics.mi.mi_original
old: 45.87377482632513
new: 63.94313167034713

# Spaces Data

## Minimal test - lines (43, 75)

path: .spaces[0].metrics.nexits.average
old: 1.0
new: null
path: .spaces[0].metrics.nexits.sum
old: 16.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.875
new: null
path: .spaces[0].metrics.nargs.sum
old: 14.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.4736842105263157
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 28.0
new: 1.0
path: .spaces[0].metrics.mi.mi_original
old: 49.46763382079233
new: 91.8413184498534
path: .spaces[0].metrics.mi.mi_visual_studio
old: 28.928440830872702
new: 53.70837336248737
path: .spaces[0].metrics.mi.mi_sei
old: 30.839801015926987
new: 104.12103117386862
path: .spaces[0].metrics.halstead.vocabulary
old: 51.0
new: 11.0
path: .spaces[0].metrics.halstead.N2
old: 142.0
new: 7.0
path: .spaces[0].metrics.halstead.difficulty
old: 49.7
new: 2.0
path: .spaces[0].metrics.halstead.time
old: 6249.216458827631
new: 8.072007110153693
path: .spaces[0].metrics.halstead.n2
old: 30.0
new: 7.0
path: .spaces[0].metrics.halstead.N1
old: 257.0
new: 14.0
path: .spaces[0].metrics.halstead.level
old: 0.02012072434607646
new: 0.5
path: .spaces[0].metrics.halstead.volume
old: 2263.297711446626
new: 72.64806399138324
path: .spaces[0].metrics.halstead.estimated_program_length
old: 239.4453837466095
new: 27.651484454403228
path: .spaces[0].metrics.halstead.n1
old: 21.0
new: 4.0
path: .spaces[0].metrics.halstead.effort
old: 112485.89625889737
new: 145.29612798276648
path: .spaces[0].metrics.halstead.length
old: 399.0
new: 21.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.6001137437258385
new: 1.3167373549715822
path: .spaces[0].metrics.halstead.bugs
old: 0.7767432012758274
new: 0.00921258354248177
path: .spaces[0].metrics.loc.lloc
old: 26.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 102.0
new: 33.0
path: .spaces[0].metrics.loc.ploc
old: 68.0
new: 8.0
path: .spaces[0].metrics.loc.blank
old: 13.0
new: 4.0
path: .spaces[0].metrics.cognitive.average
old: 0.4375
new: null
path: .spaces[0].metrics.cognitive.sum
old: 7.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 16.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 16.0
new: 0.0

### Code

    namespace mozilla {

    /**
     * Check if a file is registered as a debug file.
     */
    bool IsDebugFile(intptr_t aFileID);

    /**
     * Initialize IO poisoning, this is only safe to do on the main-thread when no
     * other threads are running.
     *
     * Please, note that this probably has performance implications as all
     */
    void InitPoisonIOInterposer();

    #    ifdef XP_MACOSX
    /**
     * Check that writes are dirty before reporting I/O (Mac OS X only)
     * This is necessary for late-write checks on Mac OS X, but reading the buffer
     * from file to see if we're writing dirty bits is expensive, so we don't want
     * to do this for everything else that uses
     */
    void OnlyReportDirtyWrites();
    #    endif /* XP_MACOSX */

    /**
     * Clear IO poisoning, this is only safe to do on the main-thread when no other
     * threads are running.
     * Never called! See bug 1647107.
     */
    void ClearPoisonIOInterposer();

    }  // namespace mozilla