# Global Metrics

path: .metrics.cyclomatic.sum
old: 7.0
new: 6.0
path: .metrics.cyclomatic.average
old: 1.4
new: 1.0
path: .metrics.nexits.sum
old: 4.0
new: 0.0
path: .metrics.nexits.average
old: 2.0
new: 0.0
path: .metrics.mi.mi_sei
old: 78.9717874981867
new: 81.13210115105875
path: .metrics.mi.mi_original
old: 79.21675580868997
new: 84.62383339256843
path: .metrics.mi.mi_visual_studio
old: 46.32558819221636
new: 49.487621866999085
path: .metrics.halstead.difficulty
old: 10.705882352941176
new: 5.785714285714286
path: .metrics.halstead.N2
old: 26.0
new: 18.0
path: .metrics.halstead.volume
old: 346.7937417270812
new: 212.6074119346796
path: .metrics.halstead.bugs
old: 0.07992351162778072
new: 0.03826799142586751
path: .metrics.halstead.N1
old: 44.0
new: 29.0
path: .metrics.halstead.purity_ratio
old: 1.7541405315723173
new: 1.7411126366337717
path: .metrics.halstead.n2
old: 17.0
new: 14.0
path: .metrics.halstead.n1
old: 14.0
new: 9.0
path: .metrics.halstead.time
old: 206.26294442591103
new: 68.33809669328987
path: .metrics.halstead.estimated_program_length
old: 122.78983721006222
new: 81.83229392178727
path: .metrics.halstead.level
old: 0.0934065934065934
new: 0.1728395061728395
path: .metrics.halstead.effort
old: 3712.732999666399
new: 1230.0857404792175
path: .metrics.halstead.vocabulary
old: 31.0
new: 23.0
path: .metrics.halstead.length
old: 70.0
new: 47.0
path: .metrics.cognitive.sum
old: 2.0
new: 0.0
path: .metrics.cognitive.average
old: 1.0
new: 0.0
path: .metrics.loc.cloc
old: 14.0
new: 8.0
path: .metrics.loc.lloc
old: 6.0
new: 0.0
path: .metrics.loc.blank
old: 5.0
new: 6.0
path: .metrics.loc.ploc
old: 21.0
new: 20.0
path: .metrics.loc.sloc
old: 40.0
new: 34.0
path: .metrics.nargs.sum
old: 1.0
new: 0.0
path: .metrics.nargs.average
old: 0.5
new: 0.0

# Spaces Data

## Minimal test - lines (14, 29)

path: .spaces[0].spaces[0].spaces[0].metrics.nom.functions
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].spaces[0].metrics.nom.total
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 75.667389205507
new: 57.92604959482162
path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_sei
old: 146.04445524066222
new: 93.54588043757744
path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_original
old: 129.391235541417
new: 99.05354480714496
path: .spaces[0].spaces[0].spaces[0].metrics.loc.lloc
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.cloc
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.sloc
old: 4.0
new: 16.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.ploc
old: 3.0
new: 11.0
path: .spaces[0].spaces[0].spaces[0].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N2
old: 3.0
new: 12.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.bugs
old: 0.007842353307870626
new: 0.03222954239299786
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.6887218755408668
new: 1.501543421735832
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.effort
old: 114.11730005192324
new: 950.7429003288472
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 20.264662506490403
new: 57.05865002596162
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.volume
old: 38.039100017307746
new: 158.45715005480787
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.time
old: 6.339850002884624
new: 52.81905001826929
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.n1
old: 6.0
new: 9.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N1
old: 9.0
new: 26.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.length
old: 12.0
new: 38.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.n2
old: 3.0
new: 9.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.vocabulary
old: 9.0
new: 18.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.difficulty
old: 3.0
new: 6.0
path: .spaces[0].spaces[0].spaces[0].metrics.halstead.level
old: 0.3333333333333333
new: 0.16666666666666666
path: .spaces[0].spaces[0].spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 3.0

