# Global Metrics

path: .metrics.cognitive.average
old: null
new: 0.0
path: .metrics.nexits.average
old: null
new: 0.0
path: .metrics.loc.cloc
old: 18.0
new: 6.0
path: .metrics.loc.blank
old: 9.0
new: 7.0
path: .metrics.loc.lloc
old: 0.0
new: 3.0
path: .metrics.loc.sloc
old: 48.0
new: 26.0
path: .metrics.loc.ploc
old: 21.0
new: 13.0
path: .metrics.nargs.sum
old: 0.0
new: 2.0
path: .metrics.nargs.average
old: null
new: 2.0
path: .metrics.mi.mi_sei
old: 80.48028223603526
new: 83.99566881176318
path: .metrics.mi.mi_original
old: 79.88051982678328
new: 87.00492638094906
path: .metrics.mi.mi_visual_studio
old: 46.71375428466859
new: 50.880073906987754
path: .metrics.nom.total
old: 0.0
new: 1.0
path: .metrics.nom.functions
old: 0.0
new: 1.0
path: .metrics.halstead.length
old: 47.0
new: 68.0
path: .metrics.halstead.volume
old: 206.43891887060175
new: 354.2428288627686
path: .metrics.halstead.estimated_program_length
old: 77.48686830125577
new: 159.11595475302198
path: .metrics.halstead.vocabulary
old: 21.0
new: 37.0
path: .metrics.halstead.bugs
old: 0.021278452585538784
new: 0.06496113488663763
path: .metrics.halstead.effort
old: 510.0255642685455
new: 2720.584925666062
path: .metrics.halstead.N2
old: 21.0
new: 32.0
path: .metrics.halstead.level
old: 0.4047619047619048
new: 0.13020833333333334
path: .metrics.halstead.N1
old: 26.0
new: 36.0
path: .metrics.halstead.n2
old: 17.0
new: 25.0
path: .metrics.halstead.purity_ratio
old: 1.648656772367144
new: 2.3399405110738525
path: .metrics.halstead.difficulty
old: 2.4705882352941178
new: 7.68
path: .metrics.halstead.time
old: 28.33475357047475
new: 151.14360698144793
path: .metrics.halstead.n1
old: 4.0
new: 12.0

# Spaces Data

## Minimal test - lines (12, 26)

path: .spaces[0].metrics.mi.mi_original
old: 111.59939963262087
new: 96.62835144179591
path: .spaces[0].metrics.mi.mi_sei
old: 121.58610869917472
new: 83.37894827658363
path: .spaces[0].metrics.mi.mi_visual_studio
old: 65.26280680270227
new: 56.50780786069937
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].metrics.nargs.average
old: null
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 11.0
new: 15.0
path: .spaces[0].metrics.loc.cloc
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 6.0
new: 9.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 5.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[0].metrics.halstead.length
old: 15.0
new: 64.0
path: .spaces[0].metrics.halstead.vocabulary
old: 10.0
new: 33.0
path: .spaces[0].metrics.halstead.N2
old: 6.0
new: 28.0
path: .spaces[0].metrics.halstead.effort
old: 99.65784284662088
new: 2582.729789111528
path: .spaces[0].metrics.halstead.bugs
old: 0.007165058383377737
new: 0.06274773586782953
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.5673183336217955
new: 2.1134096232344977
path: .spaces[0].metrics.halstead.n2
old: 6.0
new: 21.0
path: .spaces[0].metrics.halstead.n1
old: 4.0
new: 12.0
path: .spaces[0].metrics.halstead.time
old: 5.5365468248122705
new: 143.4849882839738
path: .spaces[0].metrics.halstead.difficulty
old: 2.0
new: 8.0
path: .spaces[0].metrics.halstead.volume
old: 49.82892142331043
new: 322.841223638941
path: .spaces[0].metrics.halstead.level
old: 0.5
new: 0.125
path: .spaces[0].metrics.halstead.estimated_program_length
old: 23.509775004326936
new: 135.25821588700785
path: .spaces[0].metrics.halstead.N1
old: 9.0
new: 36.0
path: .spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: null
new: 0.0

### Code

    namespace mozilla::widget {

    void NativeMenuSupport::CreateNativeMenuBar(nsIWidget* aParent, dom::Element* aMenuBarElement) {
      MOZ_RELEASE_ASSERT(NS_IsMainThread(), "Attempting to create native menu bar on wrong thread!");

      RefPtr mb = new nsMenuBarX();

      nsresult rv = mb->Create(aMenuBarElement);
      MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv));

      // Give the menubar to the parent window. The parent takes ownership.
      static_cast(aParent)->SetMenuBar(std::move(mb));
    }

    }  // namespace mozilla::widget