Global Metrics
path: .metrics.cyclomatic.average
old: 3.6666666666666665
new: 1.0
path: .metrics.cyclomatic.sum
old: 11.0
new: 9.0
path: .metrics.halstead.time
old: 1748.8656098401073
new: 380.30746949296247
path: .metrics.halstead.n2
old: 29.0
new: 33.0
path: .metrics.halstead.N2
old: 79.0
new: 52.0
path: .metrics.halstead.effort
old: 31479.580977121932
new: 6845.534450873324
path: .metrics.halstead.volume
old: 1100.5519570060712
new: 668.3509966828985
path: .metrics.halstead.vocabulary
old: 50.0
new: 46.0
path: .metrics.halstead.N1
old: 116.0
new: 69.0
path: .metrics.halstead.estimated_program_length
old: 233.1201147370535
new: 214.57072227466315
path: .metrics.halstead.level
old: 0.03496081977094635
new: 0.09763313609467456
path: .metrics.halstead.difficulty
old: 28.603448275862068
new: 10.242424242424242
path: .metrics.halstead.n1
old: 21.0
new: 13.0
path: .metrics.halstead.length
old: 195.0
new: 121.0
path: .metrics.halstead.purity_ratio
old: 1.195487767882326
new: 1.773311754336059
path: .metrics.halstead.bugs
old: 0.3323262960800464
new: 0.12017578995450202
path: .metrics.nom.total
old: 1.0
new: 5.0
path: .metrics.nom.functions
old: 1.0
new: 5.0
path: .metrics.cognitive.sum
old: 6.0
new: 0.0
path: .metrics.cognitive.average
old: 6.0
new: 0.0
path: .metrics.loc.cloc
old: 13.0
new: 8.0
path: .metrics.loc.ploc
old: 35.0
new: 41.0
path: .metrics.loc.blank
old: 3.0
new: 12.0
path: .metrics.loc.lloc
old: 12.0
new: 1.0
path: .metrics.loc.sloc
old: 51.0
new: 61.0
path: .metrics.mi.mi_original
old: 68.35587576728986
new: 68.50881330608087
path: .metrics.mi.mi_sei
old: 59.276300218411265
new: 50.655760170010666
path: .metrics.mi.mi_visual_studio
old: 39.97419635514027
new: 40.06363351232799
path: .metrics.nargs.sum
old: 6.0
new: 0.0
path: .metrics.nargs.average
old: 6.0
new: 0.0
path: .metrics.nexits.average
old: 1.0
new: 0.2
Spaces Data
Minimal test - lines (20, 20)
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 77.12796285489767
new: 158.02045369261705
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 55.6586116096839
new: 152.37629276875444
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 45.10407184496941
new: 92.40962204246613
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 31.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.lloc
old: 12.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 29.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.031746031746031744
new: 0.5
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 208.33507062272207
new: 8.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 75.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 33058.51830700122
new: 23.21928094887362
path: .spaces[0].spaces[0].metrics.halstead.time
old: 1836.5843503889569
new: 1.289960052715201
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 46.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 115.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 21.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.096500371698537
new: 1.6
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.3433478521163415
new: 0.002712967490108627
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 25.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 190.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 31.5
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 1049.4767716508325
new: 11.60964047443681
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 6.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 6.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 6.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 6.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 9.0
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 9.0
new: 1.0
Code
nsHashPropertyBagBase() = default;
Minimal test - lines (17, 35)
path: .spaces[0].metrics.loc.cloc
old: 3.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 4.0
path: .spaces[0].metrics.loc.ploc
old: 31.0
new: 14.0
path: .spaces[0].metrics.loc.sloc
old: 36.0
new: 19.0
path: .spaces[0].metrics.loc.lloc
old: 12.0
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 6.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 6.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.average
old: 5.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 10.0
new: 2.0
path: .spaces[0].metrics.mi.mi_original
old: 74.39197034995105
new: 94.18592140917458
path: .spaces[0].metrics.mi.mi_sei
old: 54.26501525555858
new: 77.7830564557323
path: .spaces[0].metrics.mi.mi_visual_studio
old: 43.50407622804155
new: 55.07948620419567
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.nexits.average
old: 1.0
new: 0.0
path: .spaces[0].metrics.halstead.n1
old: 21.0
new: 11.0
path: .spaces[0].metrics.halstead.effort
old: 32732.76482687081
new: 1954.853124326956
path: .spaces[0].metrics.halstead.N2
old: 76.0
new: 23.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1169275966146996
new: 1.9625720731732743
path: .spaces[0].metrics.halstead.length
old: 192.0
new: 52.0
path: .spaces[0].metrics.halstead.n2
old: 26.0
new: 16.0
path: .spaces[0].metrics.halstead.difficulty
old: 30.692307692307693
new: 7.90625
path: .spaces[0].metrics.halstead.vocabulary
old: 47.0
new: 27.0
path: .spaces[0].metrics.halstead.volume
old: 1066.4810595221063
new: 247.25415011250035
path: .spaces[0].metrics.halstead.bugs
old: 0.3410886007581034
new: 0.052114051014870814
path: .spaces[0].metrics.halstead.level
old: 0.03258145363408521
new: 0.12648221343873517
path: .spaces[0].metrics.halstead.time
old: 1818.486934826156
new: 108.60295135149757
path: .spaces[0].metrics.halstead.estimated_program_length
old: 214.45009855002235
new: 102.05374780501026
path: .spaces[0].metrics.halstead.N1
old: 116.0
new: 29.0
path: .spaces[0].metrics.cognitive.average
old: 6.0
new: 0.0
path: .spaces[0].metrics.cognitive.sum
old: 6.0
new: 0.0
Code
class nsHashPropertyBagBase : public nsIWritablePropertyBag,
public nsIWritablePropertyBag2 {
public:
nsHashPropertyBagBase() = default;
void CopyFrom(const nsHashPropertyBagBase* aOther);
void CopyFrom(nsIPropertyBag* aOther);
static void CopyFrom(nsIWritablePropertyBag* aTo, nsIPropertyBag* aFrom);
NS_DECL_NSIPROPERTYBAG
NS_DECL_NSIPROPERTYBAG2
NS_DECL_NSIWRITABLEPROPERTYBAG
NS_DECL_NSIWRITABLEPROPERTYBAG2
protected:
// a hash table of string -> nsIVariant
nsInterfaceHashtable mPropertyHash;
};