# Global Metrics

path: .metrics.cognitive.sum
old: 1.0
new: 0.0
path: .metrics.cognitive.average
old: 0.25
new: 0.0
path: .metrics.halstead.length
old: 546.0
new: 123.0
path: .metrics.halstead.bugs
old: 0.5614818246255153
new: 0.11041286380740392
path: .metrics.halstead.n1
old: 17.0
new: 12.0
path: .metrics.halstead.n2
old: 123.0
new: 38.0
path: .metrics.halstead.time
old: 3840.722510289923
new: 334.918308103737
path: .metrics.halstead.N1
old: 289.0
new: 68.0
path: .metrics.halstead.estimated_program_length
old: 923.4161524579822
new: 242.44079551951012
path: .metrics.halstead.volume
old: 3892.588527251952
new: 694.1943113422911
path: .metrics.halstead.difficulty
old: 17.760162601626018
new: 8.68421052631579
path: .metrics.halstead.N2
old: 257.0
new: 55.0
path: .metrics.halstead.effort
old: 69133.00518521862
new: 6028.529545867265
path: .metrics.halstead.vocabulary
old: 140.0
new: 50.0
path: .metrics.halstead.purity_ratio
old: 1.691238374465169
new: 1.9710633782073992
path: .metrics.halstead.level
old: 0.05630579079880979
new: 0.11515151515151516
path: .metrics.mi.mi_original
old: 34.98165932258455
new: 60.92674850183849
path: .metrics.mi.mi_visual_studio
old: 20.45711071496172
new: 35.62967748645526
path: .metrics.mi.mi_sei
old: 7.495301141224221
new: 45.63503632272008
path: .metrics.cyclomatic.average
old: 1.0454545454545454
new: 1.0
path: .metrics.cyclomatic.sum
old: 23.0
new: 7.0
path: .metrics.loc.cloc
old: 40.0
new: 21.0
path: .metrics.loc.sloc
old: 225.0
new: 99.0
path: .metrics.loc.lloc
old: 21.0
new: 0.0
path: .metrics.loc.ploc
old: 130.0
new: 49.0
path: .metrics.loc.blank
old: 55.0
new: 29.0

# Spaces Data

## Minimal test - lines (27, 56)

path: .spaces[0].metrics.nargs.average
old: null
new: 0.0
path: .spaces[0].metrics.halstead.level
old: 0.18055555555555555
new: 0.12878787878787878
path: .spaces[0].metrics.halstead.volume
old: 394.9547923047624
new: 267.18895473201644
path: .spaces[0].metrics.halstead.bugs
old: 0.0561698287651067
new: 0.05422186097618091
path: .spaces[0].metrics.halstead.length
old: 77.0
new: 55.0
path: .spaces[0].metrics.halstead.time
old: 121.52455147838845
new: 115.25798047263454
path: .spaces[0].metrics.halstead.difficulty
old: 5.538461538461538
new: 7.764705882352941
path: .spaces[0].metrics.halstead.vocabulary
old: 35.0
new: 29.0
path: .spaces[0].metrics.halstead.N2
old: 32.0
new: 22.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 150.7407576846492
new: 112.50641830990963
path: .spaces[0].metrics.halstead.n2
old: 26.0
new: 17.0
path: .spaces[0].metrics.halstead.n1
old: 9.0
new: 12.0
path: .spaces[0].metrics.halstead.effort
old: 2187.4419266109917
new: 2074.643648507422
path: .spaces[0].metrics.halstead.N1
old: 45.0
new: 33.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.9576721777227168
new: 2.045571241998357
path: .spaces[0].metrics.mi.mi_visual_studio
old: 49.245729093609214
new: 50.38200624426378
path: .spaces[0].metrics.mi.mi_original
old: 84.21019675007176
new: 86.15323067769106
path: .spaces[0].metrics.mi.mi_sei
old: 66.08325544426572
new: 80.83293677431871
path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].metrics.cyclomatic.sum
old: 5.0
new: 3.0
path: .spaces[0].metrics.nexits.average
old: null
new: 0.0
path: .spaces[0].metrics.nom.total
old: 0.0
new: 2.0
path: .spaces[0].metrics.nom.functions
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.blank
old: 9.0
new: 6.0
path: .spaces[0].metrics.loc.cloc
old: 2.0
new: 6.0
path: .spaces[0].metrics.loc.lloc
old: 5.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 29.0
new: 30.0

