# Global Metrics

path: .metrics.nexits.average
old: 1.1428571428571428
new: 0.0
path: .metrics.nexits.sum
old: 8.0
new: 0.0
path: .metrics.mi.mi_original
old: 45.86810554173353
new: 68.30226012582357
path: .metrics.mi.mi_sei
old: 30.4273508524234
new: 48.367913617114375
path: .metrics.mi.mi_visual_studio
old: 26.823453533177503
new: 39.942842178844195
path: .metrics.cognitive.average
old: 1.1428571428571428
new: 0.0
path: .metrics.cognitive.sum
old: 8.0
new: 0.0
path: .metrics.nargs.sum
old: 7.0
new: 0.0
path: .metrics.nargs.average
old: 1.0
new: 0.0
path: .metrics.cyclomatic.average
old: 2.25
new: 1.0
path: .metrics.cyclomatic.sum
old: 18.0
new: 10.0
path: .metrics.halstead.difficulty
old: 18.327272727272728
new: 8.381578947368421
path: .metrics.halstead.n2
old: 55.0
new: 38.0
path: .metrics.halstead.N2
old: 126.0
new: 49.0
path: .metrics.halstead.estimated_program_length
old: 381.9747842438563
new: 247.52696184669043
path: .metrics.halstead.level
old: 0.054563492063492064
new: 0.119309262166405
path: .metrics.halstead.vocabulary
old: 71.0
new: 51.0
path: .metrics.halstead.effort
old: 28289.73125839347
new: 4801.931963505527
path: .metrics.halstead.time
old: 1571.651736577415
new: 266.7739979725293
path: .metrics.halstead.bugs
old: 0.30947907717325535
new: 0.09487593747960917
path: .metrics.halstead.n1
old: 16.0
new: 13.0
path: .metrics.halstead.volume
old: 1543.5865269956753
new: 572.914959539121
path: .metrics.halstead.purity_ratio
old: 1.521811889417754
new: 2.4507619984820836
path: .metrics.halstead.N1
old: 125.0
new: 52.0
path: .metrics.halstead.length
old: 251.0
new: 101.0
path: .metrics.nom.total
old: 7.0
new: 1.0
path: .metrics.nom.functions
old: 7.0
new: 1.0
path: .metrics.loc.sloc
old: 166.0
new: 64.0
path: .metrics.loc.blank
old: 12.0
new: 16.0
path: .metrics.loc.ploc
old: 102.0
new: 41.0
path: .metrics.loc.cloc
old: 52.0
new: 7.0
path: .metrics.loc.lloc
old: 12.0
new: 1.0

# Spaces Data

## Minimal test - lines (19, 62)

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.N1
old: 14.0
new: 51.0
path: .spaces[1].metrics.halstead.time
old: 33.69693138712347
new: 231.48772777232696
path: .spaces[1].metrics.halstead.vocabulary
old: 15.0
new: 44.0
path: .spaces[1].metrics.halstead.level
old: 0.14814814814814814
new: 0.11923076923076924
path: .spaces[1].metrics.halstead.volume
old: 89.85848369899593
new: 496.80827729599406
path: .spaces[1].metrics.halstead.length
old: 23.0
new: 91.0
path: .spaces[1].metrics.halstead.n2
old: 6.0
new: 31.0
path: .spaces[1].metrics.halstead.effort
old: 606.5447649682225
new: 4166.779099901885
path: .spaces[1].metrics.halstead.N2
old: 9.0
new: 40.0
path: .spaces[1].metrics.halstead.bugs
old: 0.023884747315259205
new: 0.08631356674152747
path: .spaces[1].metrics.halstead.n1
old: 9.0
new: 13.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.91474347901338
new: 2.2163274940420585
path: .spaces[1].metrics.halstead.difficulty
old: 6.75
new: 8.387096774193548
path: .spaces[1].metrics.halstead.estimated_program_length
old: 44.039100017307746
new: 201.68580195782732
path: .spaces[1].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: 1.0
new: 0.0
path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 8.0
path: .spaces[1].metrics.mi.mi_visual_studio
old: 70.93934413179187
new: 44.19500943488997
path: .spaces[1].metrics.mi.mi_original
old: 121.3062784653641
new: 75.57346613366184
path: .spaces[1].metrics.mi.mi_sei
old: 99.40893423806816
new: 50.35899887866445
path: .spaces[1].metrics.loc.ploc
old: 5.0
new: 31.0
path: .spaces[1].metrics.loc.sloc
old: 5.0
new: 44.0
path: .spaces[1].metrics.loc.cloc
old: 0.0
new: 2.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 11.0
path: .spaces[1].metrics.loc.lloc
old: 2.0
new: 1.0

### Code

    namespace mozilla {

    namespace ipc {
    class URIParams;
    }  // namespace ipc

    namespace net {
    class CookieJarSettingsArgs;
    }

    namespace docshell {

    class OfflineCacheUpdateParent : public POfflineCacheUpdateParent,
                                     public nsIOfflineCacheUpdateObserver,
                                     public nsILoadContext {
      typedef mozilla::ipc::URIParams URIParams;
      typedef mozilla::ipc::PrincipalInfo PrincipalInfo;

     public:
      NS_DECL_ISUPPORTS
      NS_DECL_NSIOFFLINECACHEUPDATEOBSERVER
      NS_DECL_NSILOADCONTEXT

      nsresult Schedule(nsIURI* manifestURI, nsIURI* documentURI,
                        const PrincipalInfo& loadingPrincipalInfo,
                        const bool& stickDocument,
                        const net::CookieJarSettingsArgs& aCookieJarSettingsArgs);

      void StopSendingMessagesToChild() { mIPCClosed = true; }

      explicit OfflineCacheUpdateParent();

      virtual void ActorDestroy(ActorDestroyReason aWhy) override;

     private:
      ~OfflineCacheUpdateParent();

      bool mIPCClosed;

      nsCOMPtr mLoadingPrincipal;
    };

    }  // namespace docshell
    }  // namespace mozilla

## Minimal test - lines (17, 17)

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.loc.ploc
old: 5.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 2.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 5.0
new: 1.0
path: .spaces[0].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 1.0
new: null
path: .spaces[0].metrics.cognitive.average
old: 0.0
new: null
path: .spaces[0].metrics.mi.mi_sei
old: 102.16037273108049
new: null
path: .spaces[0].metrics.mi.mi_visual_studio
old: 72.05463760191796
new: null
path: .spaces[0].metrics.mi.mi_original
old: 123.21343029927972
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.halstead.effort
old: 381.402335954762
new: 0.0
path: .spaces[0].metrics.halstead.n2
old: 4.0
new: 1.0
path: .spaces[0].metrics.halstead.level
old: 0.16326530612244897
new: null
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.5361935808001794
new: null
path: .spaces[0].metrics.halstead.length
old: 18.0
new: 1.0
path: .spaces[0].metrics.halstead.bugs
old: 0.01753076942530223
new: 0.0
path: .spaces[0].metrics.halstead.volume
old: 62.26976913547135
new: 0.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 27.651484454403228
new: null
path: .spaces[0].metrics.halstead.N1
old: 11.0
new: 0.0
path: .spaces[0].metrics.halstead.N2
old: 7.0
new: 1.0
path: .spaces[0].metrics.halstead.time
old: 21.189018664153444
new: 0.0
path: .spaces[0].metrics.halstead.vocabulary
old: 11.0
new: 1.0
path: .spaces[0].metrics.halstead.n1
old: 7.0
new: 0.0
path: .spaces[0].metrics.halstead.difficulty
old: 6.125
new: 0.0

### Code

    class nsIPrincipal;