# Global Metrics

path: .metrics.halstead.n1
old: 24.0
new: 39.0
path: .metrics.halstead.N2
old: 1175.0
new: 1350.0
path: .metrics.halstead.time
old: 47504.89063865719
new: 95242.1176409751
path: .metrics.halstead.purity_ratio
old: 1.168395398687236
new: 1.261013438501985
path: .metrics.halstead.estimated_program_length
old: 2462.9775004326934
new: 4018.849828505827
path: .metrics.halstead.N1
old: 933.0
new: 1837.0
path: .metrics.halstead.level
old: 0.020425531914893616
new: 0.016524216524216526
path: .metrics.halstead.vocabulary
old: 312.0
new: 474.0
path: .metrics.halstead.volume
old: 17465.62787736162
new: 28328.42473423875
path: .metrics.halstead.effort
old: 855088.0314958295
new: 1714358.1175375518
path: .metrics.halstead.length
old: 2108.0
new: 3187.0
path: .metrics.halstead.bugs
old: 3.002981318305963
new: 4.774703897618395
path: .metrics.halstead.difficulty
old: 48.958333333333336
new: 60.51724137931034
path: .metrics.halstead.n2
old: 288.0
new: 435.0
path: .metrics.mi.mi_original
old: 6.250136100048081
new: -18.138285823391755
path: .metrics.mi.mi_sei
old: -24.37158142572406
new: -67.90401326688342
path: .metrics.mi.mi_visual_studio
old: 3.6550503509053103
new: 0.0
path: .metrics.nargs.sum
old: 35.0
new: 33.0
path: .metrics.nargs.average
old: 7.0
new: 0.8918918918918919
path: .metrics.cyclomatic.average
old: 3.0
new: 3.4444444444444446
path: .metrics.cyclomatic.sum
old: 18.0
new: 124.0
path: .metrics.cognitive.sum
old: 12.0
new: 84.0
path: .metrics.cognitive.average
old: 2.4
new: 2.27027027027027
path: .metrics.nexits.average
old: 0.0
new: 0.8378378378378378
path: .metrics.nexits.sum
old: 0.0
new: 31.0
path: .metrics.nom.total
old: 5.0
new: 37.0
path: .metrics.nom.closures
old: 0.0
new: 3.0
path: .metrics.nom.functions
old: 5.0
new: 34.0
path: .metrics.loc.lloc
old: 86.0
new: 279.0
path: .metrics.loc.ploc
old: 714.0
new: 554.0
path: .metrics.loc.sloc
old: 879.0
new: 753.0
path: .metrics.loc.blank
old: 0.0
new: 138.0
path: .metrics.loc.cloc
old: 326.0
new: 61.0

# Spaces Data

## Minimal test - lines (68, 74)

path: .spaces[3].metrics.loc.sloc
old: 266.0
new: 7.0
path: .spaces[3].metrics.loc.cloc
old: 147.0
new: 1.0
path: .spaces[3].metrics.loc.ploc
old: 221.0
new: 7.0
path: .spaces[3].metrics.loc.lloc
old: 18.0
new: 0.0
path: .spaces[3].metrics.cognitive.sum
old: 3.0
new: 0.0
path: .spaces[3].metrics.cognitive.average
old: 3.0
new: 0.0
path: .spaces[3].metrics.cyclomatic.sum
old: 3.0
new: 1.0
path: .spaces[3].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[3].metrics.mi.mi_sei
old: 23.47119882208841
new: 121.21001426056426
path: .spaces[3].metrics.mi.mi_original
old: 36.87168460878502
new: 117.26426199457694
path: .spaces[3].metrics.mi.mi_visual_studio
old: 21.5623886601082
new: 68.57559180969412
path: .spaces[3].metrics.halstead.bugs
old: 0.5532566057431659
new: 0.010282593413122147
path: .spaces[3].metrics.halstead.n1
old: 16.0
new: 5.0
path: .spaces[3].metrics.halstead.length
old: 527.0
new: 18.0
path: .spaces[3].metrics.halstead.time
old: 3756.637495746563
new: 9.51838730514401
path: .spaces[3].metrics.halstead.level
old: 0.05754573170731707
new: 0.4
path: .spaces[3].metrics.halstead.n2
old: 151.0
new: 9.0
path: .spaces[3].metrics.halstead.volume
old: 3891.212162133825
new: 68.53238859703687
path: .spaces[3].metrics.halstead.N1
old: 199.0
new: 9.0
path: .spaces[3].metrics.halstead.purity_ratio
old: 2.195444242197508
new: 2.229942527078757
path: .spaces[3].metrics.halstead.effort
old: 67619.47492343813
new: 171.33097149259217
path: .spaces[3].metrics.halstead.vocabulary
old: 167.0
new: 14.0
path: .spaces[3].metrics.halstead.N2
old: 328.0
new: 9.0
path: .spaces[3].metrics.halstead.difficulty
old: 17.37748344370861
new: 2.5
path: .spaces[3].metrics.halstead.estimated_program_length
old: 1156.9991156380868
new: 40.13896548741762
path: .spaces[3].metrics.nargs.average
old: 6.0
new: 0.0
path: .spaces[3].metrics.nargs.sum
old: 6.0
new: 0.0

