# Global Metrics

path: .metrics.cognitive.average
old: 0.0
new: 2.182795698924731
path: .metrics.cognitive.sum
old: 0.0
new: 203.0
path: .metrics.cyclomatic.average
old: 1.0
new: 2.938144329896907
path: .metrics.cyclomatic.sum
old: 19.0
new: 285.0
path: .metrics.nargs.average
old: 0.2857142857142857
new: 1.7311827956989247
path: .metrics.nargs.sum
old: 4.0
new: 161.0
path: .metrics.nexits.sum
old: 10.0
new: 113.0
path: .metrics.nexits.average
old: 0.7142857142857143
new: 1.2150537634408602
path: .metrics.nom.functions
old: 14.0
new: 93.0
path: .metrics.nom.total
old: 14.0
new: 93.0
path: .metrics.mi.mi_visual_studio
old: 23.83788427423123
new: 0.0
path: .metrics.mi.mi_original
old: 40.7627821089354
new: -69.3812607015877
path: .metrics.mi.mi_sei
old: 20.168125817357097
new: -121.21750829336098
path: .metrics.loc.ploc
old: 107.0
new: 1113.0
path: .metrics.loc.sloc
old: 178.0
new: 1492.0
path: .metrics.loc.lloc
old: 14.0
new: 464.0
path: .metrics.loc.blank
old: 26.0
new: 200.0
path: .metrics.loc.cloc
old: 45.0
new: 179.0
path: .metrics.halstead.level
old: 0.06072874493927126
new: 0.005653632915086081
path: .metrics.halstead.volume
old: 3171.580924750913
new: 51769.779796342766
path: .metrics.halstead.length
old: 491.0
new: 6108.0
path: .metrics.halstead.N2
old: 190.0
new: 2384.0
path: .metrics.halstead.difficulty
old: 16.466666666666665
new: 176.8774193548387
path: .metrics.halstead.purity_ratio
old: 1.0494238658310089
new: 0.4616375926021016
path: .metrics.halstead.n2
old: 75.0
new: 310.0
path: .metrics.halstead.time
old: 2901.409216346205
new: 508716.94727474306
path: .metrics.halstead.vocabulary
old: 88.0
new: 356.0
path: .metrics.halstead.N1
old: 301.0
new: 3724.0
path: .metrics.halstead.estimated_program_length
old: 515.2671181230253
new: 2819.6824156136367
path: .metrics.halstead.bugs
old: 0.46572877634554827
new: 14.589639220464472
path: .metrics.halstead.effort
old: 52225.36589423169
new: 9156905.050945375
path: .metrics.halstead.n1
old: 13.0
new: 46.0

# Spaces Data

## Minimal test - lines (44, 54)

path: .spaces[0].metrics.halstead.vocabulary
old: 84.0
new: 34.0
path: .spaces[0].metrics.halstead.difficulty
old: 16.93661971830986
new: 8.181818181818182
path: .spaces[0].metrics.halstead.estimated_program_length
old: 484.7377618206666
new: 141.1270456186744
path: .spaces[0].metrics.halstead.n2
old: 71.0
new: 22.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9974028021001372
new: 2.1063738152040954
path: .spaces[0].metrics.halstead.bugs
old: 0.4680507771897748
new: 0.06604338583227906
path: .spaces[0].metrics.halstead.n1
old: 13.0
new: 12.0
path: .spaces[0].metrics.halstead.time
old: 2923.134731324921
new: 154.9363683471694
path: .spaces[0].metrics.halstead.volume
old: 3106.6662674704776
new: 340.86001036377274
path: .spaces[0].metrics.halstead.N1
old: 301.0
new: 37.0
path: .spaces[0].metrics.halstead.effort
old: 52616.42516384858
new: 2788.8546302490495
path: .spaces[0].metrics.halstead.N2
old: 185.0
new: 30.0
path: .spaces[0].metrics.halstead.level
old: 0.05904365904365904
new: 0.12222222222222222
path: .spaces[0].metrics.halstead.length
old: 486.0
new: 67.0
path: .spaces[0].metrics.loc.blank
old: 23.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 14.0
new: 2.0
path: .spaces[0].metrics.loc.cloc
old: 28.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 100.0
new: 10.0
path: .spaces[0].metrics.loc.sloc
old: 151.0
new: 11.0
path: .spaces[0].metrics.nargs.average
old: 0.2857142857142857
new: 4.0
path: .spaces[0].metrics.cyclomatic.sum
old: 18.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .spaces[0].metrics.nexits.sum
old: 10.0
new: 0.0
path: .spaces[0].metrics.nexits.average
old: 0.7142857142857143
new: 0.0
path: .spaces[0].metrics.mi.mi_original
old: 43.765278092920795
new: 101.37044287641666
path: .spaces[0].metrics.mi.mi_sei
old: 20.207685050518823
new: 70.74942295732049
path: .spaces[0].metrics.mi.mi_visual_studio
old: 25.59372987890105
new: 59.28096074644249
path: .spaces[0].metrics.nom.functions
old: 14.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 14.0
new: 1.0

### Code

    nsTSubstring::nsTSubstring(char_type* aData, size_type aLength,
                                  DataFlags aDataFlags, ClassFlags aClassFlags)
        : ::mozilla::detail::nsTStringRepr(aData, aLength, aDataFlags,
                                              aClassFlags) {
      AssertValid();
      MOZ_RELEASE_ASSERT(CheckCapacity(aLength), "String is too large.");

      if (aDataFlags & DataFlags::OWNED) {
        STRING_STAT_INCREMENT(Adopt);
        MOZ_LOG_CTOR(this->mData, "StringAdopt", 1);
      }