<commit_before>module.exports =
  isIPad: ->
    userAgent = navigator.userAgent.toLowerCase()
    userAgent.search('ipad') > -1

  # http://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript
  isTouchDevice: ->
    'ontouchstart' of window or 'onmsgesturechange' of window

  autofocus: ->
    if @isTouchDevice() then undefined else true

  isRetina: ->
    (window.devicePixelRatio or 1) > 1<commit_msg>Adds FF detection<commit_after>module.exports =
  isIPad: ->
    userAgent = navigator.userAgent.toLowerCase()
    userAgent.search('ipad') > -1

  # http://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript
  isTouchDevice: ->
    'ontouchstart' of window or 'onmsgesturechange' of window

  autofocus: ->
    if @isTouchDevice() then undefined else true

  isRetina: ->
    (window.devicePixelRatio or 1) > 1

  isFirefox: ->
    navigator.userAgent.toLowerCase().indexOf('firefox') > -1
{'fraction_non_alphanumeric': 0.13186813186813187, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 3.7714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6019734', 'n_tokens_mistral': 351, 'n_tokens_neox': 334, 'n_words': 58}