<commit_before>import QtQuick

Window {
	id: root
	
	visible: true
    width: 222
    height: 220
	
	Canvas {
		id: canvasObj
		
		width: 200; height: 200
		
		onPaint: {
			var ctx = getContext("2d");
			
			ctx.strokeStyle = "red";
			
			ctx.beginPath();
			ctx.moveTo(50, 50);
			ctx.lineTo(150, 50)
			ctx.closePath();
			
			ctx.stroke();
		}		
	}
}<commit_msg>[j_bocklage_ryannel-qt_6_qml][ch 09] slightly update the 2-nd example<commit_after>import QtQuick

Window {
	id: root

	visible: true
	width: 220
	height: 220

	Canvas {
		id: canvas
		
		width: 200; height: 200

		onPaint: {
			var ctx = getContext("2d")
			
			ctx.strokeStyle = "red"
			
			ctx.beginPath()
			ctx.moveTo(50, 50)
			ctx.lineTo(150, 50)

			ctx.stroke()
		}
	}
}
{'fraction_non_alphanumeric': 0.12985274431057564, 'fraction_numerical': 0.0642570281124498, 'mean_word_length': 2.5789473684210527, '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': '4626605', 'n_tokens_mistral': 395, 'n_tokens_neox': 285, 'n_words': 67}