# Global Metrics

path: .metrics.nom.total
old: 89.0
new: 2.0
path: .metrics.nom.closures
old: 1.0
new: 0.0
path: .metrics.nom.functions
old: 88.0
new: 2.0
path: .metrics.cognitive.sum
old: 226.0
new: 0.0
path: .metrics.cognitive.average
old: 2.539325842696629
new: 0.0
path: .metrics.nexits.average
old: 1.0337078651685394
new: 0.0
path: .metrics.nexits.sum
old: 92.0
new: 0.0
path: .metrics.loc.ploc
old: 1249.0
new: 23.0
path: .metrics.loc.sloc
old: 1859.0
new: 64.0
path: .metrics.loc.cloc
old: 302.0
new: 34.0
path: .metrics.loc.blank
old: 308.0
new: 7.0
path: .metrics.loc.lloc
old: 539.0
new: 4.0
path: .metrics.mi.mi_original
old: -66.6097932240038
new: 71.72354134878121
path: .metrics.mi.mi_sei
old: -116.29803785812362
new: 73.48609671075383
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 41.943591432035795
path: .metrics.halstead.N2
old: 2400.0
new: 39.0
path: .metrics.halstead.estimated_program_length
old: 3690.599903649424
new: 110.43856189774723
path: .metrics.halstead.difficulty
old: 119.40298507462688
new: 7.8
path: .metrics.halstead.n1
old: 40.0
new: 8.0
path: .metrics.halstead.volume
old: 50548.01552161951
new: 370.16632899843546
path: .metrics.halstead.n2
old: 402.0
new: 20.0
path: .metrics.halstead.level
old: 0.008375
new: 0.12820512820512822
path: .metrics.halstead.bugs
old: 11.049898147429255
new: 0.06758854360822535
path: .metrics.halstead.length
old: 5752.0
new: 77.0
path: .metrics.halstead.time
old: 335310.2190488857
new: 160.40540923265536
path: .metrics.halstead.N1
old: 3352.0
new: 38.0
path: .metrics.halstead.purity_ratio
old: 0.6416202892297329
new: 1.434267037633081
path: .metrics.halstead.vocabulary
old: 442.0
new: 28.0
path: .metrics.halstead.effort
old: 6035583.942879942
new: 2887.2973661877963
path: .metrics.nargs.average
old: 1.550561797752809
new: 1.0
path: .metrics.nargs.sum
old: 138.0
new: 2.0
path: .metrics.cyclomatic.average
old: 2.5294117647058822
new: 1.0
path: .metrics.cyclomatic.sum
old: 258.0
new: 5.0

# Spaces Data

## Minimal test - lines (23, 34)

path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.mi.mi_sei
old: null
new: 73.10076888773328
path: .spaces[0].metrics.mi.mi_visual_studio
old: null
new: 60.23407700503123
path: .spaces[0].metrics.mi.mi_original
old: null
new: 103.0002716786034
path: .spaces[0].metrics.halstead.purity_ratio
old: null
new: 1.9667466412887569
path: .spaces[0].metrics.halstead.bugs
old: 0.0
new: 0.034739533761741374
path: .spaces[0].metrics.halstead.vocabulary
old: 1.0
new: 23.0
path: .spaces[0].metrics.halstead.effort
old: 0.0
new: 1063.9417720646095
path: .spaces[0].metrics.halstead.N2
old: 1.0
new: 21.0
path: .spaces[0].metrics.halstead.difficulty
old: 0.0
new: 5.6
path: .spaces[0].metrics.halstead.estimated_program_length
old: null
new: 82.60335893412778
path: .spaces[0].metrics.halstead.time
old: 0.0
new: 59.10787622581164
path: .spaces[0].metrics.halstead.n2
old: 1.0
new: 15.0
path: .spaces[0].metrics.halstead.N1
old: 0.0
new: 21.0
path: .spaces[0].metrics.halstead.n1
old: 0.0
new: 8.0
path: .spaces[0].metrics.halstead.length
old: 1.0
new: 42.0
path: .spaces[0].metrics.halstead.level
old: null
new: 0.17857142857142858
path: .spaces[0].metrics.halstead.volume
old: 0.0
new: 189.98960215439456
path: .spaces[0].metrics.loc.sloc
old: 1.0
new: 12.0
path: .spaces[0].metrics.loc.ploc
old: 1.0
new: 11.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[0].metrics.nargs.average
old: null
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.nexits.average
old: null
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 2.0

### Code

    class nsPrintfCString : public nsAutoCStringN<16> {
      typedef nsCString string_type;

     public:
      explicit nsPrintfCString(const char_type* aFormat, ...)
          MOZ_FORMAT_PRINTF(2, 3) {
        va_list ap;
        va_start(ap, aFormat);
        AppendVprintf(aFormat, ap);
        va_end(ap);
      }
    };

## Minimal test - lines (54, 62)

path: .spaces[1].metrics.mi.mi_original
old: null
new: 109.64748703358764
path: .spaces[1].metrics.mi.mi_sei
old: null
new: 82.69067351609
path: .spaces[1].metrics.mi.mi_visual_studio
old: null
new: 64.12133744654248
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[1].metrics.loc.ploc
old: 1.0
new: 8.0
path: .spaces[1].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 1.0
new: 9.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[1].metrics.nexits.average
old: null
new: 0.0
path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[1].metrics.nargs.average
old: null
new: 1.0
path: .spaces[1].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[1].metrics.halstead.n1
old: 0.0
new: 8.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: null
new: 67.01955000865388
path: .spaces[1].metrics.halstead.n2
old: 1.0
new: 12.0
path: .spaces[1].metrics.halstead.volume
old: 0.0
new: 129.65784284662087
path: .spaces[1].metrics.halstead.vocabulary
old: 1.0
new: 20.0
path: .spaces[1].metrics.halstead.time
old: 0.0
new: 36.01606745739468
path: .spaces[1].metrics.halstead.effort
old: 0.0
new: 648.2892142331043
path: .spaces[1].metrics.halstead.N1
old: 0.0
new: 15.0
path: .spaces[1].metrics.halstead.level
old: null
new: 0.2
path: .spaces[1].metrics.halstead.purity_ratio
old: null
new: 2.2339850002884627
path: .spaces[1].metrics.halstead.difficulty
old: 0.0
new: 5.0
path: .spaces[1].metrics.halstead.N2
old: 1.0
new: 15.0
path: .spaces[1].metrics.halstead.bugs
old: 0.0
new: 0.02496843235941867
path: .spaces[1].metrics.halstead.length
old: 1.0
new: 30.0

### Code

    class nsVprintfCString : public nsAutoCStringN<16> {
      typedef nsCString string_type;

     public:
      nsVprintfCString(const char_type* aFormat, va_list aArgs)
          MOZ_FORMAT_PRINTF(2, 0) {
        AppendVprintf(aFormat, aArgs);
      }
    };