Global Metrics

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

path: .metrics.cognitive.average
old: 11.0
new: 1.0196078431372548

path: .metrics.nom.functions
old: 3.0
new: 51.0

path: .metrics.nom.total
old: 3.0
new: 51.0

path: .metrics.loc.lloc
old: 54.0
new: 259.0

path: .metrics.loc.blank
old: 17.0
new: 96.0

path: .metrics.loc.cloc
old: 1.0
new: 80.0

path: .metrics.loc.sloc
old: 167.0
new: 710.0

path: .metrics.loc.ploc
old: 149.0
new: 534.0

path: .metrics.nexits.sum
old: 14.0
new: 57.0

path: .metrics.nexits.average
old: 4.666666666666667
new: 1.1176470588235294

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

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

path: .metrics.halstead.estimated_program_length
old: 481.4866257866323
new: 2668.066852659621

path: .metrics.halstead.volume
old: 2813.722620964451
new: 19154.00511472338

path: .metrics.halstead.n1
old: 18.0
new: 38.0

path: .metrics.halstead.bugs
old: 0.513560239771852
new: 3.69223187511384

path: .metrics.halstead.length
old: 439.0
new: 2280.0

path: .metrics.halstead.purity_ratio
old: 1.0967804687622604
new: 1.1702047599384302

path: .metrics.halstead.N1
old: 279.0
new: 1319.0

path: .metrics.halstead.level
old: 0.04652777777777777
new: 0.01643025357358015

path: .metrics.halstead.difficulty
old: 21.492537313432837
new: 60.86333333333334

path: .metrics.halstead.vocabulary
old: 85.0
new: 338.0

path: .metrics.halstead.N2
old: 160.0
new: 961.0

path: .metrics.halstead.effort
old: 60474.0384207285
new: 1165776.5979657806

path: .metrics.halstead.n2
old: 67.0
new: 300.0

path: .metrics.halstead.time
old: 3359.6688011515835
new: 64765.36655365448

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

path: .metrics.mi.mi_sei
old: -8.429322018685276
new: -55.488055443427314

path: .metrics.mi.mi_original
old: 40.57872919785234
new: -10.550681523561153

path: .metrics.nargs.sum
old: 5.0
new: 47.0

path: .metrics.nargs.average
old: 1.6666666666666667
new: 0.9215686274509804

Spaces Data

Minimal test - lines (31, 39)

path: .spaces[2].metrics.mi.mi_original
old: 49.002845116724686
new: 109.90686509715566

path: .spaces[2].metrics.mi.mi_sei
old: -2.764653445765916
new: 107.650599343067

path: .spaces[2].metrics.mi.mi_visual_studio
old: 28.656634571184025
new: 64.27302052465244

path: .spaces[2].metrics.nexits.sum
old: 14.0
new: 1.0

path: .spaces[2].metrics.nexits.average
old: 14.0
new: 1.0

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

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

path: .spaces[2].metrics.loc.sloc
old: 119.0
new: 9.0

path: .spaces[2].metrics.loc.blank
old: 4.0
new: 0.0

path: .spaces[2].metrics.loc.ploc
old: 115.0
new: 8.0

path: .spaces[2].metrics.loc.lloc
old: 49.0
new: 1.0

path: .spaces[2].metrics.loc.cloc
old: 0.0
new: 1.0

path: .spaces[2].metrics.halstead.N2
old: 115.0
new: 16.0

path: .spaces[2].metrics.halstead.difficulty
old: 21.25
new: 5.333333333333333

path: .spaces[2].metrics.halstead.n2
old: 46.0
new: 9.0

path: .spaces[2].metrics.halstead.bugs
old: 0.4054631679998095
new: 0.025968170686678876

path: .spaces[2].metrics.halstead.time
old: 2356.874680946703
new: 38.20070804594996

path: .spaces[2].metrics.halstead.purity_ratio
old: 0.9687746056283782
new: 1.334518182342659

path: .spaces[2].metrics.halstead.length
old: 334.0
new: 33.0

path: .spaces[2].metrics.halstead.vocabulary
old: 63.0
new: 15.0

path: .spaces[2].metrics.halstead.estimated_program_length
old: 323.57071827987835
new: 44.039100017307746

path: .spaces[2].metrics.halstead.volume
old: 1996.411494448972
new: 128.92738965508113

