# Global Metrics

path: .metrics.mi.mi_original
old: 63.04079719001509
new: 72.54741849131537
path: .metrics.mi.mi_sei
old: 59.087275025118224
new: 51.09141167755653
path: .metrics.mi.mi_visual_studio
old: 36.86596326901467
new: 42.42539093059378
path: .metrics.nexits.sum
old: 0.0
new: 5.0
path: .metrics.nexits.average
old: null
new: 1.25
path: .metrics.halstead.difficulty
old: 2.986111111111111
new: 9.953125
path: .metrics.halstead.effort
old: 1183.8701721315792
new: 6613.993142278162
path: .metrics.halstead.estimated_program_length
old: 197.72694052636004
new: 208.1057163358342
path: .metrics.halstead.N1
old: 31.0
new: 72.0
path: .metrics.halstead.n1
old: 5.0
new: 13.0
path: .metrics.halstead.length
old: 74.0
new: 121.0
path: .metrics.halstead.time
old: 65.77056511842108
new: 367.4440634598979
path: .metrics.halstead.n2
old: 36.0
new: 32.0
path: .metrics.halstead.volume
old: 396.4588483417382
new: 664.5142246558906
path: .metrics.halstead.level
old: 0.33488372093023255
new: 0.10047095761381476
path: .metrics.halstead.vocabulary
old: 41.0
new: 45.0
path: .metrics.halstead.purity_ratio
old: 2.671985682788649
new: 1.7198819531887124
path: .metrics.halstead.bugs
old: 0.037303375418255055
new: 0.11745041945637552
path: .metrics.halstead.N2
old: 43.0
new: 49.0
path: .metrics.nom.functions
old: 0.0
new: 4.0
path: .metrics.nom.total
old: 0.0
new: 4.0
path: .metrics.cognitive.sum
old: 0.0
new: 2.0
path: .metrics.cognitive.average
old: null
new: 0.5
path: .metrics.cyclomatic.sum
old: 5.0
new: 7.0
path: .metrics.cyclomatic.average
old: 1.0
new: 1.4
path: .metrics.loc.blank
old: 23.0
new: 10.0
path: .metrics.loc.cloc
old: 49.0
new: 4.0
path: .metrics.loc.sloc
old: 107.0
new: 49.0
path: .metrics.loc.lloc
old: 0.0
new: 15.0
path: .metrics.nargs.sum
old: 0.0
new: 2.0
path: .metrics.nargs.average
old: null
new: 0.5

# Spaces Data

## Minimal test - lines (37, 41)

path: .spaces[2].metrics.nexits.average
old: null
new: 1.0
path: .spaces[2].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[2].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[2].metrics.loc.blank
old: 1.0
new: 0.0
path: .spaces[2].metrics.loc.sloc
old: 6.0
new: 5.0
path: .spaces[2].metrics.halstead.bugs
old: 0.004762203155904598
new: 0.014044240951426278
path: .spaces[2].metrics.halstead.difficulty
old: 1.8
new: 3.5
path: .spaces[2].metrics.halstead.effort
old: 54.0
new: 273.4823416925963
path: .spaces[2].metrics.halstead.level
old: 0.5555555555555556
new: 0.2857142857142857
path: .spaces[2].metrics.halstead.n1
old: 3.0
new: 7.0
path: .spaces[2].metrics.halstead.n2
old: 5.0
new: 8.0
path: .spaces[2].metrics.halstead.volume
old: 30.0
new: 78.13781191217038
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.6364527976600278
new: 2.1825742227201617
path: .spaces[2].metrics.halstead.estimated_program_length
old: 16.36452797660028
new: 43.65148445440323
path: .spaces[2].metrics.halstead.N2
old: 6.0
new: 8.0
path: .spaces[2].metrics.halstead.time
old: 3.0
new: 15.193463427366462
path: .spaces[2].metrics.halstead.vocabulary
old: 8.0
new: 15.0
path: .spaces[2].metrics.halstead.length
old: 10.0
new: 20.0
path: .spaces[2].metrics.halstead.N1
old: 4.0
new: 12.0
path: .spaces[2].metrics.nargs.average
old: null
new: 0.0
path: .spaces[2].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[2].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[2].metrics.mi.mi_visual_studio
old: 72.54811123617678
new: 71.36435120802044
path: .spaces[2].metrics.mi.mi_original
old: 124.0572702138623
new: 122.03304056571494
path: .spaces[2].metrics.mi.mi_sei
old: 103.377776391153
new: 100.45743031615037
path: .spaces[2].metrics.cognitive.average
old: null
new: 0.0

