Global Metrics

path: .metrics.mi.mi_original
old: 22.50369890339792
new: -26.661638477069005

path: .metrics.mi.mi_sei
old: -23.399895268788903
new: -82.84832787093276

path: .metrics.mi.mi_visual_studio
old: 13.160057838244397
new: 0.0

path: .metrics.nom.functions
old: 12.0
new: 124.0

path: .metrics.nom.closures
old: 3.0
new: 0.0

path: .metrics.nom.total
old: 15.0
new: 124.0

path: .metrics.nargs.average
old: 0.6666666666666666
new: 0.9516129032258064

path: .metrics.nargs.sum
old: 10.0
new: 118.0

path: .metrics.nexits.sum
old: 20.0
new: 126.0

path: .metrics.nexits.average
old: 1.3333333333333333
new: 1.0161290322580645

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

path: .metrics.cyclomatic.average
old: 2.6666666666666665
new: 1.232

path: .metrics.loc.blank
old: 46.0
new: 100.0

path: .metrics.loc.ploc
old: 222.0
new: 718.0

path: .metrics.loc.cloc
old: 12.0
new: 36.0

path: .metrics.loc.sloc
old: 280.0
new: 854.0

path: .metrics.loc.lloc
old: 95.0
new: 376.0

path: .metrics.cognitive.average
old: 1.6
new: 0.2661290322580645

path: .metrics.cognitive.sum
old: 24.0
new: 33.0

path: .metrics.halstead.estimated_program_length
old: 1768.156467312176
new: 2849.020240691736

path: .metrics.halstead.bugs
old: 1.9821987348717376
new: 4.855760988594266

path: .metrics.halstead.N2
old: 565.0
new: 1312.0

path: .metrics.halstead.length
old: 1293.0
new: 3087.0

path: .metrics.halstead.time
old: 25475.937156048596
new: 97677.67855453031

path: .metrics.halstead.N1
old: 728.0
new: 1775.0

path: .metrics.halstead.n2
old: 208.0
new: 322.0

path: .metrics.halstead.vocabulary
old: 241.0
new: 355.0

path: .metrics.halstead.volume
old: 10231.36591174534
new: 26152.06138682824

path: .metrics.halstead.purity_ratio
old: 1.3674837334200896
new: 0.922909051082519

path: .metrics.halstead.difficulty
old: 44.81971153846154
new: 67.22981366459628

path: .metrics.halstead.level
old: 0.022311611692142665
new: 0.014874353288987436

path: .metrics.halstead.effort
old: 458566.86880887474
new: 1758198.213981546

Spaces Data

Minimal test - lines (20, 60)

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

path: .spaces[0].metrics.nom.closures
old: 3.0
new: 0.0

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

path: .spaces[0].metrics.loc.sloc
old: 239.0
new: 41.0

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

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

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

path: .spaces[0].metrics.loc.ploc
old: 197.0
new: 38.0

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

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

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

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

path: .spaces[0].metrics.mi.mi_original
old: 25.548738878055246
new: 74.0912184717605

path: .spaces[0].metrics.mi.mi_sei
old: -22.720667561218008
new: 48.06811416810743

path: .spaces[0].metrics.mi.mi_visual_studio
old: 14.940782969622951
new: 43.32819793670205

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

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

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

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

path: .spaces[0].metrics.halstead.effort
old: 455424.9353508845
new: 9557.77777777778

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.2755626092059245
new: 1.8394823853780795

path: .spaces[0].metrics.halstead.N2
old: 535.0
new: 92.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 1595.7288241166116
new: 343.9832060657009

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

path: .spaces[0].metrics.halstead.length
old: 1251.0
new: 187.0

path: .spaces[0].metrics.halstead.n2
old: 189.0
new: 54.0

path: .spaces[0].metrics.halstead.volume
old: 9750.814248803985
new: 1122.0

path: .spaces[0].metrics.halstead.level
old: 0.02141036533559898
new: 0.11739130434782608

path: .spaces[0].metrics.halstead.time
old: 25301.38529727136
new: 530.9876543209878

path: .spaces[0].metrics.halstead.N1
old: 716.0
new: 95.0

path: .spaces[0].metrics.halstead.vocabulary
old: 222.0
new: 64.0

path: .spaces[0].metrics.halstead.bugs
old: 1.973134160550172
new: 0.15012396668308495

path: .spaces[0].metrics.halstead.difficulty
old: 46.70634920634921
new: 8.518518518518519

Code

nsPrintSettings::nsPrintSettings()
    : mScaling(1.0),
      mPrintBGColors(false),
      mPrintBGImages(false),
      mIsCancelled(false),
      mSaveOnCancel(true),
      mPrintSilent(false),
      mShrinkToFit(true),
      mShowPrintProgress(true),
      mShowMarginGuides(false),
      mHonorPageRuleMargins(true),
      mIsPrintSelectionRBEnabled(false),
      mPrintSelectionOnly(false),
      mPrintPageDelay(50),
      mPaperWidth(8.5),
      mPaperHeight(11.0),
      mPaperSizeUnit(kPaperSizeInches),
      mPrintReversed(false),
      mPrintInColor(true),
      mOrientation(kPortraitOrientation),
      mResolution(0),
      mDuplex(0),
      mNumCopies(1),
      mNumPagesPerSheet(1),
      mPrintToFile(false),
      mOutputFormat(kOutputFormatNative),
      mIsInitedFromPrinter(false),
      mIsInitedFromPrefs(false) {
  /* member initializers and constructor code */
  int32_t marginWidth = NS_INCHES_TO_INT_TWIPS(DEFAULT_MARGIN_WIDTH);
  mMargin.SizeTo(marginWidth, marginWidth, marginWidth, marginWidth);
  mEdge.SizeTo(0, 0, 0, 0);
  mUnwriteableMargin.SizeTo(0, 0, 0, 0);

  mHeaderStrs[0].AssignLiteral("&T");
  mHeaderStrs[2].AssignLiteral("&U");

  mFooterStrs[0].AssignLiteral(
      "&PT");  // Use &P (Page Num Only) or &PT (Page Num of Page Total)
  mFooterStrs[2].AssignLiteral("&D");
}