# Global Metrics

path: .metrics.halstead.N1
old: 2740.0
new: 1082.0
path: .metrics.halstead.n2
old: 291.0
new: 257.0
path: .metrics.halstead.estimated_program_length
old: 2608.276056543018
new: 2217.4455091428267
path: .metrics.halstead.bugs
old: 12.456640956155102
new: 2.9609663353744913
path: .metrics.halstead.length
old: 5088.0
new: 1933.0
path: .metrics.halstead.volume
old: 42634.27713165858
new: 15802.13134427381
path: .metrics.halstead.time
old: 401338.47590832785
new: 46511.41815469784
path: .metrics.halstead.n1
old: 42.0
new: 32.0
path: .metrics.halstead.effort
old: 7224092.566349901
new: 837205.526784561
path: .metrics.halstead.purity_ratio
old: 0.5126328727482347
new: 1.147152358583977
path: .metrics.halstead.N2
old: 2348.0
new: 851.0
path: .metrics.halstead.difficulty
old: 169.44329896907217
new: 52.98054474708171
path: .metrics.halstead.level
old: 0.005901679240691166
new: 0.01887485311398355
path: .metrics.halstead.vocabulary
old: 333.0
new: 289.0
path: .metrics.nargs.sum
old: 0.0
new: 29.0
path: .metrics.nargs.average
old: 0.0
new: 1.2083333333333333
path: .metrics.nexits.sum
old: 10.0
new: 21.0
path: .metrics.nexits.average
old: 5.0
new: 0.875
path: .metrics.mi.mi_sei
old: -62.89717144895974
new: 17.886113819240208
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 51.98795343680005
path: .metrics.mi.mi_original
old: -27.163846147144255
new: 88.89940037692807
path: .metrics.cognitive.sum
old: 164.0
new: 61.0
path: .metrics.cognitive.average
old: 82.0
new: 2.5416666666666665
path: .metrics.loc.sloc
old: 1203.0
new: 3.0
path: .metrics.loc.lloc
old: 375.0
new: 163.0
path: .metrics.loc.ploc
old: 726.0
new: 368.0
path: .metrics.loc.cloc
old: 421.0
new: 21.0
path: .metrics.loc.blank
old: 56.0
new: 0.0
path: .metrics.nom.closures
old: 0.0
new: 7.0
path: .metrics.nom.functions
old: 2.0
new: 17.0
path: .metrics.nom.total
old: 2.0
new: 24.0
path: .metrics.cyclomatic.sum
old: 121.0
new: 61.0
path: .metrics.cyclomatic.average
old: 30.25
new: 3.388888888888889

# Spaces Data

## Minimal test - lines (149, 156)

path: .spaces[2].metrics.halstead.N1
old: 156.0
new: 10.0
path: .spaces[2].metrics.halstead.length
old: 291.0
new: 17.0
path: .spaces[2].metrics.halstead.n1
old: 15.0
new: 6.0
path: .spaces[2].metrics.halstead.n2
old: 45.0
new: 6.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 305.73674826896314
new: 31.019550008653873
path: .spaces[2].metrics.halstead.difficulty
old: 22.5
new: 3.5
path: .spaces[2].metrics.halstead.level
old: 0.044444444444444446
new: 0.2857142857142857
path: .spaces[2].metrics.halstead.bugs
old: 0.3812135843600113
new: 0.011899986460347829
path: .spaces[2].metrics.halstead.vocabulary
old: 60.0
new: 12.0
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.0506417466287392
new: 1.8246794122737573
path: .spaces[2].metrics.halstead.time
old: 2148.631454152599
new: 11.850292710717154
path: .spaces[2].metrics.halstead.volume
old: 1718.905163322079
new: 60.94436251225965
path: .spaces[2].metrics.halstead.effort
old: 38675.36617474678
new: 213.3052687929088
path: .spaces[2].metrics.halstead.N2
old: 135.0
new: 7.0
path: .spaces[2].metrics.cognitive.average
old: 6.0
new: 0.0
path: .spaces[2].metrics.cognitive.sum
old: 6.0
new: 0.0
path: .spaces[2].metrics.cyclomatic.sum
old: 7.0
new: 1.0
path: .spaces[2].metrics.cyclomatic.average
old: 7.0
new: 1.0
path: .spaces[2].metrics.loc.ploc
old: 40.0
new: 6.0
path: .spaces[2].metrics.loc.blank
old: 8.0
new: 2.0
path: .spaces[2].metrics.loc.lloc
old: 21.0
new: 2.0
path: .spaces[2].metrics.loc.sloc
old: 48.0
new: 8.0
path: .spaces[2].metrics.mi.mi_original
old: 67.9394408855452
new: 115.71124796317
path: .spaces[2].metrics.mi.mi_sei
old: 23.027781470163447
new: 91.33701147893024
path: .spaces[2].metrics.mi.mi_visual_studio
old: 39.73066718452935
new: 67.66739646969005

### Code

    OSXNotificationInfo::~OSXNotificationInfo() {
      NS_OBJC_BEGIN_TRY_IGNORE_BLOCK;

      [mName release];
      [mPendingNotification release];

      NS_OBJC_END_TRY_IGNORE_BLOCK;
    }