### Code

    nsSoundProxy::Init() {
      MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_Content);
      MOZ_DIAGNOSTIC_ASSERT(false, "Only called by XUL in the parent process.");
      return NS_ERROR_NOT_IMPLEMENTED;
    }

## Minimal test - lines (17, 26)

path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 5.0
path: .spaces[0].metrics.loc.ploc
old: 5.0
new: 8.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 6.0
new: 10.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].metrics.mi.mi_sei
old: 135.1060637090437
new: 101.02474288622098
path: .spaces[0].metrics.mi.mi_visual_studio
old: 73.42850197645537
new: 61.97519868558277
path: .spaces[0].metrics.mi.mi_original
old: 125.56273837973868
new: 105.97758975234652
path: .spaces[0].metrics.nargs.average
old: null
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: null
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 2.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.halstead.bugs
old: 0.0026534054573181228
new: 0.03855560921528433
path: .spaces[0].metrics.halstead.time
old: 1.2477132986922683
new: 69.1099743286488
path: .spaces[0].metrics.halstead.estimated_program_length
old: 13.60964047443681
new: 81.07329781366414
path: .spaces[0].metrics.halstead.vocabulary
old: 7.0
new: 23.0
path: .spaces[0].metrics.halstead.N2
old: 5.0
new: 15.0
path: .spaces[0].metrics.halstead.length
old: 8.0
new: 40.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.7012050593046013
new: 2.0268324453416033
path: .spaces[0].metrics.halstead.N1
old: 3.0
new: 25.0
path: .spaces[0].metrics.halstead.difficulty
old: 1.0
new: 6.875
path: .spaces[0].metrics.halstead.effort
old: 22.458839376460833
new: 1243.9795379156783
path: .spaces[0].metrics.halstead.n1
old: 2.0
new: 11.0
path: .spaces[0].metrics.halstead.n2
old: 5.0
new: 12.0
path: .spaces[0].metrics.halstead.volume
old: 22.458839376460833
new: 180.94247824228052
path: .spaces[0].metrics.halstead.level
old: 1.0
new: 0.14545454545454545
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: null
new: 2.0

### Code

    nsSoundProxy::Play(nsIURL* aURL) {
      MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_Content);
      // Only allow playing a chrome:// URL from the content process.
      if (!aURL || !aURL->SchemeIs("chrome")) {
        return NS_ERROR_FAILURE;
      }

      ContentChild::GetSingleton()->SendPlaySound(aURL);
      return NS_OK;
    }

## Minimal test - lines (29, 34)

