# Global Metrics

path: .metrics.mi.mi_original
old: 61.816313992056976
new: 5.7361828704925415
path: .metrics.mi.mi_sei
old: 53.032321105446144
new: -22.2039920612875
path: .metrics.mi.mi_visual_studio
old: 36.14989122342513
new: 3.3544929067207847
path: .metrics.cyclomatic.average
old: 1.0
new: 1.5454545454545454
path: .metrics.cyclomatic.sum
old: 4.0
new: 51.0
path: .metrics.nom.closures
old: 0.0
new: 1.0
path: .metrics.nom.functions
old: 0.0
new: 31.0
path: .metrics.nom.total
old: 0.0
new: 32.0
path: .metrics.halstead.purity_ratio
old: 1.7952262868449955
new: 0.5521917719637666
path: .metrics.halstead.effort
old: 2828.8138553223066
new: 940169.2567486784
path: .metrics.halstead.n1
old: 5.0
new: 24.0
path: .metrics.halstead.bugs
old: 0.0666727434129234
new: 3.1990137674203827
path: .metrics.halstead.estimated_program_length
old: 265.6934904530594
new: 1056.895051538649
path: .metrics.halstead.difficulty
old: 3.369565217391304
new: 67.25373134328358
path: .metrics.halstead.N1
old: 86.0
new: 1163.0
path: .metrics.halstead.n2
old: 46.0
new: 134.0
path: .metrics.halstead.length
old: 148.0
new: 1914.0
path: .metrics.halstead.time
old: 157.1563252956837
new: 52231.625374926574
path: .metrics.halstead.volume
old: 839.5189506117813
new: 13979.436352010976
path: .metrics.halstead.vocabulary
old: 51.0
new: 158.0
path: .metrics.halstead.N2
old: 62.0
new: 751.0
path: .metrics.halstead.level
old: 0.29677419354838713
new: 0.014869063470927653
path: .metrics.nargs.average
old: null
new: 2.21875
path: .metrics.nargs.sum
old: 0.0
new: 71.0
path: .metrics.cognitive.sum
old: 0.0
new: 16.0
path: .metrics.cognitive.average
old: null
new: 0.5
path: .metrics.loc.ploc
old: 44.0
new: 310.0
path: .metrics.loc.blank
old: 17.0
new: 81.0
path: .metrics.loc.lloc
old: 0.0
new: 60.0
path: .metrics.loc.cloc
old: 31.0
new: 219.0
path: .metrics.loc.sloc
old: 92.0
new: 610.0
path: .metrics.nexits.sum
old: 0.0
new: 20.0
path: .metrics.nexits.average
old: null
new: 0.625

# Spaces Data

## Minimal test - lines (68, 73)

path: .spaces[2].metrics.nexits.average
old: null
new: 1.0
path: .spaces[2].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[2].metrics.loc.cloc
old: 7.0
new: 0.0
path: .spaces[2].metrics.loc.blank
old: 5.0
new: 0.0
path: .spaces[2].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[2].metrics.loc.ploc
old: 21.0
new: 6.0
path: .spaces[2].metrics.loc.sloc
old: 33.0
new: 6.0
path: .spaces[2].metrics.mi.mi_original
old: 82.46214895321658
new: 115.1926125984098
path: .spaces[2].metrics.mi.mi_sei
old: 76.09313260105444
new: 90.58877881016107
path: .spaces[2].metrics.mi.mi_visual_studio
old: 48.2234789200097
new: 67.36410093474257
path: .spaces[2].metrics.halstead.effort
old: 1360.1148799932405
new: 1154.99278922706
path: .spaces[2].metrics.halstead.level
old: 0.3243243243243243
new: 0.14285714285714285
path: .spaces[2].metrics.halstead.N2
old: 37.0
new: 14.0
path: .spaces[2].metrics.halstead.difficulty
old: 3.0833333333333335
new: 7.0
path: .spaces[2].metrics.halstead.vocabulary
old: 35.0
new: 22.0
path: .spaces[2].metrics.halstead.n1
old: 5.0
new: 11.0
path: .spaces[2].metrics.halstead.time
old: 75.56193777740224
new: 64.16626606817
path: .spaces[2].metrics.halstead.n2
old: 30.0
new: 11.0
path: .spaces[2].metrics.halstead.volume
old: 441.1183394572671
new: 164.99896988958
path: .spaces[2].metrics.halstead.length
old: 86.0
new: 37.0
path: .spaces[2].metrics.halstead.N1
old: 49.0
new: 23.0
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.8467018411940976
new: 2.0569593408113658
path: .spaces[2].metrics.halstead.estimated_program_length
old: 158.81635834269238
new: 76.10749561002054
path: .spaces[2].metrics.halstead.bugs
old: 0.04091938896307815
new: 0.03669427070256823
path: .spaces[2].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[2].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[2].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[2].metrics.nargs.average
old: null
new: 3.0
path: .spaces[2].metrics.nargs.sum
old: 0.0
new: 3.0

