# Global Metrics

path: .metrics.nexits.average
old: 2.2903225806451615
new: 2.0
path: .metrics.nexits.sum
old: 71.0
new: 10.0
path: .metrics.loc.lloc
old: 531.0
new: 27.0
path: .metrics.loc.sloc
old: 1509.0
new: 116.0
path: .metrics.loc.ploc
old: 1025.0
new: 86.0
path: .metrics.loc.cloc
old: 507.0
new: 9.0
path: .metrics.loc.blank
old: 0.0
new: 21.0
path: .metrics.nargs.average
old: 1.935483870967742
new: 0.4
path: .metrics.nargs.sum
old: 60.0
new: 2.0
path: .metrics.cognitive.sum
old: 661.0
new: 15.0
path: .metrics.cognitive.average
old: 21.322580645161292
new: 3.0
path: .metrics.mi.mi_original
old: -72.38199394077195
new: 48.82254321107368
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 28.551194860277008
path: .metrics.mi.mi_sei
old: -110.06938389149173
new: 17.58222617272114
path: .metrics.cyclomatic.average
old: 9.212121212121213
new: 4.75
path: .metrics.cyclomatic.sum
old: 304.0
new: 19.0
path: .metrics.halstead.length
old: 5001.0
new: 383.0
path: .metrics.halstead.time
old: 498012.8618986326
new: 3142.9579183901888
path: .metrics.halstead.N2
old: 1987.0
new: 161.0
path: .metrics.halstead.level
old: 0.004284257932974591
new: 0.04517221908526257
path: .metrics.halstead.difficulty
old: 233.41265060240963
new: 22.1375
path: .metrics.halstead.n1
old: 39.0
new: 22.0
path: .metrics.halstead.n2
old: 166.0
new: 80.0
path: .metrics.halstead.vocabulary
old: 205.0
new: 102.0
path: .metrics.halstead.N1
old: 3014.0
new: 222.0
path: .metrics.halstead.bugs
old: 14.38425769268342
new: 0.4912314074668926
path: .metrics.halstead.effort
old: 8964231.514175387
new: 56573.24253102339
path: .metrics.halstead.estimated_program_length
old: 1430.3872321392173
new: 603.8617432010095
path: .metrics.halstead.volume
old: 38405.07997762674
new: 2555.538905975083
path: .metrics.halstead.purity_ratio
old: 0.2860202423793676
new: 1.5766625148851423
path: .metrics.nom.functions
old: 31.0
new: 3.0
path: .metrics.nom.total
old: 31.0
new: 5.0
path: .metrics.nom.closures
old: 0.0
new: 2.0

# Spaces Data

## Minimal test - lines (113, 116)

path: .spaces[2].metrics.mi.mi_visual_studio
old: 58.350153605397345
new: 75.15821772680114
path: .spaces[2].metrics.mi.mi_sei
old: 96.9998372832978
new: 109.81693134142208
path: .spaces[2].metrics.mi.mi_original
old: 99.77876266522946
new: 128.52055231282995
path: .spaces[2].metrics.loc.sloc
old: 13.0
new: 4.0
path: .spaces[2].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[2].metrics.loc.lloc
old: 4.0
new: 2.0
path: .spaces[2].metrics.loc.ploc
old: 11.0
new: 4.0
path: .spaces[2].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.sum
old: 2.0
new: 1.0
path: .spaces[2].metrics.halstead.length
old: 60.0
new: 13.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 86.15946414084446
new: 27.651484454403228
path: .spaces[2].metrics.halstead.level
old: 0.1074380165289256
new: 0.22857142857142856
path: .spaces[2].metrics.halstead.N2
old: 22.0
new: 5.0
path: .spaces[2].metrics.halstead.time
old: 142.25140066339998
new: 10.930842961666462
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.4359910690140745
new: 2.127037265723325
path: .spaces[2].metrics.halstead.difficulty
old: 9.307692307692308
new: 4.375
path: .spaces[2].metrics.halstead.n1
old: 11.0
new: 7.0
path: .spaces[2].metrics.halstead.vocabulary
old: 24.0
new: 11.0
path: .spaces[2].metrics.halstead.volume
old: 275.09775004326934
new: 44.97261104228487
path: .spaces[2].metrics.halstead.bugs
old: 0.06238757661812583
new: 0.01127620212709224
path: .spaces[2].metrics.halstead.effort
old: 2560.5252119411994
new: 196.7551733099963
path: .spaces[2].metrics.halstead.n2
old: 13.0
new: 4.0
path: .spaces[2].metrics.halstead.N1
old: 38.0
new: 8.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.nargs.average
old: 4.0
new: 1.0
path: .spaces[2].metrics.nargs.sum
old: 4.0
new: 1.0
path: .spaces[2].metrics.nexits.average
old: 2.0
new: 1.0
path: .spaces[2].metrics.nexits.sum
old: 2.0
new: 1.0

### Code

    nsTouchBarUpdater::SetTouchBarInitialized(bool aIsInitialized) {
      sTouchBarIsInitialized = aIsInitialized;
      return NS_OK;
    }