path: .spaces[1].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[1].metrics.loc.sloc
old: 11.0
new: 6.0
path: .spaces[1].metrics.loc.ploc
old: 8.0
new: 5.0
path: .spaces[1].metrics.loc.blank
old: 3.0
new: 1.0
path: .spaces[1].metrics.mi.mi_visual_studio
old: 64.75885661599195
new: 69.56720436998641
path: .spaces[1].metrics.mi.mi_original
old: 110.73764481334624
new: 118.95991947267676
path: .spaces[1].metrics.mi.mi_sei
old: 84.1616188793298
new: 96.02385375517292
path: .spaces[1].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[1].metrics.nargs.average
old: null
new: 0.0
path: .spaces[1].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.7958426478224006
new: 1.8715699480384027
path: .spaces[1].metrics.halstead.effort
old: 71.87930140946385
new: 279.8405867712339
path: .spaces[1].metrics.halstead.n2
old: 9.0
new: 7.0
path: .spaces[1].metrics.halstead.N1
old: 6.0
new: 14.0
path: .spaces[1].metrics.halstead.length
old: 17.0
new: 21.0
path: .spaces[1].metrics.halstead.level
old: 0.8181818181818181
new: 0.2857142857142857
path: .spaces[1].metrics.halstead.n1
old: 2.0
new: 7.0
path: .spaces[1].metrics.halstead.N2
old: 11.0
new: 7.0
path: .spaces[1].metrics.halstead.vocabulary
old: 11.0
new: 14.0
path: .spaces[1].metrics.halstead.time
old: 3.993294522747992
new: 15.54669926506855
path: .spaces[1].metrics.halstead.volume
old: 58.81033751683405
new: 79.9544533632097
path: .spaces[1].metrics.halstead.difficulty
old: 1.2222222222222223
new: 3.5
path: .spaces[1].metrics.halstead.estimated_program_length
old: 30.52932501298081
new: 39.302968908806456
path: .spaces[1].metrics.halstead.bugs
old: 0.005762549164082592
new: 0.014261084301238668
path: .spaces[1].metrics.nexits.average
old: null
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0

### Code

    nsSoundProxy::Beep() {
      MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_Content);

      ContentChild::GetSingleton()->SendBeep();
      return NS_OK;
    }

## Minimal test - lines (44, 49)

path: .spaces[3].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[3].metrics.loc.lloc
old: 0.0
new: 3.0
path: .spaces[3].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[3].metrics.loc.sloc
old: 7.0
new: 6.0
path: .spaces[3].metrics.loc.ploc
old: 6.0
new: 5.0
path: .spaces[3].metrics.halstead.n2
old: 9.0
new: 8.0
path: .spaces[3].metrics.halstead.level
old: 0.6
new: 0.2222222222222222
path: .spaces[3].metrics.halstead.purity_ratio
old: 1.957894853832016
new: 2.0
path: .spaces[3].metrics.halstead.time
old: 5.6429965289129305
new: 24.0
path: .spaces[3].metrics.halstead.volume
old: 60.94436251225965
new: 96.0
path: .spaces[3].metrics.halstead.N1
old: 7.0
new: 15.0
path: .spaces[3].metrics.halstead.estimated_program_length
old: 33.284212515144276
new: 48.0
path: .spaces[3].metrics.halstead.difficulty
old: 1.6666666666666667
new: 4.5
path: .spaces[3].metrics.halstead.n1
old: 3.0
new: 8.0
path: .spaces[3].metrics.halstead.vocabulary
old: 12.0
new: 16.0
path: .spaces[3].metrics.halstead.effort
old: 101.57393752043276
new: 432.0
path: .spaces[3].metrics.halstead.bugs
old: 0.007256607011787958
new: 0.019048812623618388
path: .spaces[3].metrics.halstead.length
old: 17.0
new: 24.0
path: .spaces[3].metrics.halstead.N2
old: 10.0
new: 9.0
path: .spaces[3].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[3].metrics.nexits.average
old: null
new: 1.0
path: .spaces[3].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[3].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[3].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[3].metrics.nargs.average
old: null
new: 1.0
path: .spaces[3].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[3].metrics.mi.mi_sei
old: 131.28952932373653
new: 94.65180248456728
path: .spaces[3].metrics.mi.mi_visual_studio
old: 68.93243071560659
new: 69.01104444612443
path: .spaces[3].metrics.mi.mi_original
old: 117.87445652368726
new: 118.00888600287276

### Code

    nsSoundProxy::PlayEventSound(uint32_t aEventId) {
      MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_Content);

      ContentChild::GetSingleton()->SendPlayEventSound(aEventId);
      return NS_OK;
    }