# Global Metrics

path: .metrics.nom.total
old: 1.0
new: 2.0
path: .metrics.nom.functions
old: 1.0
new: 2.0
path: .metrics.nargs.average
old: 3.0
new: 0.5
path: .metrics.nargs.sum
old: 3.0
new: 1.0
path: .metrics.nexits.average
old: 1.0
new: 0.0
path: .metrics.nexits.sum
old: 1.0
new: 0.0
path: .metrics.cognitive.sum
old: 11.0
new: 0.0
path: .metrics.cognitive.average
old: 11.0
new: 0.0
path: .metrics.halstead.volume
old: 3209.520253047945
new: 472.0850336590825
path: .metrics.halstead.difficulty
old: 28.95394736842105
new: 6.515151515151516
path: .metrics.halstead.level
old: 0.03453760508975233
new: 0.15348837209302324
path: .metrics.halstead.N1
old: 317.0
new: 44.0
path: .metrics.halstead.length
old: 480.0
new: 87.0
path: .metrics.halstead.n1
old: 27.0
new: 10.0
path: .metrics.halstead.purity_ratio
old: 1.2567176116252627
new: 2.2952216883643977
path: .metrics.halstead.effort
old: 92928.2804846316
new: 3075.7055223243256
path: .metrics.halstead.time
old: 5162.682249146201
new: 170.8725290180181
path: .metrics.halstead.vocabulary
old: 103.0
new: 43.0
path: .metrics.halstead.bugs
old: 0.6838759735935183
new: 0.07049774847033162
path: .metrics.halstead.N2
old: 163.0
new: 43.0
path: .metrics.halstead.estimated_program_length
old: 603.2244535801261
new: 199.6842868877026
path: .metrics.halstead.n2
old: 76.0
new: 33.0
path: .metrics.mi.mi_original
old: 49.103231285086906
new: 72.59404354828838
path: .metrics.mi.mi_sei
old: 19.3834032588706
new: 56.63332739370551
path: .metrics.mi.mi_visual_studio
old: 28.71533993279936
new: 42.45265704578268
path: .metrics.loc.ploc
old: 68.0
new: 35.0
path: .metrics.loc.sloc
old: 103.0
new: 53.0
path: .metrics.loc.lloc
old: 54.0
new: 0.0
path: .metrics.loc.cloc
old: 9.0
new: 7.0
path: .metrics.loc.blank
old: 26.0
new: 11.0
path: .metrics.cyclomatic.sum
old: 21.0
new: 9.0
path: .metrics.cyclomatic.average
old: 7.0
new: 1.0

# Spaces Data

## Minimal test - lines (15, 52)

path: .spaces[0].metrics.halstead.bugs
old: 0.6718123315293811
new: 0.06635440732248743
path: .spaces[0].metrics.halstead.level
old: 0.03281133482475764
new: 0.15135135135135136
path: .spaces[0].metrics.halstead.effort
old: 90480.25982786193
new: 2808.578349605433
path: .spaces[0].metrics.halstead.estimated_program_length
old: 527.3119744360715
new: 167.82521876648653
path: .spaces[0].metrics.halstead.N2
old: 149.0
new: 37.0
path: .spaces[0].metrics.halstead.time
old: 5026.681101547885
new: 156.03213053363515
path: .spaces[0].metrics.halstead.length
old: 454.0
new: 81.0
path: .spaces[0].metrics.halstead.n2
old: 66.0
new: 28.0
path: .spaces[0].metrics.halstead.volume
old: 2968.778100243046
new: 425.0821285889304
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1614801199032412
new: 2.0719162810677347
path: .spaces[0].metrics.halstead.N1
old: 305.0
new: 44.0
path: .spaces[0].metrics.halstead.n1
old: 27.0
new: 10.0
path: .spaces[0].metrics.halstead.vocabulary
old: 93.0
new: 38.0
path: .spaces[0].metrics.halstead.difficulty
old: 30.477272727272727
new: 6.607142857142857
path: .spaces[0].metrics.cognitive.sum
old: 10.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 10.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 71.0
new: 38.0
path: .spaces[0].metrics.loc.ploc
old: 58.0
new: 28.0
path: .spaces[0].metrics.loc.cloc
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 54.0
new: 0.0
path: .spaces[0].metrics.loc.blank
old: 10.0
new: 9.0
path: .spaces[0].metrics.nargs.sum
old: 3.0
new: 1.0
path: .spaces[0].metrics.nargs.average
old: 3.0
new: 0.5
path: .spaces[0].metrics.cyclomatic.average
old: 9.5
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 19.0
new: 8.0
path: .spaces[0].metrics.mi.mi_original
old: 55.99587617989815
new: 78.75923576366421
path: .spaces[0].metrics.mi.mi_visual_studio
old: 32.74612642099307
new: 46.058032610329946
path: .spaces[0].metrics.mi.mi_sei
old: 22.67329611027722
new: 51.17303040325493
path: .spaces[0].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 1.0
new: 2.0
path: .spaces[0].metrics.nom.functions
old: 1.0
new: 2.0

### Code

    namespace mozilla {

    class HandlerServiceChild;

    namespace dom {

    class PHandlerServiceChild;

    class ContentHandlerService : public nsIHandlerService {
     public:
      NS_DECL_ISUPPORTS
      NS_DECL_NSIHANDLERSERVICE

      ContentHandlerService();
      [[nodiscard]] nsresult Init();
      static void nsIHandlerInfoToHandlerInfo(nsIHandlerInfo* aInfo,
                                              HandlerInfo* aHandlerInfo);

     private:
      virtual ~ContentHandlerService();
      RefPtr mHandlerServiceChild;
      nsClassHashtable mExtToTypeMap;
    };

    class RemoteHandlerApp : public nsIHandlerApp {
     public:
      NS_DECL_ISUPPORTS
      NS_DECL_NSIHANDLERAPP

      explicit RemoteHandlerApp(HandlerApp aAppChild) : mAppChild(aAppChild) {}

     private:
      virtual ~RemoteHandlerApp() {}
      HandlerApp mAppChild;
    };

    }  // namespace dom
    }  // namespace mozilla

## Minimal test - lines (17, 17)

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 133.81282941204452
new: null
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 117.45207326746916
new: null
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 78.25311661523071
new: null
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 4.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 4.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.6666666666666666
new: null
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 1.5
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 5.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.time
old: 1.3544580553509613
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 3.0
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.002802662411680566
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 6.754887502163468
new: null
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 0.9649839288804954
new: null
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 5.0
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 24.380244996317305
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 2.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 16.253496664211536
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 2.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 7.0
new: 1.0

### Code

    class HandlerServiceChild;