# Global Metrics

path: .metrics.cyclomatic.average
old: 5.5
new: 2.5142857142857142
path: .metrics.cyclomatic.sum
old: 22.0
new: 88.0
path: .metrics.cognitive.average
old: 23.0
new: 1.3529411764705883
path: .metrics.cognitive.sum
old: 23.0
new: 46.0
path: .metrics.nargs.sum
old: 1.0
new: 32.0
path: .metrics.nargs.average
old: 1.0
new: 0.9411764705882352
path: .metrics.nexits.sum
old: 12.0
new: 53.0
path: .metrics.nexits.average
old: 12.0
new: 1.5588235294117647
path: .metrics.nom.total
old: 1.0
new: 34.0
path: .metrics.nom.functions
old: 1.0
new: 34.0
path: .metrics.loc.sloc
old: 433.0
new: 574.0
path: .metrics.loc.blank
old: 0.0
new: 85.0
path: .metrics.loc.ploc
old: 327.0
new: 434.0
path: .metrics.loc.lloc
old: 40.0
new: 136.0
path: .metrics.loc.cloc
old: 275.0
new: 55.0
path: .metrics.mi.mi_visual_studio
old: 7.331225322909803
new: 0.0
path: .metrics.mi.mi_original
old: 12.536395302175762
new: -2.4618497188515818
path: .metrics.mi.mi_sei
old: -8.17372190799989
new: -47.22354456103709
path: .metrics.halstead.n1
old: 19.0
new: 31.0
path: .metrics.halstead.N1
old: 2465.0
new: 1118.0
path: .metrics.halstead.bugs
old: 6.2311705605478265
new: 2.4699440484962794
path: .metrics.halstead.estimated_program_length
old: 2831.7901243143224
new: 2641.5783168981666
path: .metrics.halstead.difficulty
old: 64.44984802431611
new: 40.08443708609271
path: .metrics.halstead.level
old: 0.015515940388605922
new: 0.024947337986865475
path: .metrics.halstead.effort
old: 2555855.759095536
new: 637841.1807883497
path: .metrics.halstead.n2
old: 329.0
new: 302.0
path: .metrics.halstead.vocabulary
old: 348.0
new: 333.0
path: .metrics.halstead.purity_ratio
old: 0.6028933626387742
new: 1.3910365017894506
path: .metrics.halstead.N2
old: 2232.0
new: 781.0
path: .metrics.halstead.length
old: 4697.0
new: 1899.0
path: .metrics.halstead.time
old: 141991.98661641867
new: 35435.62115490832
path: .metrics.halstead.volume
old: 39656.50560000148
new: 15912.439519068326

# Spaces Data

## Minimal test - lines (34, 34)

path: .spaces[0].metrics.loc.sloc
old: 42.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 35.0
new: 1.0
path: .spaces[0].metrics.loc.lloc
old: 40.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 7.0
new: 0.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.179383600192318
new: 1.7958988638330426
path: .spaces[0].metrics.halstead.N2
old: 112.0
new: 10.0
path: .spaces[0].metrics.halstead.vocabulary
old: 65.0
new: 14.0
path: .spaces[0].metrics.halstead.bugs
old: 0.36886033153595266
new: 0.022603824962077895
path: .spaces[0].metrics.halstead.effort
old: 36810.76224099605
new: 558.4120552351153
path: .spaces[0].metrics.halstead.estimated_program_length
old: 336.1243260548106
new: 39.50977500432694
path: .spaces[0].metrics.halstead.time
old: 2045.042346722003
new: 31.02289195750641
path: .spaces[0].metrics.halstead.difficulty
old: 21.4468085106383
new: 6.666666666666667
path: .spaces[0].metrics.halstead.n1
old: 18.0
new: 8.0
path: .spaces[0].metrics.halstead.n2
old: 47.0
new: 6.0
path: .spaces[0].metrics.halstead.length
old: 285.0
new: 22.0
path: .spaces[0].metrics.halstead.level
old: 0.04662698412698413
new: 0.15
path: .spaces[0].metrics.halstead.N1
old: 173.0
new: 12.0
path: .spaces[0].metrics.halstead.volume
old: 1716.3748267131095
new: 83.76180828526729
path: .spaces[0].metrics.nexits.average
old: 12.0
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 12.0
new: 0.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.mi.mi_original
old: 67.35030981306855
new: 147.74451879286983
path: .spaces[0].metrics.mi.mi_visual_studio
old: 39.38614608951377
new: 86.40030338764318
path: .spaces[0].metrics.mi.mi_sei
old: 23.399683306321307
new: 137.55125244839124
path: .spaces[0].metrics.cognitive.sum
old: 23.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 23.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.average
old: 19.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 19.0
new: 1.0

