Global Metrics
path: .metrics.halstead.N1
old: 26.0
new: 65.0
path: .metrics.halstead.volume
old: 180.0850143339292
new: 685.2678808027972
path: .metrics.halstead.effort
old: 1227.8523704586082
new: 4952.617865802034
path: .metrics.halstead.vocabulary
old: 21.0
new: 56.0
path: .metrics.halstead.bugs
old: 0.03822165727458493
new: 0.09685052039330962
path: .metrics.halstead.difficulty
old: 6.818181818181818
new: 7.227272727272728
path: .metrics.halstead.purity_ratio
old: 1.7383665549727778
new: 2.400292722277076
path: .metrics.halstead.n2
old: 11.0
new: 44.0
path: .metrics.halstead.level
old: 0.14666666666666667
new: 0.13836477987421383
path: .metrics.halstead.time
old: 68.2140205810338
new: 275.1454369890019
path: .metrics.halstead.N2
old: 15.0
new: 53.0
path: .metrics.halstead.length
old: 41.0
new: 118.0
path: .metrics.halstead.estimated_program_length
old: 71.27302875388389
new: 283.2345412286949
path: .metrics.halstead.n1
old: 10.0
new: 12.0
path: .metrics.cyclomatic.sum
old: 5.0
new: 4.0
path: .metrics.nom.total
old: 3.0
new: 2.0
path: .metrics.nom.functions
old: 3.0
new: 2.0
path: .metrics.mi.mi_sei
old: 84.69697727213293
new: 60.21058212267465
path: .metrics.mi.mi_visual_studio
old: 53.03998866821998
new: 42.5439860835809
path: .metrics.mi.mi_original
old: 90.69838062265616
new: 72.75021620292334
path: .metrics.loc.cloc
old: 4.0
new: 9.0
path: .metrics.loc.ploc
old: 16.0
new: 35.0
path: .metrics.loc.lloc
old: 1.0
new: 2.0
path: .metrics.loc.sloc
old: 25.0
new: 50.0
path: .metrics.loc.blank
old: 5.0
new: 6.0
path: .metrics.nexits.sum
old: 1.0
new: 2.0
path: .metrics.nexits.average
old: 0.3333333333333333
new: 1.0
Spaces Data
Minimal test - lines (31, 31)
path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 159.95690398326485
new: 155.2836050228807
path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 155.17000000000002
new: 148.4278547652622
path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 93.54204911302038
new: 90.80912574437468
path: .spaces[0].spaces[1].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.halstead.N2
old: 1.0
new: 3.0
path: .spaces[0].spaces[1].metrics.halstead.level
old: 0.6666666666666666
new: 0.5
path: .spaces[0].spaces[1].metrics.halstead.volume
old: 8.0
new: 19.651484454403228
path: .spaces[0].spaces[1].metrics.halstead.difficulty
old: 1.5
new: 2.0
path: .spaces[0].spaces[1].metrics.halstead.n2
old: 1.0
new: 3.0
path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 1.188721875540867
new: 1.8221267860233523
path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 0.0017471609294725976
new: 0.0038532659414573967
path: .spaces[0].spaces[1].metrics.halstead.vocabulary
old: 4.0
new: 7.0
path: .spaces[0].spaces[1].metrics.halstead.N1
old: 3.0
new: 4.0
path: .spaces[0].spaces[1].metrics.halstead.length
old: 4.0
new: 7.0
path: .spaces[0].spaces[1].metrics.halstead.effort
old: 12.0
new: 39.302968908806456
path: .spaces[0].spaces[1].metrics.halstead.n1
old: 3.0
new: 4.0
path: .spaces[0].spaces[1].metrics.halstead.time
old: 0.6666666666666666
new: 2.1834982727114696
path: .spaces[0].spaces[1].metrics.halstead.estimated_program_length
old: 4.754887502163468
new: 12.754887502163468
Code
NS_IMETHOD EndPage() override { return NS_OK; };
Minimal test - lines (17, 48)
path: .spaces[0].metrics.loc.cloc
old: 0.0
new: 4.0
path: .spaces[0].metrics.loc.ploc
old: 8.0
new: 27.0
path: .spaces[0].metrics.loc.sloc
old: 9.0
new: 32.0
path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.halstead.length
old: 26.0
new: 111.0
path: .spaces[0].metrics.halstead.N2
old: 8.0
new: 47.0
path: .spaces[0].metrics.halstead.n2
old: 5.0
new: 39.0
path: .spaces[0].metrics.halstead.difficulty
old: 7.2
new: 7.230769230769231
path: .spaces[0].metrics.halstead.vocabulary
old: 14.0
new: 51.0
path: .spaces[0].metrics.halstead.volume
old: 98.99122797349771
new: 629.639212958836
path: .spaces[0].metrics.halstead.effort
old: 712.7368414091835
new: 4552.775847548506
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.5438063649006777
new: 2.244596725624158
path: .spaces[0].metrics.halstead.n1
old: 9.0
new: 12.0
path: .spaces[0].metrics.halstead.N1
old: 18.0
new: 64.0
path: .spaces[0].metrics.halstead.bugs
old: 0.026596932473702723
new: 0.09156501925409533
path: .spaces[0].metrics.halstead.estimated_program_length
old: 40.13896548741762
new: 249.15023654428157
path: .spaces[0].metrics.halstead.level
old: 0.1388888888888889
new: 0.13829787234042554
path: .spaces[0].metrics.halstead.time
old: 39.59649118939908
new: 252.93199153047257
path: .spaces[0].metrics.mi.mi_sei
old: 84.48522530760606
new: 66.99563074799033
path: .spaces[0].metrics.mi.mi_visual_studio
old: 64.80748502910794
new: 47.16392636938309
path: .spaces[0].metrics.mi.mi_original
old: 110.82079939977456
new: 80.65031409164509
Code
class nsDeviceContextSpecX : public nsIDeviceContextSpec {
public:
NS_DECL_ISUPPORTS
nsDeviceContextSpecX();
NS_IMETHOD Init(nsIWidget* aWidget, nsIPrintSettings* aPS,
bool aIsPrintPreview) override;
already_AddRefed MakePrintTarget() final;
NS_IMETHOD BeginDocument(const nsAString& aTitle,
const nsAString& aPrintToFileName,
int32_t aStartPage, int32_t aEndPage) override;
NS_IMETHOD EndDocument() override;
NS_IMETHOD BeginPage() override { return NS_OK; };
NS_IMETHOD EndPage() override { return NS_OK; };
void GetPaperRect(double* aTop, double* aLeft, double* aBottom,
double* aRight);
protected:
virtual ~nsDeviceContextSpecX();
protected:
PMPrintSession mPrintSession; // printing context.
PMPageFormat mPageFormat; // page format.
PMPrintSettings mPrintSettings; // print settings.
#ifdef MOZ_ENABLE_SKIA_PDF
nsCOMPtr
mTempFile; // file "print" output is generated to if printing via PDF
bool mPrintViaSkPDF;
#endif
};
Minimal test - lines (30, 30)
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 159.07306171748976
new: 148.4278547652622
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 162.66230020829434
new: 155.2836050228807
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 95.12415216859318
new: 90.80912574437468
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 3.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 1.0
new: 3.0
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 4.754887502163468
new: 39.302968908806456
path: .spaces[0].spaces[0].metrics.halstead.length
old: 3.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 2.0
new: 12.754887502163468
path: .spaces[0].spaces[0].metrics.halstead.level
old: 1.0
new: 0.5
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 1.0
new: 3.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.0009425525573729414
new: 0.0038532659414573967
path: .spaces[0].spaces[0].metrics.halstead.time
old: 0.26416041678685936
new: 2.1834982727114696
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 4.754887502163468
new: 19.651484454403228
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 2.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 2.0
new: 4.0
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 0.6666666666666666
new: 1.8221267860233523
Code
NS_IMETHOD BeginPage() override { return NS_OK; };