## Minimal test - lines (119, 132)

path: .spaces[0].metrics.halstead.vocabulary
old: 12.0
new: 30.0
path: .spaces[0].metrics.halstead.n2
old: 8.0
new: 20.0
path: .spaces[0].metrics.halstead.difficulty
old: 2.0
new: 6.0
path: .spaces[0].metrics.halstead.level
old: 0.5
new: 0.16666666666666666
path: .spaces[0].metrics.halstead.effort
old: 136.2285750274039
new: 1472.0671786825556
path: .spaces[0].metrics.halstead.bugs
old: 0.008825193189849317
new: 0.04313506913523537
path: .spaces[0].metrics.halstead.length
old: 19.0
new: 50.0
path: .spaces[0].metrics.halstead.N1
old: 11.0
new: 26.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 32.0
new: 119.65784284662088
path: .spaces[0].metrics.halstead.time
old: 7.568254168189108
new: 81.78150992680864
path: .spaces[0].metrics.halstead.volume
old: 68.11428751370197
new: 245.34452978042592
path: .spaces[0].metrics.halstead.N2
old: 8.0
new: 24.0
path: .spaces[0].metrics.halstead.n1
old: 4.0
new: 10.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6842105263157894
new: 2.3931568569324173
path: .spaces[0].metrics.loc.cloc
old: 5.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 7.0
new: 12.0
path: .spaces[0].metrics.loc.blank
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 7.0
new: 14.0
path: .spaces[0].metrics.mi.mi_sei
old: 141.9237513368152
new: 67.80979072811908
path: .spaces[0].metrics.mi.mi_original
old: 117.29608322111407
new: 99.4034212333338
path: .spaces[0].metrics.mi.mi_visual_studio
old: 68.59420071410182
new: 58.13065569200807

### Code

    class OSXNotificationInfo final : public nsISupports {
     private:
      virtual ~OSXNotificationInfo();

     public:
      NS_DECL_ISUPPORTS
      OSXNotificationInfo(NSString* name, nsIObserver* observer, const nsAString& alertCookie);

      NSString* mName;
      nsCOMPtr mObserver;
      nsString mCookie;
      RefPtr mIconRequest;
      id mPendingNotification;
    };

## Minimal test - lines (136, 147)

path: .spaces[1].metrics.nargs.sum
old: 0.0
new: 3.0
path: .spaces[1].metrics.nargs.average
old: 0.0
new: 3.0
path: .spaces[1].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.halstead.n2
old: 55.0
new: 17.0
path: .spaces[1].metrics.halstead.length
old: 417.0
new: 43.0
path: .spaces[1].metrics.halstead.time
old: 5541.191549475568
new: 62.41907449237361
path: .spaces[1].metrics.halstead.level
old: 0.026278069756330624
new: 0.1798941798941799
path: .spaces[1].metrics.halstead.difficulty
old: 38.054545454545455
new: 5.5588235294117645
path: .spaces[1].metrics.halstead.N2
old: 182.0
new: 21.0
path: .spaces[1].metrics.halstead.effort
old: 99741.44789056022
new: 1123.543340862725
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.0120304777773803
new: 2.2794463561450367
path: .spaces[1].metrics.halstead.vocabulary
old: 78.0
new: 26.0
path: .spaces[1].metrics.halstead.n1
old: 23.0
new: 9.0
path: .spaces[1].metrics.halstead.N1
old: 235.0
new: 22.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 422.0167092331676
new: 98.01619331423656
path: .spaces[1].metrics.halstead.volume
old: 2621.0127252655575
new: 202.11890788006696
path: .spaces[1].metrics.halstead.bugs
old: 0.7169065101283137
new: 0.03602510859626821
path: .spaces[1].metrics.mi.mi_visual_studio
old: 32.414666778052585
new: 60.18038605414857
path: .spaces[1].metrics.mi.mi_original
old: 55.42908019046992
new: 102.90846015259405
path: .spaces[1].metrics.mi.mi_sei
old: 41.26948716776653
new: 72.86649299505864
path: .spaces[1].metrics.loc.lloc
old: 43.0
new: 6.0
path: .spaces[1].metrics.loc.cloc
old: 21.0
new: 0.0
path: .spaces[1].metrics.loc.ploc
old: 60.0
new: 10.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 2.0
path: .spaces[1].metrics.loc.sloc
old: 81.0
new: 12.0
path: .spaces[1].metrics.cognitive.average
old: 17.0
new: 0.0
path: .spaces[1].metrics.cognitive.sum
old: 17.0
new: 0.0
path: .spaces[1].metrics.cyclomatic.average
old: 15.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.sum
old: 15.0
new: 1.0

### Code

    OSXNotificationInfo::OSXNotificationInfo(NSString* name, nsIObserver* observer,
                                             const nsAString& alertCookie) {
      NS_OBJC_BEGIN_TRY_IGNORE_BLOCK;

      NS_ASSERTION(name, "Cannot create OSXNotificationInfo without a name!");
      mName = [name retain];
      mObserver = observer;
      mCookie = alertCookie;
      mPendingNotification = nil;

      NS_OBJC_END_TRY_IGNORE_BLOCK;
    }