# Global Metrics

path: .metrics.nargs.average
old: 1.0
new: 1.3333333333333333
path: .metrics.nargs.sum
old: 1.0
new: 4.0
path: .metrics.nom.functions
old: 1.0
new: 3.0
path: .metrics.nom.total
old: 1.0
new: 3.0
path: .metrics.halstead.level
old: 0.1045751633986928
new: 0.059233449477351915
path: .metrics.halstead.length
old: 237.0
new: 199.0
path: .metrics.halstead.purity_ratio
old: 1.018592611006225
new: 1.9172480317532672
path: .metrics.halstead.N1
old: 152.0
new: 117.0
path: .metrics.halstead.time
old: 706.9270613106305
new: 1151.5781915273683
path: .metrics.halstead.difficulty
old: 9.5625
new: 16.88235294117647
path: .metrics.halstead.vocabulary
old: 49.0
new: 72.0
path: .metrics.halstead.estimated_program_length
old: 241.40644880847532
new: 381.5323583189002
path: .metrics.halstead.n1
old: 9.0
new: 21.0
path: .metrics.halstead.n2
old: 40.0
new: 51.0
path: .metrics.halstead.N2
old: 85.0
new: 82.0
path: .metrics.halstead.volume
old: 1330.6862330553045
new: 1227.81507528702
path: .metrics.halstead.effort
old: 12724.687103591348
new: 20728.407447492635
path: .metrics.halstead.bugs
old: 0.18168126841056065
new: 0.2515297561553671
path: .metrics.loc.blank
old: 13.0
new: 8.0
path: .metrics.loc.lloc
old: 10.0
new: 16.0
path: .metrics.loc.cloc
old: 20.0
new: 10.0
path: .metrics.loc.sloc
old: 69.0
new: 66.0
path: .metrics.loc.ploc
old: 36.0
new: 48.0
path: .metrics.nexits.average
old: 0.0
new: 1.6666666666666667
path: .metrics.nexits.sum
old: 0.0
new: 5.0
path: .metrics.cognitive.average
old: 1.0
new: 2.0
path: .metrics.cognitive.sum
old: 1.0
new: 6.0
path: .metrics.cyclomatic.sum
old: 3.0
new: 13.0
path: .metrics.cyclomatic.average
old: 1.5
new: 1.8571428571428572
path: .metrics.mi.mi_visual_studio
old: 37.609084415601345
new: 36.929846398642916
path: .metrics.mi.mi_sei
old: 54.41972439449234
new: 45.085783042073494
path: .metrics.mi.mi_original
old: 64.3115343506783
new: 63.15003734167938

# Spaces Data

## Minimal test - lines (16, 30)

path: .spaces[0].metrics.halstead.level
old: 0.18055555555555555
new: 0.13986013986013984
path: .spaces[0].metrics.halstead.N2
old: 36.0
new: 13.0
path: .spaces[0].metrics.halstead.difficulty
old: 5.538461538461538
new: 7.15
path: .spaces[0].metrics.halstead.n1
old: 8.0
new: 11.0
path: .spaces[0].metrics.halstead.effort
old: 2085.0770783216776
new: 1287.6078524875938
path: .spaces[0].metrics.halstead.time
old: 115.83761546231544
new: 71.5337695826441
path: .spaces[0].metrics.halstead.estimated_program_length
old: 146.21143267166838
new: 71.27302875388389
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.9758301712387616
new: 1.7383665549727778
path: .spaces[0].metrics.halstead.vocabulary
old: 34.0
new: 21.0
path: .spaces[0].metrics.halstead.bugs
old: 0.054403497589056805
new: 0.03945189085782598
path: .spaces[0].metrics.halstead.n2
old: 26.0
new: 10.0
path: .spaces[0].metrics.halstead.N1
old: 38.0
new: 28.0
path: .spaces[0].metrics.halstead.volume
old: 376.4722502525251
new: 180.0850143339292
path: .spaces[0].metrics.halstead.length
old: 74.0
new: 41.0
path: .spaces[0].metrics.nargs.average
old: 1.0
new: 0.5
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 0.5
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: 1.0
new: 0.5
path: .spaces[0].metrics.mi.mi_original
old: 94.78367213163718
new: 98.9737557276652
path: .spaces[0].metrics.mi.mi_visual_studio
old: 55.42904803019718
new: 57.8793893144241
path: .spaces[0].metrics.mi.mi_sei
old: 61.24672146835458
new: 87.06811098690035
path: .spaces[0].metrics.loc.blank
old: 1.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 16.0
new: 15.0
path: .spaces[0].metrics.loc.lloc
old: 10.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 15.0
new: 12.0
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.25
path: .spaces[0].metrics.cyclomatic.sum
old: 2.0
new: 5.0
path: .spaces[0].metrics.nom.functions
old: 1.0
new: 2.0
path: .spaces[0].metrics.nom.total
old: 1.0
new: 2.0

### Code

    namespace {

    // Scoped type used by HandleToFilename
    struct ScopedMappedViewTraits {
      typedef void* type;
      static void* empty() { return nullptr; }
      static void release(void* aPtr) {
        if (aPtr) {
          mozilla::Unused << UnmapViewOfFile(aPtr);
        }
      }
    };
    typedef mozilla::Scoped ScopedMappedView;

    }  // namespace