# Global Metrics

path: .metrics.cognitive.average
old: 18.875
new: null
path: .metrics.cognitive.sum
old: 302.0
new: 0.0
path: .metrics.mi.mi_original
old: -54.26516970099651
new: 75.98473931247489
path: .metrics.mi.mi_sei
old: -108.67913124791482
new: 63.49969662464137
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 44.43552006577479
path: .metrics.cyclomatic.average
old: 11.88888888888889
new: 1.0
path: .metrics.cyclomatic.sum
old: 214.0
new: 6.0
path: .metrics.nargs.average
old: 4.5
new: null
path: .metrics.nargs.sum
old: 72.0
new: 0.0
path: .metrics.loc.sloc
old: 1681.0
new: 44.0
path: .metrics.loc.lloc
old: 725.0
new: 0.0
path: .metrics.loc.ploc
old: 1201.0
new: 27.0
path: .metrics.loc.blank
old: 312.0
new: 10.0
path: .metrics.loc.cloc
old: 168.0
new: 7.0
path: .metrics.nom.total
old: 16.0
new: 0.0
path: .metrics.nom.functions
old: 16.0
new: 0.0
path: .metrics.nexits.average
old: 1.9375
new: null
path: .metrics.nexits.sum
old: 31.0
new: 0.0
path: .metrics.halstead.N1
old: 2919.0
new: 46.0
path: .metrics.halstead.n1
old: 45.0
new: 11.0
path: .metrics.halstead.effort
old: 7509486.3371119965
new: 4181.7421613649285
path: .metrics.halstead.estimated_program_length
old: 2919.917254701095
new: 191.6338334270034
path: .metrics.halstead.n2
old: 321.0
new: 31.0
path: .metrics.halstead.time
old: 417193.6853951109
new: 232.31900896471825
path: .metrics.halstead.purity_ratio
old: 0.5514480178850037
new: 2.0605788540538
path: .metrics.halstead.bugs
old: 12.782591188796216
new: 0.08652008012183315
path: .metrics.halstead.length
old: 5295.0
new: 93.0
path: .metrics.halstead.difficulty
old: 166.54205607476635
new: 8.338709677419354
path: .metrics.halstead.volume
old: 45090.63064371401
new: 501.48552031842473
path: .metrics.halstead.N2
old: 2376.0
new: 47.0
path: .metrics.halstead.level
old: 0.006004489337822672
new: 0.11992263056092844
path: .metrics.halstead.vocabulary
old: 366.0
new: 42.0

# Spaces Data

## Minimal test - lines (17, 17)

path: .spaces[3].metrics.halstead.length
old: 636.0
new: 1.0
path: .spaces[3].metrics.halstead.effort
old: 178886.1480436196
new: 0.0
path: .spaces[3].metrics.halstead.level
old: 0.0242024202420242
new: null
path: .spaces[3].metrics.halstead.purity_ratio
old: 1.0667752868826883
new: null
path: .spaces[3].metrics.halstead.bugs
old: 1.0582701675502924
new: 0.0
path: .spaces[3].metrics.halstead.n1
old: 24.0
new: 0.0
path: .spaces[3].metrics.halstead.N1
old: 333.0
new: 0.0
path: .spaces[3].metrics.halstead.estimated_program_length
old: 678.46908245739
new: null
path: .spaces[3].metrics.halstead.time
old: 9938.119335756644
new: 0.0
path: .spaces[3].metrics.halstead.vocabulary
old: 112.0
new: 1.0
path: .spaces[3].metrics.halstead.volume
old: 4329.477730428636
new: 0.0
path: .spaces[3].metrics.halstead.n2
old: 88.0
new: 1.0
path: .spaces[3].metrics.halstead.N2
old: 303.0
new: 1.0
path: .spaces[3].metrics.halstead.difficulty
old: 41.31818181818182
new: 0.0
path: .spaces[3].metrics.cyclomatic.average
old: 17.0
new: 1.0
path: .spaces[3].metrics.cyclomatic.sum
old: 17.0
new: 1.0
path: .spaces[3].metrics.nexits.average
old: 7.0
new: null
path: .spaces[3].metrics.nexits.sum
old: 7.0
new: 0.0
path: .spaces[3].metrics.loc.ploc
old: 130.0
new: 1.0
path: .spaces[3].metrics.loc.cloc
old: 25.0
new: 0.0
path: .spaces[3].metrics.loc.blank
old: 24.0
new: 0.0
path: .spaces[3].metrics.loc.sloc
old: 179.0
new: 1.0
path: .spaces[3].metrics.loc.lloc
old: 62.0
new: 0.0
path: .spaces[3].metrics.mi.mi_original
old: 39.51369851997829
new: null
path: .spaces[3].metrics.mi.mi_visual_studio
old: 23.107426035075022
new: null
path: .spaces[3].metrics.mi.mi_sei
old: 10.39401918149726
new: null
path: .spaces[3].metrics.cognitive.average
old: 29.0
new: null
path: .spaces[3].metrics.cognitive.sum
old: 29.0
new: 0.0
path: .spaces[3].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[3].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[3].metrics.nargs.sum
old: 3.0
new: 0.0
path: .spaces[3].metrics.nargs.average
old: 3.0
new: null

