<commit_before>// Device.js
// (c) 2013 <NAME>
// Device.js is freely distributable under the MIT license.
// For all details and documentation:
// http://www.matthewghudson.com/projects/device.js/
(function () {

  // Baseline setup
  // --------------

  // Establish the root object, 'window' in the browser, 
  // or 'global' on the server.
  var root = this;

  // Create a reference to the device object for use below.
  var device = {};

  // The <html> element.
  var docElement = window.document.documentElement;

  // The client UserAgent string.
  var userAgent = window.navigator.userAgent.toLowerCase();

  // Export the Webpipe object for **Node.js**, with
  // backwards-compatibility for the old 'require()' API. If we're in
  // the browser, add 'device' as a global object via a string identifier,
  // for Closure Compiler "advanced" mode.
  if (typeof exports !== 'undefined') {
    if (typeof module !== 'undefined' && module.exports) {
      exports = module.exports = device;
    }
    exports.device = device;
  } else {
    root['device'] = device;
  }

  // Main functions
  // --------------

  device.ios = function () {
    return (device.iphone() || device.ipod() || device.ipad());
  };

  device.iphone = function () {
    return userAgent.match(/iphone/i) ? true : false;
  };

  device.ipod = function () {
    return userAgent.match(/ipod/i) ? true : false;
  };
<commit_msg>Fixed comment typo.<commit_after>// Device.js
// (c) 2013 <NAME>
// Device.js is freely distributable under the MIT license.
// For all details and documentation:
// http://www.matthewghudson.com/projects/device.js/
(function () {

  // Baseline setup
  // --------------

  // Establish the root object, 'window' in the browser, 
  // or 'global' on the server.
  var root = this;

  // Create a reference to the device object for use below.
  var device = {};

  // The <html> element.
  var docElement = window.document.documentElement;

  // The client UserAgent string.
  var userAgent = window.navigator.userAgent.toLowerCase();

  // Export the Device object for **Node.js**, with
  // backwards-compatibility for the old 'require()' API. If we're in
  // the browser, add 'device' as a global object via a string identifier,
  // for Closure Compiler "advanced" mode.
  if (typeof exports !== 'undefined') {
    if (typeof module !== 'undefined' && module.exports) {
      exports = module.exports = device;
    }
    exports.device = device;
  } else {
    root['device'] = device;
  }

  // Main functions
  // --------------

  device.ios = function () {
    return (device.iphone() || device.ipod() || device.ipad());
  };

  device.iphone = function () {
    return userAgent.match(/iphone/i) ? true : false;
  };

  device.ipod = function () {
    return userAgent.match(/ipod/i) ? true : false;
  };

{'fraction_non_alphanumeric': 0.16035398230088496, 'fraction_numerical': 0.002831858407079646, 'mean_word_length': 2.604591836734694, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6452315', 'n_tokens_mistral': 875, 'n_tokens_neox': 836, 'n_words': 268}