Global Metrics

path: .metrics.halstead.effort
old: 81403.95994469676
new: 889.1420581159903

path: .metrics.halstead.difficulty
old: 22.871794871794872
new: 5.538461538461538

path: .metrics.halstead.level
old: 0.043721973094170405
new: 0.18055555555555555

path: .metrics.halstead.N2
old: 223.0
new: 16.0

path: .metrics.halstead.n2
old: 78.0
new: 13.0

path: .metrics.halstead.N1
old: 320.0
new: 20.0

path: .metrics.halstead.vocabulary
old: 94.0
new: 22.0

path: .metrics.halstead.bugs
old: 0.6260981683043638
new: 0.0308219076180174

path: .metrics.halstead.length
old: 543.0
new: 36.0

path: .metrics.halstead.estimated_program_length
old: 554.2613730712553
new: 76.63504134881501

path: .metrics.halstead.n1
old: 16.0
new: 9.0

path: .metrics.halstead.purity_ratio
old: 1.0207391769268053
new: 2.1287511485781945

path: .metrics.halstead.time
old: 4522.44221914982
new: 49.3967810064439

path: .metrics.halstead.volume
old: 3559.141746460957
new: 160.5395382709427

path: .metrics.nexits.sum
old: 16.0
new: 0.0

path: .metrics.nexits.average
old: 0.48484848484848486
new: 0.0

path: .metrics.nargs.average
old: 0.9090909090909092
new: 0.0

path: .metrics.nargs.sum
old: 30.0
new: 0.0

path: .metrics.cognitive.sum
old: 1.0
new: 0.0

path: .metrics.cognitive.average
old: 0.030303030303030304
new: 0.0

path: .metrics.loc.blank
old: 36.0
new: 6.0

path: .metrics.loc.cloc
old: 8.0
new: 6.0

path: .metrics.loc.sloc
old: 205.0
new: 29.0

path: .metrics.loc.ploc
old: 161.0
new: 17.0

path: .metrics.loc.lloc
old: 48.0
new: 0.0

path: .metrics.nom.functions
old: 33.0
new: 2.0

path: .metrics.nom.total
old: 33.0
new: 2.0

path: .metrics.cyclomatic.sum
old: 36.0
new: 4.0

path: .metrics.cyclomatic.average
old: 1.0285714285714285
new: 1.0

path: .metrics.mi.mi_sei
old: -7.969509555008246
new: 85.67033130245068

path: .metrics.mi.mi_visual_studio
old: 19.86281276833995
new: 52.11777673678456

path: .metrics.mi.mi_original
old: 33.965409833861315
new: 89.12139821990161

Spaces Data

Minimal test - lines (16, 16)

path: .spaces[0].spaces[0].metrics.nargs.average
old: 2.0
new: 0.0

path: .spaces[0].spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 20.0
new: 6.0

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 4.576923076923077
new: 2.5

path: .spaces[0].spaces[0].metrics.halstead.time
old: 41.760168472394554
new: 2.1541354172676304

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 13.0
new: 1.0

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 67.75720079023742
new: 11.60964047443681

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 21.0
new: 5.0

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 751.683032503102
new: 38.77443751081734

path: .spaces[0].spaces[0].metrics.halstead.length
old: 38.0
new: 6.0

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 17.0
new: 1.0

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.027557209848203645
new: 0.00381864321284214

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 7.0
new: 5.0

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.7830842313220374
new: 1.9349400790728015

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 164.2332676057198
new: 15.509775004326936

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.2184873949579832
new: 0.4

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 87.02091682937993
new: 150.2034495661308

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 112.71955912580437
new: 156.51435355291963

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 65.91787083380372
new: 91.5288617268536

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 7.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 7.0
new: 1.0

Code

  virtual ~nsSharePicker() = default;

Minimal test - lines (15, 27)

path: .spaces[0].metrics.mi.mi_original
old: 35.42979978781506
new: 103.92667497733991

path: .spaces[0].metrics.mi.mi_sei
old: -21.02276045928693
new: 74.53910619208808

path: .spaces[0].metrics.mi.mi_visual_studio
old: 20.719181162464945
new: 60.77583332008183

path: .spaces[0].metrics.halstead.estimated_program_length
old: 523.4995490565423
new: 52.529325012980806

path: .spaces[0].metrics.halstead.N1
old: 320.0
new: 19.0

path: .spaces[0].metrics.halstead.length
old: 539.0
new: 29.0

