Global Metrics

path: .metrics.cognitive.average
old: 3.0
new: 0.8571428571428571

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

path: .metrics.cyclomatic.average
old: 2.0
new: 1.588235294117647

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

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

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

path: .metrics.mi.mi_sei
old: 62.41887913330467
new: 8.986356472912775

path: .metrics.mi.mi_visual_studio
old: 55.821636032354775
new: 25.16730783947337

path: .metrics.mi.mi_original
old: 95.45499761532666
new: 43.036096405499464

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

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

path: .metrics.loc.cloc
old: 0.0
new: 10.0

path: .metrics.loc.ploc
old: 14.0
new: 113.0

path: .metrics.loc.lloc
old: 5.0
new: 37.0

path: .metrics.loc.sloc
old: 16.0
new: 144.0

path: .metrics.loc.blank
old: 2.0
new: 21.0

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

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

path: .metrics.halstead.purity_ratio
old: 1.698723016010379
new: 1.417659482418218

path: .metrics.halstead.volume
old: 302.86336008962905
new: 2783.13239979025

path: .metrics.halstead.bugs
old: 0.07035688298896871
new: 0.5722567218352583

path: .metrics.halstead.length
old: 63.0
new: 418.0

path: .metrics.halstead.level
old: 0.09876543209876544
new: 0.0391260162601626

path: .metrics.halstead.N1
old: 36.0
new: 254.0

path: .metrics.halstead.difficulty
old: 10.125
new: 25.55844155844156

path: .metrics.halstead.vocabulary
old: 28.0
new: 101.0

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

path: .metrics.halstead.n2
old: 16.0
new: 77.0

path: .metrics.halstead.N2
old: 27.0
new: 164.0

path: .metrics.halstead.time
old: 170.36064005041635
new: 3951.807043858017

path: .metrics.halstead.effort
old: 3066.4915209074943
new: 71132.52678944431

path: .metrics.halstead.estimated_program_length
old: 107.01955000865388
new: 592.5816636508151

Spaces Data

Minimal test - lines (17, 34)

path: .spaces[0].metrics.mi.mi_sei
old: 67.50175569941898
new: 57.493823522245606

path: .spaces[0].metrics.mi.mi_original
old: 99.0487553247342
new: 92.11178535289132

path: .spaces[0].metrics.mi.mi_visual_studio
old: 57.92324872791473
new: 53.866541142041704

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

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

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

path: .spaces[0].metrics.loc.ploc
old: 12.0
new: 16.0

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

path: .spaces[0].metrics.loc.lloc
old: 5.0
new: 7.0

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

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

path: .spaces[0].metrics.halstead.N1
old: 36.0
new: 52.0

path: .spaces[0].metrics.halstead.n1
old: 12.0
new: 17.0

path: .spaces[0].metrics.halstead.volume
old: 302.86336008962905
new: 417.1719529825278

path: .spaces[0].metrics.halstead.estimated_program_length
old: 107.01955000865388
new: 138.97373660251154

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

path: .spaces[0].metrics.halstead.level
old: 0.09876543209876544
new: 0.06666666666666667

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

path: .spaces[0].metrics.halstead.length
old: 63.0
new: 82.0

path: .spaces[0].metrics.halstead.effort
old: 3066.4915209074943
new: 6257.579294737917

path: .spaces[0].metrics.halstead.N2
old: 27.0
new: 30.0

path: .spaces[0].metrics.halstead.difficulty
old: 10.125
new: 15.0

path: .spaces[0].metrics.halstead.bugs
old: 0.07035688298896871
new: 0.11319215275910044

path: .spaces[0].metrics.halstead.time
old: 170.36064005041635
new: 347.6432941521065

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.698723016010379
new: 1.694801665884287

Code

nsresult NS_FASTCALL NS_TableDrivenQI(void* aThis, REFNSIID aIID,
                                      void** aInstancePtr,
                                      const QITableEntry* aEntries) {
  do {
    if (aIID.Equals(*aEntries->iid)) {
      nsISupports* r = reinterpret_cast(
          reinterpret_cast(aThis) + aEntries->offset);
      NS_ADDREF(r);
      *aInstancePtr = r;
      return NS_OK;
    }

    ++aEntries;
  } while (aEntries->iid);

  *aInstancePtr = nullptr;
  return NS_ERROR_NO_INTERFACE;
}