<commit_before>/// adjusts text font properties
Object {
	property string family: manifest.style.font.family;		///< font family
	property bool italic;		///< applies italic style
	property bool bold;			///< applies bold style
	property bool underline;	///< applies underline style
	property bool strike;		///< line throw text flag
	property real letterSpacing;	///< spacing between letters
	property int pixelSize: manifest.style.font.pixelSize;		///< font size in pixels
	property int pointSize;		///< font size in points
	property int lineHeight;	///< font line height in pixels
	property int weight;		///< font weight value

	onFamilyChanged:		{ this.parent.style('font-family', value); this.parent._updateSize() }
	onPointSizeChanged:		{ this.parent.style('font-size', value? value + 'pt': ''); if (value) this.pixelSize = 0; this.parent._updateSize() }
	onPixelSizeChanged:		{ this.parent.style('font-size', value? value + 'px': ''); if (value) this.pointSize = 0; this.parent._updateSize() }
	onItalicChanged: 		{ this.parent.style('font-style', value? 'italic': 'normal'); this.parent._updateSize() }
	onBoldChanged: 			{ this.parent.style('font-weight', value? 'bold': 'normal'); this.parent._updateSize() }
	onUnderlineChanged:		{ this.parent.style('text-decoration', value? 'underline': ''); this.parent._updateSize() }
	onStrikeChanged:		{ this.parent.style('text-decoration', value? 'line-through': ''); this.parent._updateSize() }
	onLineHeightChanged:	{ this.parent.style('line-height', value + "px"); this.parent._updateSize() }
	onWeightChanged:		{ this.parent.style('font-weight', value); this.parent._updateSize() }
	onLetterSpacingChanged:	{ this.parent.style('letter-spacing', value + "px"); this.parent._updateSize() }
}
<commit_msg>check that value is actually greater than zero<commit_after>/// adjusts text font properties
Object {
	property string family: manifest.style.font.family;		///< font family
	property bool italic;		///< applies italic style
	property bool bold;			///< applies bold style
	property bool underline;	///< applies underline style
	property bool strike;		///< line throw text flag
	property real letterSpacing;	///< spacing between letters
	property int pixelSize: manifest.style.font.pixelSize;		///< font size in pixels
	property int pointSize;		///< font size in points
	property int lineHeight;	///< font line height in pixels
	property int weight;		///< font weight value

	onFamilyChanged:		{ this.parent.style('font-family', value); this.parent._updateSize() }
	onPointSizeChanged:		{ this.parent.style('font-size', value > 0? value + 'pt': ''); if (value > 0) this.pixelSize = 0; this.parent._updateSize() }
	onPixelSizeChanged:		{ this.parent.style('font-size', value > 0? value + 'px': ''); if (value > 0) this.pointSize = 0; this.parent._updateSize() }
	onItalicChanged: 		{ this.parent.style('font-style', value? 'italic': 'normal'); this.parent._updateSize() }
	onBoldChanged: 			{ this.parent.style('font-weight', value? 'bold': 'normal'); this.parent._updateSize() }
	onUnderlineChanged:		{ this.parent.style('text-decoration', value? 'underline': ''); this.parent._updateSize() }
	onStrikeChanged:		{ this.parent.style('text-decoration', value? 'line-through': ''); this.parent._updateSize() }
	onLineHeightChanged:	{ this.parent.style('line-height', value + "px"); this.parent._updateSize() }
	onWeightChanged:		{ this.parent.style('font-weight', value); this.parent._updateSize() }
	onLetterSpacingChanged:	{ this.parent.style('letter-spacing', value + "px"); this.parent._updateSize() }
}

{'fraction_non_alphanumeric': 0.15921237693389592, 'fraction_numerical': 0.002250351617440225, 'mean_word_length': 4.662420382165605, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 7, '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': '5724010', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1101, 'n_words': 275}