<commit_before>define([], function() {
	return {
		size: function() {
			return {
				height: this.domNode.offsetHeight,
				width: this.domNode.offsetWidth
			};
		}
	};
});<commit_msg>WithSize now uses computed styles, since that returns more precise values and thus fixes issues with size calculations<commit_after>define([], function() {
	return {
		size: function() {
			var compStyle = getComputedStyle(this.domNode);
			return {
				height: parseFloat(compStyle.getPropertyValue('height')),
				width: parseFloat(compStyle.getPropertyValue('width'))
			};
		}
	};
});
{'fraction_non_alphanumeric': 0.13588850174216027, 'fraction_numerical': 0.0, 'mean_word_length': 4.4245283018867925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6498831', 'n_tokens_mistral': 197, 'n_tokens_neox': 171, 'n_words': 40}