# Global Metrics

path: .metrics.halstead.effort
old: 31160.139321294308
new: 158291.5468314111
path: .metrics.halstead.n2
old: 90.0
new: 116.0
path: .metrics.halstead.vocabulary
old: 106.0
new: 144.0
path: .metrics.halstead.N1
old: 178.0
new: 404.0
path: .metrics.halstead.estimated_program_length
old: 648.2667786696708
new: 930.1317332524112
path: .metrics.halstead.n1
old: 16.0
new: 28.0
path: .metrics.halstead.time
old: 1731.1188511830171
new: 8793.974823967284
path: .metrics.halstead.volume
old: 2247.1254318241085
new: 4839.699375973561
path: .metrics.halstead.level
old: 0.07211538461538461
new: 0.03057459146020032
path: .metrics.halstead.N2
old: 156.0
new: 271.0
path: .metrics.halstead.bugs
old: 0.3300742707733654
new: 0.9754025665096488
path: .metrics.halstead.difficulty
old: 13.866666666666667
new: 32.706896551724135
path: .metrics.halstead.purity_ratio
old: 1.9409184990109905
new: 1.3779729381517205
path: .metrics.halstead.length
old: 334.0
new: 675.0
path: .metrics.nexits.average
old: 0.4
new: 1.3
path: .metrics.nexits.sum
old: 2.0
new: 13.0
path: .metrics.nargs.average
old: 0.6
new: 0.7
path: .metrics.nargs.sum
old: 3.0
new: 7.0
path: .metrics.cognitive.average
old: 0.0
new: 3.2
path: .metrics.cognitive.sum
old: 0.0
new: 32.0
path: .metrics.mi.mi_original
old: 47.70957289469723
new: 34.45967919818159
path: .metrics.mi.mi_sei
old: 32.836432652989785
new: -3.5519884762272973
path: .metrics.mi.mi_visual_studio
old: 27.90033502613873
new: 20.151859180223152
path: .metrics.cyclomatic.average
old: 1.181818181818182
new: 3.0
path: .metrics.cyclomatic.sum
old: 13.0
new: 33.0
path: .metrics.nom.functions
old: 5.0
new: 10.0
path: .metrics.nom.total
old: 5.0
new: 10.0
path: .metrics.loc.blank
old: 29.0
new: 38.0
path: .metrics.loc.lloc
old: 3.0
new: 61.0
path: .metrics.loc.cloc
old: 45.0
new: 12.0
path: .metrics.loc.ploc
old: 67.0
new: 138.0
path: .metrics.loc.sloc
old: 141.0
new: 188.0

# Spaces Data

## Minimal test - lines (28, 46)

path: .spaces[2].metrics.nargs.average
old: 0.6
new: 1.0
path: .spaces[2].metrics.nargs.sum
old: 3.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.sum
old: 9.0
new: 3.0
path: .spaces[2].metrics.cyclomatic.average
old: 1.2857142857142858
new: 3.0
path: .spaces[2].metrics.cognitive.sum
old: 0.0
new: 2.0
path: .spaces[2].metrics.cognitive.average
old: 0.0
new: 2.0
path: .spaces[2].metrics.nom.total
old: 5.0
new: 1.0
path: .spaces[2].metrics.nom.functions
old: 5.0
new: 1.0
path: .spaces[2].metrics.loc.lloc
old: 3.0
new: 9.0
path: .spaces[2].metrics.loc.blank
old: 25.0
new: 5.0
path: .spaces[2].metrics.loc.sloc
old: 107.0
new: 19.0
path: .spaces[2].metrics.loc.ploc
old: 51.0
new: 14.0
path: .spaces[2].metrics.loc.cloc
old: 31.0
new: 0.0
path: .spaces[2].metrics.mi.mi_visual_studio
old: 31.293190483005077
new: 53.79233982074395
path: .spaces[2].metrics.mi.mi_sei
old: 39.442731406474216
new: 57.31076823041468
path: .spaces[2].metrics.mi.mi_original
old: 53.511355725938685
new: 91.98490109347216
path: .spaces[2].metrics.nexits.average
old: 0.4
new: 3.0
path: .spaces[2].metrics.nexits.sum
old: 2.0
new: 3.0
path: .spaces[2].metrics.halstead.difficulty
old: 14.379746835443038
new: 9.8
path: .spaces[2].metrics.halstead.level
old: 0.06954225352112677
new: 0.1020408163265306
path: .spaces[2].metrics.halstead.N2
old: 142.0
new: 28.0
path: .spaces[2].metrics.halstead.n1
old: 16.0
new: 14.0
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.7784768326138962
new: 1.9681905747401929
path: .spaces[2].metrics.halstead.time
old: 1658.5235491253238
new: 196.65870249677695
path: .spaces[2].metrics.halstead.volume
old: 2076.0743722325797
new: 361.20986172877406
path: .spaces[2].metrics.halstead.length
old: 316.0
new: 71.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 561.9986791059912
new: 139.7415308065537
path: .spaces[2].metrics.halstead.n2
old: 79.0
new: 20.0
path: .spaces[2].metrics.halstead.vocabulary
old: 95.0
new: 34.0
path: .spaces[2].metrics.halstead.effort
old: 29853.42388425583
new: 3539.856644941986
path: .spaces[2].metrics.halstead.N1
old: 174.0
new: 43.0
path: .spaces[2].metrics.halstead.bugs
old: 0.3207806602444026
new: 0.07742285730504271