### Code

    GfxInfo::GfxInfo() : mNumGPUsDetected(0), mOSXVersion{0} { mAdapterRAM[0] = mAdapterRAM[1] = 0; }

## Minimal test - lines (36, 79)

path: .spaces[1].metrics.cyclomatic.sum
old: 2.0
new: 15.0
path: .spaces[1].metrics.cyclomatic.average
old: 1.0
new: 15.0
path: .spaces[1].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[1].metrics.nargs.average
old: null
new: 1.0
path: .spaces[1].metrics.cognitive.sum
old: 0.0
new: 5.0
path: .spaces[1].metrics.cognitive.average
old: null
new: 5.0
path: .spaces[1].metrics.nexits.average
old: null
new: 13.0
path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 13.0
path: .spaces[1].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[1].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[1].metrics.halstead.time
old: 6.534481946314894
new: 268.4820966489728
path: .spaces[1].metrics.halstead.effort
old: 117.6206750336681
new: 4832.6777396815105
path: .spaces[1].metrics.halstead.vocabulary
old: 11.0
new: 40.0
path: .spaces[1].metrics.halstead.level
old: 0.5
new: 0.14646464646464646
path: .spaces[1].metrics.halstead.difficulty
old: 2.0
new: 6.827586206896552
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.6265579090825428
new: 1.345377418524134
path: .spaces[1].metrics.halstead.length
old: 17.0
new: 133.0
path: .spaces[1].metrics.halstead.N2
old: 7.0
new: 36.0
path: .spaces[1].metrics.halstead.n1
old: 4.0
new: 11.0
path: .spaces[1].metrics.halstead.N1
old: 10.0
new: 97.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 27.651484454403228
new: 178.93519666370983
path: .spaces[1].metrics.halstead.n2
old: 7.0
new: 29.0
path: .spaces[1].metrics.halstead.bugs
old: 0.008002048702810353
new: 0.0952804871934196
path: .spaces[1].metrics.halstead.volume
old: 58.81033751683405
new: 707.8164366200192
path: .spaces[1].metrics.mi.mi_visual_studio
old: 68.90631802221273
new: 42.17705673902782
path: .spaces[1].metrics.mi.mi_sei
old: 94.4952613639208
new: 46.093431401007976
path: .spaces[1].metrics.mi.mi_original
old: 117.82980381798376
new: 72.12276702373757
path: .spaces[1].metrics.loc.cloc
old: 0.0
new: 2.0
path: .spaces[1].metrics.loc.sloc
old: 7.0
new: 44.0
path: .spaces[1].metrics.loc.lloc
old: 0.0
new: 36.0
path: .spaces[1].metrics.loc.ploc
old: 7.0
new: 41.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 1.0

### Code

    static OperatingSystem OSXVersionToOperatingSystem(uint32_t aOSXVersion) {
      switch (nsCocoaFeatures::ExtractMajorVersion(aOSXVersion)) {
        case 10:
          switch (nsCocoaFeatures::ExtractMinorVersion(aOSXVersion)) {
            case 6:
              return OperatingSystem::OSX10_6;
            case 7:
              return OperatingSystem::OSX10_7;
            case 8:
              return OperatingSystem::OSX10_8;
            case 9:
              return OperatingSystem::OSX10_9;
            case 10:
              return OperatingSystem::OSX10_10;
            case 11:
              return OperatingSystem::OSX10_11;
            case 12:
              return OperatingSystem::OSX10_12;
            case 13:
              return OperatingSystem::OSX10_13;
            case 14:
              return OperatingSystem::OSX10_14;
            case 15:
              return OperatingSystem::OSX10_15;
            case 16:
              // Depending on the SDK version, we either get 10.16 or 11.0.
              // Normalize this to 11.0.
              return OperatingSystem::OSX11_0;
            default:
              break;
          }
          break;
        case 11:
          switch (nsCocoaFeatures::ExtractMinorVersion(aOSXVersion)) {
            case 0:
              return OperatingSystem::OSX11_0;
            default:
              break;
          }
          break;
      }

      return OperatingSystem::Unknown;
    }