### Code

    @interface ChildView : UIView {
     @public
      nsWindow* mGeckoChild;  // weak ref
      BOOL mWaitingForPaint;
      CFMutableDictionaryRef mTouches;
      int mNextTouchID;
    }

## Minimal test - lines (48, 51)

path: .spaces[0].metrics.loc.ploc
old: 86.0
new: 4.0
path: .spaces[0].metrics.loc.lloc
old: 11.0
new: 1.0
path: .spaces[0].metrics.loc.cloc
old: 8.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 105.0
new: 4.0
path: .spaces[0].metrics.loc.blank
old: 11.0
new: 0.0
path: .spaces[0].metrics.halstead.vocabulary
old: 108.0
new: 16.0
path: .spaces[0].metrics.halstead.volume
old: 2438.514388281012
new: 112.0
path: .spaces[0].metrics.halstead.level
old: 0.07258687258687259
new: 0.17142857142857143
path: .spaces[0].metrics.halstead.n1
old: 14.0
new: 7.0
path: .spaces[0].metrics.halstead.time
old: 1866.3570524964011
new: 36.29629629629629
path: .spaces[0].metrics.halstead.length
old: 361.0
new: 28.0
path: .spaces[0].metrics.halstead.n2
old: 94.0
new: 9.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.854388700738239
new: 1.7207431952637156
path: .spaces[0].metrics.halstead.N1
old: 176.0
new: 13.0
path: .spaces[0].metrics.halstead.difficulty
old: 13.77659574468085
new: 5.833333333333333
path: .spaces[0].metrics.halstead.N2
old: 185.0
new: 15.0
path: .spaces[0].metrics.halstead.effort
old: 33594.42694493522
new: 653.3333333333333
path: .spaces[0].metrics.halstead.bugs
old: 0.347048552059426
new: 0.02509777893815956
path: .spaces[0].metrics.halstead.estimated_program_length
old: 669.4343209665043
new: 48.18080946738404
path: .spaces[0].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: 23.99515409398772
new: 102.97175440530046
path: .spaces[0].metrics.mi.mi_visual_studio
old: 31.92414742359429
new: 72.383530537499
path: .spaces[0].metrics.mi.mi_original
old: 54.59029209434624
new: 123.7758372191233
path: .spaces[0].metrics.nargs.sum
old: 6.0
new: 2.0
path: .spaces[0].metrics.nargs.average
old: 6.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 2.0
new: 1.0

### Code

    static LayoutDeviceIntPoint UIKitPointsToDevPixels(CGPoint aPoint, CGFloat aBackingScale) {
      return LayoutDeviceIntPoint(NSToIntRound(aPoint.x * aBackingScale),
                                  NSToIntRound(aPoint.y * aBackingScale));
    }

## Minimal test - lines (131, 143)