### Code

    nsStandaloneNativeMenu::Init(Element* aElement) {
      NS_ASSERTION(mMenu == nullptr, "nsNativeMenu::Init - mMenu not null!");

      NS_ENSURE_ARG(aElement);

      if (!aElement->IsAnyOfXULElements(nsGkAtoms::menu, nsGkAtoms::menupopup)) {
        return NS_ERROR_FAILURE;
      }

      nsresult rv = nsMenuGroupOwnerX::Create(aElement);
      if (NS_FAILED(rv)) {
        return rv;
      }

      mMenu = MakeUnique(this, this, aElement);
      mMenu->SetupIcon();

      return NS_OK;
    }

## Minimal test - lines (25, 25)

path: .spaces[1].metrics.nargs.average
old: null
new: 0.0
path: .spaces[1].metrics.mi.mi_sei
old: 129.26360748831726
new: 152.37629276875444
path: .spaces[1].metrics.mi.mi_original
old: 141.92938490684145
new: 158.02045369261705
path: .spaces[1].metrics.mi.mi_visual_studio
old: 82.99964029639851
new: 92.40962204246613
path: .spaces[1].metrics.nexits.average
old: null
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[1].metrics.loc.ploc
old: 3.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 3.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.sum
old: 2.0
new: 1.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.halstead.N2
old: 2.0
new: 1.0
path: .spaces[1].metrics.halstead.n1
old: 2.0
new: 4.0
path: .spaces[1].metrics.halstead.n2
old: 2.0
new: 1.0
path: .spaces[1].metrics.halstead.difficulty
old: 1.0
new: 2.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.0
new: 1.6
path: .spaces[1].metrics.halstead.N1
old: 2.0
new: 4.0
path: .spaces[1].metrics.halstead.volume
old: 8.0
new: 11.60964047443681
path: .spaces[1].metrics.halstead.level
old: 1.0
new: 0.5
path: .spaces[1].metrics.halstead.time
old: 0.4444444444444444
new: 1.289960052715201
path: .spaces[1].metrics.halstead.estimated_program_length
old: 4.0
new: 8.0
path: .spaces[1].metrics.halstead.vocabulary
old: 4.0
new: 5.0
path: .spaces[1].metrics.halstead.effort
old: 8.0
new: 23.21928094887362
path: .spaces[1].metrics.halstead.bugs
old: 0.0013333333333333333
new: 0.002712967490108627
path: .spaces[1].metrics.halstead.length
old: 4.0
new: 5.0

### Code

    nsStandaloneNativeMenu::~nsStandaloneNativeMenu() {}

## Minimal test - lines (23, 23)

path: .spaces[0].metrics.nargs.average
old: null
new: 0.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.mi.mi_original
old: null
new: 151.6056495187884
path: .spaces[0].metrics.mi.mi_sei
old: null
new: 143.12168659889798
path: .spaces[0].metrics.mi.mi_visual_studio
old: null
new: 88.65827457239088
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.halstead.N2
old: 1.0
new: 5.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: null
new: 23.21928094887362
path: .spaces[0].metrics.halstead.level
old: null
new: 0.4
path: .spaces[0].metrics.halstead.volume
old: 0.0
new: 39.86313713864835
path: .spaces[0].metrics.halstead.effort
old: 0.0
new: 99.65784284662088
path: .spaces[0].metrics.halstead.n1
old: 0.0
new: 5.0
path: .spaces[0].metrics.halstead.purity_ratio
old: null
new: 1.9349400790728015
path: .spaces[0].metrics.halstead.bugs
old: 0.0
new: 0.007165058383377737
path: .spaces[0].metrics.halstead.n2
old: 1.0
new: 5.0
path: .spaces[0].metrics.halstead.difficulty
old: 0.0
new: 2.5
path: .spaces[0].metrics.halstead.length
old: 1.0
new: 12.0
path: .spaces[0].metrics.halstead.time
old: 0.0
new: 5.5365468248122705
path: .spaces[0].metrics.halstead.vocabulary
old: 1.0
new: 10.0
path: .spaces[0].metrics.halstead.N1
old: 0.0
new: 7.0

### Code

    nsStandaloneNativeMenu::nsStandaloneNativeMenu() : mMenu(nullptr), mContainerStatusBarItem(nil) {}