### Code

    @class NSColor;

## Minimal test - lines (19, 42)

path: .spaces[4].metrics.halstead.estimated_program_length
old: 96.99355338051744
new: 166.4357103634239
path: .spaces[4].metrics.halstead.n2
old: 21.0
new: 27.0
path: .spaces[4].metrics.halstead.difficulty
old: 1.9285714285714288
new: 7.7407407407407405
path: .spaces[4].metrics.halstead.effort
old: 389.0668179183382
new: 3209.204858313594
path: .spaces[4].metrics.halstead.N1
old: 17.0
new: 41.0
path: .spaces[4].metrics.halstead.N2
old: 27.0
new: 38.0
path: .spaces[4].metrics.halstead.level
old: 0.5185185185185185
new: 0.1291866028708134
path: .spaces[4].metrics.halstead.vocabulary
old: 24.0
new: 38.0
path: .spaces[4].metrics.halstead.n1
old: 3.0
new: 11.0
path: .spaces[4].metrics.halstead.purity_ratio
old: 2.2043989404663056
new: 2.106781143840809
path: .spaces[4].metrics.halstead.bugs
old: 0.01776484982816163
new: 0.07252321347672093
path: .spaces[4].metrics.halstead.volume
old: 201.73835003173087
new: 414.5862735620432
path: .spaces[4].metrics.halstead.time
old: 21.61482321768545
new: 178.28915879519965
path: .spaces[4].metrics.halstead.length
old: 44.0
new: 79.0
path: .spaces[4].metrics.loc.ploc
old: 16.0
new: 17.0
path: .spaces[4].metrics.loc.sloc
old: 19.0
new: 24.0
path: .spaces[4].metrics.loc.cloc
old: 0.0
new: 1.0
path: .spaces[4].metrics.loc.blank
old: 3.0
new: 6.0
path: .spaces[4].metrics.mi.mi_original
old: 95.47383642079002
new: 87.94366627106314
path: .spaces[4].metrics.mi.mi_visual_studio
old: 55.832652877654986
new: 51.4290446029609
path: .spaces[4].metrics.mi.mi_sei
old: 62.14059820630956
new: 66.82603871960775

### Code

    class nsColorPicker final : public nsIColorPicker {
     public:
      NS_DECL_ISUPPORTS

      NS_IMETHOD Init(mozIDOMWindowProxy* aParent, const nsAString& aTitle,
                      const nsAString& aInitialColor) override;
      NS_IMETHOD Open(nsIColorPickerShownCallback* aCallback) override;

      // For NSColorPanelWrapper.
      void Update(NSColor* aColor);
      void Done();

     private:
      ~nsColorPicker();

      static NSColor* GetNSColorFromHexString(const nsAString& aColor);
      static void GetHexStringFromNSColor(NSColor* aColor, nsAString& aResult);

      NSColorPanelWrapper* mColorPanelWrapper;

      nsString mTitle;
      nsString mColor;
      nsCOMPtr mCallback;
    };

## Minimal test - lines (16, 16)

path: .spaces[2].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[2].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[2].metrics.mi.mi_sei
old: 94.34555530148872
new: null
path: .spaces[2].metrics.mi.mi_visual_studio
old: 68.88690738676458
new: null
path: .spaces[2].metrics.mi.mi_original
old: 117.79661163136744
new: null
path: .spaces[2].metrics.nexits.average
old: 1.0
new: null
path: .spaces[2].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[2].metrics.nargs.average
old: 3.0
new: null
path: .spaces[2].metrics.nargs.sum
old: 3.0
new: 0.0
path: .spaces[2].metrics.halstead.N1
old: 12.0
new: 0.0
path: .spaces[2].metrics.halstead.N2
old: 13.0
new: 1.0
path: .spaces[2].metrics.halstead.effort
old: 390.0
new: 0.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 48.72905595320056
new: null
path: .spaces[2].metrics.halstead.length
old: 25.0
new: 1.0
path: .spaces[2].metrics.halstead.time
old: 21.666666666666668
new: 0.0
path: .spaces[2].metrics.halstead.n2
old: 10.0
new: 1.0
path: .spaces[2].metrics.halstead.vocabulary
old: 16.0
new: 1.0
path: .spaces[2].metrics.halstead.difficulty
old: 3.9
new: 0.0
path: .spaces[2].metrics.halstead.level
old: 0.25641025641025644
new: null
path: .spaces[2].metrics.halstead.volume
old: 100.0
new: 0.0
path: .spaces[2].metrics.halstead.n1
old: 6.0
new: 0.0
path: .spaces[2].metrics.halstead.bugs
old: 0.017793244641606396
new: 0.0
path: .spaces[2].metrics.halstead.purity_ratio
old: 1.9491622381280225
new: null
path: .spaces[2].metrics.loc.ploc
old: 6.0
new: 1.0
path: .spaces[2].metrics.loc.sloc
old: 6.0
new: 1.0
path: .spaces[2].metrics.loc.lloc
old: 1.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 0.0
new: null