## Minimal test - lines (93, 96)

path: .spaces[0].metrics.loc.ploc
old: 81.0
new: 4.0
path: .spaces[0].metrics.loc.blank
old: 10.0
new: 0.0
path: .spaces[0].metrics.loc.cloc
old: 17.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 39.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 108.0
new: 4.0
path: .spaces[0].metrics.nexits.average
old: 0.4444444444444444
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 4.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: 0.4444444444444444
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 4.0
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 13.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.4444444444444444
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 9.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 9.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 20.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[0].metrics.mi.mi_original
old: 51.341423862395104
new: 127.59108063160195
path: .spaces[0].metrics.mi.mi_sei
old: 29.23863385972581
new: 108.4759871562677
path: .spaces[0].metrics.mi.mi_visual_studio
old: 30.02422448093281
new: 74.61466703602454
path: .spaces[0].metrics.halstead.difficulty
old: 61.75
new: 5.0
path: .spaces[0].metrics.halstead.length
old: 327.0
new: 15.0
path: .spaces[0].metrics.halstead.vocabulary
old: 54.0
new: 12.0
path: .spaces[0].metrics.halstead.volume
old: 1881.848213207454
new: 53.77443751081734
path: .spaces[0].metrics.halstead.N2
old: 133.0
new: 5.0
path: .spaces[0].metrics.halstead.effort
old: 116204.12716556028
new: 268.87218755408674
path: .spaces[0].metrics.halstead.level
old: 0.016194331983805668
new: 0.2
path: .spaces[0].metrics.halstead.estimated_program_length
old: 256.8173704892813
new: 32.0
path: .spaces[0].metrics.halstead.time
old: 6455.784842531128
new: 14.937343753004818
path: .spaces[0].metrics.halstead.n2
old: 28.0
new: 4.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.7853742216797593
new: 2.1333333333333333
path: .spaces[0].metrics.halstead.N1
old: 194.0
new: 10.0
path: .spaces[0].metrics.halstead.n1
old: 26.0
new: 8.0
path: .spaces[0].metrics.halstead.bugs
old: 0.793767135783046
new: 0.013885962850227664

### Code

    nsTouchBarUpdater::IsTouchBarInitialized(bool* aResult) {
      *aResult = sTouchBarIsInitialized;
      return NS_OK;
    }

## Minimal test - lines (98, 109)

path: .spaces[1].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: 2.0
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 4.0
new: 6.0
path: .spaces[1].metrics.loc.sloc
old: 13.0
new: 12.0
path: .spaces[1].metrics.loc.ploc
old: 11.0
new: 12.0
path: .spaces[1].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[1].metrics.nexits.sum
old: 2.0
new: 3.0
path: .spaces[1].metrics.nexits.average
old: 2.0
new: 3.0
path: .spaces[1].metrics.mi.mi_original
old: 99.96729184775504
new: 100.98283416146091
path: .spaces[1].metrics.mi.mi_visual_studio
old: 58.46040458933043
new: 59.05428898331048
path: .spaces[1].metrics.mi.mi_sei
old: 97.37364725939476
new: 70.2920416458529
path: .spaces[1].metrics.cognitive.sum
old: 3.0
new: 2.0
path: .spaces[1].metrics.cognitive.average
old: 3.0
new: 2.0
path: .spaces[1].metrics.halstead.time
old: 155.11451069865603
new: 146.72086834483264
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.7816931976234889
new: 1.6898687529379004
path: .spaces[1].metrics.halstead.effort
old: 2792.0611925758085
new: 2640.9756302069877
path: .spaces[1].metrics.halstead.N1
old: 32.0
new: 34.0
path: .spaces[1].metrics.halstead.n1
old: 13.0
new: 12.0
path: .spaces[1].metrics.halstead.length
old: 54.0
new: 57.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 96.2114326716684
new: 96.32251891746031
path: .spaces[1].metrics.halstead.volume
old: 253.82374477961895
new: 267.9250639340422
path: .spaces[1].metrics.halstead.n2
old: 13.0
new: 14.0
path: .spaces[1].metrics.halstead.bugs
old: 0.0660939996026644
new: 0.06368761825892508
path: .spaces[1].metrics.halstead.N2
old: 22.0
new: 23.0
path: .spaces[1].metrics.halstead.level
old: 0.09090909090909093
new: 0.10144927536231883
path: .spaces[1].metrics.halstead.difficulty
old: 11.0
new: 9.857142857142858

### Code

    BaseWindow* nsTouchBarUpdater::GetCocoaWindow(nsIBaseWindow* aWindow) {
      nsCOMPtr widget = nullptr;
      aWindow->GetMainWidget(getter_AddRefs(widget));
      if (!widget) {
        return nil;
      }
      BaseWindow* cocoaWin = (BaseWindow*)widget->GetNativeData(NS_NATIVE_WINDOW);
      if (!cocoaWin) {
        return nil;
      }
      return cocoaWin;
    }