Global Metrics
path: .metrics.cyclomatic.average
old: 2.5454545454545454
new: 3.1794871794871793
path: .metrics.cyclomatic.sum
old: 28.0
new: 124.0
path: .metrics.nargs.average
old: 1.25
new: 1.2571428571428571
path: .metrics.nargs.sum
old: 10.0
new: 44.0
path: .metrics.nom.closures
old: 0.0
new: 2.0
path: .metrics.nom.functions
old: 8.0
new: 33.0
path: .metrics.nom.total
old: 8.0
new: 35.0
path: .metrics.nexits.sum
old: 16.0
new: 31.0
path: .metrics.nexits.average
old: 2.0
new: 0.8857142857142857
path: .metrics.loc.ploc
old: 100.0
new: 582.0
path: .metrics.loc.sloc
old: 138.0
new: 780.0
path: .metrics.loc.blank
old: 18.0
new: 128.0
path: .metrics.loc.cloc
old: 20.0
new: 70.0
path: .metrics.loc.lloc
old: 45.0
new: 248.0
path: .metrics.halstead.N1
old: 227.0
new: 1670.0
path: .metrics.halstead.bugs
old: 0.6260173172448449
new: 3.5192149921265954
path: .metrics.halstead.purity_ratio
old: 1.0659868858474475
new: 1.3606170815234797
path: .metrics.halstead.effort
old: 81388.19232806517
new: 1084802.2585718615
path: .metrics.halstead.time
old: 4521.5662404480645
new: 60266.7921428812
path: .metrics.halstead.length
old: 367.0
new: 2668.0
path: .metrics.halstead.volume
old: 2278.8693851858247
new: 23384.67740408389
path: .metrics.halstead.estimated_program_length
old: 391.2171871060133
new: 3630.126373504644
path: .metrics.halstead.level
old: 0.028
new: 0.02155662676704761
path: .metrics.halstead.N2
old: 140.0
new: 998.0
path: .metrics.halstead.vocabulary
old: 74.0
new: 435.0
path: .metrics.halstead.n1
old: 25.0
new: 37.0
path: .metrics.halstead.difficulty
old: 35.714285714285715
new: 46.38944723618091
path: .metrics.halstead.n2
old: 49.0
new: 398.0
path: .metrics.cognitive.sum
old: 18.0
new: 88.0
path: .metrics.cognitive.average
old: 2.25
new: 2.5142857142857142
path: .metrics.mi.mi_sei
old: 19.20897487983689
new: -66.24707882342508
path: .metrics.mi.mi_visual_studio
old: 26.04387706494998
new: 0.0
path: .metrics.mi.mi_original
old: 44.535029781064466
new: -17.711710129247408
Spaces Data
Minimal test - lines (100, 111)
path: .spaces[0].metrics.nargs.sum
old: 10.0
new: 2.0
path: .spaces[0].metrics.nargs.average
old: 1.25
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.7
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 27.0
new: 3.0
path: .spaces[0].metrics.loc.blank
old: 16.0
new: 2.0
path: .spaces[0].metrics.loc.ploc
old: 94.0
new: 10.0
path: .spaces[0].metrics.loc.cloc
old: 13.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 123.0
new: 12.0
path: .spaces[0].metrics.loc.lloc
old: 45.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 2.0
new: 0.5
path: .spaces[0].metrics.nexits.sum
old: 16.0
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 18.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 2.25
new: 0.0
path: .spaces[0].metrics.halstead.level
old: 0.026470588235294117
new: 0.15873015873015872
path: .spaces[0].metrics.halstead.vocabulary
old: 70.0
new: 19.0
path: .spaces[0].metrics.halstead.volume
old: 2218.8004521340777
new: 144.4295354570819
path: .spaces[0].metrics.halstead.N2
old: 136.0
new: 14.0
path: .spaces[0].metrics.halstead.length
old: 362.0
new: 34.0
path: .spaces[0].metrics.halstead.effort
old: 83821.35041395405
new: 909.906073379616
path: .spaces[0].metrics.halstead.estimated_program_length
old: 363.2297940792035
new: 61.74860596185444
path: .spaces[0].metrics.halstead.n2
old: 45.0
new: 10.0
path: .spaces[0].metrics.halstead.N1
old: 226.0
new: 20.0
path: .spaces[0].metrics.halstead.difficulty
old: 37.77777777777778
new: 6.3
path: .spaces[0].metrics.halstead.bugs
old: 0.6384327848198549
new: 0.031299912335000735
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.0033972212132694
new: 1.816135469466307
path: .spaces[0].metrics.halstead.n1
old: 25.0
new: 9.0
path: .spaces[0].metrics.halstead.time
old: 4656.741689664113
new: 50.55033740997866
path: .spaces[0].metrics.mi.mi_original
old: 46.76805908479979
new: 104.19599520089088
path: .spaces[0].metrics.mi.mi_sei
old: 18.651398775180695
new: 74.92765314301614
path: .spaces[0].metrics.mi.mi_visual_studio
old: 27.349742154853676
new: 60.93333052683678
path: .spaces[0].metrics.nom.total
old: 8.0
new: 2.0
path: .spaces[0].metrics.nom.functions
old: 8.0
new: 2.0
Code
class WakeLockListener final : public nsIDOMMozWakeLockListener {
private:
~WakeLockListener() {}
public:
NS_DECL_ISUPPORTS;
nsresult Callback(const nsAString& topic, const nsAString& state) override {
java::GeckoAppShell::NotifyWakeLockChanged(topic, state);
return NS_OK;
}
};
Minimal test - lines (102, 102)
path: .spaces[0].spaces[0].metrics.loc.blank
old: 17.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 45.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 12.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 121.0
new: 1.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 92.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 1.25
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 10.0
new: 0.0
path: .spaces[0].spaces[0].metrics.halstead.time
old: 4685.515918551437
new: 0.6666666666666666
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 2199.068804440141
new: 8.0
path: .spaces[0].spaces[0].metrics.halstead.length
old: 360.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 44.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.026074074074074076
new: 0.6666666666666666
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 38.35227272727273
new: 1.5
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 0.9897538776789144
new: 1.188721875540867
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 84339.28653392586
new: 12.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.6410600215536825
new: 0.0017471609294725976
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 225.0
new: 3.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 135.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 356.3113959644092
new: 4.754887502163468
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 25.0
new: 3.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 69.0
new: 4.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 8.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.total
old: 8.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 16.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 18.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 2.25
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 2.888888888888889
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 26.0
new: 1.0
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 47.310088910360946
new: 159.95690398326485
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 18.637740138268775
new: 155.17000000000002
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 27.66671866102979
new: 93.54204911302038
Code
~WakeLockListener() {}