# Global Metrics

path: .metrics.nom.functions
old: 13.0
new: 0.0
path: .metrics.nom.total
old: 13.0
new: 0.0
path: .metrics.nargs.average
old: 2.3846153846153846
new: null
path: .metrics.nargs.sum
old: 31.0
new: 0.0
path: .metrics.cyclomatic.sum
old: 162.0
new: 4.0
path: .metrics.cyclomatic.average
old: 10.8
new: 1.0
path: .metrics.nexits.sum
old: 17.0
new: 0.0
path: .metrics.nexits.average
old: 1.3076923076923077
new: null
path: .metrics.loc.ploc
old: 730.0
new: 23.0
path: .metrics.loc.blank
old: 177.0
new: 5.0
path: .metrics.loc.lloc
old: 371.0
new: 0.0
path: .metrics.loc.sloc
old: 1019.0
new: 37.0
path: .metrics.loc.cloc
old: 112.0
new: 9.0
path: .metrics.mi.mi_sei
old: -80.81810023058839
new: 76.70736842886151
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 47.59128414189291
path: .metrics.mi.mi_original
old: -32.008145899352854
new: 81.38109588263688
path: .metrics.cognitive.average
old: 15.538461538461538
new: null
path: .metrics.cognitive.sum
old: 202.0
new: 0.0
path: .metrics.halstead.time
old: 160799.72747169205
new: 127.43692016590089
path: .metrics.halstead.length
old: 3453.0
new: 63.0
path: .metrics.halstead.vocabulary
old: 381.0
new: 39.0
path: .metrics.halstead.n2
old: 338.0
new: 27.0
path: .metrics.halstead.N2
old: 1537.0
new: 31.0
path: .metrics.halstead.bugs
old: 6.769926509486662
new: 0.05797720303608975
path: .metrics.halstead.purity_ratio
old: 0.8899005600682213
new: 2.7206589296359924
path: .metrics.halstead.volume
old: 29604.80373841444
new: 332.98033978832166
path: .metrics.halstead.effort
old: 2894395.094490457
new: 2293.864562986216
path: .metrics.halstead.N1
old: 1916.0
new: 32.0
path: .metrics.halstead.estimated_program_length
old: 3072.826633915568
new: 171.40151256706753
path: .metrics.halstead.n1
old: 43.0
new: 12.0
path: .metrics.halstead.difficulty
old: 97.76775147928994
new: 6.888888888888889
path: .metrics.halstead.level
old: 0.0102283215566416
new: 0.14516129032258063

# Spaces Data

## Minimal test - lines (15, 34)

path: .spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 70.22333631818265
new: 53.89649760413788
path: .spaces[0].metrics.mi.mi_sei
old: 125.27501400165708
new: 74.54389681603433
path: .spaces[0].metrics.mi.mi_original
old: 120.08190510409231
new: 92.16301090307576
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 6.0
new: 16.0
path: .spaces[0].metrics.loc.sloc
old: 7.0
new: 20.0
path: .spaces[0].metrics.halstead.n1
old: 3.0
new: 12.0
path: .spaces[0].metrics.halstead.time
old: 3.321928094887362
new: 112.10085202250738
path: .spaces[0].metrics.halstead.effort
old: 59.794705707972525
new: 2017.815336405133
path: .spaces[0].metrics.halstead.length
old: 12.0
new: 58.0
path: .spaces[0].metrics.halstead.volume
old: 39.86313713864835
new: 297.4984149828081
path: .spaces[0].metrics.halstead.N2
old: 7.0
new: 26.0
path: .spaces[0].metrics.halstead.level
old: 0.6666666666666666
new: 0.14743589743589744
path: .spaces[0].metrics.halstead.difficulty
old: 1.5
new: 6.782608695652174
path: .spaces[0].metrics.halstead.estimated_program_length
old: 24.406371956566694
new: 147.06147499796518
path: .spaces[0].metrics.halstead.n2
old: 7.0
new: 23.0
path: .spaces[0].metrics.halstead.bugs
old: 0.005097069638023333
new: 0.05322712688977456
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.033864329713891
new: 2.53554267237871
path: .spaces[0].metrics.halstead.N1
old: 5.0
new: 32.0
path: .spaces[0].metrics.halstead.vocabulary
old: 10.0
new: 35.0

### Code

    namespace mozilla {
    namespace widget {

    class WindowSurfaceXRender : public WindowSurfaceX11 {
     public:
      WindowSurfaceXRender(Display* aDisplay, Window aWindow, Visual* aVisual,
                           unsigned int aDepth);
      ~WindowSurfaceXRender();

      already_AddRefed Lock(
          const LayoutDeviceIntRegion& aRegion) override;
      void Commit(const LayoutDeviceIntRegion& aInvalidRegion) override;

     private:
      RefPtr mXlibSurface;
      GC mGC;
    };

    }  // namespace widget
    }  // namespace mozilla