Global Metrics

path: .metrics.loc.sloc
old: 91.0
new: 50.0

path: .metrics.loc.lloc
old: 29.0
new: 0.0

path: .metrics.loc.blank
old: 21.0
new: 9.0

path: .metrics.loc.cloc
old: 5.0
new: 7.0

path: .metrics.loc.ploc
old: 65.0
new: 34.0

path: .metrics.halstead.N2
old: 91.0
new: 44.0

path: .metrics.halstead.bugs
old: 0.3335260674609445
new: 0.10488864085583233

path: .metrics.halstead.length
old: 258.0
new: 102.0

path: .metrics.halstead.N1
old: 167.0
new: 58.0

path: .metrics.halstead.level
old: 0.04395604395604396
new: 0.0979020979020979

path: .metrics.halstead.n1
old: 14.0
new: 13.0

path: .metrics.halstead.effort
old: 31650.207112999935
new: 5581.803824239954

path: .metrics.halstead.estimated_program_length
old: 187.90890672641936
new: 182.71165415344709

path: .metrics.halstead.time
old: 1758.3448396111075
new: 310.1002124577752

path: .metrics.halstead.difficulty
old: 22.75
new: 10.214285714285714

path: .metrics.halstead.purity_ratio
old: 0.7283290958388348
new: 1.7912907269945793

path: .metrics.halstead.volume
old: 1391.2178950769205
new: 546.4703044710445

path: .metrics.halstead.vocabulary
old: 42.0
new: 41.0

path: .metrics.nom.total
old: 6.0
new: 0.0

path: .metrics.nom.functions
old: 6.0
new: 0.0

path: .metrics.cyclomatic.average
old: 2.142857142857143
new: 1.1111111111111112

path: .metrics.cyclomatic.sum
old: 15.0
new: 10.0

path: .metrics.nargs.sum
old: 7.0
new: 0.0

path: .metrics.nargs.average
old: 1.1666666666666667
new: null

path: .metrics.mi.mi_visual_studio
old: 33.2379034498142
new: 42.42522308534824

path: .metrics.mi.mi_sei
old: 25.58503461412162
new: 57.36750256345776

path: .metrics.mi.mi_original
old: 56.83681489918227
new: 72.54713147594548

path: .metrics.cognitive.average
old: 1.3333333333333333
new: null

path: .metrics.cognitive.sum
old: 8.0
new: 1.0

path: .metrics.nexits.average
old: 2.3333333333333335
new: null

path: .metrics.nexits.sum
old: 14.0
new: 0.0

Spaces Data

Minimal test - lines (15, 15)

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

path: .spaces[3].metrics.nargs.average
old: 2.0
new: null

path: .spaces[3].metrics.cyclomatic.average
old: 3.0
new: 1.0

path: .spaces[3].metrics.cyclomatic.sum
old: 3.0
new: 1.0

path: .spaces[3].metrics.nom.total
old: 1.0
new: 0.0

path: .spaces[3].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[3].metrics.loc.lloc
old: 7.0
new: 0.0

path: .spaces[3].metrics.loc.sloc
old: 15.0
new: 1.0

path: .spaces[3].metrics.loc.ploc
old: 13.0
new: 1.0

path: .spaces[3].metrics.loc.blank
old: 2.0
new: 0.0

path: .spaces[3].metrics.cognitive.sum
old: 2.0
new: 0.0

path: .spaces[3].metrics.cognitive.average
old: 2.0
new: null

path: .spaces[3].metrics.mi.mi_sei
old: 63.86417079195387
new: null

path: .spaces[3].metrics.mi.mi_visual_studio
old: 56.4487564924429
new: null

path: .spaces[3].metrics.mi.mi_original
old: 96.52737360207736
new: null

path: .spaces[3].metrics.nexits.average
old: 3.0
new: null

path: .spaces[3].metrics.nexits.sum
old: 3.0
new: 0.0

