Global Metrics

path: .metrics.halstead.difficulty
old: 59.556650246305416
new: 3.9375

path: .metrics.halstead.length
old: 2086.0
new: 19.0

path: .metrics.halstead.level
old: 0.016790736145574855
new: 0.25396825396825395

path: .metrics.halstead.estimated_program_length
old: 1678.2746238602592
new: 43.65148445440323

path: .metrics.halstead.N1
old: 1156.0
new: 10.0

path: .metrics.halstead.time
old: 54105.82412228243
new: 16.238014037997907

path: .metrics.halstead.n2
old: 203.0
new: 8.0

path: .metrics.halstead.bugs
old: 3.2750888990856977
new: 0.014680776387690345

path: .metrics.halstead.volume
old: 16352.579101970225
new: 74.23092131656186

path: .metrics.halstead.vocabulary
old: 229.0
new: 15.0

path: .metrics.halstead.effort
old: 973904.8342010838
new: 292.28425268396234

path: .metrics.halstead.purity_ratio
old: 0.8045420056856468
new: 2.297446550231749

path: .metrics.halstead.n1
old: 26.0
new: 7.0

path: .metrics.halstead.N2
old: 930.0
new: 9.0

path: .metrics.mi.mi_visual_studio
old: 2.3484733823881188
new: 54.930378253289064

path: .metrics.mi.mi_original
old: 4.015889483883683
new: 93.9309468131243

path: .metrics.mi.mi_sei
old: -41.50320360952195
new: 92.9798026150481

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

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

path: .metrics.nom.functions
old: 50.0
new: 1.0

path: .metrics.nom.total
old: 50.0
new: 1.0

path: .metrics.loc.sloc
old: 544.0
new: 28.0

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

path: .metrics.loc.blank
old: 73.0
new: 10.0

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

path: .metrics.loc.ploc
old: 424.0
new: 12.0

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

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

path: .metrics.cyclomatic.sum
old: 63.0
new: 3.0

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

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

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

Spaces Data

Minimal test - lines (11, 17)

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

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

path: .spaces[0].metrics.cyclomatic.sum
old: 62.0
new: 2.0

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

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

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

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

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

path: .spaces[0].metrics.mi.mi_visual_studio
old: 2.9724222536719984
new: 69.4967339725595

path: .spaces[0].metrics.mi.mi_sei
old: -41.95776772894634
new: 95.951822543723

path: .spaces[0].metrics.mi.mi_original
old: 5.0828420537791175
new: 118.83941509307677

path: .spaces[0].metrics.loc.cloc
old: 37.0
new: 0.0

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

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

path: .spaces[0].metrics.loc.ploc
old: 412.0
new: 6.0

path: .spaces[0].metrics.loc.blank
old: 70.0
new: 1.0

path: .spaces[0].metrics.halstead.volume
old: 16118.98247391212
new: 48.43204266092216

path: .spaces[0].metrics.halstead.effort
old: 1002986.8938324382
new: 211.89018664153448

path: .spaces[0].metrics.halstead.time
old: 55721.49410180212
new: 11.771677035640804

path: .spaces[0].metrics.halstead.difficulty
old: 62.223958333333336
new: 4.375

path: .spaces[0].metrics.halstead.N1
old: 1156.0
new: 9.0

path: .spaces[0].metrics.halstead.n2
old: 192.0
new: 4.0

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.7607345700289786
new: 1.9751060324573737

path: .spaces[0].metrics.halstead.bugs
old: 3.3399675752898803
new: 0.011847297864723376

path: .spaces[0].metrics.halstead.vocabulary
old: 218.0
new: 11.0

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

path: .spaces[0].metrics.halstead.level
old: 0.016070980162383862
new: 0.22857142857142856

path: .spaces[0].metrics.halstead.estimated_program_length
old: 1578.5242328101306
new: 27.651484454403228

path: .spaces[0].metrics.halstead.length
old: 2075.0
new: 14.0

path: .spaces[0].metrics.halstead.N2
old: 919.0
new: 5.0

path: .spaces[0].metrics.nom.total
old: 50.0
new: 1.0

path: .spaces[0].metrics.nom.functions
old: 50.0
new: 1.0

Code

class nsVersionComparatorImpl final : public nsIVersionComparator {
  ~nsVersionComparatorImpl() = default;

 public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIVERSIONCOMPARATOR
};

Minimal test - lines (12, 12)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

path: .spaces[0].spaces[0].metrics.nom.functions
old: 0.0
new: 1.0

path: .spaces[0].spaces[0].metrics.nom.total
old: 0.0
new: 1.0

Code

  ~nsVersionComparatorImpl() = default;