<commit_before>/*
* matchMedia() polyfill - test whether a CSS media type or media query applies
* authors: <NAME>, <NAME>, <NAME>
* Copyright (c) 2010 Filament Group, Inc
* MIT license
*/


window.matchMedia = window.matchMedia || (function(doc, undefined){
  
  var bool,
      docElem  = doc.documentElement,
      refNode  = docElem.firstElementChild || docElem.firstChild,
      // fakeBody required for <FF4 when executed in <head>
      fakeBody = doc.createElement('body'),
      div      = doc.createElement('div');
  
  div.id = 'mq-test-1';
  div.style.cssText = "position:absolute;top:-100em";
  fakeBody.appendChild(div);
  
  return function(q){
    
    div.innerHTML = '_<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';<commit_msg>scott wanted me to update the year. so i am. :)<commit_after>/*
* matchMedia() polyfill - test whether a CSS media type or media query applies
* authors: <NAME>, <NAME>, <NAME>
* Copyright (c) 2011 Filament Group, Inc
* MIT license
*/


window.matchMedia = window.matchMedia || (function(doc, undefined){
  
  var bool,
      docElem  = doc.documentElement,
      refNode  = docElem.firstElementChild || docElem.firstChild,
      // fakeBody required for <FF4 when executed in <head>
      fakeBody = doc.createElement('body'),
      div      = doc.createElement('div');
  
  div.id = 'mq-test-1';
  div.style.cssText = "position:absolute;top:-100em";
  fakeBody.appendChild(div);
  
  return function(q){
    
    div.innerHTML = '_<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
{'fraction_non_alphanumeric': 0.14838709677419354, 'fraction_numerical': 0.015483870967741935, 'mean_word_length': 3.4188034188034186, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '7434964', 'n_tokens_mistral': 506, 'n_tokens_neox': 487, 'n_words': 133}