# Global Metrics

path: .metrics.loc.lloc
old: 145.0
new: 1.0
path: .metrics.loc.blank
old: 94.0
new: 7.0
path: .metrics.loc.cloc
old: 50.0
new: 8.0
path: .metrics.loc.ploc
old: 342.0
new: 19.0
path: .metrics.loc.sloc
old: 486.0
new: 34.0
path: .metrics.mi.mi_sei
old: -33.808078868061074
new: 78.45756057126204
path: .metrics.mi.mi_visual_studio
old: 5.255947754936651
new: 48.5273167109958
path: .metrics.mi.mi_original
old: 8.987670660941674
new: 82.98171157580282
path: .metrics.cognitive.sum
old: 34.0
new: 0.0
path: .metrics.cognitive.average
old: 1.1724137931034482
new: 0.0
path: .metrics.halstead.n1
old: 32.0
new: 10.0
path: .metrics.halstead.effort
old: 1009101.4736243832
new: 2243.65877569726
path: .metrics.halstead.vocabulary
old: 261.0
new: 33.0
path: .metrics.halstead.volume
old: 15871.170155218662
new: 332.93001187765793
path: .metrics.halstead.difficulty
old: 63.58078602620088
new: 6.739130434782608
path: .metrics.halstead.purity_ratio
old: 0.9889618955357612
new: 2.0797152414876505
path: .metrics.halstead.N1
old: 1067.0
new: 35.0
path: .metrics.halstead.level
old: 0.015728021978021978
new: 0.14838709677419357
path: .metrics.halstead.bugs
old: 3.3535282734218668
new: 0.057128122443214614
path: .metrics.halstead.N2
old: 910.0
new: 31.0
path: .metrics.halstead.estimated_program_length
old: 1955.1776674742
new: 137.26120593818493
path: .metrics.halstead.n2
old: 229.0
new: 23.0
path: .metrics.halstead.length
old: 1977.0
new: 66.0
path: .metrics.halstead.time
old: 56061.19297913239
new: 124.64770976095888
path: .metrics.nom.functions
old: 29.0
new: 1.0
path: .metrics.nom.total
old: 29.0
new: 1.0
path: .metrics.cyclomatic.average
old: 1.6129032258064515
new: 1.0
path: .metrics.cyclomatic.sum
old: 50.0
new: 3.0
path: .metrics.nargs.average
old: 1.7586206896551724
new: 0.0
path: .metrics.nargs.sum
old: 51.0
new: 0.0
path: .metrics.nexits.average
old: 0.10344827586206896
new: 0.0
path: .metrics.nexits.sum
old: 3.0
new: 0.0

# Spaces Data

## Minimal test - lines (15, 32)

path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.7867699283232954
new: 1.9616039810921453
path: .spaces[0].metrics.halstead.length
old: 51.0
new: 61.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 91.12526634448808
new: 119.65784284662088
path: .spaces[0].metrics.halstead.effort
old: 2822.3035993355884
new: 2020.4122027418075
path: .spaces[0].metrics.halstead.volume
old: 236.83666567851097
new: 299.32032633211963
path: .spaces[0].metrics.halstead.difficulty
old: 11.916666666666666
new: 6.75
path: .spaces[0].metrics.halstead.N2
old: 22.0
new: 27.0
path: .spaces[0].metrics.halstead.vocabulary
old: 25.0
new: 30.0
path: .spaces[0].metrics.halstead.level
old: 0.08391608391608392
new: 0.14814814814814814
path: .spaces[0].metrics.halstead.bugs
old: 0.06657040999452547
new: 0.05327278488440116
path: .spaces[0].metrics.halstead.n2
old: 12.0
new: 20.0
path: .spaces[0].metrics.halstead.time
old: 156.7946444075327
new: 112.24512237454486
path: .spaces[0].metrics.halstead.N1
old: 29.0
new: 34.0
path: .spaces[0].metrics.halstead.n1
old: 13.0
new: 10.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 62.28925968149088
new: 55.01058656708084
path: .spaces[0].metrics.mi.mi_sei
old: 78.17092206055146
new: 78.06876787608678
path: .spaces[0].metrics.mi.mi_original
old: 106.5146340553494
new: 94.06810302970824
path: .spaces[0].metrics.loc.lloc
old: 4.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 8.0
new: 13.0
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 1.0
new: 4.0
path: .spaces[0].metrics.loc.sloc
old: 9.0
new: 18.0
path: .spaces[0].metrics.nargs.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 1.0
new: 0.0
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.nexits.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0

### Code

    class nsAppShell : public nsBaseAppShell {
     public:
      nsAppShell() : mTag(0) { mPipeFDs[0] = mPipeFDs[1] = 0; }

      // nsBaseAppShell overrides:
      nsresult Init();
      virtual void ScheduleNativeEventCallback() override;
      virtual bool ProcessNextNativeEvent(bool mayWait) override;

     private:
      virtual ~nsAppShell();

      static gboolean EventProcessorCallback(GIOChannel* source,
                                             GIOCondition condition, gpointer data);

      int mPipeFDs[2];
      unsigned mTag;
    };