<commit_before>// @flow

const currentBrowser = getBrowser();

const ICON_SIZES = [16, 32, 48, 64, 96, 128, 256];

module.exports = {
  browser: currentBrowser,
  src: "src",
  dist: "dist",
  rimraf: "{src/compiled,src/icons/!(png-*|*.js)}",
  webextIgnoreFiles: [
    `*.js`,
    `./!(compiled|icons|manifest.json)`,
    "icons/*.*",
    ...browserSpecificIgnores(currentBrowser),
  ],
  icons: {
    svg: makeIcons("svg-$normal", ".svg"),
    png: makeIcons("png-$normal", ".png"),
  },
  iconsDisabled: {
    svg: makeIcons("svg-$disabled", ".svg"),
    png: makeIcons("png-$disabled", ".png"),
  },
  iconsTestPage: "icons/test.html",
  iconsChecksum: "icons/checksum.js",
  iconsCompilation: {
    input: "icons.js",
    output: "../icon.svg",
  },
  needsPolyfill: needsPolyfill(currentBrowser),
  polyfill: {
    input: "../node_modules/webextension-polyfill/dist/browser-polyfill.min.js",
    output: "compiled/browser-polyfill.js",
  },
  background: {
    input: "background/main.js",
    output: "compiled/background.js",
  },
  worker: {
    input: "worker/main.js",
    output: "compiled/worker.js",
  },<commit_msg>Fix the web-ext watcher always being one save behind<commit_after>// @flow

const currentBrowser = getBrowser();

const ICON_SIZES = [16, 32, 48, 64, 96, 128, 256];

module.exports = {
  browser: currentBrowser,
  src: "src",
  dist: "dist",
  rimraf: "{src/compiled,src/icons/!(png-*|*.js)}",
  webextIgnoreFiles: [
    `*.js`,
    // Having both of the following two patterns might seem redundant. The first
    // is needed to make sure make sure changing non-compiled JS files don’t
    // trigger the web-ext watcher during development. The second excludes empty
    // directories from the production build.
    `./!(compiled)/**/*.js`,
    `./!(compiled|icons|manifest.json)`,
    "icons/*.*",
    ...browserSpecificIgnores(currentBrowser),
  ],
  icons: {
    svg: makeIcons("svg-$normal", ".svg"),
    png: makeIcons("png-$normal", ".png"),
  },
  iconsDisabled: {
    svg: makeIcons("svg-$disabled", ".svg"),
    png: makeIcons("png-$disabled", ".png"),
  },
  iconsTestPage: "icons/test.html",
  iconsChecksum: "icons/checksum.js",
  iconsCompilation: {
    input: "icons.js",
    output: "../icon.svg",
  },
  needsPolyfill: needsPolyfill(currentBrowser),
  polyfill: {
    input: "../node_modules/webextension-polyfill/dist/browser-polyfill.min.js",
    output: "compiled/browser-polyfill.js",
  },
  background: {
    input: "background/main.js",
    output: "compiled/background.js",
  },
  worker: {
    input: "worker/main.js",
    output: "compiled/worker.js",
  },
{'fraction_non_alphanumeric': 0.18714121699196326, 'fraction_numerical': 0.012246460007654038, 'mean_word_length': 3.4305084745762713, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2710423', 'n_tokens_mistral': 951, 'n_tokens_neox': 888, 'n_words': 184}