# Global Metrics

path: .metrics.cognitive.average
old: 2.3076923076923075
new: 1.4
path: .metrics.cognitive.sum
old: 30.0
new: 14.0
path: .metrics.halstead.effort
old: 241261.31472645735
new: 166162.47257194697
path: .metrics.halstead.n1
old: 29.0
new: 28.0
path: .metrics.halstead.difficulty
old: 40.18897637795275
new: 39.325842696629216
path: .metrics.halstead.time
old: 13403.406373692074
new: 9231.248476219276
path: .metrics.halstead.level
old: 0.024882445141065832
new: 0.025428571428571425
path: .metrics.halstead.n2
old: 127.0
new: 89.0
path: .metrics.halstead.purity_ratio
old: 1.248112140872287
new: 1.1560101027213372
path: .metrics.halstead.bugs
old: 1.2918255564680925
new: 1.0074744537339366
path: .metrics.halstead.length
old: 824.0
new: 615.0
path: .metrics.halstead.N1
old: 472.0
new: 365.0
path: .metrics.halstead.volume
old: 6003.171428342493
new: 4225.274302543794
path: .metrics.halstead.estimated_program_length
old: 1028.4444040787646
new: 710.9462131736224
path: .metrics.halstead.vocabulary
old: 156.0
new: 117.0
path: .metrics.halstead.N2
old: 352.0
new: 250.0
path: .metrics.mi.mi_original
old: 24.29945074387689
new: 38.074194081295246
path: .metrics.mi.mi_visual_studio
old: 14.210205113378295
new: 22.26561057385687
path: .metrics.mi.mi_sei
old: -12.929761331758272
new: 6.714930970938347
path: .metrics.loc.ploc
old: 216.0
new: 126.0
path: .metrics.loc.cloc
old: 28.0
new: 20.0
path: .metrics.loc.sloc
old: 285.0
new: 176.0
path: .metrics.loc.blank
old: 41.0
new: 30.0
path: .metrics.loc.lloc
old: 83.0
new: 53.0
path: .metrics.nexits.sum
old: 18.0
new: 9.0
path: .metrics.nexits.average
old: 1.3846153846153846
new: 0.9
path: .metrics.nom.functions
old: 12.0
new: 10.0
path: .metrics.nom.total
old: 13.0
new: 10.0
path: .metrics.nom.closures
old: 1.0
new: 0.0
path: .metrics.nargs.average
old: 1.0769230769230769
new: 0.8
path: .metrics.nargs.sum
old: 14.0
new: 8.0
path: .metrics.cyclomatic.sum
old: 43.0
new: 25.0
path: .metrics.cyclomatic.average
old: 2.6875
new: 2.0833333333333335

# Spaces Data

## Minimal test - lines (16, 31)

path: .spaces[0].metrics.mi.mi_sei
old: -12.486848700154372
new: 66.20165353570543
path: .spaces[0].metrics.mi.mi_visual_studio
old: 15.00464900862604
new: 57.43752592046051
path: .spaces[0].metrics.mi.mi_original
old: 25.65794980475053
new: 98.21816932398748
path: .spaces[0].metrics.loc.ploc
old: 206.0
new: 13.0
path: .spaces[0].metrics.loc.sloc
old: 268.0
new: 16.0
path: .spaces[0].metrics.loc.lloc
old: 83.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 39.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 23.0
new: 0.0
path: .spaces[0].metrics.halstead.n2
old: 117.0
new: 12.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 944.7141210499578
new: 67.01955000865388
path: .spaces[0].metrics.halstead.length
old: 814.0
new: 45.0
path: .spaces[0].metrics.halstead.time
old: 13780.927231630394
new: 54.02410118609203
path: .spaces[0].metrics.halstead.volume
old: 5852.5171909283345
new: 194.4867642699313
path: .spaces[0].metrics.halstead.N2
old: 342.0
new: 15.0
path: .spaces[0].metrics.halstead.level
old: 0.02359346642468239
new: 0.2
path: .spaces[0].metrics.halstead.effort
old: 248056.6901693471
new: 972.4338213496566
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1605824582923314
new: 1.4893233335256415
path: .spaces[0].metrics.halstead.N1
old: 472.0
new: 30.0
path: .spaces[0].metrics.halstead.bugs
old: 1.315970160114651
new: 0.03271790211641671
path: .spaces[0].metrics.halstead.difficulty
old: 42.38461538461539
new: 5.0
path: .spaces[0].metrics.halstead.n1
old: 29.0
new: 8.0
path: .spaces[0].metrics.halstead.vocabulary
old: 146.0
new: 20.0
path: .spaces[0].metrics.cognitive.sum
old: 30.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 2.3076923076923075
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 1.0769230769230769
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 14.0
new: 0.0
path: .spaces[0].metrics.nexits.average
old: 1.3846153846153846
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 18.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.8
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 42.0
new: 2.0
path: .spaces[0].metrics.nom.closures
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 12.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 13.0
new: 1.0

### Code

    class DriveMapping {
     public:
      explicit DriveMapping(const nsAString& aRemoteUNCPath);
      ~DriveMapping();

      bool Init();
      bool ChangeDriveLetter();
      wchar_t GetDriveLetter() { return mDriveLetter; }

     private:
      bool DoMapping();
      void Disconnect(wchar_t aDriveLetter);

      wchar_t mDriveLetter;
      nsString mRemoteUNCPath;
    };

## Minimal test - lines (23, 23)

path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 41.0
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 2.9285714285714284
new: 1.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 2.3076923076923075
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 30.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 12.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.total
old: 13.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.closures
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 14.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 1.0769230769230769
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 18.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 1.3846153846153846
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 29.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.02346041055718475
new: 0.4
path: .spaces[0].spaces[0].metrics.halstead.time
old: 13805.967970502885
new: 2.7293728408893374
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 936.4072442934978
new: 13.60964047443681
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 5830.086181092127
new: 19.651484454403228
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 42.625
new: 2.5
path: .spaces[0].spaces[0].metrics.halstead.length
old: 812.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 1.317563806807069
new: 0.004471319041702271
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 116.0
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.1532108919870665
new: 1.944234353490973
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 471.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 341.0
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 248507.42346905192
new: 49.12871113600807
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 145.0
new: 7.0
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: -12.427170537380515
new: 148.4278547652622
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 15.221793612573386
new: 90.80912574437468
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 26.029267077500492
new: 155.2836050228807
path: .spaces[0].spaces[0].metrics.loc.blank
old: 40.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 22.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 204.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 266.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 83.0
new: 1.0

### Code

      wchar_t GetDriveLetter() { return mDriveLetter; }