### Code

    class nsBinaryOutputStream final : public nsIObjectOutputStream {
     public:
      nsBinaryOutputStream() = default;

     protected:
      friend already_AddRefed NS_NewObjectOutputStream(
          nsIOutputStream*);

      // nsISupports methods
      NS_DECL_ISUPPORTS

      // nsIOutputStream methods
      NS_DECL_NSIOUTPUTSTREAM

      // nsIBinaryOutputStream methods
      NS_DECL_NSIBINARYOUTPUTSTREAM

      // nsIObjectOutputStream methods
      NS_DECL_NSIOBJECTOUTPUTSTREAM

      // Call Write(), ensuring that all proffered data is written
      nsresult WriteFully(const char* aBuf, uint32_t aCount);

      nsCOMPtr mOutputStream;
      nsCOMPtr mBufferAccess;

     private:
      // virtual dtor since subclasses call our Release()
      virtual ~nsBinaryOutputStream() = default;
    };

## Minimal test - lines (67, 97)

path: .spaces[1].metrics.nom.functions
old: 0.0
new: 2.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 2.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[1].metrics.nargs.average
old: null
new: 0.0
path: .spaces[1].metrics.mi.mi_visual_studio
old: null
new: 50.07136581751965
path: .spaces[1].metrics.mi.mi_original
old: null
new: 85.6220355479586
path: .spaces[1].metrics.mi.mi_sei
old: null
new: 81.70355417025107
path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[1].metrics.nexits.average
old: null
new: 0.0
path: .spaces[1].metrics.loc.sloc
old: 1.0
new: 31.0
path: .spaces[1].metrics.loc.cloc
old: 0.0
new: 7.0
path: .spaces[1].metrics.loc.ploc
old: 1.0
new: 17.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 7.0
path: .spaces[1].metrics.halstead.n2
old: 1.0
new: 17.0
path: .spaces[1].metrics.halstead.N1
old: 0.0
new: 33.0
path: .spaces[1].metrics.halstead.N2
old: 1.0
new: 22.0
path: .spaces[1].metrics.halstead.vocabulary
old: 1.0
new: 29.0
path: .spaces[1].metrics.halstead.difficulty
old: 0.0
new: 7.764705882352941
path: .spaces[1].metrics.halstead.time
old: 0.0
new: 115.25798047263454
path: .spaces[1].metrics.halstead.level
old: null
new: 0.12878787878787878
path: .spaces[1].metrics.halstead.n1
old: 0.0
new: 12.0
path: .spaces[1].metrics.halstead.purity_ratio
old: null
new: 2.045571241998357
path: .spaces[1].metrics.halstead.effort
old: 0.0
new: 2074.643648507422
path: .spaces[1].metrics.halstead.bugs
old: 0.0
new: 0.05422186097618091
path: .spaces[1].metrics.halstead.estimated_program_length
old: null
new: 112.50641830990963
path: .spaces[1].metrics.halstead.volume
old: 0.0
new: 267.18895473201644
path: .spaces[1].metrics.halstead.length
old: 1.0
new: 55.0

### Code

    class nsBinaryInputStream final : public nsIObjectInputStream {
     public:
      nsBinaryInputStream() = default;

     protected:
      friend already_AddRefed NS_NewObjectInputStream(
          nsIInputStream*);

      // nsISupports methods
      NS_DECL_ISUPPORTS

      // nsIInputStream methods
      NS_DECL_NSIINPUTSTREAM

      // nsIBinaryInputStream methods
      NS_DECL_NSIBINARYINPUTSTREAM

      // nsIObjectInputStream methods
      NS_DECL_NSIOBJECTINPUTSTREAM

      nsCOMPtr mInputStream;
      nsCOMPtr mBufferAccess;

     private:
      // Shared infrastructure for ReadBytes and ReadByteArray.  Callers
      // are expected to provide a buffer that can contain aLength bytes.
      nsresult ReadBytesToBuffer(uint32_t aLength, uint8_t* aBuffer);

      // virtual dtor since subclasses call our Release()
      virtual ~nsBinaryInputStream() = default;
    };

## Minimal test - lines (29, 29)

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 9.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 74.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.054675176183614366
new: 0.002712967490108627
path: .spaces[0].spaces[0].metrics.halstead.time
old: 116.70639757828278
new: 1.289960052715201
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 34.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 2100.71515640909
new: 23.21928094887362
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.954401753477688
new: 1.6
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 43.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 31.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.17921146953405018
new: 0.5
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 376.4722502525251
new: 11.60964047443681
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 5.58
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 144.62572975734892
new: 8.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 25.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: null
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: null
new: 0.0
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 70.26809019589093
new: 152.37629276875444
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 86.45844551597364
new: 158.02045369261705
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 50.56049445378575
new: 92.40962204246613
path: .spaces[0].spaces[0].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 4.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 4.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 16.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 26.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 8.0
new: 0.0

### Code

      nsBinaryOutputStream() = default;