Global Metrics

path: .metrics.cognitive.average
old: 0.9473684210526316
new: 1.0

path: .metrics.cognitive.sum
old: 18.0
new: 14.0

path: .metrics.loc.sloc
old: 180.0
new: 213.0

path: .metrics.loc.cloc
old: 13.0
new: 34.0

path: .metrics.loc.blank
old: 41.0
new: 39.0

path: .metrics.loc.lloc
old: 63.0
new: 52.0

path: .metrics.loc.ploc
old: 126.0
new: 140.0

path: .metrics.nargs.average
old: 0.6842105263157895
new: 1.0

path: .metrics.nargs.sum
old: 13.0
new: 14.0

path: .metrics.halstead.bugs
old: 1.0334129336098488
new: 1.1994319493578351

path: .metrics.halstead.effort
old: 172620.63943303464
new: 215846.6444788841

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

path: .metrics.halstead.estimated_program_length
old: 494.03910001730776
new: 532.3353567055491

path: .metrics.halstead.difficulty
old: 43.3125
new: 54.43076923076923

path: .metrics.halstead.length
old: 617.0
new: 605.0

path: .metrics.halstead.N2
old: 231.0
new: 244.0

path: .metrics.halstead.n2
old: 64.0
new: 65.0

path: .metrics.halstead.volume
old: 3985.469308699213
new: 3965.5262552649706

path: .metrics.halstead.level
old: 0.023088023088023088
new: 0.018371961560203504

path: .metrics.halstead.purity_ratio
old: 0.8007116693959607
new: 0.8798931515794199

path: .metrics.halstead.N1
old: 386.0
new: 361.0

path: .metrics.halstead.n1
old: 24.0
new: 29.0

path: .metrics.halstead.time
old: 9590.03552405748
new: 11991.480248826894

path: .metrics.mi.mi_original
old: 34.563965179469264
new: 34.16301889330694

path: .metrics.mi.mi_sei
old: -1.542316223669303
new: 5.649558321000523

path: .metrics.mi.mi_visual_studio
old: 20.212845134192552
new: 19.978373621816925

path: .metrics.nexits.sum
old: 18.0
new: 19.0

path: .metrics.nexits.average
old: 0.9473684210526316
new: 1.3571428571428572

path: .metrics.nom.total
old: 19.0
new: 14.0

path: .metrics.nom.functions
old: 19.0
new: 14.0

path: .metrics.cyclomatic.sum
old: 40.0
new: 30.0

path: .metrics.cyclomatic.average
old: 1.9047619047619049
new: 1.7647058823529411

Spaces Data

Minimal test - lines (31, 31)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Code

  ~nsSimpleArrayEnumerator() override = default;

Minimal test - lines (28, 28)

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

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

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

path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 79.75767082006008
new: 146.92819499625

path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 107.685060632731
new: 154.24412008219068

path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 62.97371966826374
new: 90.2012398141466

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

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

path: .spaces[0].spaces[1].metrics.halstead.time
old: 99.82539597224458
new: 3.3333333333333335

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

path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 1.583845083419642
new: 2.045565997075035

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

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

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

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

path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 0.04926681002402491
new: 0.005108729549290353

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

path: .spaces[0].spaces[1].metrics.halstead.length
old: 45.0
new: 8.0

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

path: .spaces[0].spaces[1].metrics.halstead.effort
old: 1796.8571275004024
new: 60.0

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

path: .spaces[0].spaces[1].metrics.halstead.volume
old: 197.65428402504423
new: 24.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

Code

  const nsID& DefaultInterface() override { return mEntryIID; }

Minimal test - lines (19, 37)

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

path: .spaces[0].metrics.nargs.average
old: 0.6842105263157895
new: 0.6666666666666666

path: .spaces[0].metrics.nexits.average
old: 0.9473684210526316
new: 0.3333333333333333

path: .spaces[0].metrics.nexits.sum
old: 18.0
new: 1.0

path: .spaces[0].metrics.halstead.vocabulary
old: 84.0
new: 28.0

