<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

'use strict'

const os = require('os')

/**
 * Get list of styles which should be applied to root window div
 * return array of strings (each being a class name)
 */
module.exports.getPlatformStyles = () => {
  const platform = os.platform()
  const styleList = ['platform--' + platform]

  switch (platform) {
    case 'win32':
      if (/6.1./.test(os.release())) {
        styleList.push('win7')
      } else {
        styleList.push('win10')
      }
  }

  return styleList
}

module.exports.isDarwin = () => {
  return os.platform() === 'darwin' ||
    navigator.platform === 'MacIntel'
}

module.exports.isWindows = () => {
  return os.platform() === 'win32' ||
    navigator.platform === 'Win32'<commit_msg>Fix mac - OS buttons overlap with back/forward buttons<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

'use strict'

/**
 * Get list of styles which should be applied to root window div
 * return array of strings (each being a class name)
 */
module.exports.getPlatformStyles = () => {
  const platform = process.platform()
  const styleList = ['platform--' + platform]

  switch (platform) {
    case 'win32':
      if (process.platformVersion() === 'win7') {
        styleList.push('win7')
      } else {
        styleList.push('win10')
      }
  }

  return styleList
}

module.exports.isDarwin = () => {
  return process.platform() === 'darwin' ||
    navigator.platform === 'MacIntel'
}

module.exports.isWindows = () => {
  return process.platform() === 'win32' ||
    navigator.platform === 'Win32'
{'fraction_non_alphanumeric': 0.14599686028257458, 'fraction_numerical': 0.015175300889586603, 'mean_word_length': 3.0252631578947367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4528575', 'n_tokens_mistral': 606, 'n_tokens_neox': 584, 'n_words': 188}