### Code

    class HeadlessClipboardData final {
     public:
      explicit HeadlessClipboardData() = default;
      ~HeadlessClipboardData() = default;

      // For text/plain
      void SetText(const nsAString& aText);
      bool HasText() const;
      const nsAString& GetText() const;

      // For other APIs
      void Clear();

     private:
      nsAutoString mPlain;
    };

## Minimal test - lines (12, 31)

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 78.5975715536951
new: 84.8811389869563
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 51.784218920000185
new: 55.39012870001372
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 88.55101435320032
new: 94.71712007702348
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 14.0
new: 9.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 13.0
new: 10.0
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 11.846153846153848
new: 5.85
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 3661.2633766658705
new: 1018.8654140994438
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 309.0676876406254
new: 174.165028051187
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 101.40868524464064
new: 61.74860596185444
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.5601336191483175
new: 1.50606356004523
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.07918314119598972
new: 0.033751257527543745
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 43.0
new: 28.0
path: .spaces[0].spaces[0].metrics.halstead.time
old: 203.4035209258817
new: 56.60363411663577
path: .spaces[0].spaces[0].metrics.halstead.length
old: 65.0
new: 41.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 27.0
new: 19.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 22.0
new: 13.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.08441558441558442
new: 0.17094017094017094
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 1.6666666666666667
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 5.0
new: 4.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 4.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 0.5
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 24.0
new: 20.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 3.0
new: 2.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 16.0
new: 13.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 6.0
new: 0.0

### Code

    namespace widget {

    class HeadlessClipboardData final {
     public:
      explicit HeadlessClipboardData() = default;
      ~HeadlessClipboardData() = default;

      // For text/plain
      void SetText(const nsAString& aText);
      bool HasText() const;
      const nsAString& GetText() const;

      // For other APIs
      void Clear();

     private:
      nsAutoString mPlain;
    };

    }  // namespace widget

## Minimal test - lines (11, 32)

path: .spaces[0].metrics.nexits.average
old: 2.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 4.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 2.0
new: 0.0
path: .spaces[0].metrics.halstead.effort
old: 3704.066967445384
new: 1064.3730190045333
path: .spaces[0].metrics.halstead.vocabulary
old: 28.0
new: 20.0
path: .spaces[0].metrics.halstead.volume
old: 322.09277977785945
new: 185.8429080801566
path: .spaces[0].metrics.halstead.N2
old: 23.0
new: 14.0
path: .spaces[0].metrics.halstead.n2
old: 14.0
new: 11.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.5911334002628792
new: 1.5484435539067694
path: .spaces[0].metrics.halstead.N1
old: 44.0
new: 29.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 106.60593781761293
new: 66.58307281799108
path: .spaces[0].metrics.halstead.time
old: 205.7814981914102
new: 59.131834389140735
path: .spaces[0].metrics.halstead.difficulty
old: 11.5
new: 5.7272727272727275
path: .spaces[0].metrics.halstead.length
old: 67.0
new: 43.0
path: .spaces[0].metrics.halstead.level
old: 0.08695652173913043
new: 0.1746031746031746
path: .spaces[0].metrics.halstead.bugs
old: 0.07979909484334657
new: 0.03474892043191649
path: .spaces[0].metrics.halstead.n1
old: 14.0
new: 9.0
path: .spaces[0].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.5
new: 0.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.5
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 6.0
new: 5.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 50.765888863196494
new: 54.15533521933705
path: .spaces[0].metrics.mi.mi_original
old: 86.80966995606602
new: 92.60562322506637
path: .spaces[0].metrics.mi.mi_sei
old: 78.69667098457636
new: 85.47891955254117
path: .spaces[0].metrics.loc.cloc
old: 4.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 18.0
new: 15.0
path: .spaces[0].metrics.loc.lloc
old: 6.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 26.0
new: 22.0

### Code

    namespace mozilla {
    namespace widget {

    class HeadlessClipboardData final {
     public:
      explicit HeadlessClipboardData() = default;
      ~HeadlessClipboardData() = default;

      // For text/plain
      void SetText(const nsAString& aText);
      bool HasText() const;
      const nsAString& GetText() const;

      // For other APIs
      void Clear();

     private:
      nsAutoString mPlain;
    };

    }  // namespace widget
    }  // namespace mozilla