path: .spaces[3].metrics.halstead.bugs
old: 0.08748027057672651
new: 0.0

path: .spaces[3].metrics.halstead.effort
old: 4251.547725058617
new: 0.0

path: .spaces[3].metrics.halstead.n2
old: 13.0
new: 1.0

path: .spaces[3].metrics.halstead.time
old: 236.19709583658985
new: 0.0

path: .spaces[3].metrics.halstead.volume
old: 314.92946111545314
new: 0.0

path: .spaces[3].metrics.halstead.estimated_program_length
old: 96.2114326716684
new: null

path: .spaces[3].metrics.halstead.n1
old: 13.0
new: 0.0

path: .spaces[3].metrics.halstead.purity_ratio
old: 1.435991532412961
new: null

path: .spaces[3].metrics.halstead.level
old: 0.07407407407407407
new: null

path: .spaces[3].metrics.halstead.N1
old: 40.0
new: 0.0

path: .spaces[3].metrics.halstead.N2
old: 27.0
new: 1.0

path: .spaces[3].metrics.halstead.vocabulary
old: 26.0
new: 1.0

path: .spaces[3].metrics.halstead.difficulty
old: 13.5
new: 0.0

path: .spaces[3].metrics.halstead.length
old: 67.0
new: 1.0

Code

class IDirectManipulationViewport;

Minimal test - lines (17, 48)

path: .spaces[4].metrics.loc.blank
old: 2.0
new: 6.0

path: .spaces[4].metrics.loc.ploc
old: 13.0
new: 25.0

path: .spaces[4].metrics.loc.cloc
old: 0.0
new: 1.0

path: .spaces[4].metrics.loc.lloc
old: 7.0
new: 0.0

path: .spaces[4].metrics.loc.sloc
old: 15.0
new: 32.0

path: .spaces[4].metrics.halstead.bugs
old: 0.08748027057672651
new: 0.09016808727068254

path: .spaces[4].metrics.halstead.effort
old: 4251.547725058617
new: 4448.9873177272975

path: .spaces[4].metrics.halstead.purity_ratio
old: 1.435991532412961
new: 1.871617022060468

path: .spaces[4].metrics.halstead.n2
old: 13.0
new: 26.0

path: .spaces[4].metrics.halstead.N1
old: 40.0
new: 54.0

path: .spaces[4].metrics.halstead.level
old: 0.07407407407407407
new: 0.10810810810810811

path: .spaces[4].metrics.halstead.N2
old: 27.0
new: 37.0

path: .spaces[4].metrics.halstead.estimated_program_length
old: 96.2114326716684
new: 170.3171490075026

path: .spaces[4].metrics.halstead.difficulty
old: 13.5
new: 9.25

path: .spaces[4].metrics.halstead.vocabulary
old: 26.0
new: 39.0

path: .spaces[4].metrics.halstead.length
old: 67.0
new: 91.0

path: .spaces[4].metrics.halstead.volume
old: 314.92946111545314
new: 480.97160191646464

path: .spaces[4].metrics.halstead.time
old: 236.19709583658985
new: 247.16596209596096

path: .spaces[4].metrics.nargs.average
old: 2.0
new: null

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

path: .spaces[4].metrics.mi.mi_visual_studio
old: 56.4487564924429
new: 47.71396233068192

path: .spaces[4].metrics.mi.mi_sei
old: 63.86417079195387
new: 56.04154024974107

path: .spaces[4].metrics.mi.mi_original
old: 96.52737360207736
new: 81.5908755854661

path: .spaces[4].metrics.cyclomatic.sum
old: 3.0
new: 5.0

path: .spaces[4].metrics.cyclomatic.average
old: 3.0
new: 1.25

path: .spaces[4].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[4].metrics.nom.total
old: 1.0
new: 0.0

path: .spaces[4].metrics.nexits.average
old: 3.0
new: null

