<commit_before>{%- set res = frappe.utils.get_thumbnail_base64_for_image(src) if src else false -%}
{%- if res and res['base64'].startswith('data:') -%}
<img src="{{ res['base64'] }}" class="image-with-blur {{ resolve_class(class) }}"
	alt="{{ alt or '' }}" width="{{ res['width'] }}" height="{{ res['height'] }}" data-src="{{ src or '' }}" />
{%- else -%}
<img src="{{ src or '' }}" class="{{ resolve_class(class) }}" alt="{{ alt or '' }}" />
{%- endif -%}

<script>
	document.addEventListener('DOMContentLoaded', loadStuff);

	function loadStuff() {
		let images = document.querySelectorAll('img[data-src]');

		for (let image of images) {
			let img = new Image();
			let image_source = image.dataset.src;

			img.onload = function () {
				image.src = image_source;<commit_msg>fix(image-with-blur): Set width, height in CSS<commit_after>{%- set res = frappe.utils.get_thumbnail_base64_for_image(src) if src else false -%}
{%- if res and res['base64'].startswith('data:') -%}
<img src="{{ res['base64'] }}" class="image-with-blur {{ resolve_class(class) }}"
	data-src="{{ src or '' }}" alt="{{ alt or '' }}"
	width="{{ res['width'] }}" height="{{ res['height'] }}"
	style="width: {{ res['width'] }}px; height: {{ res['height'] }}px;" />
{%- else -%}
<img src="{{ src or '' }}" class="{{ resolve_class(class) }}" alt="{{ alt or '' }}" />
{%- endif -%}

<script>
	document.addEventListener('DOMContentLoaded', loadStuff);

	function loadStuff() {
		let images = document.querySelectorAll('img[data-src]');

		for (let image of images) {
			let img = new Image();
			let image_source = image.dataset.src;

			img.onload = function () {
				image.src = image_source;
{'fraction_non_alphanumeric': 0.23243243243243245, 'fraction_numerical': 0.007207207207207207, 'mean_word_length': 4.553333333333334, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6262925', 'n_tokens_mistral': 605, 'n_tokens_neox': 562, 'n_words': 134}