# Global Metrics

path: .metrics.cognitive.sum
old: 84.0
new: 4.0
path: .metrics.cognitive.average
old: 4.9411764705882355
new: 1.3333333333333333
path: .metrics.cyclomatic.average
old: 4.0
new: 1.5
path: .metrics.cyclomatic.sum
old: 76.0
new: 6.0
path: .metrics.loc.sloc
old: 492.0
new: 74.0
path: .metrics.loc.cloc
old: 83.0
new: 7.0
path: .metrics.loc.ploc
old: 329.0
new: 58.0
path: .metrics.loc.lloc
old: 146.0
new: 18.0
path: .metrics.loc.blank
old: 80.0
new: 9.0
path: .metrics.mi.mi_sei
old: -31.3362028756349
new: 41.05677220557725
path: .metrics.mi.mi_original
old: 4.7932154518999255
new: 64.61122053512938
path: .metrics.mi.mi_visual_studio
old: 2.8030499718713013
new: 37.78433949422771
path: .metrics.nexits.average
old: 2.176470588235294
new: 1.0
path: .metrics.nexits.sum
old: 37.0
new: 3.0
path: .metrics.nom.functions
old: 17.0
new: 3.0
path: .metrics.nom.total
old: 17.0
new: 3.0
path: .metrics.nargs.average
old: 1.8235294117647056
new: 0.3333333333333333
path: .metrics.nargs.sum
old: 31.0
new: 1.0
path: .metrics.halstead.level
old: 0.019537996545768568
new: 0.109375
path: .metrics.halstead.n2
old: 181.0
new: 49.0
path: .metrics.halstead.estimated_program_length
old: 1517.4721055620605
new: 328.42375127045165
path: .metrics.halstead.time
old: 30812.69006764972
new: 449.33964631262864
path: .metrics.halstead.effort
old: 554628.421217695
new: 8088.113633627316
path: .metrics.halstead.vocabulary
old: 213.0
new: 63.0
path: .metrics.halstead.N1
old: 822.0
new: 84.0
path: .metrics.halstead.n1
old: 32.0
new: 14.0
path: .metrics.halstead.length
old: 1401.0
new: 148.0
path: .metrics.halstead.purity_ratio
old: 1.0831349789879088
new: 2.2190794004760246
path: .metrics.halstead.N2
old: 579.0
new: 64.0
path: .metrics.halstead.difficulty
old: 51.18232044198895
new: 9.142857142857142
path: .metrics.halstead.volume
old: 10836.3281779364
new: 884.6374286779877
path: .metrics.halstead.bugs
old: 2.25016047780232
new: 0.13431058522353648

# Spaces Data

## Minimal test - lines (40, 53)

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.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: null
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.mi.mi_sei
old: 146.7530250665717
new: 65.69113906112193
path: .spaces[0].metrics.mi.mi_visual_studio
old: 78.14958877590634
new: 57.189316670657114
path: .spaces[0].metrics.mi.mi_original
old: 133.63579680679985
new: 97.79373150682366
path: .spaces[0].metrics.nexits.average
old: null
new: 2.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 4.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 4.0
path: .spaces[0].metrics.halstead.effort
old: 2.377443751081734
new: 2735.3469240690188
path: .spaces[0].metrics.halstead.level
old: 2.0
new: 0.11188811188811187
path: .spaces[0].metrics.halstead.vocabulary
old: 3.0
new: 29.0
path: .spaces[0].metrics.halstead.n1
old: 1.0
new: 13.0
path: .spaces[0].metrics.halstead.volume
old: 4.754887502163468
new: 306.05280269303705
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.6666666666666666
new: 1.779455814854511
path: .spaces[0].metrics.halstead.n2
old: 2.0
new: 16.0
path: .spaces[0].metrics.halstead.time
old: 0.13208020839342968
new: 151.96371800383437
path: .spaces[0].metrics.halstead.length
old: 3.0
new: 63.0
path: .spaces[0].metrics.halstead.difficulty
old: 0.5
new: 8.9375
path: .spaces[0].metrics.halstead.N2
old: 2.0
new: 22.0
path: .spaces[0].metrics.halstead.bugs
old: 0.000593770903833207
new: 0.06519591063235117
path: .spaces[0].metrics.halstead.N1
old: 1.0
new: 41.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 2.0
new: 112.1057163358342
path: .spaces[0].metrics.loc.sloc
old: 6.0
new: 14.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 6.0
path: .spaces[0].metrics.loc.cloc
old: 1.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 3.0
new: 13.0

### Code

    NS_IMPL_COMPONENT_FACTORY(nsIClipboard) {
      nsCOMPtr inst;
      if (gfxPlatform::IsHeadless()) {
        inst = new HeadlessClipboard();
      } else {
        auto clipboard = MakeRefPtr();
        if (NS_FAILED(clipboard->Init())) {
          return nullptr;
        }
        inst = std::move(clipboard);
      }

      return inst.forget().downcast();
    }

