<commit_before>/**
 * main.js
 */

import {
  getType, isObjectNotEmpty, isString, logErr, logMsg, logWarn,
  removeQueryFromURI, stringifyPositiveInt, throwErr,
} from "./common.js";
import {
  checkIncognitoWindowExists, clearNotification, createNotification,
  execScriptToTabs, getActiveTab, getActiveTabId, getCurrentWindow,
  getEnabledTheme, getStorage, getWindow, setStorage,
} from "./browser.js";

/* api */
const {
  browserAction, contextMenus, i18n, notifications, runtime, windows,
} = browser;

/* constants */
import {
  CONTENT_GET, CONTEXT_MENU, EDITOR_CONFIG_GET,
  EDITOR_CONFIG_RES, EDITOR_CONFIG_TS, EDITOR_EXEC, EDITOR_FILE_NAME,
  EDITOR_LABEL, EXT_NAME, EXT_RELOAD,
  HOST, HOST_COMPAT, HOST_CONNECTION, HOST_ERR_NOTIFY, HOST_STATUS,
  HOST_STATUS_GET, HOST_VERSION, HOST_VERSION_CHECK, HOST_VERSION_LATEST,
  ICON, ICON_AUTO, ICON_BLACK, ICON_COLOR, ICON_DARK, ICON_DARK_ID, ICON_ID,
  ICON_LIGHT, ICON_LIGHT_ID, ICON_WHITE,
  IS_EXECUTABLE, IS_WEBEXT, LOCAL_FILE_VIEW, MENU_ENABLED,
  MODE_EDIT, MODE_MATHML, MODE_SELECTION, MODE_SOURCE, MODE_SVG,
  ONLY_EDITABLE, OPTIONS_OPEN, PATH_BROWSER_POLYFILL, PATH_CONTENT_SCRIPT,
  PORT_CONTENT, PROCESS_CHILD, STORAGE_SET, SYNC_AUTO, SYNC_AUTO_URL,
  THEME_DARK, THEME_LIGHT, TMP_FILES, TMP_FILES_PB, TMP_FILES_PB_REMOVE,
  TMP_FILE_CREATE, TMP_FILE_DATA_PORT, TMP_FILE_DATA_REMOVE, TMP_FILE_GET,
  TMP_FILE_REQ, TMP_FILE_RES,
  VARS_SET, WARN_COLOR, WARN_TEXT, WEBEXT_ID,
} from "./constant.js";
const HOST_VERSION_MIN = "v3.3.1";

/* variables */<commit_msg>bump host min version<commit_after>/**
 * main.js
 */

import {
  getType, isObjectNotEmpty, isString, logErr, logMsg, logWarn,
  removeQueryFromURI, stringifyPositiveInt, throwErr,
} from "./common.js";
import {
  checkIncognitoWindowExists, clearNotification, createNotification,
  execScriptToTabs, getActiveTab, getActiveTabId, getCurrentWindow,
  getEnabledTheme, getStorage, getWindow, setStorage,
} from "./browser.js";

/* api */
const {
  browserAction, contextMenus, i18n, notifications, runtime, windows,
} = browser;

/* constants */
import {
  CONTENT_GET, CONTEXT_MENU, EDITOR_CONFIG_GET,
  EDITOR_CONFIG_RES, EDITOR_CONFIG_TS, EDITOR_EXEC, EDITOR_FILE_NAME,
  EDITOR_LABEL, EXT_NAME, EXT_RELOAD,
  HOST, HOST_COMPAT, HOST_CONNECTION, HOST_ERR_NOTIFY, HOST_STATUS,
  HOST_STATUS_GET, HOST_VERSION, HOST_VERSION_CHECK, HOST_VERSION_LATEST,
  ICON, ICON_AUTO, ICON_BLACK, ICON_COLOR, ICON_DARK, ICON_DARK_ID, ICON_ID,
  ICON_LIGHT, ICON_LIGHT_ID, ICON_WHITE,
  IS_EXECUTABLE, IS_WEBEXT, LOCAL_FILE_VIEW, MENU_ENABLED,
  MODE_EDIT, MODE_MATHML, MODE_SELECTION, MODE_SOURCE, MODE_SVG,
  ONLY_EDITABLE, OPTIONS_OPEN, PATH_BROWSER_POLYFILL, PATH_CONTENT_SCRIPT,
  PORT_CONTENT, PROCESS_CHILD, STORAGE_SET, SYNC_AUTO, SYNC_AUTO_URL,
  THEME_DARK, THEME_LIGHT, TMP_FILES, TMP_FILES_PB, TMP_FILES_PB_REMOVE,
  TMP_FILE_CREATE, TMP_FILE_DATA_PORT, TMP_FILE_DATA_REMOVE, TMP_FILE_GET,
  TMP_FILE_REQ, TMP_FILE_RES,
  VARS_SET, WARN_COLOR, WARN_TEXT, WEBEXT_ID,
} from "./constant.js";
const HOST_VERSION_MIN = "v5.0.0-b.2.1";

/* variables */
{'fraction_non_alphanumeric': 0.0946033810143043, 'fraction_numerical': 0.0039011703511053317, 'mean_word_length': 6.869565217391305, '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': '2797579', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1246, 'n_words': 217}