<commit_before><div class='codemirror-container'>
	<textarea tabindex='2' ref:editor></textarea>

	{{#if error}}
		<p class='error message'>
			<strong>
				{{#if error.filename}}
					<span class='filename' on:click='fire("navigate", error.filename)'>{{error.filename}}</span>
				{{/if}}

				({{error.loc.line}}:{{error.loc.column}})
			</strong>
			{{error.message}}
		</p>
	{{/if}}
</div>

<style>
	.codemirror-container {
		width: 100%;
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		margin: 0 0 1em 0;
	}

	.CodeMirror {
		border-radius: 3px;
		font-family: Inconsolata, monospace;
		font-size: 16px;
		line-height: 1.2;
		font-weight: 400;
		color: #333;
	}

	.CodeMirror {
		height: auto;
		min-height: 60px;
	}
<commit_msg>repl: in CodeMirror component, deal with `error.loc` being undefined<commit_after><div class='codemirror-container'>
	<textarea tabindex='2' ref:editor></textarea>

	{{#if error}}
		<p class='error message'>
			{{#if error.loc}}
				<strong>
					{{#if error.filename}}
						<span class='filename' on:click='fire("navigate", error.filename)'>{{error.filename}}</span>
					{{/if}}

					({{error.loc.line}}:{{error.loc.column}})
				</strong>
			{{/if}}

			{{error.message}}
		</p>
	{{/if}}
</div>

<style>
	.codemirror-container {
		width: 100%;
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		margin: 0 0 1em 0;
	}

	.CodeMirror {
		border-radius: 3px;
		font-family: Inconsolata, monospace;
		font-size: 16px;
		line-height: 1.2;
		font-weight: 400;
		color: #333;
	}

	.CodeMirror {
		height: auto;
		min-height: 60px;
	}

{'fraction_non_alphanumeric': 0.19548872180451127, 'fraction_numerical': 0.02882205513784461, 'mean_word_length': 3.5112994350282487, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '5305676', 'n_tokens_mistral': 758, 'n_tokens_neox': 615, 'n_words': 131}