# Global Metrics

path: .metrics.halstead.level
old: 0.1090909090909091
new: 0.02895114494290884
path: .metrics.halstead.difficulty
old: 9.166666666666666
new: 34.54094827586207
path: .metrics.halstead.n2
old: 30.0
new: 232.0
path: .metrics.halstead.bugs
old: 0.09588095983941144
new: 1.608316550235488
path: .metrics.halstead.length
old: 100.0
new: 1207.0
path: .metrics.halstead.n1
old: 10.0
new: 31.0
path: .metrics.halstead.N1
old: 45.0
new: 690.0
path: .metrics.halstead.N2
old: 55.0
new: 517.0
path: .metrics.halstead.volume
old: 532.1928094887363
new: 9702.975220075808
path: .metrics.halstead.purity_ratio
old: 1.804259988171292
new: 1.6376401627933634
path: .metrics.halstead.estimated_program_length
old: 180.4259988171292
new: 1976.6316764915896
path: .metrics.halstead.time
old: 271.0241159433379
new: 18619.442511033885
path: .metrics.halstead.effort
old: 4878.434086980083
new: 335149.9651986099
path: .metrics.halstead.vocabulary
old: 40.0
new: 263.0
path: .metrics.mi.mi_visual_studio
old: 39.85823302033238
new: 8.20210171070852
path: .metrics.mi.mi_sei
old: 55.51887484972992
new: -19.447420765361898
path: .metrics.mi.mi_original
old: 68.15757846476836
new: 14.025593925311568
path: .metrics.nexits.average
old: null
new: 2.7777777777777777
path: .metrics.nexits.sum
old: 0.0
new: 25.0
path: .metrics.loc.lloc
old: 0.0
new: 105.0
path: .metrics.loc.blank
old: 11.0
new: 4.0
path: .metrics.loc.sloc
old: 72.0
new: 423.0
path: .metrics.loc.cloc
old: 15.0
new: 79.0
path: .metrics.loc.ploc
old: 46.0
new: 340.0
path: .metrics.cognitive.average
old: null
new: 6.555555555555555
path: .metrics.cognitive.sum
old: 0.0
new: 59.0
path: .metrics.cyclomatic.sum
old: 4.0
new: 49.0
path: .metrics.cyclomatic.average
old: 1.0
new: 6.125
path: .metrics.nargs.sum
old: 0.0
new: 13.0
path: .metrics.nargs.average
old: null
new: 1.4444444444444444
path: .metrics.nom.functions
old: 0.0
new: 7.0
path: .metrics.nom.total
old: 0.0
new: 9.0
path: .metrics.nom.closures
old: 0.0
new: 2.0

# Spaces Data

## Minimal test - lines (133, 144)

path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 3.0
path: .spaces[0].metrics.nexits.average
old: null
new: 3.0
path: .spaces[0].metrics.loc.blank
old: 6.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 51.0
new: 12.0
path: .spaces[0].metrics.loc.ploc
old: 37.0
new: 11.0
path: .spaces[0].metrics.loc.cloc
old: 8.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 6.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 2.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_original
old: 74.3914023675369
new: 103.1326890976496
path: .spaces[0].metrics.mi.mi_visual_studio
old: 43.50374407458298
new: 60.311514092192745
path: .spaces[0].metrics.mi.mi_sei
old: 60.718293598759104
new: 73.39362670092301
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: null
new: 1.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6361127749530735
new: 1.6204527292133477
path: .spaces[0].metrics.halstead.effort
old: 4722.527645548265
new: 1417.592415123055
path: .spaces[0].metrics.halstead.N1
old: 45.0
new: 25.0
path: .spaces[0].metrics.halstead.bugs
old: 0.09382712690123476
new: 0.042064235400542
path: .spaces[0].metrics.halstead.level
old: 0.104
new: 0.125
path: .spaces[0].metrics.halstead.estimated_program_length
old: 155.430713620542
new: 66.43856189774725
path: .spaces[0].metrics.halstead.length
old: 95.0
new: 41.0
path: .spaces[0].metrics.halstead.vocabulary
old: 36.0
new: 20.0
path: .spaces[0].metrics.halstead.n2
old: 26.0
new: 10.0
path: .spaces[0].metrics.halstead.volume
old: 491.1428751370197
new: 177.19905189038187
path: .spaces[0].metrics.halstead.time
old: 262.3626469749036
new: 78.75513417350305
path: .spaces[0].metrics.halstead.N2
old: 50.0
new: 16.0
path: .spaces[0].metrics.halstead.difficulty
old: 9.615384615384617
new: 8.0

### Code

    nsLocalFile::InitWithFile(nsIFile* aFile) {
      if (NS_WARN_IF(!aFile)) {
        return NS_ERROR_INVALID_ARG;
      }

      nsAutoCString path;
      aFile->GetNativePath(path);
      if (path.IsEmpty()) {
        return NS_ERROR_INVALID_ARG;
      }
      return InitWithNativePath(path);
    }