<commit_before>import i18next from 'i18next';
import LanguageDetector from 'i18next-electron-language-detector';
import Backend from 'i18next-node-fs-backend';
import * as path from 'path';
import defaultOptions from '../config/i18next';

i18next.use(Backend).use(LanguageDetector);

/** @type {i18next.InitOptions} */
let options = {
  debug: true,
  backend: {
    loadPath: path.join(__static, 'locales', '{{lng}}', '{{ns}}.json'),
  },
};
options = Object.assign(defaultOptions, options);

if (!i18next.isInitialized) {
  i18next.init(options);<commit_msg>Disable i18next debug mode<commit_after>import i18next from 'i18next';
import LanguageDetector from 'i18next-electron-language-detector';
import Backend from 'i18next-node-fs-backend';
import * as path from 'path';
import defaultOptions from '../config/i18next';

i18next.use(Backend).use(LanguageDetector);

/** @type {i18next.InitOptions} */
let options = {
  backend: {
    loadPath: path.join(__static, 'locales', '{{lng}}', '{{ns}}.json'),
  },
};
options = Object.assign(defaultOptions, options);

if (!i18next.isInitialized) {
  i18next.init(options);
{'fraction_non_alphanumeric': 0.16457960644007155, 'fraction_numerical': 0.03398926654740608, 'mean_word_length': 5.660714285714286, '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': '3786759', 'n_tokens_mistral': 393, 'n_tokens_neox': 373, 'n_words': 80}