Global Metrics

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

path: .metrics.cyclomatic.average
old: 1.0833333333333333
new: 1.5

path: .metrics.cyclomatic.sum
old: 13.0
new: 3.0

path: .metrics.halstead.effort
old: 24963.4889066039
new: 35380.62611870077

path: .metrics.halstead.N1
old: 170.0
new: 289.0

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

path: .metrics.halstead.difficulty
old: 13.176470588235292
new: 7.725563909774436

path: .metrics.halstead.volume
old: 1894.550497376189
new: 4579.682018284381

path: .metrics.halstead.vocabulary
old: 82.0
new: 281.0

path: .metrics.halstead.N2
old: 128.0
new: 274.0

path: .metrics.halstead.n2
old: 68.0
new: 266.0

path: .metrics.halstead.bugs
old: 0.28471844312151107
new: 0.3592436399143109

path: .metrics.halstead.purity_ratio
old: 1.567954503737683
new: 3.9099617882370232

path: .metrics.halstead.time
old: 1386.8604948113275
new: 1965.5903399278204

path: .metrics.halstead.estimated_program_length
old: 467.25044211382954
new: 2201.308486777444

path: .metrics.halstead.length
old: 298.0
new: 563.0

path: .metrics.halstead.level
old: 0.07589285714285715
new: 0.12944038929440388

path: .metrics.cognitive.average
old: 0.125
new: 1.0

path: .metrics.mi.mi_visual_studio
old: 28.901733005665683
new: 26.24477581271644

path: .metrics.mi.mi_sei
old: 38.79363522148194
new: 32.394233802044

path: .metrics.mi.mi_original
old: 49.42196343968831
new: 44.87856663974512

path: .metrics.nom.total
old: 8.0
new: 1.0

path: .metrics.nom.functions
old: 8.0
new: 1.0

path: .metrics.nargs.average
old: 0.875
new: 3.0

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

path: .metrics.loc.lloc
old: 10.0
new: 3.0

path: .metrics.loc.cloc
old: 55.0
new: 69.0

path: .metrics.loc.sloc
old: 134.0
new: 154.0

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

path: .metrics.loc.blank
old: 14.0
new: 10.0

Spaces Data

Minimal test - lines (144, 154)

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

path: .spaces[0].metrics.loc.cloc
old: 44.0
new: 0.0

path: .spaces[0].metrics.loc.blank
old: 10.0
new: 3.0

path: .spaces[0].metrics.loc.ploc
old: 55.0
new: 8.0

path: .spaces[0].metrics.loc.sloc
old: 109.0
new: 11.0

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

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

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

path: .spaces[0].metrics.halstead.estimated_program_length
old: 429.8716040893012
new: 82.60335893412778

path: .spaces[0].metrics.halstead.time
old: 1373.354665233027
new: 155.49744223945982

path: .spaces[0].metrics.halstead.n1
old: 14.0
new: 15.0

path: .spaces[0].metrics.halstead.volume
old: 1823.634883342216
new: 199.03672606650855

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.4772220071797293
new: 1.8773490666847223

path: .spaces[0].metrics.halstead.n2
old: 63.0
new: 8.0

path: .spaces[0].metrics.halstead.level
old: 0.07377049180327869
new: 0.07111111111111111

path: .spaces[0].metrics.halstead.length
old: 291.0
new: 44.0

path: .spaces[0].metrics.halstead.vocabulary
old: 77.0
new: 23.0

path: .spaces[0].metrics.halstead.N1
old: 169.0
new: 29.0

path: .spaces[0].metrics.halstead.bugs
old: 0.28286695806386053
new: 0.06620273249858469

path: .spaces[0].metrics.halstead.N2
old: 122.0
new: 15.0

path: .spaces[0].metrics.halstead.effort
old: 24720.383974194487
new: 2798.9539603102767

path: .spaces[0].metrics.halstead.difficulty
old: 13.555555555555555
new: 14.0625

path: .spaces[0].metrics.mi.mi_original
old: 53.19551202753665
new: 104.16795190453396

path: .spaces[0].metrics.mi.mi_visual_studio
old: 31.108486565810907
new: 60.91693093832396

path: .spaces[0].metrics.mi.mi_sei
old: 43.909581479610864
new: 74.78537535902738

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

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

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

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

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

Code

uint32_t
ComputeCrc32c(uint32_t crc, const void *buf, size_t size)
{
	const uint8_t *p = buf;


	while (size--)
		crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8);

	return crc;
}