# Global Metrics

path: .metrics.nom.functions
old: 12.0
new: 0.0
path: .metrics.nom.total
old: 12.0
new: 0.0
path: .metrics.halstead.bugs
old: 1.9607959011363243
new: 0.09630319568866648
path: .metrics.halstead.n2
old: 155.0
new: 192.0
path: .metrics.halstead.level
old: 0.020833333333333332
new: 0.4682926829268293
path: .metrics.halstead.volume
old: 9399.164062724358
new: 2299.642372922793
path: .metrics.halstead.estimated_program_length
old: 1275.0060006857625
new: 1464.312800138462
path: .metrics.halstead.n1
old: 30.0
new: 4.0
path: .metrics.halstead.effort
old: 451159.8750107692
new: 4910.694650512214
path: .metrics.halstead.time
old: 25064.437500598287
new: 272.81636947290076
path: .metrics.halstead.N1
old: 752.0
new: 97.0
path: .metrics.halstead.difficulty
old: 48.0
new: 2.1354166666666665
path: .metrics.halstead.N2
old: 496.0
new: 205.0
path: .metrics.halstead.vocabulary
old: 185.0
new: 196.0
path: .metrics.halstead.purity_ratio
old: 1.021639423626412
new: 4.848717881253186
path: .metrics.halstead.length
old: 1248.0
new: 302.0
path: .metrics.loc.lloc
old: 130.0
new: 0.0
path: .metrics.loc.cloc
old: 73.0
new: 43.0
path: .metrics.loc.sloc
old: 420.0
new: 255.0
path: .metrics.loc.ploc
old: 313.0
new: 176.0
path: .metrics.loc.blank
old: 34.0
new: 36.0
path: .metrics.nexits.average
old: 2.0833333333333335
new: null
path: .metrics.nexits.sum
old: 25.0
new: 0.0
path: .metrics.nargs.average
old: 1.1666666666666667
new: null
path: .metrics.nargs.sum
old: 14.0
new: 0.0
path: .metrics.cognitive.average
old: 4.333333333333333
new: null
path: .metrics.cognitive.sum
old: 52.0
new: 0.0
path: .metrics.cyclomatic.average
old: 5.75
new: 1.0
path: .metrics.cyclomatic.sum
old: 92.0
new: 4.0
path: .metrics.mi.mi_sei
old: -29.867513766538963
new: 12.207816764103477
path: .metrics.mi.mi_original
old: 4.41631829631352
new: 40.06088428950552
path: .metrics.mi.mi_visual_studio
old: 2.582642278545918
new: 23.427417713161127

# Spaces Data

## Minimal test - lines (190, 249)

path: .spaces[0].metrics.loc.blank
old: 32.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 308.0
new: 55.0
path: .spaces[0].metrics.loc.lloc
old: 130.0
new: 0.0
path: .spaces[0].metrics.loc.cloc
old: 60.0
new: 4.0
path: .spaces[0].metrics.loc.sloc
old: 400.0
new: 60.0
path: .spaces[0].metrics.cyclomatic.average
old: 6.066666666666666
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 91.0
new: 3.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 3.207577862070139
new: 39.11722535347007
path: .spaces[0].metrics.mi.mi_original
old: 5.484958144139938
new: 66.89045535443381
path: .spaces[0].metrics.mi.mi_sei
old: -30.289999202420763
new: 40.57805292427942
path: .spaces[0].metrics.cognitive.average
old: 4.333333333333333
new: null
path: .spaces[0].metrics.cognitive.sum
old: 52.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 12.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 12.0
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 14.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 1.1666666666666667
new: null
path: .spaces[0].metrics.nexits.average
old: 2.0833333333333335
new: null
path: .spaces[0].metrics.nexits.sum
old: 25.0
new: 0.0
path: .spaces[0].metrics.halstead.N2
old: 491.0
new: 95.0
path: .spaces[0].metrics.halstead.vocabulary
old: 180.0
new: 92.0
path: .spaces[0].metrics.halstead.bugs
old: 1.9783660975265849
new: 0.06470185189106525
path: .spaces[0].metrics.halstead.n1
old: 30.0
new: 4.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1231.5295214426376
new: 576.4299824400822
path: .spaces[0].metrics.halstead.effort
old: 457237.5338780253
new: 2704.312956329089
path: .spaces[0].metrics.halstead.time
old: 25402.08521544585
new: 150.2396086849494
path: .spaces[0].metrics.halstead.difficulty
old: 49.1
new: 2.159090909090909
path: .spaces[0].metrics.halstead.level
old: 0.02036659877800407
new: 0.4631578947368421
path: .spaces[0].metrics.halstead.length
old: 1243.0
new: 192.0
path: .spaces[0].metrics.halstead.N1
old: 752.0
new: 97.0
path: .spaces[0].metrics.halstead.n2
old: 150.0
new: 88.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.990771940018212
new: 3.0022394918754283
path: .spaces[0].metrics.halstead.volume
old: 9312.373398737784
new: 1252.5238955629466

