# Global Metrics

path: .metrics.loc.sloc
old: 85.0
new: 115.0
path: .metrics.loc.ploc
old: 39.0
new: 67.0
path: .metrics.loc.blank
old: 13.0
new: 20.0
path: .metrics.loc.cloc
old: 33.0
new: 28.0
path: .metrics.nom.total
old: 4.0
new: 9.0
path: .metrics.nom.functions
old: 4.0
new: 9.0
path: .metrics.mi.mi_original
old: 59.75788175935397
new: 50.01751016783018
path: .metrics.mi.mi_visual_studio
old: 34.94612968383273
new: 29.25000594609952
path: .metrics.mi.mi_sei
old: 52.741970787054214
new: 32.89807682109731
path: .metrics.halstead.purity_ratio
old: 0.9862857797822724
new: 1.0127712724352729
path: .metrics.halstead.N1
old: 131.0
new: 210.0
path: .metrics.halstead.level
old: 0.03508771929824561
new: 0.03333333333333333
path: .metrics.halstead.effort
old: 33373.36133849647
new: 65422.29693209419
path: .metrics.halstead.difficulty
old: 28.5
new: 30.0
path: .metrics.halstead.volume
old: 1170.995134684087
new: 2180.7432310698064
path: .metrics.halstead.bugs
old: 0.3455243927490682
new: 0.5412060014280632
path: .metrics.halstead.time
old: 1854.0756299164705
new: 3634.5720517830105
path: .metrics.halstead.n2
old: 27.0
new: 49.0
path: .metrics.halstead.n1
old: 19.0
new: 20.0
path: .metrics.halstead.vocabulary
old: 46.0
new: 69.0
path: .metrics.halstead.estimated_program_length
old: 209.09258531384177
new: 361.5593442593925
path: .metrics.halstead.length
old: 212.0
new: 357.0
path: .metrics.halstead.N2
old: 81.0
new: 147.0
path: .metrics.cognitive.sum
old: 5.0
new: 6.0
path: .metrics.cognitive.average
old: 1.25
new: 0.6666666666666666
path: .metrics.cyclomatic.average
old: 1.8333333333333333
new: 1.5
path: .metrics.cyclomatic.sum
old: 11.0
new: 18.0
path: .metrics.nargs.average
old: 0.75
new: 1.2222222222222223
path: .metrics.nargs.sum
old: 3.0
new: 11.0
path: .metrics.nexits.average
old: 0.5
new: 0.7777777777777778
path: .metrics.nexits.sum
old: 2.0
new: 7.0

# Spaces Data

## Minimal test - lines (25, 25)

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 124.3651463827197
new: 150.97852096297217
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 103.82194781317143
new: 142.21693134142208
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 72.72815577936825
new: 88.2915327268843
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 4.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 4.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 2.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.18181818181818185
new: 0.2777777777777778
path: .spaces[0].spaces[0].metrics.halstead.time
old: 30.555555555555557
new: 8.994522208456974
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 16.0
new: 11.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 14.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 25.0
new: 13.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.022376244815288552
new: 0.00990176194569736
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 8.0
new: 6.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 8.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 550.0
new: 161.90139975222553
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 100.0
new: 44.97261104228487
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 5.5
new: 3.6
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 48.0
new: 27.11941547876375
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.92
new: 2.0861088829818266
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 11.0
new: 6.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0

### Code

      static UserDataType Unwrap(DataType& src) { return src.get(); }

## Minimal test - lines (26, 26)