path: .spaces[4].metrics.nexits.sum
old: 3.0
new: 0.0

path: .spaces[4].metrics.cognitive.sum
old: 2.0
new: 1.0

path: .spaces[4].metrics.cognitive.average
old: 2.0
new: null

Code

namespace mozilla {
namespace widget {

class DManipEventHandler;

class DirectManipulationOwner {
 public:
  typedef mozilla::LayoutDeviceIntRect LayoutDeviceIntRect;

  explicit DirectManipulationOwner(nsWindow* aWindow);
  ~DirectManipulationOwner();
  void Init(const LayoutDeviceIntRect& aBounds);
  void ResizeViewport(const LayoutDeviceIntRect& aBounds);
  void Destroy();

  void SetContact(UINT aContactId);

  void Update();

 private:
  nsWindow* mWindow;
#if !defined(__MINGW32__) && !defined(__MINGW64__)
  DWORD mDmViewportHandlerCookie;
  RefPtr mDmManager;
  RefPtr mDmUpdateManager;
  RefPtr mDmViewport;
  RefPtr mDmHandler;
#endif
};

}  // namespace widget
}  // namespace mozilla

Minimal test - lines (12, 12)

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

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

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

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

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

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

path: .spaces[0].metrics.halstead.n2
old: 4.0
new: 1.0

path: .spaces[0].metrics.halstead.effort
old: 1161.4755165315353
new: 0.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 36.529325012980806
new: null

path: .spaces[0].metrics.halstead.time
old: 64.5264175850853
new: 0.0

path: .spaces[0].metrics.halstead.difficulty
old: 10.125
new: 0.0

path: .spaces[0].metrics.halstead.volume
old: 114.71363126237384
new: 0.0

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.178365322999381
new: null

path: .spaces[0].metrics.halstead.level
old: 0.09876543209876544
new: null

path: .spaces[0].metrics.halstead.N1
old: 22.0
new: 0.0

path: .spaces[0].metrics.halstead.N2
old: 9.0
new: 1.0

path: .spaces[0].metrics.halstead.bugs
old: 0.03683144730306039
new: 0.0

path: .spaces[0].metrics.halstead.n1
old: 9.0
new: 0.0

path: .spaces[0].metrics.halstead.vocabulary
old: 13.0
new: 1.0

path: .spaces[0].metrics.halstead.length
old: 31.0
new: 1.0

path: .spaces[0].metrics.mi.mi_original
old: 110.28427977611564
new: null

path: .spaces[0].metrics.mi.mi_visual_studio
old: 64.49373086322552
new: null

path: .spaces[0].metrics.mi.mi_sei
old: 83.60937124780922
new: null

path: .spaces[0].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[0].metrics.nom.total
old: 1.0
new: 0.0

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

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

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

path: .spaces[0].metrics.cognitive.average
old: 1.0
new: null

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

path: .spaces[0].metrics.nexits.average
old: 2.0
new: null

Code

class nsWindow;

Minimal test - lines (13, 13)

path: .spaces[1].metrics.mi.mi_sei
old: 83.60937124780922
new: null

path: .spaces[1].metrics.mi.mi_original
old: 110.28427977611564
new: null

path: .spaces[1].metrics.mi.mi_visual_studio
old: 64.49373086322552
new: null

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

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

path: .spaces[1].metrics.halstead.n2
old: 4.0
new: 1.0

path: .spaces[1].metrics.halstead.purity_ratio
old: 1.178365322999381
new: null

path: .spaces[1].metrics.halstead.estimated_program_length
old: 36.529325012980806
new: null

path: .spaces[1].metrics.halstead.N1
old: 22.0
new: 0.0

path: .spaces[1].metrics.halstead.effort
old: 1161.4755165315353
new: 0.0

path: .spaces[1].metrics.halstead.level
old: 0.09876543209876544
new: null

path: .spaces[1].metrics.halstead.vocabulary
old: 13.0
new: 1.0

