<commit_before>/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

// Client device features and capabilities.

declare const DEBUG: boolean;

let IS_MOBILE,
  IS_TOUCH,
  IS_IPAD,
  isMobile,
  get_browser,
  get_mobile,
  is_responsive_mode;

if ((global as any).window != undefined) {
  // In a web browser.
  const window: any = (global as any).window;
  const navigator = window.navigator;
  const { $ } = window;

  isMobile = {
    Android() {
      return !!(navigator != undefined
        ? navigator.userAgent.match(/Android/i)
        : undefined);
    },<commit_msg>nodejs12: undo mistake in 177235ae3018986262b57010f25cdc776c97c00d<commit_after>/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

// Client device features and capabilities.

declare const DEBUG: boolean;

let IS_MOBILE,
  IS_TOUCH,
  IS_IPAD,
  isMobile,
  get_browser,
  get_mobile,
  is_responsive_mode;

if ((global as any).window != undefined) {
  // In a web browser.
  const window: any = (global as any).window;
  const navigator = window.navigator;
  let { $ } = window;

  isMobile = {
    Android() {
      return !!(navigator != undefined
        ? navigator.userAgent.match(/Android/i)
        : undefined);
    },
{'fraction_non_alphanumeric': 0.11430625449317038, 'fraction_numerical': 0.0301941049604601, 'mean_word_length': 3.1305637982195846, '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': '4408524', 'n_tokens_mistral': 506, 'n_tokens_neox': 468, 'n_words': 136}