path: .spaces[0].metrics.halstead.N1
old: 386.0
new: 33.0

path: .spaces[0].metrics.halstead.effort
old: 177899.4723394175
new: 3485.332318491762

path: .spaces[0].metrics.halstead.N2
old: 227.0
new: 25.0

path: .spaces[0].metrics.halstead.difficulty
old: 45.4
new: 12.5

path: .spaces[0].metrics.halstead.level
old: 0.022026431718061675
new: 0.08

path: .spaces[0].metrics.halstead.time
old: 9883.304018856526
new: 193.62957324954235

path: .spaces[0].metrics.halstead.estimated_program_length
old: 464.4525357538189
new: 106.60593781761293

path: .spaces[0].metrics.halstead.n2
old: 60.0
new: 14.0

path: .spaces[0].metrics.halstead.volume
old: 3918.490580163381
new: 278.826585479341

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.7576713470698514
new: 1.8380334106484983

path: .spaces[0].metrics.halstead.length
old: 613.0
new: 58.0

path: .spaces[0].metrics.halstead.bugs
old: 1.0543752071111807
new: 0.07662577397128671

path: .spaces[0].metrics.halstead.n1
old: 24.0
new: 14.0

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

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

path: .spaces[0].metrics.loc.blank
old: 40.0
new: 4.0

path: .spaces[0].metrics.loc.cloc
old: 8.0
new: 2.0

path: .spaces[0].metrics.loc.sloc
old: 170.0
new: 19.0

path: .spaces[0].metrics.loc.ploc
old: 122.0
new: 13.0

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

path: .spaces[0].metrics.nom.total
old: 19.0
new: 3.0

path: .spaces[0].metrics.nom.functions
old: 19.0
new: 3.0

path: .spaces[0].metrics.cyclomatic.sum
old: 39.0
new: 4.0

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

path: .spaces[0].metrics.mi.mi_visual_studio
old: 20.94038827282023
new: 54.44504115526862

path: .spaces[0].metrics.mi.mi_sei
old: -3.5809173865850674
new: 83.1091711785736

path: .spaces[0].metrics.mi.mi_original
old: 35.808063946522594
new: 93.10102037550936

Code

class nsSimpleArrayEnumerator final : public nsSimpleEnumerator {
 public:
  // nsISimpleEnumerator interface
  NS_DECL_NSISIMPLEENUMERATOR

  // nsSimpleArrayEnumerator methods
  explicit nsSimpleArrayEnumerator(nsIArray* aValueArray, const nsID& aEntryIID)
      : mValueArray(aValueArray), mEntryIID(aEntryIID), mIndex(0) {}

  const nsID& DefaultInterface() override { return mEntryIID; }

 private:
  ~nsSimpleArrayEnumerator() override = default;

 protected:
  nsCOMPtr mValueArray;
  const nsID mEntryIID;
  uint32_t mIndex;
};

Minimal test - lines (25, 26)

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 5.0
new: 2.0

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 5.0
new: 2.0

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

path: .spaces[0].spaces[0].metrics.halstead.length
old: 28.0
new: 22.0

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 15.0
new: 11.0

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

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 114.4489595550095
new: 85.95159310338741

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.02530038911993524
new: 0.015436979213783876

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

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.8760473218921716
new: 2.0017772735139885

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 661.2606552067215
new: 315.1558413790872

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 8.0
new: 6.0

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 5.777777777777778
new: 3.6666666666666665

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.17307692307692307
new: 0.27272727272727276

path: .spaces[0].spaces[0].metrics.halstead.time
old: 36.73670306704008
new: 17.508657854393732

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 13.0
new: 11.0

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 97.59425006876236
new: 121.15764712982596

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 70.20376330397838
new: 79.75516812110746

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 120.04843524980302
new: 136.38133748709376

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

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

Code

  explicit nsSimpleArrayEnumerator(nsIArray* aValueArray, const nsID& aEntryIID)
      : mValueArray(aValueArray), mEntryIID(aEntryIID), mIndex(0) {}