path: .spaces[1].metrics.halstead.bugs
old: 0.03683144730306039
new: 0.0

path: .spaces[1].metrics.halstead.N2
old: 9.0
new: 1.0

path: .spaces[1].metrics.halstead.difficulty
old: 10.125
new: 0.0

path: .spaces[1].metrics.halstead.volume
old: 114.71363126237384
new: 0.0

path: .spaces[1].metrics.halstead.time
old: 64.5264175850853
new: 0.0

path: .spaces[1].metrics.halstead.length
old: 31.0
new: 1.0

path: .spaces[1].metrics.halstead.n1
old: 9.0
new: 0.0

path: .spaces[1].metrics.nexits.average
old: 2.0
new: null

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

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

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

path: .spaces[1].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[1].metrics.nom.total
old: 1.0
new: 0.0

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

path: .spaces[1].metrics.loc.ploc
old: 7.0
new: 1.0

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

path: .spaces[1].metrics.loc.sloc
old: 9.0
new: 1.0

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

path: .spaces[1].metrics.cognitive.average
old: 1.0
new: null

Code

class IDirectManipulationManager;

Minimal test - lines (14, 14)

path: .spaces[2].metrics.cognitive.sum
old: 1.0
new: 0.0

path: .spaces[2].metrics.cognitive.average
old: 1.0
new: null

path: .spaces[2].metrics.nargs.average
old: 1.0
new: null

path: .spaces[2].metrics.nargs.sum
old: 1.0
new: 0.0

path: .spaces[2].metrics.mi.mi_sei
old: 83.60937124780922
new: null

path: .spaces[2].metrics.mi.mi_visual_studio
old: 64.49373086322552
new: null

path: .spaces[2].metrics.mi.mi_original
old: 110.28427977611564
new: null

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

path: .spaces[2].metrics.nexits.average
old: 2.0
new: null

path: .spaces[2].metrics.nom.functions
old: 1.0
new: 0.0

path: .spaces[2].metrics.nom.total
old: 1.0
new: 0.0

path: .spaces[2].metrics.halstead.level
old: 0.09876543209876544
new: null

path: .spaces[2].metrics.halstead.N2
old: 9.0
new: 1.0

path: .spaces[2].metrics.halstead.vocabulary
old: 13.0
new: 1.0

path: .spaces[2].metrics.halstead.length
old: 31.0
new: 1.0

path: .spaces[2].metrics.halstead.purity_ratio
old: 1.178365322999381
new: null

path: .spaces[2].metrics.halstead.estimated_program_length
old: 36.529325012980806
new: null

path: .spaces[2].metrics.halstead.N1
old: 22.0
new: 0.0

path: .spaces[2].metrics.halstead.time
old: 64.5264175850853
new: 0.0

path: .spaces[2].metrics.halstead.difficulty
old: 10.125
new: 0.0

path: .spaces[2].metrics.halstead.effort
old: 1161.4755165315353
new: 0.0

path: .spaces[2].metrics.halstead.n1
old: 9.0
new: 0.0

path: .spaces[2].metrics.halstead.bugs
old: 0.03683144730306039
new: 0.0

path: .spaces[2].metrics.halstead.n2
old: 4.0
new: 1.0

path: .spaces[2].metrics.halstead.volume
old: 114.71363126237384
new: 0.0

path: .spaces[2].metrics.cyclomatic.average
old: 2.0
new: 1.0

path: .spaces[2].metrics.cyclomatic.sum
old: 2.0
new: 1.0

path: .spaces[2].metrics.loc.ploc
old: 7.0
new: 1.0

path: .spaces[2].metrics.loc.lloc
old: 4.0
new: 0.0

path: .spaces[2].metrics.loc.blank
old: 2.0
new: 0.0

path: .spaces[2].metrics.loc.sloc
old: 9.0
new: 1.0

Code

class IDirectManipulationUpdateManager;