Global Metrics

path: .metrics.loc.blank
old: 7.0
new: 78.0

path: .metrics.loc.lloc
old: 8.0
new: 165.0

path: .metrics.loc.cloc
old: 15.0
new: 92.0

path: .metrics.loc.sloc
old: 40.0
new: 479.0

path: .metrics.loc.ploc
old: 18.0
new: 309.0

path: .metrics.nargs.average
old: 0.1111111111111111
new: 1.6875

path: .metrics.nargs.sum
old: 1.0
new: 27.0

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

path: .metrics.cyclomatic.sum
old: 11.0
new: 64.0

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

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

path: .metrics.mi.mi_original
old: 74.67683750054702
new: 7.661017615277373

path: .metrics.mi.mi_visual_studio
old: 43.67066520499826
new: 4.480127260396125

path: .metrics.mi.mi_sei
old: 73.78751442484831
new: -26.733423452689813

path: .metrics.halstead.N2
old: 63.0
new: 601.0

path: .metrics.halstead.N1
old: 85.0
new: 900.0

path: .metrics.halstead.length
old: 148.0
new: 1501.0

path: .metrics.halstead.difficulty
old: 19.6875
new: 51.22159090909091

path: .metrics.halstead.bugs
old: 0.1908121073078056
new: 2.3473995832389516

path: .metrics.halstead.n2
old: 16.0
new: 176.0

path: .metrics.halstead.purity_ratio
old: 0.6568870334383353
new: 0.9727293022974148

path: .metrics.halstead.vocabulary
old: 26.0
new: 206.0

path: .metrics.halstead.volume
old: 695.6650782848816
new: 11537.43729130201

path: .metrics.halstead.estimated_program_length
old: 97.21928094887365
new: 1460.06668274842

path: .metrics.halstead.n1
old: 10.0
new: 30.0

path: .metrics.halstead.effort
old: 13695.906228733606
new: 590965.8930743615

path: .metrics.halstead.level
old: 0.050793650793650794
new: 0.01952301719356628

path: .metrics.halstead.time
old: 760.8836793740892
new: 32831.43850413119

path: .metrics.nexits.average
old: 0.8888888888888888
new: 1.1875

path: .metrics.nexits.sum
old: 8.0
new: 19.0

path: .metrics.nom.functions
old: 9.0
new: 16.0

path: .metrics.nom.total
old: 9.0
new: 16.0

Spaces Data

Minimal test - lines (35, 50)

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

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

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

path: .spaces[0].metrics.loc.lloc
old: 8.0
new: 3.0

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

path: .spaces[0].metrics.loc.cloc
old: 4.0
new: 3.0

path: .spaces[0].metrics.loc.sloc
old: 21.0
new: 16.0

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

path: .spaces[0].metrics.mi.mi_original
old: 85.83432495500824
new: 96.196896498868

path: .spaces[0].metrics.mi.mi_sei
old: 80.43880012087209
new: 94.26519439484235

path: .spaces[0].metrics.mi.mi_visual_studio
old: 50.195511669595454
new: 56.25549502857777

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

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

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

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.5396833897803874
new: 2.6389422418269244

path: .spaces[0].metrics.halstead.vocabulary
old: 22.0
new: 36.0

path: .spaces[0].metrics.halstead.effort
old: 12932.694727249596
new: 2024.0256380646651

path: .spaces[0].metrics.halstead.volume
old: 633.2392898464963
new: 299.8556500836541

path: .spaces[0].metrics.halstead.estimated_program_length
old: 76.63504134881501
new: 153.0586500259616

path: .spaces[0].metrics.halstead.difficulty
old: 20.423076923076923
new: 6.75

path: .spaces[0].metrics.halstead.n2
old: 13.0
new: 24.0

path: .spaces[0].metrics.halstead.bugs
old: 0.18365584843526236
new: 0.05333628361953248

path: .spaces[0].metrics.halstead.N1
old: 83.0
new: 31.0

path: .spaces[0].metrics.halstead.N2
old: 59.0
new: 27.0

path: .spaces[0].metrics.halstead.length
old: 142.0
new: 58.0

path: .spaces[0].metrics.halstead.level
old: 0.04896421845574388
new: 0.14814814814814814

path: .spaces[0].metrics.halstead.time
old: 718.4830404027554
new: 112.44586878137028

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

Code

nsNativeDragTarget::nsNativeDragTarget(nsIWidget* aWidget)
    : m_cRef(0),
      mEffectsAllowed(DROPEFFECT_MOVE | DROPEFFECT_COPY | DROPEFFECT_LINK),
      mEffectsPreferred(DROPEFFECT_NONE),
      mTookOwnRef(false),
      mWidget(aWidget),
      mDropTargetHelper(nullptr) {
  static NS_DEFINE_IID(kCDragServiceCID, NS_DRAGSERVICE_CID);

  mHWnd = (HWND)mWidget->GetNativeData(NS_NATIVE_WINDOW);

  /*
   * Create/Get the DragService that we have implemented
   */
  CallGetService(kCDragServiceCID, &mDragService);
}