## Minimal test - lines (58, 74)

path: .spaces[2].metrics.halstead.effort
old: 2433.817735421825
new: 1036.441565604857
path: .spaces[2].metrics.halstead.time
old: 135.2120964123236
new: 57.58008697804761
path: .spaces[2].metrics.halstead.N2
old: 24.0
new: 13.0
path: .spaces[2].metrics.halstead.level
old: 0.125
new: 0.15384615384615383
path: .spaces[2].metrics.halstead.n1
old: 12.0
new: 5.0
path: .spaces[2].metrics.halstead.n2
old: 18.0
new: 5.0
path: .spaces[2].metrics.halstead.N1
old: 38.0
new: 35.0
path: .spaces[2].metrics.halstead.bugs
old: 0.06031205314059962
new: 0.034138305436868216
path: .spaces[2].metrics.halstead.difficulty
old: 8.0
new: 6.5
path: .spaces[2].metrics.halstead.estimated_program_length
old: 118.07820003461548
new: 23.21928094887362
path: .spaces[2].metrics.halstead.volume
old: 304.22721692772814
new: 159.4525485545934
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.904487097332508
new: 0.4837350197682005
path: .spaces[2].metrics.halstead.vocabulary
old: 30.0
new: 10.0
path: .spaces[2].metrics.halstead.length
old: 62.0
new: 48.0
path: .spaces[2].metrics.cyclomatic.sum
old: 3.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[2].metrics.nexits.average
old: 3.0
new: 0.0
path: .spaces[2].metrics.nexits.sum
old: 3.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 2.0
new: 0.0
path: .spaces[2].metrics.cognitive.sum
old: 2.0
new: 0.0
path: .spaces[2].metrics.mi.mi_sei
old: 58.598746120482986
new: 84.85258644644095
path: .spaces[2].metrics.mi.mi_original
old: 92.87765933659652
new: 98.49886266725426
path: .spaces[2].metrics.mi.mi_visual_studio
old: 54.31442066467633
new: 57.601674074417694
path: .spaces[2].metrics.loc.blank
old: 4.0
new: 1.0
path: .spaces[2].metrics.loc.sloc
old: 19.0
new: 17.0
path: .spaces[2].metrics.loc.lloc
old: 9.0
new: 11.0
path: .spaces[2].metrics.loc.cloc
old: 0.0
new: 1.0

### Code

    void nsWidgetGtk2ModuleDtor() {
      // Shutdown all XP level widget classes.
      WidgetUtils::Shutdown();

      NativeKeyBindings::Shutdown();
      nsLookAndFeel::Shutdown();
      nsFilePicker::Shutdown();
      nsSound::Shutdown();
      nsWindow::ReleaseGlobals();
      IMContextWrapper::Shutdown();
      KeymapWrapper::Shutdown();
      nsGTKToolkit::Shutdown();
      nsAppShellShutdown();
    #ifdef MOZ_ENABLE_DBUS
      WakeLockListener::Shutdown();
    #endif
    }

## Minimal test - lines (56, 56)

path: .spaces[1].metrics.halstead.time
old: 13.325742227201614
new: 2.495426597384537
path: .spaces[1].metrics.halstead.level
old: 0.2857142857142857
new: 0.5
path: .spaces[1].metrics.halstead.n1
old: 7.0
new: 4.0
path: .spaces[1].metrics.halstead.volume
old: 68.53238859703687
new: 22.458839376460833
path: .spaces[1].metrics.halstead.effort
old: 239.86336008962903
new: 44.91767875292167
path: .spaces[1].metrics.halstead.vocabulary
old: 14.0
new: 7.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 2.1834982727114696
new: 1.5943609377704335
path: .spaces[1].metrics.halstead.length
old: 18.0
new: 8.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 39.302968908806456
new: 12.754887502163468
path: .spaces[1].metrics.halstead.N2
old: 7.0
new: 3.0
path: .spaces[1].metrics.halstead.bugs
old: 0.012868305242730796
new: 0.00421201861424495
path: .spaces[1].metrics.halstead.n2
old: 7.0
new: 3.0
path: .spaces[1].metrics.halstead.difficulty
old: 3.5
new: 2.0
path: .spaces[1].metrics.halstead.N1
old: 11.0
new: 5.0
path: .spaces[1].metrics.mi.mi_original
old: 126.3300377591308
new: 154.58924178123317
path: .spaces[1].metrics.mi.mi_sei
old: 106.65668685780516
new: 147.42610035996177
path: .spaces[1].metrics.mi.mi_visual_studio
old: 73.87721506381918
new: 90.4030653691422
path: .spaces[1].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 4.0
new: 1.0
path: .spaces[1].metrics.loc.ploc
old: 4.0
new: 1.0

### Code

    nsresult nsWidgetGtk2ModuleCtor() { return nsAppShellInit(); }