path: .spaces[2].metrics.halstead.effort
old: 42423.74425704066
new: 687.6127448270993

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

path: .spaces[2].metrics.halstead.level
old: 0.04705882352941176
new: 0.1875

path: .spaces[2].metrics.halstead.N1
old: 219.0
new: 17.0

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

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

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

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

Code

static GtkPaperSize* moz_gtk_paper_size_copy_to_new_custom(
    GtkPaperSize* oldPaperSize) {
  // We make a "custom-ified" copy of the paper size so it can be changed later.
  return gtk_paper_size_new_custom(
      gtk_paper_size_get_name(oldPaperSize),
      gtk_paper_size_get_display_name(oldPaperSize),
      gtk_paper_size_get_width(oldPaperSize, GTK_UNIT_INCH),
      gtk_paper_size_get_height(oldPaperSize, GTK_UNIT_INCH), GTK_UNIT_INCH);
}

Minimal test - lines (20, 23)

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

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

path: .spaces[0].metrics.mi.mi_visual_studio
old: 73.4188947427642
new: 72.98171388842268

path: .spaces[0].metrics.mi.mi_sei
old: 105.62782658031448
new: 104.44747782850354

path: .spaces[0].metrics.mi.mi_original
old: 125.54631001012676
new: 124.79873074920278

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

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

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

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

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

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

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

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

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6887218755408668
new: 2.094817802929741

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

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

path: .spaces[0].metrics.halstead.difficulty
old: 4.0
new: 4.277777777777778

path: .spaces[0].metrics.halstead.volume
old: 38.039100017307746
new: 92.0

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

path: .spaces[0].metrics.halstead.estimated_program_length
old: 20.264662506490403
new: 48.18080946738404

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

path: .spaces[0].metrics.halstead.level
old: 0.25
new: 0.23376623376623376

path: .spaces[0].metrics.halstead.bugs
old: 0.009500334461331307
new: 0.0179012260575504

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

path: .spaces[0].metrics.halstead.time
old: 8.4531333371795
new: 21.864197530864196

path: .spaces[0].metrics.halstead.effort
old: 152.15640006923098
new: 393.55555555555554

path: .spaces[0].metrics.halstead.length
old: 12.0
new: 23.0

Code

static gboolean ref_printer(GtkPrinter* aPrinter, gpointer aData) {
  ((nsPrintSettingsGTK*)aData)->SetGtkPrinter(aPrinter);
  return TRUE;
}

Minimal test - lines (25, 29)

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

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

path: .spaces[1].metrics.loc.sloc
old: 6.0
new: 5.0

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

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

path: .spaces[1].metrics.halstead.n2
old: 6.0
new: 9.0

path: .spaces[1].metrics.halstead.estimated_program_length
old: 35.161259458730164
new: 48.18080946738404

path: .spaces[1].metrics.halstead.bugs
old: 0.017485065986883357
new: 0.020054719834944633

path: .spaces[1].metrics.halstead.N1
old: 14.0
new: 13.0

path: .spaces[1].metrics.halstead.N2
old: 8.0
new: 12.0

path: .spaces[1].metrics.halstead.time
old: 21.106211725693637
new: 25.925925925925927

path: .spaces[1].metrics.halstead.purity_ratio
old: 1.5982390663059165
new: 1.9272323786953616

path: .spaces[1].metrics.halstead.volume
old: 81.40967379910403
new: 100.0

path: .spaces[1].metrics.halstead.length
old: 22.0
new: 25.0

path: .spaces[1].metrics.halstead.vocabulary
old: 13.0
new: 16.0

path: .spaces[1].metrics.halstead.effort
old: 379.9118110624854
new: 466.6666666666667

path: .spaces[1].metrics.mi.mi_sei
old: 95.65854015658977
new: 130.31220320884648

path: .spaces[1].metrics.mi.mi_visual_studio
old: 69.3778521832324
new: 70.47966131662542

path: .spaces[1].metrics.mi.mi_original
old: 118.6361272333274
new: 120.52022085142949

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

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

Code

static gboolean printer_enumerator(GtkPrinter* aPrinter, gpointer aData) {
  if (gtk_printer_is_default(aPrinter)) return ref_printer(aPrinter, aData);

  return FALSE;  // Keep 'em coming...
}