<commit_before>import utils from "../utils.js";
import DEFAULTS from "./DEFAULTS.js";

import Letter from "./Letter.js";

import store from "../store.js";

const Ngram = function(options) {
	options = utils.mergeDeep(DEFAULTS.ngram, options);

	this.text = "";

	if (options.index === 0 && options.wordIndex === 0 && options.lineIndex === 0) {
		for (let i = 0; i < store.text.length - options.limit; i++) {
			let ngram = store.text.substring(i, i + options.limit);<commit_msg>removed reference to store<commit_after>import utils from "../utils.js";
import DEFAULTS from "./DEFAULTS.js";

import Letter from "./Letter.js";

// import store from "../store.js";

const Ngram = function(options) {
	options = utils.mergeDeep(DEFAULTS.ngram, options);

	this.text = "";

	if (options.index === 0 && options.wordIndex === 0 && options.lineIndex === 0) {
		for (let i = 0; i < store.text.length - options.limit; i++) {
			let ngram = store.text.substring(i, i + options.limit);
{'fraction_non_alphanumeric': 0.17901234567901234, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 3.7463414634146344, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6472982', 'n_tokens_mistral': 327, 'n_tokens_neox': 317, 'n_words': 88}