### Code

    @class NSColorPanelWrapper;

## Minimal test - lines (15, 15)

path: .spaces[1].metrics.halstead.difficulty
old: 4.615384615384615
new: 0.0
path: .spaces[1].metrics.halstead.effort
old: 745.0211331270287
new: 0.0
path: .spaces[1].metrics.halstead.n1
old: 6.0
new: 0.0
path: .spaces[1].metrics.halstead.n2
old: 13.0
new: 1.0
path: .spaces[1].metrics.halstead.level
old: 0.21666666666666667
new: null
path: .spaces[1].metrics.halstead.estimated_program_length
old: 63.61549134016113
new: null
path: .spaces[1].metrics.halstead.N1
old: 18.0
new: 0.0
path: .spaces[1].metrics.halstead.length
old: 38.0
new: 1.0
path: .spaces[1].metrics.halstead.N2
old: 20.0
new: 1.0
path: .spaces[1].metrics.halstead.vocabulary
old: 19.0
new: 1.0
path: .spaces[1].metrics.halstead.bugs
old: 0.0273941485602488
new: 0.0
path: .spaces[1].metrics.halstead.volume
old: 161.42124551085624
new: 0.0
path: .spaces[1].metrics.halstead.time
old: 41.3900629515016
new: 0.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.6740918773726612
new: null
path: .spaces[1].metrics.cognitive.average
old: 0.0
new: null
path: .spaces[1].metrics.mi.mi_original
old: 107.03123111837978
new: null
path: .spaces[1].metrics.mi.mi_sei
old: 78.81439422211874
new: null
path: .spaces[1].metrics.mi.mi_visual_studio
old: 62.59136322712268
new: null
path: .spaces[1].metrics.loc.ploc
old: 8.0
new: 1.0
path: .spaces[1].metrics.loc.lloc
old: 4.0
new: 0.0
path: .spaces[1].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[1].metrics.loc.sloc
old: 10.0
new: 1.0
path: .spaces[1].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: 1.0
new: null
path: .spaces[1].metrics.nexits.average
old: 0.0
new: null
path: .spaces[1].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[1].metrics.nom.total
old: 1.0
new: 0.0

### Code

    class mozIDOMWindowProxy;

## Minimal test - lines (14, 14)

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.cloc
old: 18.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 109.0
new: 0.0
path: .spaces[0].metrics.loc.blank
old: 39.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 156.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 213.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 36.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 36.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: 60.0
new: null
path: .spaces[0].metrics.cognitive.sum
old: 60.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 2.0
new: null
path: .spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[0].metrics.halstead.volume
old: 4570.714616779977
new: 0.0
path: .spaces[0].metrics.halstead.n2
old: 79.0
new: 1.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 632.604616923604
new: null
path: .spaces[0].metrics.halstead.N1
old: 386.0
new: 0.0
path: .spaces[0].metrics.halstead.difficulty
old: 51.74683544303797
new: 0.0
path: .spaces[0].metrics.halstead.N2
old: 292.0
new: 1.0
path: .spaces[0].metrics.halstead.vocabulary
old: 107.0
new: 1.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9330451577044306
new: null
path: .spaces[0].metrics.halstead.effort
old: 236520.01713160187
new: 0.0
path: .spaces[0].metrics.halstead.time
old: 13140.00095175566
new: 0.0
path: .spaces[0].metrics.halstead.bugs
old: 1.2748448869654645
new: 0.0
path: .spaces[0].metrics.halstead.level
old: 0.019324853228962817
new: null
path: .spaces[0].metrics.halstead.length
old: 678.0
new: 1.0
path: .spaces[0].metrics.halstead.n1
old: 28.0
new: 0.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 18.73944896617916
new: null
path: .spaces[0].metrics.mi.mi_original
old: 32.044457732166364
new: null
path: .spaces[0].metrics.mi.mi_sei
old: -4.040834692658713
new: null
path: .spaces[0].metrics.nexits.average
old: 2.0
new: null
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 0.0

### Code

    class nsIColorPickerShownCallback;