<commit_before>import * as vscode from 'vscode';
import {createDiagnostics} from './elmCheck';

// this method is called when your extension is activated
export function activate(disposables: vscode.Disposable[]) {
	vscode.workspace.onDidSaveTextDocument(document => {
		createDiagnostics(document);
	})
}<commit_msg>Add linting function to extension subsriptions<commit_after>import * as vscode from 'vscode';
import {createDiagnostics} from './elmCheck';

// this method is called when your extension is activated
export function activate(ctx: vscode.ExtensionContext) {
	ctx.subscriptions.push(vscode.workspace.onDidSaveTextDocument(document => {
		createDiagnostics(document);
	}))
}
{'fraction_non_alphanumeric': 0.10480349344978165, 'fraction_numerical': 0.0, 'mean_word_length': 6.478260869565218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3165680', 'n_tokens_mistral': 198, 'n_tokens_neox': 197, 'n_words': 53}