Global Metrics
path: .metrics.halstead.N2
old: 543.0
new: 65.0
path: .metrics.halstead.effort
old: 673876.501280289
new: 7881.470527700605
path: .metrics.halstead.vocabulary
old: 116.0
new: 63.0
path: .metrics.halstead.level
old: 0.0121410544983289
new: 0.10769230769230768
path: .metrics.halstead.volume
old: 8181.571327187194
new: 848.7737491369882
path: .metrics.halstead.bugs
old: 2.5621169731651254
new: 0.13201306545658803
path: .metrics.halstead.n2
old: 89.0
new: 49.0
path: .metrics.halstead.time
old: 37437.5834044605
new: 437.8594737611447
path: .metrics.halstead.length
old: 1193.0
new: 142.0
path: .metrics.halstead.estimated_program_length
old: 704.7222379144231
new: 328.42375127045165
path: .metrics.halstead.n1
old: 27.0
new: 14.0
path: .metrics.halstead.difficulty
old: 82.36516853932584
new: 9.285714285714286
path: .metrics.halstead.purity_ratio
old: 0.5907143653934812
new: 2.3128433188059976
path: .metrics.halstead.N1
old: 650.0
new: 77.0
path: .metrics.nom.functions
old: 6.0
new: 1.0
path: .metrics.nom.total
old: 6.0
new: 1.0
path: .metrics.cyclomatic.average
old: 3.7
new: 1.0
path: .metrics.cyclomatic.sum
old: 37.0
new: 9.0
path: .metrics.loc.blank
old: 32.0
new: 17.0
path: .metrics.loc.cloc
old: 111.0
new: 7.0
path: .metrics.loc.lloc
old: 78.0
new: 0.0
path: .metrics.loc.ploc
old: 208.0
new: 41.0
path: .metrics.loc.sloc
old: 351.0
new: 65.0
path: .metrics.mi.mi_sei
old: -3.821914331212661
new: 45.11423709739389
path: .metrics.mi.mi_original
old: 20.695137754178973
new: 66.23720439677446
path: .metrics.mi.mi_visual_studio
old: 12.10241973928595
new: 38.73520724957571
path: .metrics.cognitive.sum
old: 60.0
new: 0.0
path: .metrics.cognitive.average
old: 10.0
new: 0.0
path: .metrics.nargs.sum
old: 23.0
new: 0.0
path: .metrics.nargs.average
old: 3.8333333333333335
new: 0.0
Spaces Data
Minimal test - lines (25, 63)
path: .spaces[4].metrics.mi.mi_sei
old: 37.57941592417714
new: 35.686512448837945
path: .spaces[4].metrics.mi.mi_original
old: 61.60958870854215
new: 77.06668531523633
path: .spaces[4].metrics.mi.mi_visual_studio
old: 36.02899924476149
new: 45.06823702645399
path: .spaces[4].metrics.loc.blank
old: 1.0
new: 13.0
path: .spaces[4].metrics.loc.lloc
old: 28.0
new: 0.0
path: .spaces[4].metrics.loc.sloc
old: 62.0
new: 39.0
path: .spaces[4].metrics.loc.ploc
old: 55.0
new: 26.0
path: .spaces[4].metrics.loc.cloc
old: 6.0
new: 0.0
path: .spaces[4].metrics.halstead.length
old: 355.0
new: 123.0
path: .spaces[4].metrics.halstead.N2
old: 159.0
new: 53.0
path: .spaces[4].metrics.halstead.difficulty
old: 49.41891891891892
new: 9.275
path: .spaces[4].metrics.halstead.purity_ratio
old: 0.8360329563875563
new: 2.16406579434391
path: .spaces[4].metrics.halstead.bugs
old: 0.735414901869226
new: 0.11687348403123855
path: .spaces[4].metrics.halstead.volume
old: 2096.9461614410243
new: 707.8511627661065
path: .spaces[4].metrics.halstead.time
old: 5757.156240532902
new: 364.73997414753546
path: .spaces[4].metrics.halstead.estimated_program_length
old: 296.79169951758246
new: 266.18009270430093
path: .spaces[4].metrics.halstead.N1
old: 196.0
new: 70.0
path: .spaces[4].metrics.halstead.effort
old: 103628.81232959224
new: 6565.319534655639
path: .spaces[4].metrics.halstead.n1
old: 23.0
new: 14.0
path: .spaces[4].metrics.halstead.vocabulary
old: 60.0
new: 54.0
path: .spaces[4].metrics.halstead.level
old: 0.02023516543614985
new: 0.10781671159029647
path: .spaces[4].metrics.halstead.n2
old: 37.0
new: 40.0
path: .spaces[4].metrics.cyclomatic.sum
old: 12.0
new: 2.0
path: .spaces[4].metrics.cyclomatic.average
old: 12.0
new: 1.0
path: .spaces[4].metrics.cognitive.sum
old: 34.0
new: 0.0
path: .spaces[4].metrics.cognitive.average
old: 34.0
new: 0.0
path: .spaces[4].metrics.nargs.sum
old: 7.0
new: 0.0
path: .spaces[4].metrics.nargs.average
old: 7.0
new: 0.0
Code
class nsDeviceContextSpecProxy final : public nsIDeviceContextSpec {
public:
NS_DECL_ISUPPORTS
NS_IMETHOD Init(nsIWidget* aWidget, nsIPrintSettings* aPrintSettings,
bool aIsPrintPreview) final;
already_AddRefed MakePrintTarget() final;
NS_IMETHOD GetDrawEventRecorder(
mozilla::gfx::DrawEventRecorder** aDrawEventRecorder) final;
float GetDPI() final;
float GetPrintingScale() final;
gfxPoint GetPrintingTranslate() final;
NS_IMETHOD BeginDocument(const nsAString& aTitle,
const nsAString& aPrintToFileName,
int32_t aStartPage, int32_t aEndPage) final;
NS_IMETHOD EndDocument() final;
NS_IMETHOD AbortDocument() final;
NS_IMETHOD BeginPage() final;
NS_IMETHOD EndPage() final;
private:
~nsDeviceContextSpecProxy() = default;
nsCOMPtr mPrintSettings;
nsCOMPtr mPrintSession;
nsCOMPtr mRealDeviceContextSpec;
RefPtr mRemotePrintJob;
RefPtr mRecorder;
};
Minimal test - lines (16, 16)
path: .spaces[1].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[1].metrics.cognitive.average
old: 1.0
new: null
path: .spaces[1].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[1].metrics.nargs.average
old: 2.0
new: null
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.halstead.volume
old: 283.6339404013986
new: 0.0
path: .spaces[1].metrics.halstead.N1
old: 28.0
new: 0.0
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.851524538447609
new: null
path: .spaces[1].metrics.halstead.length
old: 59.0
new: 1.0
path: .spaces[1].metrics.halstead.vocabulary
old: 28.0
new: 1.0
path: .spaces[1].metrics.halstead.n2
old: 19.0
new: 1.0
path: .spaces[1].metrics.halstead.bugs
old: 0.054358143444923845
new: 0.0
path: .spaces[1].metrics.halstead.effort
old: 2082.4702466313215
new: 0.0
path: .spaces[1].metrics.halstead.level
old: 0.13620071684587814
new: null
path: .spaces[1].metrics.halstead.N2
old: 31.0
new: 1.0
path: .spaces[1].metrics.halstead.n1
old: 9.0
new: 0.0
path: .spaces[1].metrics.halstead.time
old: 115.69279147951788
new: 0.0
path: .spaces[1].metrics.halstead.estimated_program_length
old: 109.23994776840892
new: null
path: .spaces[1].metrics.halstead.difficulty
old: 7.342105263157895
new: 0.0
path: .spaces[1].metrics.nexits.average
old: 0.0
new: null
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.cloc
old: 6.0
new: 0.0
path: .spaces[1].metrics.loc.lloc
old: 6.0
new: 0.0
path: .spaces[1].metrics.loc.ploc
old: 12.0
new: 1.0
path: .spaces[1].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[1].metrics.loc.sloc
old: 20.0
new: 1.0
path: .spaces[1].metrics.mi.mi_original
old: 92.64117795296264
new: null
path: .spaces[1].metrics.mi.mi_visual_studio
old: 54.176127457872894
new: null
path: .spaces[1].metrics.mi.mi_sei
old: 95.67116510258
new: null
Code
class nsIPrintSession;
Minimal test - lines (19, 23)
path: .spaces[3].metrics.cyclomatic.average
old: 10.0
new: 1.0
path: .spaces[3].metrics.cyclomatic.sum
old: 10.0
new: 3.0
path: .spaces[3].metrics.nargs.average
old: 7.0
new: null
path: .spaces[3].metrics.nargs.sum
old: 7.0
new: 0.0
path: .spaces[3].metrics.mi.mi_visual_studio
old: 37.93015277777277
new: 76.33888152974038
path: .spaces[3].metrics.mi.mi_sei
old: 45.13983788651617
new: 112.93327872124344
path: .spaces[3].metrics.mi.mi_original
old: 64.86056124999143
new: 130.53948741585606
path: .spaces[3].metrics.nexits.average
old: 0.0
new: null
path: .spaces[3].metrics.cognitive.average
old: 16.0
new: null
path: .spaces[3].metrics.cognitive.sum
old: 16.0
new: 0.0
path: .spaces[3].metrics.halstead.time
old: 3872.226261458517
new: 0.7739760316291208
path: .spaces[3].metrics.halstead.bugs
old: 0.5645480340285919
new: 0.0019299471801733172
path: .spaces[3].metrics.halstead.length
old: 308.0
new: 6.0
path: .spaces[3].metrics.halstead.purity_ratio
old: 0.8635177515935749
new: 1.1258145836939113
path: .spaces[3].metrics.halstead.estimated_program_length
old: 265.9634674908211
new: 6.754887502163468
path: .spaces[3].metrics.halstead.vocabulary
old: 55.0
new: 5.0
path: .spaces[3].metrics.halstead.N2
old: 137.0
new: 3.0
path: .spaces[3].metrics.halstead.level
old: 0.02554744525547445
new: 1.0
path: .spaces[3].metrics.halstead.difficulty
old: 39.142857142857146
new: 1.0
path: .spaces[3].metrics.halstead.n2
old: 35.0
new: 3.0
path: .spaces[3].metrics.halstead.n1
old: 20.0
new: 2.0
path: .spaces[3].metrics.halstead.effort
old: 69700.0727062533
new: 13.931568569324174
path: .spaces[3].metrics.halstead.volume
old: 1780.6587917655952
new: 13.931568569324174
path: .spaces[3].metrics.halstead.N1
old: 171.0
new: 3.0
path: .spaces[3].metrics.loc.lloc
old: 21.0
new: 0.0
path: .spaces[3].metrics.loc.sloc
old: 55.0
new: 5.0
path: .spaces[3].metrics.loc.ploc
old: 48.0
new: 5.0
path: .spaces[3].metrics.loc.cloc
old: 7.0
new: 0.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
Code
namespace mozilla {
namespace layout {
class RemotePrintJobChild;
}
} // namespace mozilla
Minimal test - lines (15, 15)
path: .spaces[0].metrics.cyclomatic.sum
old: 2.0
new: 1.0
path: .spaces[0].metrics.loc.sloc
old: 16.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 10.0
new: 1.0
path: .spaces[0].metrics.loc.cloc
old: 9.0
new: 0.0
path: .spaces[0].metrics.mi.mi_sei
old: 118.20555773641354
new: null
path: .spaces[0].metrics.mi.mi_original
old: 102.4643845118804
new: null
path: .spaces[0].metrics.mi.mi_visual_studio
old: 59.92069269700608
new: null
path: .spaces[0].metrics.halstead.time
old: 9.55017701148749
new: 0.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 2.093352172955012
new: null
path: .spaces[0].metrics.halstead.level
old: 0.5
new: null
path: .spaces[0].metrics.halstead.vocabulary
old: 15.0
new: 1.0
path: .spaces[0].metrics.halstead.n2
old: 11.0
new: 1.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 46.05374780501027
new: null
path: .spaces[0].metrics.halstead.volume
old: 85.95159310338741
new: 0.0
path: .spaces[0].metrics.halstead.length
old: 22.0
new: 1.0
path: .spaces[0].metrics.halstead.N1
old: 11.0
new: 0.0
path: .spaces[0].metrics.halstead.difficulty
old: 2.0
new: 0.0
path: .spaces[0].metrics.halstead.effort
old: 171.90318620677482
new: 0.0
path: .spaces[0].metrics.halstead.N2
old: 11.0
new: 1.0
path: .spaces[0].metrics.halstead.bugs
old: 0.010305475366430951
new: 0.0
path: .spaces[0].metrics.halstead.n1
old: 4.0
new: 0.0
Code
class nsIFile;
Minimal test - lines (17, 17)
path: .spaces[2].metrics.loc.sloc
old: 10.0
new: 1.0
path: .spaces[2].metrics.loc.blank
old: 1.0
new: 0.0
path: .spaces[2].metrics.loc.ploc
old: 9.0
new: 1.0
path: .spaces[2].metrics.loc.lloc
old: 2.0
new: 0.0
path: .spaces[2].metrics.nargs.sum
old: 4.0
new: 0.0
path: .spaces[2].metrics.nargs.average
old: 4.0
new: null
path: .spaces[2].metrics.nexits.average
old: 0.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.mi.mi_original
old: 105.71793780283078
new: null
path: .spaces[2].metrics.mi.mi_sei
old: 77.02153232794801
new: null
path: .spaces[2].metrics.mi.mi_visual_studio
old: 61.82335544025192
new: null
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.halstead.purity_ratio
old: 1.4443165629945054
new: null
path: .spaces[2].metrics.halstead.difficulty
old: 10.5
new: 0.0
path: .spaces[2].metrics.halstead.N1
old: 25.0
new: 0.0
path: .spaces[2].metrics.halstead.level
old: 0.09523809523809525
new: null
path: .spaces[2].metrics.halstead.n1
old: 10.0
new: 0.0
path: .spaces[2].metrics.halstead.N2
old: 21.0
new: 1.0
path: .spaces[2].metrics.halstead.estimated_program_length
old: 66.43856189774725
new: null
path: .spaces[2].metrics.halstead.vocabulary
old: 20.0
new: 1.0
path: .spaces[2].metrics.halstead.time
old: 115.9717372128109
new: 0.0
path: .spaces[2].metrics.halstead.volume
old: 198.80869236481868
new: 0.0
path: .spaces[2].metrics.halstead.effort
old: 2087.491269830596
new: 0.0
path: .spaces[2].metrics.halstead.bugs
old: 0.054445483288631406
new: 0.0
path: .spaces[2].metrics.halstead.length
old: 46.0
new: 1.0
path: .spaces[2].metrics.halstead.n2
old: 10.0
new: 1.0
path: .spaces[2].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[2].metrics.cognitive.average
old: 1.0
new: null
Code
class nsIUUIDGenerator;