<commit_before>define([
	'compose',
	'dojo/has',
], function(
	compose,
	has
){
	return compose({
		_applyBounds: function() {
			if (has('ksf-monitoring')) {
				console.time("apply bounds");
			}

			var bounds = this.get('bounds');
			if (!bounds) { return; }

			var width = bounds.width || null;
			var height = bounds.height || null;
			var heightMax = bounds.heightMax || null;
			var widthMax = bounds.widthMax || null;

			var nodeStyle = this.domNode.style;
			nodeStyle.width = width && (width + 'px');
			nodeStyle.height = height && (height + 'px');
			nodeStyle.maxHeight = heightMax && (heightMax + 'px');
			nodeStyle.maxWidth = widthMax && (widthMax + 'px');

			if (has('ksf-monitoring')) {
				console.timeEnd("apply bounds");
			}

		}
	});
});<commit_msg>Sizeable mixin allows for units other than px<commit_after>define([
	'compose',
	'dojo/has',
], function(
	compose,
	has
){
	return compose({
		_applyBounds: function() {
			if (has('ksf-monitoring')) {
				console.time("apply bounds");
			}

			var bounds = this.get('bounds');
			if (!bounds) { return; }

			var width = bounds.width || null;
			var height = bounds.height || null;
			var heightMax = bounds.heightMax || null;
			var widthMax = bounds.widthMax || null;

			var nodeStyle = this.domNode.style;
			nodeStyle.width = isNaN(width) ? width : width && (width + 'px');
			nodeStyle.height = isNaN(height) ? height : height && (height + 'px');
			nodeStyle.maxHeight = isNaN(heightMax) ? heightMax : heightMax && (heightMax + 'px');
			nodeStyle.maxWidth = isNaN(widthMax) ? widthMax : widthMax && (widthMax + 'px');

			if (has('ksf-monitoring')) {
				console.timeEnd("apply bounds");
			}

		}
	});
});
{'fraction_non_alphanumeric': 0.17257683215130024, 'fraction_numerical': 0.0, 'mean_word_length': 3.502659574468085, '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': '1823048', 'n_tokens_mistral': 652, 'n_tokens_neox': 564, 'n_words': 133}