Global Metrics

path: .metrics.halstead.length
old: 783.0
new: 314.0

path: .metrics.halstead.vocabulary
old: 110.0
new: 101.0

path: .metrics.halstead.time
old: 17743.050948230968
new: 1093.0892651417914

path: .metrics.halstead.n2
old: 81.0
new: 90.0

path: .metrics.halstead.difficulty
old: 60.148148148148145
new: 9.411111111111111

path: .metrics.halstead.N1
old: 447.0
new: 160.0

path: .metrics.halstead.n1
old: 29.0
new: 11.0

path: .metrics.halstead.volume
old: 5309.804655689809
new: 2090.6784055840635

path: .metrics.halstead.level
old: 0.0166256157635468
new: 0.10625737898465172

path: .metrics.halstead.estimated_program_length
old: 654.4092990923541
new: 622.3205264746811

path: .metrics.halstead.effort
old: 319374.9170681574
new: 19675.606772552244

path: .metrics.halstead.N2
old: 336.0
new: 154.0

path: .metrics.halstead.purity_ratio
old: 0.8357717740643092
new: 1.9819125046964363

path: .metrics.halstead.bugs
old: 1.557444627992891
new: 0.2429391465814041

path: .metrics.cognitive.sum
old: 45.0
new: 0.0

path: .metrics.cognitive.average
old: 22.5
new: 0.0

path: .metrics.nom.functions
old: 2.0
new: 3.0

path: .metrics.nom.total
old: 2.0
new: 3.0

path: .metrics.mi.mi_visual_studio
old: 17.421696785126013
new: 28.475111120863833

path: .metrics.mi.mi_original
old: 29.79110150256548
new: 48.69244001667715

path: .metrics.mi.mi_sei
old: 10.457722369716764
new: 25.70618744276959

path: .metrics.nexits.sum
old: 2.0
new: 1.0

path: .metrics.nexits.average
old: 1.0
new: 0.3333333333333333

path: .metrics.cyclomatic.average
old: 9.25
new: 1.0

path: .metrics.cyclomatic.sum
old: 37.0
new: 6.0

path: .metrics.loc.blank
old: 19.0
new: 16.0

path: .metrics.loc.sloc
old: 230.0
new: 150.0

path: .metrics.loc.cloc
old: 79.0
new: 27.0

path: .metrics.loc.ploc
old: 132.0
new: 107.0

path: .metrics.loc.lloc
old: 65.0
new: 1.0

path: .metrics.nargs.sum
old: 3.0
new: 6.0

path: .metrics.nargs.average
old: 1.5
new: 2.0

Spaces Data

Minimal test - lines (97, 101)

path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 34.372870049401826
new: 119.56320604927495

path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 16.85419664885311
new: 96.89421230746598

path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 20.101093596141418
new: 69.92000353758769

path: .spaces[0].spaces[1].metrics.nexits.average
old: 1.0
new: 0.0

path: .spaces[0].spaces[1].metrics.nexits.sum
old: 1.0
new: 0.0

path: .spaces[0].spaces[1].metrics.cyclomatic.average
old: 34.0
new: 1.0

path: .spaces[0].spaces[1].metrics.cyclomatic.sum
old: 34.0
new: 1.0

path: .spaces[0].spaces[1].metrics.nargs.average
old: 1.0
new: 5.0

path: .spaces[0].spaces[1].metrics.nargs.sum
old: 1.0
new: 5.0

path: .spaces[0].spaces[1].metrics.loc.cloc
old: 65.0
new: 0.0

path: .spaces[0].spaces[1].metrics.loc.lloc
old: 64.0
new: 0.0

path: .spaces[0].spaces[1].metrics.loc.ploc
old: 115.0
new: 5.0

path: .spaces[0].spaces[1].metrics.loc.sloc
old: 188.0
new: 5.0

path: .spaces[0].spaces[1].metrics.loc.blank
old: 8.0
new: 0.0

path: .spaces[0].spaces[1].metrics.cognitive.average
old: 45.0
new: 0.0

path: .spaces[0].spaces[1].metrics.cognitive.sum
old: 45.0
new: 0.0

path: .spaces[0].spaces[1].metrics.halstead.effort
old: 313836.36429369834
new: 488.61054833072586

path: .spaces[0].spaces[1].metrics.halstead.time
old: 17435.35357187213
new: 27.145030462818102

path: .spaces[0].spaces[1].metrics.halstead.N1
old: 407.0
new: 19.0

path: .spaces[0].spaces[1].metrics.halstead.length
old: 715.0
new: 33.0

path: .spaces[0].spaces[1].metrics.halstead.volume
old: 4708.2481880156265
new: 125.64271242790092

path: .spaces[0].spaces[1].metrics.halstead.difficulty
old: 66.65671641791045
new: 3.888888888888889

path: .spaces[0].spaces[1].metrics.halstead.n2
old: 67.0
new: 9.0

path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 0.765467726740378
new: 1.2163322874975038

path: .spaces[0].spaces[1].metrics.halstead.vocabulary
old: 96.0
new: 14.0

path: .spaces[0].spaces[1].metrics.halstead.N2
old: 308.0
new: 14.0

path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 1.5393861963425255
new: 0.02067857643802285