path: .spaces[0].metrics.halstead.n2
old: 74.0
new: 8.0

path: .spaces[0].metrics.halstead.time
old: 4602.431419482589
new: 37.0426319988312

path: .spaces[0].metrics.halstead.volume
old: 3499.108818921695
new: 118.53642239625984

path: .spaces[0].metrics.halstead.effort
old: 82843.76555068661
new: 666.7673759789616

path: .spaces[0].metrics.halstead.level
old: 0.04223744292237443
new: 0.17777777777777778

path: .spaces[0].metrics.halstead.difficulty
old: 23.675675675675677
new: 5.625

path: .spaces[0].metrics.halstead.N2
old: 219.0
new: 10.0

path: .spaces[0].metrics.halstead.bugs
old: 0.6334591775357757
new: 0.025440656067447567

path: .spaces[0].metrics.halstead.n1
old: 16.0
new: 9.0

path: .spaces[0].metrics.halstead.vocabulary
old: 90.0
new: 17.0

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9712422060418224
new: 1.8113560349303728

path: .spaces[0].metrics.cognitive.average
old: 0.030303030303030304
new: 0.0

path: .spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0

path: .spaces[0].metrics.nexits.sum
old: 16.0
new: 0.0

path: .spaces[0].metrics.nexits.average
old: 0.48484848484848486
new: 0.0

path: .spaces[0].metrics.loc.blank
old: 34.0
new: 3.0

path: .spaces[0].metrics.loc.lloc
old: 48.0
new: 0.0

path: .spaces[0].metrics.loc.ploc
old: 157.0
new: 10.0

path: .spaces[0].metrics.loc.sloc
old: 191.0
new: 13.0

path: .spaces[0].metrics.cyclomatic.average
old: 1.0294117647058822
new: 1.0

path: .spaces[0].metrics.cyclomatic.sum
old: 35.0
new: 3.0

path: .spaces[0].metrics.nargs.sum
old: 30.0
new: 0.0

path: .spaces[0].metrics.nargs.average
old: 0.9090909090909092
new: 0.0

path: .spaces[0].metrics.nom.total
old: 33.0
new: 2.0

path: .spaces[0].metrics.nom.functions
old: 33.0
new: 2.0

Code

class nsSharePicker : public nsISharePicker {
  virtual ~nsSharePicker() = default;

 public:
  nsSharePicker() = default;

  NS_DECL_ISUPPORTS
  NS_DECL_NSISHAREPICKER

 private:
  bool mInited = false;
  mozIDOMWindowProxy* mOpenerWindow;
};

Minimal test - lines (19, 19)

path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 131.1736796466353
new: 158.02045369261705

path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 76.70975417931889
new: 92.40962204246613

path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 113.64458498874995
new: 152.37629276875444

path: .spaces[0].spaces[1].metrics.halstead.N1
old: 6.0
new: 4.0

path: .spaces[0].spaces[1].metrics.halstead.length
old: 9.0
new: 5.0

path: .spaces[0].spaces[1].metrics.halstead.n2
old: 3.0
new: 1.0

path: .spaces[0].spaces[1].metrics.halstead.N2
old: 3.0
new: 1.0

path: .spaces[0].spaces[1].metrics.halstead.level
old: 0.4
new: 0.5

path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 1.81828088628892
new: 1.6

path: .spaces[0].spaces[1].metrics.halstead.vocabulary
old: 8.0
new: 5.0

path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 0.005526047247960579
new: 0.002712967490108627

path: .spaces[0].spaces[1].metrics.halstead.time
old: 3.75
new: 1.289960052715201

path: .spaces[0].spaces[1].metrics.halstead.estimated_program_length
old: 16.36452797660028
new: 8.0

path: .spaces[0].spaces[1].metrics.halstead.difficulty
old: 2.5
new: 2.0

path: .spaces[0].spaces[1].metrics.halstead.n1
old: 5.0
new: 4.0

path: .spaces[0].spaces[1].metrics.halstead.effort
old: 67.5
new: 23.21928094887362

path: .spaces[0].spaces[1].metrics.halstead.volume
old: 27.0
new: 11.60964047443681

path: .spaces[0].spaces[1].metrics.loc.lloc
old: 1.0
new: 0.0

path: .spaces[0].spaces[1].metrics.loc.ploc
old: 4.0
new: 1.0

path: .spaces[0].spaces[1].metrics.loc.sloc
old: 4.0
new: 1.0

Code

  nsSharePicker() = default;