### Code

    namespace mozilla {
    namespace widget {
    namespace themeconst {

    // Pulled from sdk/include/vsstyle.h
    enum {
      WP_CAPTION = 1,
      WP_SMALLCAPTION = 2,
      WP_MINCAPTION = 3,
      WP_SMALLMINCAPTION = 4,
      WP_MAXCAPTION = 5,
      WP_SMALLMAXCAPTION = 6,
      WP_FRAMELEFT = 7,
      WP_FRAMERIGHT = 8,
      WP_FRAMEBOTTOM = 9,
      WP_SMALLFRAMELEFT = 10,
      WP_SMALLFRAMERIGHT = 11,
      WP_SMALLFRAMEBOTTOM = 12,
      WP_SYSBUTTON = 13,
      WP_MDISYSBUTTON = 14,
      WP_MINBUTTON = 15,
      WP_MDIMINBUTTON = 16,
      WP_MAXBUTTON = 17,
      WP_CLOSEBUTTON = 18,
      WP_SMALLCLOSEBUTTON = 19,
      WP_MDICLOSEBUTTON = 20,
      WP_RESTOREBUTTON = 21,
      WP_MDIRESTOREBUTTON = 22,
      WP_HELPBUTTON = 23,
      WP_MDIHELPBUTTON = 24,
      WP_HORZSCROLL = 25,
      WP_HORZTHUMB = 26,
      WP_VERTSCROLL = 27,
      WP_VERTTHUMB = 28,
      WP_DIALOG = 29,
      WP_CAPTIONSIZINGTEMPLATE = 30,
      WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
      WP_FRAMELEFTSIZINGTEMPLATE = 32,
      WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
      WP_FRAMERIGHTSIZINGTEMPLATE = 34,
      WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
      WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
      WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
      WP_FRAME = 38,
      WP_Count
    };

    enum FRAMESTATES { FS_ACTIVE = 1, FS_INACTIVE = 2 };

    enum {
      BS_NORMAL = 1,
      BS_HOT = 2,
      BS_PUSHED = 3,
      BS_DISABLED = 4,
      BS_INACTIVE = 5 /* undocumented, inactive caption button */
    };

    }  // namespace themeconst
    }  // namespace widget
    }  // namespace mozilla

## Minimal test - lines (191, 248)

path: .spaces[0].spaces[0].metrics.cognitive.average
old: 4.181818181818182
new: null
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 46.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 2.090909090909091
new: null
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 23.0
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 711.0
new: 96.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 1.8080081995471091
new: 0.06418439278746566
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 1149.8700287872778
new: 568.5360841388393
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 28.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 142.0
new: 87.0
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 0.9777806367238756
new: 2.9922951796781017
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 45.84507042253521
new: 2.160919540229885
path: .spaces[0].spaces[0].metrics.halstead.time
old: 22192.6912180147
new: 148.44088413020273
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.02181259600614439
new: 0.4627659574468085
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 8713.443740897937
new: 1236.4809816377524
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 465.0
new: 94.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 170.0
new: 91.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 399468.4419242646
new: 2671.935914343649
path: .spaces[0].spaces[0].metrics.halstead.length
old: 1176.0
new: 190.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 11.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nom.total
old: 11.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 1.0
new: null
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 11.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 86.0
new: 2.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 6.615384615384615
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 124.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 59.0
new: 3.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 286.0
new: 53.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 31.0
new: 2.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 376.0
new: 58.0
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 4.66843248859696
new: 39.61210219750657
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: -26.633533788771626
new: 39.4805620338515
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 7.983019555500803
new: 67.73669475773625

### Code

    namespace widget {
    namespace themeconst {

    // Pulled from sdk/include/vsstyle.h
    enum {
      WP_CAPTION = 1,
      WP_SMALLCAPTION = 2,
      WP_MINCAPTION = 3,
      WP_SMALLMINCAPTION = 4,
      WP_MAXCAPTION = 5,
      WP_SMALLMAXCAPTION = 6,
      WP_FRAMELEFT = 7,
      WP_FRAMERIGHT = 8,
      WP_FRAMEBOTTOM = 9,
      WP_SMALLFRAMELEFT = 10,
      WP_SMALLFRAMERIGHT = 11,
      WP_SMALLFRAMEBOTTOM = 12,
      WP_SYSBUTTON = 13,
      WP_MDISYSBUTTON = 14,
      WP_MINBUTTON = 15,
      WP_MDIMINBUTTON = 16,
      WP_MAXBUTTON = 17,
      WP_CLOSEBUTTON = 18,
      WP_SMALLCLOSEBUTTON = 19,
      WP_MDICLOSEBUTTON = 20,
      WP_RESTOREBUTTON = 21,
      WP_MDIRESTOREBUTTON = 22,
      WP_HELPBUTTON = 23,
      WP_MDIHELPBUTTON = 24,
      WP_HORZSCROLL = 25,
      WP_HORZTHUMB = 26,
      WP_VERTSCROLL = 27,
      WP_VERTTHUMB = 28,
      WP_DIALOG = 29,
      WP_CAPTIONSIZINGTEMPLATE = 30,
      WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
      WP_FRAMELEFTSIZINGTEMPLATE = 32,
      WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
      WP_FRAMERIGHTSIZINGTEMPLATE = 34,
      WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
      WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
      WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
      WP_FRAME = 38,
      WP_Count
    };

    enum FRAMESTATES { FS_ACTIVE = 1, FS_INACTIVE = 2 };

    enum {
      BS_NORMAL = 1,
      BS_HOT = 2,
      BS_PUSHED = 3,
      BS_DISABLED = 4,
      BS_INACTIVE = 5 /* undocumented, inactive caption button */
    };

    }  // namespace themeconst
    }  // namespace widget