path: .spaces[0].spaces[1].metrics.halstead.level
old: 0.015002239140170176
new: 0.2571428571428572

path: .spaces[0].spaces[1].metrics.halstead.estimated_program_length
old: 547.3094246193702
new: 40.13896548741762

path: .spaces[0].spaces[1].metrics.halstead.n1
old: 29.0
new: 5.0

Code

  WinPointerInfo(uint32_t aPointerId, uint32_t aTiltX, uint32_t aTiltY,
                 float aPressure, int16_t aButtons)
      : WidgetPointerHelper(aPointerId, aTiltX, aTiltY),
        mPressure(aPressure),
        mButtons(aButtons) {}

Minimal test - lines (95, 95)

path: .spaces[0].spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0

path: .spaces[0].spaces[0].metrics.nexits.average
old: 1.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 6.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 6.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.lloc
old: 1.0
new: 0.0

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 88.02587416365742
new: 142.31662112654024

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 66.32522951382563
new: 88.3319419043611

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 113.41614246864182
new: 151.04762065645747

path: .spaces[0].spaces[0].metrics.nargs.average
old: 2.0
new: 0.0

path: .spaces[0].spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 32.0
new: 8.0

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 9.75
new: 2.4

path: .spaces[0].spaces[0].metrics.halstead.time
old: 125.77110513973211
new: 5.917193336025649

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 13.0
new: 4.0

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.8225053268897613
new: 1.400688605316915

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 18.0
new: 6.0

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 2263.879892515178
new: 106.50948004846168

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 12.0
new: 5.0

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 232.19280948873623
new: 44.37895002019237

path: .spaces[0].spaces[0].metrics.halstead.length
old: 50.0
new: 14.0

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.10256410256410256
new: 0.4166666666666667

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.05747085612259851
new: 0.007489812085405816

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 25.0
new: 9.0

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 91.12526634448808
new: 19.60964047443681

Code

  WinPointerInfo() : WidgetPointerHelper(), mPressure(0), mButtons(0) {}

Minimal test - lines (93, 105)

path: .spaces[0].metrics.cognitive.average
old: 22.5
new: 0.0

path: .spaces[0].metrics.cognitive.sum
old: 45.0
new: 0.0

path: .spaces[0].metrics.nexits.average
old: 1.0
new: 0.0

path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 0.0

path: .spaces[0].metrics.cyclomatic.average
old: 12.0
new: 1.0

path: .spaces[0].metrics.cyclomatic.sum
old: 36.0
new: 3.0

path: .spaces[0].metrics.mi.mi_visual_studio
old: 18.785684859591516
new: 58.61603426021044

path: .spaces[0].metrics.mi.mi_sei
old: 13.505888720422178
new: 69.21086351006987

path: .spaces[0].metrics.mi.mi_original
old: 32.12352110990149
new: 100.23341858495984

path: .spaces[0].metrics.halstead.bugs
old: 1.563658493734135
new: 0.053366512441044914

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.8027691523864563
new: 0.89611466785215

path: .spaces[0].metrics.halstead.level
old: 0.016028682906253294
new: 0.11904761904761904

path: .spaces[0].metrics.halstead.length
old: 767.0
new: 59.0

path: .spaces[0].metrics.halstead.vocabulary
old: 105.0
new: 17.0

path: .spaces[0].metrics.halstead.difficulty
old: 62.38815789473684
new: 8.4

path: .spaces[0].metrics.halstead.N2
old: 327.0
new: 24.0

path: .spaces[0].metrics.halstead.N1
old: 440.0
new: 35.0

path: .spaces[0].metrics.halstead.effort
old: 321288.1770866405
new: 2025.746584123668

path: .spaces[0].metrics.halstead.n1
old: 29.0
new: 7.0

path: .spaces[0].metrics.halstead.n2
old: 76.0
new: 10.0

path: .spaces[0].metrics.halstead.time
old: 17849.343171480028
new: 112.54147689575932

path: .spaces[0].metrics.halstead.volume
old: 5149.826312049916
new: 241.16030763377

path: .spaces[0].metrics.halstead.estimated_program_length
old: 615.723939880412
new: 52.87076540327685

path: .spaces[0].metrics.nargs.sum
old: 3.0
new: 5.0

path: .spaces[0].metrics.nargs.average
old: 1.5
new: 2.5

path: .spaces[0].metrics.loc.lloc
old: 65.0
new: 0.0

path: .spaces[0].metrics.loc.blank
old: 12.0
new: 2.0

path: .spaces[0].metrics.loc.ploc
old: 123.0
new: 11.0

path: .spaces[0].metrics.loc.sloc
old: 204.0
new: 13.0

path: .spaces[0].metrics.loc.cloc
old: 69.0
new: 0.0

Code

class WinPointerInfo final : public mozilla::WidgetPointerHelper {
 public:
  WinPointerInfo() : WidgetPointerHelper(), mPressure(0), mButtons(0) {}

  WinPointerInfo(uint32_t aPointerId, uint32_t aTiltX, uint32_t aTiltY,
                 float aPressure, int16_t aButtons)
      : WidgetPointerHelper(aPointerId, aTiltX, aTiltY),
        mPressure(aPressure),
        mButtons(aButtons) {}

  float mPressure;
  int16_t mButtons;
};