### Code

    [[nodiscard]] inline bool CopyUTF8toUTF16(mozilla::Span aSource,
                                              nsAString& aDest,
                                              const mozilla::fallible_t&) {
      return nsstring_fallible_append_utf8_impl(&aDest, aSource.Elements(),
                                                aSource.Length(), 0);
    }

## Minimal test - lines (50, 54)

path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.nexits.average
old: null
new: 1.0
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.halstead.effort
old: 54.74342098012329
new: 2457.729489920931
path: .spaces[0].metrics.halstead.n2
old: 4.0
new: 7.0
path: .spaces[0].metrics.halstead.time
old: 3.041301165562405
new: 136.54052721782952
path: .spaces[0].metrics.halstead.n1
old: 3.0
new: 12.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 12.754887502163468
new: 62.6710344630571
path: .spaces[0].metrics.halstead.bugs
old: 0.004805811152760805
new: 0.06070644470120543
path: .spaces[0].metrics.halstead.length
old: 13.0
new: 45.0
path: .spaces[0].metrics.halstead.level
old: 0.6666666666666666
new: 0.07777777777777778
path: .spaces[0].metrics.halstead.difficulty
old: 1.5
new: 12.857142857142858
path: .spaces[0].metrics.halstead.vocabulary
old: 7.0
new: 19.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9811451924741128
new: 1.3926896547346022
path: .spaces[0].metrics.halstead.N2
old: 4.0
new: 15.0
path: .spaces[0].metrics.halstead.volume
old: 36.49561398674886
new: 191.1567381049613
path: .spaces[0].metrics.halstead.N1
old: 9.0
new: 30.0
path: .spaces[0].metrics.loc.sloc
old: 6.0
new: 5.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 6.0
new: 5.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.mi.mi_sei
old: 101.90742131394536
new: 93.74598119111108
path: .spaces[0].metrics.mi.mi_visual_studio
old: 71.95210394016014
new: 68.64387048375582
path: .spaces[0].metrics.mi.mi_original
old: 123.03809773767384
new: 117.38101852722244

### Code

    inline size_t Distance(const nsReadingIterator& aStart,
                           const nsReadingIterator& aEnd) {
      MOZ_ASSERT(aStart.get() <= aEnd.get());
      return static_cast(aEnd.get() - aStart.get());
    }

## Minimal test - lines (56, 60)

path: .spaces[1].metrics.loc.sloc
old: 11.0
new: 5.0
path: .spaces[1].metrics.loc.ploc
old: 6.0
new: 5.0
path: .spaces[1].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[1].metrics.loc.blank
old: 3.0
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[1].metrics.nexits.average
old: null
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[1].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[1].metrics.nargs.average
old: null
new: 2.0
path: .spaces[1].metrics.halstead.effort
old: 175.77088661170188
new: 2457.729489920931
path: .spaces[1].metrics.halstead.time
old: 9.76504925620566
new: 136.54052721782952
path: .spaces[1].metrics.halstead.vocabulary
old: 13.0
new: 19.0
path: .spaces[1].metrics.halstead.difficulty
old: 2.5
new: 12.857142857142858
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.8741916039177269
new: 1.3926896547346022
path: .spaces[1].metrics.halstead.estimated_program_length
old: 35.60964047443681
new: 62.6710344630571
path: .spaces[1].metrics.halstead.N2
old: 8.0
new: 15.0
path: .spaces[1].metrics.halstead.n2
old: 8.0
new: 7.0
path: .spaces[1].metrics.halstead.n1
old: 5.0
new: 12.0
path: .spaces[1].metrics.halstead.bugs
old: 0.010459478724336295
new: 0.06070644470120543
path: .spaces[1].metrics.halstead.length
old: 19.0
new: 45.0
path: .spaces[1].metrics.halstead.N1
old: 11.0
new: 30.0
path: .spaces[1].metrics.halstead.level
old: 0.4
new: 0.07777777777777778
path: .spaces[1].metrics.halstead.volume
old: 70.30835464468075
new: 191.1567381049613
path: .spaces[1].metrics.mi.mi_sei
old: 113.500640274234
new: 93.74598119111108
path: .spaces[1].metrics.mi.mi_visual_studio
old: 64.2158276498749
new: 68.64387048375582
path: .spaces[1].metrics.mi.mi_original
old: 109.80906528128608
new: 117.38101852722244

### Code

    inline size_t Distance(const nsReadingIterator& aStart,
                           const nsReadingIterator& aEnd) {
      MOZ_ASSERT(aStart.get() <= aEnd.get());
      return static_cast(aEnd.get() - aStart.get());
    }