path: .spaces[0].spaces[1].metrics.halstead.N1
old: 42.0
new: 8.0
path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 0.0912144285577782
new: 0.012071899518694805
path: .spaces[0].spaces[1].metrics.halstead.vocabulary
old: 27.0
new: 11.0
path: .spaces[0].spaces[1].metrics.halstead.estimated_program_length
old: 101.40868524464064
new: 27.11941547876375
path: .spaces[0].spaces[1].metrics.halstead.time
old: 251.4807167810901
new: 12.10801066523054
path: .spaces[0].spaces[1].metrics.halstead.N2
old: 26.0
new: 7.0
path: .spaces[0].spaces[1].metrics.halstead.level
old: 0.07142857142857142
new: 0.23809523809523808
path: .spaces[0].spaces[1].metrics.halstead.n1
old: 14.0
new: 6.0
path: .spaces[0].spaces[1].metrics.halstead.effort
old: 4526.652902059622
new: 217.94419197414973
path: .spaces[0].spaces[1].metrics.halstead.n2
old: 13.0
new: 5.0
path: .spaces[0].spaces[1].metrics.halstead.difficulty
old: 14.0
new: 4.2
path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 1.4913041947741272
new: 1.8079610319175832
path: .spaces[0].spaces[1].metrics.halstead.volume
old: 323.33235014711585
new: 51.89147427955946
path: .spaces[0].spaces[1].metrics.halstead.length
old: 68.0
new: 15.0
path: .spaces[0].spaces[1].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.nargs.sum
old: 2.0
new: 1.0
path: .spaces[0].spaces[1].metrics.nargs.average
old: 2.0
new: 1.0
path: .spaces[0].spaces[1].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[0].spaces[1].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[1].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[0].spaces[1].metrics.loc.lloc
old: 5.0
new: 1.0
path: .spaces[0].spaces[1].metrics.loc.sloc
old: 16.0
new: 1.0
path: .spaces[0].spaces[1].metrics.loc.blank
old: 3.0
new: 0.0
path: .spaces[0].spaces[1].metrics.loc.ploc
old: 11.0
new: 1.0
path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 55.89176774332991
new: 87.72186934271383
path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 95.57492284109414
new: 150.00439657604065
path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 88.42546991862403
new: 140.91338677859144

### Code

      static DataType Wrap(UserDataType&& src) { return DataType(std::move(src)); }

## Minimal test - lines (27, 27)

path: .spaces[0].spaces[2].metrics.cognitive.sum
old: 4.0
new: 0.0
path: .spaces[0].spaces[2].metrics.cognitive.average
old: 4.0
new: 0.0
path: .spaces[0].spaces[2].metrics.nargs.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[2].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[2].metrics.mi.mi_visual_studio
old: 51.9276004281008
new: 88.80070420559018
path: .spaces[0].spaces[2].metrics.mi.mi_original
old: 88.79619673205235
new: 151.8492041915592
path: .spaces[0].spaces[2].metrics.mi.mi_sei
old: 80.54655712023455
new: 143.47306171748977
path: .spaces[0].spaces[2].metrics.cyclomatic.average
old: 5.0
new: 1.0
path: .spaces[0].spaces[2].metrics.cyclomatic.sum
old: 5.0
new: 1.0
path: .spaces[0].spaces[2].metrics.nexits.sum
old: 2.0
new: 1.0
path: .spaces[0].spaces[2].metrics.nexits.average
old: 2.0
new: 1.0
path: .spaces[0].spaces[2].metrics.halstead.bugs
old: 0.15606287735851238
new: 0.009100244885764636
path: .spaces[0].spaces[2].metrics.halstead.time
old: 562.8060945466314
new: 7.92481250360578
path: .spaces[0].spaces[2].metrics.halstead.n1
old: 17.0
new: 5.0
path: .spaces[0].spaces[2].metrics.halstead.N2
old: 32.0
new: 6.0
path: .spaces[0].spaces[2].metrics.halstead.estimated_program_length
old: 112.50641830990963
new: 19.60964047443681
path: .spaces[0].spaces[2].metrics.halstead.purity_ratio
old: 1.22289585119467
new: 1.6341367062030674
path: .spaces[0].spaces[2].metrics.halstead.effort
old: 10130.509701839364
new: 142.64662506490404
path: .spaces[0].spaces[2].metrics.halstead.volume
old: 446.9342515517366
new: 38.039100017307746
path: .spaces[0].spaces[2].metrics.halstead.length
old: 92.0
new: 12.0
path: .spaces[0].spaces[2].metrics.halstead.difficulty
old: 22.666666666666668
new: 3.75
path: .spaces[0].spaces[2].metrics.halstead.level
old: 0.044117647058823525
new: 0.26666666666666666
path: .spaces[0].spaces[2].metrics.halstead.vocabulary
old: 29.0
new: 9.0
path: .spaces[0].spaces[2].metrics.halstead.n2
old: 12.0
new: 4.0
path: .spaces[0].spaces[2].metrics.halstead.N1
old: 60.0
new: 6.0
path: .spaces[0].spaces[2].metrics.loc.blank
old: 3.0
new: 0.0
path: .spaces[0].spaces[2].metrics.loc.sloc
old: 21.0
new: 1.0
path: .spaces[0].spaces[2].metrics.loc.ploc
old: 15.0
new: 1.0
path: .spaces[0].spaces[2].metrics.loc.lloc
old: 7.0
new: 1.0
path: .spaces[0].spaces[2].metrics.loc.cloc
old: 3.0
new: 0.0

