<commit_before>/* eslint-disable no-unused-vars */

export class ViewEngine {
	app = null
	view = null

	constructor(app, view) {
		this.app = app
		this.view = view
	}

	bootstrap() {
		return Promise.resolve()
	}

	shutdown() {
		return Promise.resolve()
	}

	share(name, value) {
		throw new Error('Subclasses must implement.')
	}

	filter(name, callback) {
		throw new Error('This engine does not support filters.')
	}

	extend(name, extension) {
		throw new Error('Subclasses must implement.')
	}

	render(name, context) {
		throw new Error('Subclasses must implement.')
	}

	toHtmlString(html) {
		throw new Error('Subclasses must implement.')
	}

	isHtmlString(html) {
		throw new Error('Subclasses must implement.')
	}

}<commit_msg>Added writeCache + clearCache to ViewEngine interface<commit_after>/* eslint-disable no-unused-vars */

export class ViewEngine {
	app = null
	view = null

	constructor(app, view) {
		this.app = app
		this.view = view
	}

	bootstrap() {
		return Promise.resolve()
	}

	shutdown() {
		return Promise.resolve()
	}

	share(name, value) {
		throw new Error('Subclasses must implement.')
	}

	filter(name, callback) {
		throw new Error('This engine does not support filters.')
	}

	extend(name, extension) {
		throw new Error('Subclasses must implement.')
	}

	render(name, context) {
		throw new Error('Subclasses must implement.')
	}

	writeCache() {
		throw new Error('Subclasses must implement.')
	}

	clearCache() {
		throw new Error('Subclasses must implement.')
	}

	toHtmlString(html) {
		throw new Error('Subclasses must implement.')
	}

	isHtmlString(html) {
		throw new Error('Subclasses must implement.')
	}

}
{'fraction_non_alphanumeric': 0.12605548854041013, 'fraction_numerical': 0.0, 'mean_word_length': 3.8086956521739133, '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': '2990900', 'n_tokens_mistral': 578, 'n_tokens_neox': 536, 'n_words': 147}