# Global Metrics

path: .metrics.halstead.estimated_program_length
old: 1232.5917726036444
new: 585.0603798492501
path: .metrics.halstead.bugs
old: 1.579952959790268
new: 0.5185983485525785
path: .metrics.halstead.n1
old: 26.0
new: 13.0
path: .metrics.halstead.purity_ratio
old: 1.1144591072365682
new: 1.1539652462509864
path: .metrics.halstead.vocabulary
old: 179.0
new: 97.0
path: .metrics.halstead.n2
old: 153.0
new: 84.0
path: .metrics.halstead.N1
old: 642.0
new: 270.0
path: .metrics.halstead.N2
old: 464.0
new: 237.0
path: .metrics.halstead.effort
old: 326323.3248752585
new: 61366.107462242384
path: .metrics.halstead.volume
old: 8277.100249654268
new: 3346.155810988874
path: .metrics.halstead.difficulty
old: 39.42483660130719
new: 18.339285714285715
path: .metrics.halstead.level
old: 0.025364721485411135
new: 0.054527750730282376
path: .metrics.halstead.time
old: 18129.073604181027
new: 3409.228192346799
path: .metrics.halstead.length
old: 1106.0
new: 507.0
path: .metrics.nexits.average
old: 0.8275862068965517
new: 0.0
path: .metrics.nexits.sum
old: 24.0
new: 0.0
path: .metrics.cyclomatic.average
old: 1.4857142857142858
new: 1.3333333333333333
path: .metrics.cyclomatic.sum
old: 52.0
new: 8.0
path: .metrics.loc.ploc
old: 296.0
new: 111.0
path: .metrics.loc.lloc
old: 109.0
new: 28.0
path: .metrics.loc.cloc
old: 36.0
new: 18.0
path: .metrics.loc.blank
old: 72.0
new: 15.0
path: .metrics.loc.sloc
old: 404.0
new: 144.0
path: .metrics.cognitive.average
old: 0.4482758620689655
new: 0.4
path: .metrics.cognitive.sum
old: 13.0
new: 2.0
path: .metrics.mi.mi_sei
old: -26.59338455002494
new: 18.161327622825983
path: .metrics.mi.mi_visual_studio
old: 8.717303806355105
new: 27.162616271036047
path: .metrics.mi.mi_original
old: 14.906589508867228
new: 46.448073823471645
path: .metrics.nom.total
old: 29.0
new: 5.0
path: .metrics.nom.functions
old: 29.0
new: 5.0
path: .metrics.nargs.average
old: 1.103448275862069
new: 2.0
path: .metrics.nargs.sum
old: 32.0
new: 10.0

# Spaces Data

## Minimal test - lines (16, 28)

path: .spaces[0].metrics.nexits.sum
old: 24.0
new: 0.0
path: .spaces[0].metrics.nexits.average
old: 0.8275862068965517
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 1.103448275862069
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 32.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 386.0
new: 13.0
path: .spaces[0].metrics.loc.blank
old: 72.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 285.0
new: 9.0
path: .spaces[0].metrics.loc.lloc
old: 109.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 29.0
new: 4.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.5
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 51.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 29.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 29.0
new: 1.0
path: .spaces[0].metrics.halstead.N1
old: 642.0
new: 29.0
path: .spaces[0].metrics.halstead.vocabulary
old: 169.0
new: 22.0
path: .spaces[0].metrics.halstead.length
old: 1096.0
new: 57.0
path: .spaces[0].metrics.halstead.time
old: 18598.783805166844
new: 74.13805065984508
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1146.073033830978
new: 79.50977500432694
path: .spaces[0].metrics.halstead.bugs
old: 1.607126686980578
new: 0.04040370490720233
path: .spaces[0].metrics.halstead.level
old: 0.02422907488986784
new: 0.1904761904761905
path: .spaces[0].metrics.halstead.N2
old: 454.0
new: 28.0
path: .spaces[0].metrics.halstead.n1
old: 26.0
new: 6.0
path: .spaces[0].metrics.halstead.volume
old: 8111.363862165274
new: 254.18760226232595
path: .spaces[0].metrics.halstead.difficulty
old: 41.27272727272727
new: 5.25
path: .spaces[0].metrics.halstead.effort
old: 334778.1084930032
new: 1334.4849118772113
path: .spaces[0].metrics.halstead.n2
old: 143.0
new: 16.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.0456870746633011
new: 1.3949083334092445
path: .spaces[0].metrics.cognitive.sum
old: 13.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 0.4482758620689655
new: 0.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 9.34510165906537
new: 58.72505436376474
path: .spaces[0].metrics.mi.mi_original
old: 15.980123837001784
new: 100.4198429620377
path: .spaces[0].metrics.mi.mi_sei
old: -26.854397204266377
new: 107.1466965440438

### Code

    TEST(Escape, FallibleNoEscape)
    {
      // Tests the fallible version of NS_EscapeURL works as expected when no
      // escaping is necessary.
      nsCString toEscape("data:,Hello%2C%20World!");
      nsCString escaped;
      nsresult rv = NS_EscapeURL(toEscape, esc_OnlyNonASCII, escaped, fallible);
      EXPECT_EQ(rv, NS_OK);
      // Nothing should have been escaped, they should be the same string.
      EXPECT_STREQ(toEscape.BeginReading(), escaped.BeginReading());
      // We expect them to point at the same buffer.
      EXPECT_EQ(toEscape.BeginReading(), escaped.BeginReading());
    }