<commit_before>"use strict";

const pick = require("lodash/get");

let config = typeof window != "undefined" ? DebuggerConfig : {};
const originalConfig = Object.assign({}, config);

/**
 * Gets a config value for a given key
 * e.g "chrome.webSocketPort"
 */
function getValue(key) {
  return pick(config, key);
}

const isEnabled = getValue;

function isDevelopment() {
  return process.env.NODE_ENV == "development";
}

function isFirefoxPanel() {
  return DebuggerTarget == "firefox-proxy";
}

function isFirefox() {
  return /firefox/i.test(navigator.userAgent)
}<commit_msg>default to development mode and let NODE_ENV=production specify prod mode<commit_after>"use strict";

const pick = require("lodash/get");

let config = typeof window != "undefined" ? DebuggerConfig : {};
const originalConfig = Object.assign({}, config);

/**
 * Gets a config value for a given key
 * e.g "chrome.webSocketPort"
 */
function getValue(key) {
  return pick(config, key);
}

const isEnabled = getValue;

function isDevelopment() {
  return process.env.NODE_ENV !== "production";
}

function isFirefoxPanel() {
  return DebuggerTarget == "firefox-proxy";
}

function isFirefox() {
  return /firefox/i.test(navigator.userAgent)
}
{'fraction_non_alphanumeric': 0.1377049180327869, 'fraction_numerical': 0.0, 'mean_word_length': 4.8701923076923075, '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': '1629838', 'n_tokens_mistral': 386, 'n_tokens_neox': 375, 'n_words': 103}