## Minimal test - lines (192, 247)

path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 60.34299658624942
new: 40.118686955714686
path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_sei
old: 73.67493400079807
new: 37.80438445305914
path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_original
old: 103.1865241624865
new: 68.60295469427211
path: .spaces[0].spaces[0].spaces[0].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.nargs.average
old: 1.0
new: null
path: .spaces[0].spaces[0].spaces[0].metrics.cyclomatic.sum
old: 5.0
new: 1.0
path: .spaces[0].spaces[0].spaces[0].metrics.cyclomatic.average
old: 5.0
new: 1.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.length
old: 30.0
new: 188.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.n1
old: 9.0
new: 4.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N1
old: 20.0
new: 95.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.n2
old: 9.0
new: 86.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.9019550008653872
new: 2.982227494172236
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.bugs
old: 0.024379516068267628
new: 0.06366578464330745
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.level
old: 0.2
new: 0.4623655913978495
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 57.05865002596162
new: 560.6587689043804
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.difficulty
old: 5.0
new: 2.1627906976744184
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.effort
old: 625.4887502163468
new: 2639.6176636332098
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.time
old: 34.74937501201927
new: 146.64542575740057
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.vocabulary
old: 18.0
new: 90.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.volume
old: 125.09775004326936
new: 1220.4683821099788
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N2
old: 10.0
new: 93.0
path: .spaces[0].spaces[0].spaces[0].metrics.nexits.average
old: 2.0
new: null
path: .spaces[0].spaces[0].spaces[0].metrics.nexits.sum
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.cloc
old: 0.0
new: 2.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.ploc
old: 13.0
new: 51.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.lloc
old: 8.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.sloc
old: 13.0
new: 56.0
path: .spaces[0].spaces[0].spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.cognitive.average
old: 1.0
new: null

### Code

    namespace themeconst {

    // Pulled from sdk/include/vsstyle.h
    enum {
      WP_CAPTION = 1,
      WP_SMALLCAPTION = 2,
      WP_MINCAPTION = 3,
      WP_SMALLMINCAPTION = 4,
      WP_MAXCAPTION = 5,
      WP_SMALLMAXCAPTION = 6,
      WP_FRAMELEFT = 7,
      WP_FRAMERIGHT = 8,
      WP_FRAMEBOTTOM = 9,
      WP_SMALLFRAMELEFT = 10,
      WP_SMALLFRAMERIGHT = 11,
      WP_SMALLFRAMEBOTTOM = 12,
      WP_SYSBUTTON = 13,
      WP_MDISYSBUTTON = 14,
      WP_MINBUTTON = 15,
      WP_MDIMINBUTTON = 16,
      WP_MAXBUTTON = 17,
      WP_CLOSEBUTTON = 18,
      WP_SMALLCLOSEBUTTON = 19,
      WP_MDICLOSEBUTTON = 20,
      WP_RESTOREBUTTON = 21,
      WP_MDIRESTOREBUTTON = 22,
      WP_HELPBUTTON = 23,
      WP_MDIHELPBUTTON = 24,
      WP_HORZSCROLL = 25,
      WP_HORZTHUMB = 26,
      WP_VERTSCROLL = 27,
      WP_VERTTHUMB = 28,
      WP_DIALOG = 29,
      WP_CAPTIONSIZINGTEMPLATE = 30,
      WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
      WP_FRAMELEFTSIZINGTEMPLATE = 32,
      WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
      WP_FRAMERIGHTSIZINGTEMPLATE = 34,
      WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
      WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
      WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
      WP_FRAME = 38,
      WP_Count
    };

    enum FRAMESTATES { FS_ACTIVE = 1, FS_INACTIVE = 2 };

    enum {
      BS_NORMAL = 1,
      BS_HOT = 2,
      BS_PUSHED = 3,
      BS_DISABLED = 4,
      BS_INACTIVE = 5 /* undocumented, inactive caption button */
    };

    }  // namespace themeconst