# Global Metrics

path: .metrics.loc.sloc
old: 54.0
new: 46.0
path: .metrics.loc.ploc
old: 33.0
new: 26.0
path: .metrics.loc.lloc
old: 13.0
new: 1.0
path: .metrics.loc.blank
old: 9.0
new: 10.0
path: .metrics.loc.cloc
old: 12.0
new: 10.0
path: .metrics.nargs.sum
old: 6.0
new: 1.0
path: .metrics.nargs.average
old: 1.2
new: 1.0
path: .metrics.nexits.average
old: 1.0
new: 0.0
path: .metrics.nexits.sum
old: 5.0
new: 0.0
path: .metrics.cognitive.sum
old: 1.0
new: 0.0
path: .metrics.cognitive.average
old: 0.2
new: 0.0
path: .metrics.nom.total
old: 5.0
new: 1.0
path: .metrics.nom.functions
old: 5.0
new: 1.0
path: .metrics.mi.mi_visual_studio
old: 39.66865131043807
new: 45.21780171839473
path: .metrics.mi.mi_sei
old: 56.22932433943559
new: 69.62076025036075
path: .metrics.mi.mi_original
old: 67.8333937408491
new: 77.32244093845499
path: .metrics.cyclomatic.average
old: 1.1666666666666667
new: 1.0
path: .metrics.halstead.estimated_program_length
old: 193.20929675174068
new: 158.14481635314195
path: .metrics.halstead.difficulty
old: 23.303571428571427
new: 8.395833333333334
path: .metrics.halstead.bugs
old: 0.3097369853781633
new: 0.06482022196772413
path: .metrics.halstead.purity_ratio
old: 0.8625415033559852
new: 2.550722844405515
path: .metrics.halstead.vocabulary
old: 43.0
new: 37.0
path: .metrics.halstead.N2
old: 87.0
new: 31.0
path: .metrics.halstead.n1
old: 15.0
new: 13.0
path: .metrics.halstead.level
old: 0.04291187739463602
new: 0.11910669975186104
path: .metrics.halstead.volume
old: 1215.48330505327
new: 322.9861086689949
path: .metrics.halstead.length
old: 224.0
new: 62.0
path: .metrics.halstead.effort
old: 28325.10201954495
new: 2711.73753736677
path: .metrics.halstead.n2
old: 28.0
new: 24.0
path: .metrics.halstead.N1
old: 137.0
new: 31.0
path: .metrics.halstead.time
old: 1573.6167788636085
new: 150.652085409265

# Spaces Data

## Minimal test - lines (14, 14)

path: .spaces[0].metrics.cognitive.average
old: 0.0
new: null
path: .spaces[0].metrics.halstead.effort
old: 1858.7488730031937
new: 0.0
path: .spaces[0].metrics.halstead.N1
old: 30.0
new: 0.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 71.27302875388389
new: null
path: .spaces[0].metrics.halstead.level
old: 0.11578947368421053
new: null
path: .spaces[0].metrics.halstead.n1
old: 10.0
new: 0.0
path: .spaces[0].metrics.halstead.N2
old: 19.0
new: 1.0
path: .spaces[0].metrics.halstead.bugs
old: 0.0503917248595187
new: 0.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.4545516072221203
new: null
path: .spaces[0].metrics.halstead.vocabulary
old: 21.0
new: 1.0
path: .spaces[0].metrics.halstead.n2
old: 11.0
new: 1.0
path: .spaces[0].metrics.halstead.time
old: 103.2638262779552
new: 0.0
path: .spaces[0].metrics.halstead.volume
old: 215.22355371615927
new: 0.0
path: .spaces[0].metrics.halstead.difficulty
old: 8.636363636363637
new: 0.0
path: .spaces[0].metrics.halstead.length
old: 49.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: 3.0
new: null
path: .spaces[0].metrics.nargs.sum
old: 3.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 7.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 1.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 7.0
new: 1.0
path: .spaces[0].metrics.mi.mi_sei
old: 84.99245101760758
new: null
path: .spaces[0].metrics.mi.mi_original
old: 111.3135337675121
new: null
path: .spaces[0].metrics.mi.mi_visual_studio
old: 65.09563378217081
new: null
path: .spaces[0].metrics.nexits.average
old: 1.0
new: null
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 1.0
new: 0.0

### Code

    class nsIDivertableChannel;

## Minimal test - lines (16, 44)

path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 5.0
path: .spaces[1].metrics.loc.ploc
old: 5.0
new: 19.0
path: .spaces[1].metrics.loc.sloc
old: 5.0
new: 29.0
path: .spaces[1].metrics.loc.cloc
old: 0.0
new: 3.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 7.0
path: .spaces[1].metrics.halstead.time
old: 66.16580474273987
new: 130.66520467836256
path: .spaces[1].metrics.halstead.length
old: 37.0
new: 55.0
path: .spaces[1].metrics.halstead.n1
old: 9.0
new: 13.0
path: .spaces[1].metrics.halstead.n2
old: 8.0
new: 19.0
path: .spaces[1].metrics.halstead.difficulty
old: 7.875
new: 8.552631578947368
path: .spaces[1].metrics.halstead.bugs
old: 0.037452672646338246
new: 0.05895224984188444
path: .spaces[1].metrics.halstead.level
old: 0.12698412698412698
new: 0.11692307692307692
path: .spaces[1].metrics.halstead.vocabulary
old: 17.0
new: 32.0
path: .spaces[1].metrics.halstead.volume
old: 151.23612512626255
new: 275.0
path: .spaces[1].metrics.halstead.effort
old: 1190.9844853693176
new: 2351.9736842105262
path: .spaces[1].metrics.halstead.N2
old: 14.0
new: 25.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 52.529325012980806
new: 128.8163390912623
path: .spaces[1].metrics.halstead.N1
old: 23.0
new: 30.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.419711486837319
new: 2.342115256204769
path: .spaces[1].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.mi.mi_original
old: 118.59912555696413
new: 86.09259784635293
path: .spaces[1].metrics.mi.mi_visual_studio
old: 69.3562137760024
new: 50.34654844815961
path: .spaces[1].metrics.mi.mi_sei
old: 95.50333816219134
new: 72.90906793234691

### Code

    namespace mozilla {
    namespace dom {

    class BrowserChild;

    class ExternalHelperAppChild : public PExternalHelperAppChild,
                                   public nsIStreamListener {
     public:
      NS_DECL_ISUPPORTS
      NS_DECL_NSISTREAMLISTENER
      NS_DECL_NSIREQUESTOBSERVER

      ExternalHelperAppChild();

      // Give the listener a real nsExternalAppHandler to complete processing on
      // the child.
      void SetHandler(nsExternalAppHandler* handler) { mHandler = handler; }

      mozilla::ipc::IPCResult RecvCancel(const nsresult& aStatus);

     private:
      virtual ~ExternalHelperAppChild();

      RefPtr mHandler;
      nsresult mStatus;
    };

    }  // namespace dom
    }  // namespace mozilla