path: .spaces[4].metrics.cyclomatic.average
old: 7.0
new: 1.0
path: .spaces[4].metrics.cyclomatic.sum
old: 7.0
new: 1.0
path: .spaces[4].metrics.loc.sloc
old: 58.0
new: 13.0
path: .spaces[4].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[4].metrics.loc.ploc
old: 50.0
new: 11.0
path: .spaces[4].metrics.loc.lloc
old: 30.0
new: 6.0
path: .spaces[4].metrics.loc.blank
old: 6.0
new: 2.0
path: .spaces[4].metrics.halstead.length
old: 305.0
new: 68.0
path: .spaces[4].metrics.halstead.effort
old: 49146.73926847602
new: 2744.150400930999
path: .spaces[4].metrics.halstead.volume
old: 1755.240688159858
new: 343.01880011637485
path: .spaces[4].metrics.halstead.N1
old: 193.0
new: 36.0
path: .spaces[4].metrics.halstead.n1
old: 18.0
new: 11.0
path: .spaces[4].metrics.halstead.estimated_program_length
old: 261.17595007788486
new: 136.1612434150308
path: .spaces[4].metrics.halstead.vocabulary
old: 54.0
new: 33.0
path: .spaces[4].metrics.halstead.n2
old: 36.0
new: 22.0
path: .spaces[4].metrics.halstead.difficulty
old: 28.0
new: 8.0
path: .spaces[4].metrics.halstead.bugs
old: 0.4472412829847592
new: 0.06533572062789043
path: .spaces[4].metrics.halstead.level
old: 0.03571428571428571
new: 0.125
path: .spaces[4].metrics.halstead.N2
old: 112.0
new: 32.0
path: .spaces[4].metrics.halstead.purity_ratio
old: 0.8563145904192946
new: 2.0023712266916296
path: .spaces[4].metrics.halstead.time
old: 2730.374403804223
new: 152.45280005172216
path: .spaces[4].metrics.mi.mi_visual_studio
old: 37.874236620621424
new: 57.813647412473316
path: .spaces[4].metrics.mi.mi_original
old: 64.76494462126263
new: 98.86133707532936
path: .spaces[4].metrics.mi.mi_sei
old: 32.634271233371294
new: 67.02772860162162
path: .spaces[4].metrics.nargs.sum
old: 10.0
new: 0.0
path: .spaces[4].metrics.nargs.average
old: 10.0
new: 0.0
path: .spaces[4].metrics.cognitive.average
old: 4.0
new: 0.0
path: .spaces[4].metrics.cognitive.sum
old: 4.0
new: 0.0

### Code

                     point:(LayoutDeviceIntPoint)aPoint
                    widget:(nsWindow*)aWindow {
      WidgetMouseEvent event(true, aType, aWindow, WidgetMouseEvent::eReal, WidgetMouseEvent::eNormal);

      event.mRefPoint = aPoint;
      event.mClickCount = 1;
      event.button = MouseButton::ePrimary;
      event.mTime = PR_IntervalNow();
      event.inputSource = MouseEvent_Binding::MOZ_SOURCE_UNKNOWN;

      nsEventStatus status;
      aWindow->DispatchEvent(&event, status);
    }

## Minimal test - lines (53, 56)

path: .spaces[1].metrics.loc.ploc
old: 128.0
new: 4.0
path: .spaces[1].metrics.loc.cloc
old: 12.0
new: 0.0
path: .spaces[1].metrics.loc.blank
old: 18.0
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 11.0
new: 1.0
path: .spaces[1].metrics.loc.sloc
old: 158.0
new: 4.0
path: .spaces[1].metrics.halstead.n1
old: 14.0
new: 8.0
path: .spaces[1].metrics.halstead.N1
old: 172.0
new: 22.0
path: .spaces[1].metrics.halstead.time
old: 2044.9803163963395
new: 88.82030255382041
path: .spaces[1].metrics.halstead.purity_ratio
old: 2.191024933502541
new: 1.3789721734446727
path: .spaces[1].metrics.halstead.bugs
old: 0.3688528726383585
new: 0.04557589936391047
path: .spaces[1].metrics.halstead.length
old: 395.0
new: 45.0
path: .spaces[1].metrics.halstead.level
old: 0.07559256886611146
new: 0.11956521739130437
path: .spaces[1].metrics.halstead.difficulty
old: 13.228813559322036
new: 8.363636363636363
path: .spaces[1].metrics.halstead.n2
old: 118.0
new: 11.0
path: .spaces[1].metrics.halstead.N2
old: 223.0
new: 23.0
path: .spaces[1].metrics.halstead.volume
old: 2782.535677146589
new: 191.1567381049613
path: .spaces[1].metrics.halstead.vocabulary
old: 132.0
new: 19.0
path: .spaces[1].metrics.halstead.effort
old: 36809.64569513412
new: 1598.7654459687674
path: .spaces[1].metrics.halstead.estimated_program_length
old: 865.4548487335037
new: 62.05374780501027
path: .spaces[1].metrics.cognitive.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.mi.mi_original
old: 47.28414735873997
new: 120.99594405851263
path: .spaces[1].metrics.mi.mi_sei
old: 13.42380186559222
new: 98.96121632828633
path: .spaces[1].metrics.mi.mi_visual_studio
old: 27.65154816300583
new: 70.757862022522
path: .spaces[1].metrics.cyclomatic.sum
old: 2.0
new: 1.0
path: .spaces[1].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[1].metrics.nargs.sum
old: 6.0
new: 2.0
path: .spaces[1].metrics.nargs.average
old: 6.0
new: 2.0
path: .spaces[1].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0