### Code

      static DataType Wrap(const UserDataType& src) { return DataType(src); }

## Minimal test - lines (20, 28)

path: .spaces[0].metrics.cyclomatic.sum
old: 10.0
new: 5.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.25
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 3.0
path: .spaces[0].metrics.nexits.average
old: 0.5
new: 1.0
path: .spaces[0].metrics.halstead.bugs
old: 0.35562553132515184
new: 0.08561700576741005
path: .spaces[0].metrics.halstead.N1
old: 130.0
new: 31.0
path: .spaces[0].metrics.halstead.effort
old: 34847.47225469687
new: 4116.441380011882
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9170659748689224
new: 1.4522320943697824
path: .spaces[0].metrics.halstead.vocabulary
old: 43.0
new: 23.0
path: .spaces[0].metrics.halstead.n1
old: 19.0
new: 13.0
path: .spaces[0].metrics.halstead.n2
old: 24.0
new: 10.0
path: .spaces[0].metrics.halstead.length
old: 208.0
new: 56.0
path: .spaces[0].metrics.halstead.time
old: 1935.9706808164929
new: 228.6911877784379
path: .spaces[0].metrics.halstead.level
old: 0.032388663967611336
new: 0.06153846153846154
path: .spaces[0].metrics.halstead.difficulty
old: 30.875
new: 16.25
path: .spaces[0].metrics.halstead.N2
old: 78.0
new: 25.0
path: .spaces[0].metrics.halstead.volume
old: 1128.6630689780363
new: 253.3194695391927
path: .spaces[0].metrics.halstead.estimated_program_length
old: 190.74972277273588
new: 81.32499728470782
path: .spaces[0].metrics.cognitive.average
old: 1.25
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 5.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.75
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 4.0
new: 3.0
path: .spaces[0].metrics.nom.total
old: 4.0
new: 3.0
path: .spaces[0].metrics.loc.lloc
old: 16.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 5.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 36.0
new: 8.0
path: .spaces[0].metrics.loc.sloc
old: 52.0
new: 9.0
path: .spaces[0].metrics.loc.blank
old: 11.0
new: 1.0
path: .spaces[0].metrics.mi.mi_sei
old: 46.72880877836333
new: 76.97618137980054
path: .spaces[0].metrics.mi.mi_visual_studio
old: 39.84804006395941
new: 61.68115466407777
path: .spaces[0].metrics.mi.mi_original
old: 68.14014850937059
new: 105.474774475573

### Code

    class nsUniquePtrConverter {
     public:
      using UserDataType = T*;
      using DataType = mozilla::UniquePtr;

      static UserDataType Unwrap(DataType& src) { return src.get(); }
      static DataType Wrap(UserDataType&& src) { return DataType(std::move(src)); }
      static DataType Wrap(const UserDataType& src) { return DataType(src); }
    };