<commit_before>import {GRID_PREFIX} from 'core/definition';

export default class HighlightBehavior {
	constructor(model, markup) {
		this.model = model;
		this.markup = markup;
		this.items = new Set();
	}

	apply(items) {
		this.clear();
		this.items = new Set(items);
		this.applyCore(items);
	}

	clear() {
		this.clearCore(this.items);
	}

	destroy() {
		this.clear();
		this.items = new Set();
	}

	applyCore(items) {
	}

	clearCore(items) {
	}

	stateCore(item, state){
		if (state) {
			item.classList.add(`${GRID_PREFIX}-selected`);
		}
		else {
			item.classList.remove(`${GRID_PREFIX}-selected`);
		}
	}
}<commit_msg>no-unused-vars<commit_after>import {GRID_PREFIX} from 'core/definition';

export default class HighlightBehavior {
	constructor(model, markup) {
		this.model = model;
		this.markup = markup;
		this.items = new Set();
	}

	apply(items) {
		this.clear();
		this.items = new Set(items);
		this.applyCore(items);
	}

	clear() {
		this.clearCore(this.items);
	}

	destroy() {
		this.clear();
		this.items = new Set();
	}

	applyCore() {
	}

	clearCore() {
	}

	stateCore(item, state){
		if (state) {
			item.classList.add(`${GRID_PREFIX}-selected`);
		}
		else {
			item.classList.remove(`${GRID_PREFIX}-selected`);
		}
	}
}
{'fraction_non_alphanumeric': 0.17321571772253408, 'fraction_numerical': 0.0, 'mean_word_length': 3.6741573033707864, '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': '1364720', 'n_tokens_mistral': 513, 'n_tokens_neox': 470, 'n_words': 78}