### Code

    static CGRect DevPixelsToUIKitPoints(const LayoutDeviceIntRect& aRect, CGFloat aBackingScale) {
      return CGRectMake((CGFloat)aRect.x / aBackingScale, (CGFloat)aRect.y / aBackingScale,
                        (CGFloat)aRect.width / aBackingScale, (CGFloat)aRect.height / aBackingScale);
    }

## Minimal test - lines (59, 66)

path: .spaces[2].metrics.nom.total
old: 1.0
new: 2.0
path: .spaces[2].metrics.nom.functions
old: 1.0
new: 2.0
path: .spaces[2].metrics.mi.mi_sei
old: 23.790674871643624
new: 113.4889055264888
path: .spaces[2].metrics.mi.mi_original
old: 37.06258350211998
new: 112.87699641936013
path: .spaces[2].metrics.mi.mi_visual_studio
old: 21.67402543983625
new: 66.00993942652639
path: .spaces[2].metrics.nargs.average
old: 7.0
new: 0.5
path: .spaces[2].metrics.nargs.sum
old: 7.0
new: 1.0
path: .spaces[2].metrics.loc.cloc
old: 147.0
new: 1.0
path: .spaces[2].metrics.loc.lloc
old: 16.0
new: 1.0
path: .spaces[2].metrics.loc.sloc
old: 265.0
new: 8.0
path: .spaces[2].metrics.loc.ploc
old: 220.0
new: 7.0
path: .spaces[2].metrics.cognitive.sum
old: 3.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 3.0
new: 0.0
path: .spaces[2].metrics.cyclomatic.average
old: 3.0
new: 1.0
path: .spaces[2].metrics.halstead.difficulty
old: 17.00662251655629
new: 7.0
path: .spaces[2].metrics.halstead.length
old: 514.0
new: 26.0
path: .spaces[2].metrics.halstead.n2
old: 151.0
new: 6.0
path: .spaces[2].metrics.halstead.level
old: 0.0588006230529595
new: 0.14285714285714285
path: .spaces[2].metrics.halstead.time
old: 3585.7745578586128
new: 37.415557150093264
path: .spaces[2].metrics.halstead.vocabulary
old: 167.0
new: 13.0
path: .spaces[2].metrics.halstead.effort
old: 64543.94204145503
new: 673.4800287016787
path: .spaces[2].metrics.halstead.volume
old: 3795.2240063316626
new: 96.2114326716684
path: .spaces[2].metrics.halstead.bugs
old: 0.5363509690840227
new: 0.025611119336610453
path: .spaces[2].metrics.halstead.N2
old: 321.0
new: 12.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 1156.9991156380868
new: 35.161259458730164
path: .spaces[2].metrics.halstead.n1
old: 16.0
new: 7.0
path: .spaces[2].metrics.halstead.purity_ratio
old: 2.250971042097445
new: 1.352356133028083
path: .spaces[2].metrics.halstead.N1
old: 193.0
new: 14.0

### Code

    class nsAutoRetainUIKitObject {
     public:
      nsAutoRetainUIKitObject(id anObject) { mObject = [anObject retain]; }
      ~nsAutoRetainUIKitObject() { [mObject release]; }

     private:
      id mObject;  // [STRONG]
    };