<commit_before>(function () {
  'use strict';

  if (typeof window === 'object') {
    var userAgent = userAgentParser.parse(navigator.userAgent);

    window.env = {
      NODE: '',
      BROWSER: 'true',
      KARMA: 'true',
      CHROME: userAgent.isChrome,
      SAFARI: userAgent.isSafari,
      IE: userAgent.isIE || /Edge/.test(navigator.userAgent),
    };
  }
  else {
    global.env = process.env;
    global.env.NODE = 'true';
  }

}());
<commit_msg>fixed failing tests in Firefox<commit_after>(function () {
  'use strict';

  if (typeof window === 'object') {
    var userAgent = userAgentParser.parse(navigator.userAgent);

    window.env = {
      NODE: '',
      BROWSER: 'true',
      KARMA: 'true',
      CHROME: userAgent.isChrome ? 'true' : '',
      SAFARI: userAgent.isSafari ? 'true' : '',
      FIREFOX: userAgent.isFirefox ? 'true' : '',
      IE: userAgent.isIE || /Edge/.test(navigator.userAgent) ? 'true' : '',
    };
  }
  else {
    global.env = process.env;
    global.env.NODE = 'true';
  }

}());

{'fraction_non_alphanumeric': 0.17395529640427598, 'fraction_numerical': 0.0, 'mean_word_length': 2.6267605633802815, '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': '3059074', 'n_tokens_mistral': 377, 'n_tokens_neox': 367, 'n_words': 66}