<commit_before>var name =
  /OS X/.test(navigator.userAgent) ? 'osx' :
  /Windows/.test(navigator.userAgent) ? 'win' : 'others'

module.exports = function(o) {
  return o[name] || o.others
}

module.exports.name = name
module.exports.isOSX = name === 'osx'
module.exports.isWindows = name === 'win'<commit_msg>Don't try to set name on function<commit_after>var name =
  /OS X/.test(navigator.userAgent) ? 'osx' :
  /Windows/.test(navigator.userAgent) ? 'win' : 'others'

module.exports = function(o) {
  return o[name] || o.others
}

module.exports.type = name
module.exports.isOSX = name === 'osx'
module.exports.isWindows = name === 'win'
{'fraction_non_alphanumeric': 0.1765625, 'fraction_numerical': 0.0, 'mean_word_length': 4.211382113821138, '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': '4010279', 'n_tokens_mistral': 235, 'n_tokens_neox': 233, 'n_words': 47}