# Global Metrics

path: .metrics.loc.sloc
old: 567.0
new: 47.0
path: .metrics.loc.cloc
old: 67.0
new: 9.0
path: .metrics.loc.blank
old: 79.0
new: 8.0
path: .metrics.loc.ploc
old: 421.0
new: 30.0
path: .metrics.loc.lloc
old: 221.0
new: 0.0
path: .metrics.nexits.sum
old: 38.0
new: 0.0
path: .metrics.nexits.average
old: 2.7142857142857144
new: null
path: .metrics.halstead.N2
old: 1050.0
new: 30.0
path: .metrics.halstead.volume
old: 21944.79353444956
new: 315.36542508798107
path: .metrics.halstead.level
old: 0.01619047619047619
new: 0.15151515151515152
path: .metrics.halstead.purity_ratio
old: 1.1195324545400671
new: 2.5270516811373507
path: .metrics.halstead.bugs
old: 4.082504416140046
new: 0.05433972308879287
path: .metrics.halstead.n1
old: 38.0
new: 11.0
path: .metrics.halstead.time
old: 75300.7621280132
new: 115.63398919892636
path: .metrics.halstead.difficulty
old: 61.76470588235294
new: 6.6
path: .metrics.halstead.length
old: 2583.0
new: 61.0
path: .metrics.halstead.N1
old: 1533.0
new: 31.0
path: .metrics.halstead.estimated_program_length
old: 2891.752330076994
new: 154.1501525493784
path: .metrics.halstead.n2
old: 323.0
new: 25.0
path: .metrics.halstead.vocabulary
old: 361.0
new: 36.0
path: .metrics.halstead.effort
old: 1355413.7183042376
new: 2081.411805580675
path: .metrics.nargs.average
old: 1.9285714285714288
new: null
path: .metrics.nargs.sum
old: 27.0
new: 0.0
path: .metrics.mi.mi_original
old: -7.614503727939152
new: 77.55820221258965
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 45.35567380853196
path: .metrics.mi.mi_sei
old: -50.710870627977336
new: 68.0597663055054
path: .metrics.nom.total
old: 14.0
new: 0.0
path: .metrics.nom.functions
old: 14.0
new: 0.0
path: .metrics.cyclomatic.sum
old: 104.0
new: 5.0
path: .metrics.cyclomatic.average
old: 6.933333333333334
new: 1.0
path: .metrics.cognitive.sum
old: 88.0
new: 0.0
path: .metrics.cognitive.average
old: 6.285714285714286
new: null

# Spaces Data

## Minimal test - lines (20, 45)

path: .spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[0].metrics.mi.mi_original
old: 110.38402552797572
new: 87.85992622443436
path: .spaces[0].metrics.mi.mi_sei
old: 126.30760957265818
new: 66.41996501368554
path: .spaces[0].metrics.mi.mi_visual_studio
old: 64.55206171226651
new: 51.380073815458694
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nexits.average
old: 1.0
new: null
path: .spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.0
new: null
path: .spaces[0].metrics.nargs.average
old: 2.0
new: null
path: .spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[0].metrics.halstead.bugs
old: 0.06414833148320905
new: 0.05057589311099978
path: .spaces[0].metrics.halstead.n1
old: 16.0
new: 11.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.1840724491562016
new: 2.3887937441233476
path: .spaces[0].metrics.halstead.level
old: 0.08823529411764705
new: 0.15384615384615383
path: .spaces[0].metrics.halstead.length
old: 49.0
new: 57.0
path: .spaces[0].metrics.halstead.difficulty
old: 11.333333333333334
new: 6.5
path: .spaces[0].metrics.halstead.N1
old: 32.0
new: 31.0
path: .spaces[0].metrics.halstead.vocabulary
old: 28.0
new: 33.0
path: .spaces[0].metrics.halstead.n2
old: 12.0
new: 22.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 107.01955000865388
new: 136.1612434150308
path: .spaces[0].metrics.halstead.time
old: 148.315801854592
new: 103.8304456234615
path: .spaces[0].metrics.halstead.effort
old: 2669.684433382656
new: 1868.948021222307
path: .spaces[0].metrics.halstead.volume
old: 235.5603911808226
new: 287.53046480343187
path: .spaces[0].metrics.halstead.N2
old: 17.0
new: 26.0
path: .spaces[0].metrics.cyclomatic.sum
old: 3.0
new: 4.0
path: .spaces[0].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 7.0
new: 26.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 5.0
path: .spaces[0].metrics.loc.cloc
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 1.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 4.0
new: 20.0

### Code

    namespace mozilla {
    namespace widget {

    class TaskbarWindowPreview;
    class TaskbarPreviewButton : public nsITaskbarPreviewButton,
                                 public nsSupportsWeakReference {
      virtual ~TaskbarPreviewButton();

     public:
      TaskbarPreviewButton(TaskbarWindowPreview* preview, uint32_t index);

      NS_DECL_ISUPPORTS
      NS_DECL_NSITASKBARPREVIEWBUTTON

     private:
      THUMBBUTTON& Button();
      nsresult Update();

      RefPtr mPreview;
      uint32_t mIndex;
      nsString mTooltip;
      nsCOMPtr mImage;
    };

    }  // namespace widget
    }  // namespace mozilla