# Global Metrics

path: .metrics.halstead.N1
old: 81.0
new: 254.0
path: .metrics.halstead.purity_ratio
old: 2.675934797553044
new: 1.236581496992262
path: .metrics.halstead.bugs
old: 0.15442849323512187
new: 0.6041300266562107
path: .metrics.halstead.N2
old: 88.0
new: 186.0
path: .metrics.halstead.difficulty
old: 9.333333333333334
new: 26.753424657534246
path: .metrics.halstead.effort
old: 9971.787915002336
new: 77157.38756196751
path: .metrics.halstead.length
old: 169.0
new: 440.0
path: .metrics.halstead.time
old: 553.9882175001297
new: 4286.521531220417
path: .metrics.halstead.level
old: 0.10714285714285714
new: 0.037378392217101895
path: .metrics.halstead.estimated_program_length
old: 452.2329807864644
new: 544.0958586765953
path: .metrics.halstead.n2
old: 66.0
new: 73.0
path: .metrics.halstead.n1
old: 14.0
new: 21.0
path: .metrics.halstead.vocabulary
old: 80.0
new: 94.0
path: .metrics.halstead.volume
old: 1068.4058480359645
new: 2884.0190947381607
path: .metrics.loc.ploc
old: 64.0
new: 105.0
path: .metrics.loc.cloc
old: 1.0
new: 20.0
path: .metrics.loc.sloc
old: 86.0
new: 152.0
path: .metrics.loc.blank
old: 21.0
new: 27.0
path: .metrics.loc.lloc
old: 5.0
new: 44.0
path: .metrics.mi.mi_visual_studio
old: 35.92115464059755
new: 25.35382862099786
path: .metrics.mi.mi_sei
old: 21.739936993323155
new: 15.627405911319538
path: .metrics.mi.mi_original
old: 61.42517443542181
new: 43.35504694190634
path: .metrics.cyclomatic.sum
old: 5.0
new: 21.0
path: .metrics.cyclomatic.average
old: 1.0
new: 3.5
path: .metrics.nexits.average
old: 0.5
new: 3.0
path: .metrics.nexits.sum
old: 1.0
new: 15.0
path: .metrics.cognitive.average
old: 0.0
new: 3.2
path: .metrics.cognitive.sum
old: 0.0
new: 16.0
path: .metrics.nom.functions
old: 2.0
new: 5.0
path: .metrics.nom.total
old: 2.0
new: 5.0
path: .metrics.nargs.sum
old: 2.0
new: 9.0
path: .metrics.nargs.average
old: 1.0
new: 1.8

# Spaces Data

## Minimal test - lines (20, 36)

path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 63.0
new: 17.0
path: .spaces[0].metrics.loc.lloc
old: 5.0
new: 7.0
path: .spaces[0].metrics.loc.ploc
old: 51.0
new: 14.0
path: .spaces[0].metrics.loc.blank
old: 12.0
new: 3.0
path: .spaces[0].metrics.nexits.average
old: 0.5
new: 2.0
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.cyclomatic.sum
old: 4.0
new: 3.0
path: .spaces[0].metrics.nom.functions
old: 2.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 2.0
new: 1.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 39.31193113522856
new: 55.513274819229494
path: .spaces[0].metrics.mi.mi_sei
old: 21.689296490727244
new: 61.556329533907274
path: .spaces[0].metrics.mi.mi_original
old: 67.22340224124083
new: 94.92769994088243
path: .spaces[0].metrics.nargs.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.nargs.sum
old: 2.0
new: 3.0
path: .spaces[0].metrics.halstead.volume
old: 965.5102977622352
new: 290.04813763197154
path: .spaces[0].metrics.halstead.effort
old: 9130.000885856924
new: 3366.630168942527
path: .spaces[0].metrics.halstead.bugs
old: 0.14561047716763204
new: 0.0748759511950169
path: .spaces[0].metrics.halstead.n2
old: 57.0
new: 14.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.457182800740106
new: 1.662437463026896
path: .spaces[0].metrics.halstead.level
old: 0.10575139146567718
new: 0.08615384615384615
path: .spaces[0].metrics.halstead.N1
old: 80.0
new: 36.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 385.7776997161967
new: 101.40868524464064
path: .spaces[0].metrics.halstead.N2
old: 77.0
new: 25.0
path: .spaces[0].metrics.halstead.vocabulary
old: 71.0
new: 27.0
path: .spaces[0].metrics.halstead.difficulty
old: 9.456140350877194
new: 11.607142857142858
path: .spaces[0].metrics.halstead.length
old: 157.0
new: 61.0
path: .spaces[0].metrics.halstead.n1
old: 14.0
new: 13.0
path: .spaces[0].metrics.halstead.time
old: 507.2222714364959
new: 187.03500938569593

### Code

    nsresult nsEnvironment::Create(nsISupports* aOuter, REFNSIID aIID,
                                   void** aResult) {
      nsresult rv;
      *aResult = nullptr;

      if (aOuter) {
        return NS_ERROR_NO_AGGREGATION;
      }

      nsEnvironment* obj = new nsEnvironment();

      rv = obj->QueryInterface(aIID, aResult);
      if (NS_FAILED(rv)) {
        delete obj;
      }
      return rv;
    }