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

  var noticeToggle = (function noticeToggle(id) {
    var element = window.document.getElementById(id);

    return {
      show: function show() {
        if (element) {
          element.style.display = 'block';
        }
        return element;
      },
      hide: function hide() {
        if (element) {
          element.style.display = 'none';
        }
        return element;
      }
    };
  })('generic-deprecation-warning');

  // Always hide initially
  noticeToggle.hide();

  // Set up requirements
  var requirements = {
    ObjectKeys: function ObjectKeys() {
      return 'keys' in Object && _.isFunction(Object.keys);
    },
    ObjectFreeze: function ObjectFreeze() {
      return 'freeze' in Object && _.isFunction(Object.freeze);
    },
    ObjectCreate: function ObjectCreate() {
      return 'create' in Object && _.isFunction(Object.create);
    },
    ElementContains: function ElementContains() {
      return 'contains' in (Element && Element.prototype) &&
        _.isFunction(Element.prototype.contains);
    }
  };

  // Determine if requirements have been met
  var hasRequirements = _.every(_.keys(requirements), function (testKey) {
    var result = requirements[testKey]();
    if (!result) { console.warn(['Unsupported test:', testKey].join(' ')); }
    return result;
  });

  // Show upgrade notice on page
  if (!hasRequirements) {
    console.warn('Please update your browser: http://whatbrowser.org');
    noticeToggle.show();
  }

})(window);
<commit_msg>Relax requirements<commit_after>(function(window) {
  'use strict';

  var noticeToggle = (function noticeToggle(id) {
    var element = window.document.getElementById(id);

    return {
      show: function show() {
        if (element) {
          element.style.display = 'block';
        }
        return element;
      },
      hide: function hide() {
        if (element) {
          element.style.display = 'none';
        }
        return element;
      }
    };
  })('generic-deprecation-warning');

  // Always hide initially
  noticeToggle.hide();

  // Set up requirements
  var requirements = {
    ObjectKeys: function ObjectKeys() {
      return 'keys' in Object && _.isFunction(Object.keys);
    },
    ObjectCreate: function ObjectCreate() {
      return 'create' in Object && _.isFunction(Object.create);
    }
  };

  // Determine if requirements have been met
  var hasRequirements = _.every(_.keys(requirements), function (testKey) {
    var result = requirements[testKey]();
    if (!result) { console.warn(['Unsupported test:', testKey].join(' ')); }
    return result;
  });

  // Show upgrade notice on page
  if (!hasRequirements) {
    console.warn('Please update your browser: http://whatbrowser.org');
    noticeToggle.show();
  }

})(window);

{'fraction_non_alphanumeric': 0.13749114103472715, 'fraction_numerical': 0.0, 'mean_word_length': 2.7242744063324538, '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': '7423360', 'n_tokens_mistral': 797, 'n_tokens_neox': 782, 'n_words': 198}