# Global Metrics

path: .metrics.cognitive.sum
old: 0.0
new: 150.0
path: .metrics.cognitive.average
old: 0.0
new: 15.0
path: .metrics.nargs.average
old: 0.0
new: 2.1
path: .metrics.nargs.sum
old: 0.0
new: 21.0
path: .metrics.loc.ploc
old: 113.0
new: 500.0
path: .metrics.loc.sloc
old: 195.0
new: 642.0
path: .metrics.loc.lloc
old: 1.0
new: 246.0
path: .metrics.loc.blank
old: 40.0
new: 85.0
path: .metrics.loc.cloc
old: 42.0
new: 57.0
path: .metrics.mi.mi_original
old: 41.17668174193476
new: -11.45481337594255
path: .metrics.mi.mi_sei
old: 18.060655189428843
new: -58.04420660009117
path: .metrics.mi.mi_visual_studio
old: 24.0799308432367
new: 0.0
path: .metrics.cyclomatic.average
old: 1.0
new: 10.636363636363637
path: .metrics.cyclomatic.sum
old: 14.0
new: 117.0
path: .metrics.halstead.estimated_program_length
old: 454.5336920965049
new: 2259.646406427471
path: .metrics.halstead.N2
old: 194.0
new: 860.0
path: .metrics.halstead.bugs
old: 0.4629472128198266
new: 3.513636589046461
path: .metrics.halstead.n1
old: 13.0
new: 37.0
path: .metrics.halstead.purity_ratio
old: 1.0449050393023105
new: 1.0564031820605289
path: .metrics.halstead.time
old: 2875.4550808698505
new: 60123.55315456618
path: .metrics.halstead.N1
old: 241.0
new: 1279.0
path: .metrics.halstead.difficulty
old: 18.82089552238806
new: 61.666666666666664
path: .metrics.halstead.vocabulary
old: 80.0
new: 295.0
path: .metrics.halstead.effort
old: 51758.19145565731
new: 1082223.9567821913
path: .metrics.halstead.n2
old: 67.0
new: 258.0
path: .metrics.halstead.length
old: 435.0
new: 2139.0
path: .metrics.halstead.level
old: 0.05313243457573354
new: 0.016216216216216217
path: .metrics.halstead.volume
old: 2750.038721276003
new: 17549.57767754905
path: .metrics.nom.total
old: 1.0
new: 10.0
path: .metrics.nom.functions
old: 1.0
new: 10.0
path: .metrics.nexits.sum
old: 1.0
new: 48.0
path: .metrics.nexits.average
old: 1.0
new: 4.8

# Spaces Data

## Minimal test - lines (51, 67)

path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.cyclomatic.sum
old: 13.0
new: 3.0
path: .spaces[0].metrics.mi.mi_sei
old: 19.87195265437528
new: 61.07985106148632
path: .spaces[0].metrics.mi.mi_visual_studio
old: 25.28955541160909
new: 55.320134638085584
path: .spaces[0].metrics.mi.mi_original
old: 43.24513975385155
new: 94.59743023112634
path: .spaces[0].metrics.halstead.difficulty
old: 19.92622950819672
new: 9.28125
path: .spaces[0].metrics.halstead.bugs
old: 0.47006753361134507
new: 0.06729541275444843
path: .spaces[0].metrics.halstead.n1
old: 13.0
new: 11.0
path: .spaces[0].metrics.halstead.N1
old: 241.0
new: 38.0
path: .spaces[0].metrics.halstead.N2
old: 187.0
new: 27.0
path: .spaces[0].metrics.halstead.effort
old: 52956.86495433788
new: 2868.5344759145546
path: .spaces[0].metrics.halstead.estimated_program_length
old: 409.8806939271703
new: 102.05374780501026
path: .spaces[0].metrics.halstead.time
old: 2942.048053018771
new: 159.36302643969748
path: .spaces[0].metrics.halstead.volume
old: 2657.6460404891905
new: 309.0676876406254
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.9576651727270332
new: 1.5700576585386194
path: .spaces[0].metrics.halstead.level
old: 0.05018510900863842
new: 0.10774410774410774
path: .spaces[0].metrics.halstead.vocabulary
old: 74.0
new: 27.0
path: .spaces[0].metrics.halstead.n2
old: 61.0
new: 16.0
path: .spaces[0].metrics.halstead.length
old: 428.0
new: 65.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.cognitive.average
old: 0.0
new: 2.0
path: .spaces[0].metrics.nargs.average
old: 0.0
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 1.0
new: 3.0
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 105.0
new: 13.0
path: .spaces[0].metrics.loc.cloc
old: 35.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 176.0
new: 17.0
path: .spaces[0].metrics.loc.lloc
old: 1.0
new: 7.0
path: .spaces[0].metrics.loc.blank
old: 36.0
new: 4.0

### Code

    static nsresult GetKnownFolder(GUID* aGuid, nsIFile** aFile) {
      if (!aGuid) {
        return NS_ERROR_FAILURE;
      }

      PWSTR path = nullptr;
      SHGetKnownFolderPath(*aGuid, 0, nullptr, &path);

      if (!path) {
        return NS_ERROR_FAILURE;
      }

      nsresult rv = NS_NewLocalFile(nsDependentString(path), true, aFile);

      CoTaskMemFree(path);
      return rv;
    }