Global Metrics

path: .metrics.loc.ploc
old: 2488.0
new: 19.0

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

path: .metrics.loc.cloc
old: 202.0
new: 11.0

path: .metrics.loc.sloc
old: 2923.0
new: 35.0

path: .metrics.loc.blank
old: 233.0
new: 5.0

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

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

path: .metrics.mi.mi_visual_studio
old: 0.0
new: 48.107541032305576

path: .metrics.mi.mi_sei
old: -120.90572261820068
new: 81.35242168201756

path: .metrics.mi.mi_original
old: -55.08290068620133
new: 82.26389516524254

path: .metrics.halstead.bugs
old: 82.9732984369319
new: 0.04977989671010032

path: .metrics.halstead.level
old: 0.0018316708672038624
new: 0.2

path: .metrics.halstead.difficulty
old: 545.9496124031008
new: 5.0

path: .metrics.halstead.effort
old: 124190797.08376378
new: 1825.0

path: .metrics.halstead.vocabulary
old: 420.0
new: 32.0

path: .metrics.halstead.volume
old: 227476.66499315648
new: 365.0

path: .metrics.halstead.estimated_program_length
old: 3493.190441566716
new: 134.03910001730776

path: .metrics.halstead.length
old: 26104.0
new: 73.0

path: .metrics.halstead.purity_ratio
old: 0.13381820569900077
new: 1.836152055031613

path: .metrics.halstead.N2
old: 12805.0
new: 30.0

path: .metrics.halstead.n1
old: 33.0
new: 8.0

path: .metrics.halstead.N1
old: 13299.0
new: 43.0

path: .metrics.halstead.n2
old: 387.0
new: 24.0

path: .metrics.halstead.time
old: 6899488.726875765
new: 101.38888888888889

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

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

path: .metrics.cyclomatic.sum
old: 142.0
new: 2.0

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

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

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

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

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

Spaces Data

Minimal test - lines (16, 33)

path: .spaces[0].metrics.loc.sloc
old: 26.0
new: 18.0

path: .spaces[0].metrics.loc.blank
old: 4.0
new: 1.0

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

path: .spaces[0].metrics.loc.ploc
old: 19.0
new: 14.0

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

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

path: .spaces[0].metrics.mi.mi_original
old: 81.6658354278288
new: 93.65729329950372

path: .spaces[0].metrics.mi.mi_visual_studio
old: 47.75779849580631
new: 54.770346958774105

path: .spaces[0].metrics.mi.mi_sei
old: 67.33392036491671
new: 89.07623631443352

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

path: .spaces[0].metrics.halstead.difficulty
old: 19.807692307692307
new: 4.909090909090909

path: .spaces[0].metrics.halstead.level
old: 0.05048543689320389
new: 0.2037037037037037

path: .spaces[0].metrics.halstead.n1
old: 10.0
new: 8.0

path: .spaces[0].metrics.halstead.length
old: 209.0
new: 69.0

path: .spaces[0].metrics.halstead.bugs
old: 0.2569537846224628
new: 0.04677169463369001

path: .spaces[0].metrics.halstead.effort
old: 21402.49528962474
new: 1662.0976690215764

path: .spaces[0].metrics.halstead.N1
old: 106.0
new: 42.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 155.430713620542
new: 122.10749561002054

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

path: .spaces[0].metrics.halstead.n2
old: 26.0
new: 22.0

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

path: .spaces[0].metrics.halstead.volume
old: 1080.5143253014433
new: 338.57545109698776

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.7436876249786699
new: 1.7696738494205877

path: .spaces[0].metrics.halstead.time
old: 1189.0275160902634
new: 92.33875939008756

path: .spaces[0].metrics.nexits.average
old: 0.0
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

Code

class nsWindowGfx {
 public:
  enum IconSizeType { kSmallIcon, kRegularIcon };
  static mozilla::LayoutDeviceIntSize GetIconMetrics(IconSizeType aSizeType);
  static nsresult CreateIcon(imgIContainer* aContainer, bool aIsCursor,
                             mozilla::LayoutDeviceIntPoint aHotspot,
                             mozilla::LayoutDeviceIntSize aScaledSize,
                             HICON* aIcon);

 private:
  /**
   * Cursor helpers
   */
  static uint8_t* Data32BitTo1Bit(uint8_t* aImageData, uint32_t aWidth,
                                  uint32_t aHeight);
  static HBITMAP DataToBitmap(uint8_t* aImageData, uint32_t aWidth,
                              uint32_t aHeight, uint32_t aDepth);
};