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

// get these from sage/misc/latex.py
// This same info is **also** embedded in packages/util/mathjax-config.js
export const macros = {
  "\\Bold": "\\mathbb{#1}",
  "\\ZZ": "\\Bold{Z}",
  "\\NN": "\\Bold{N}",
  "\\RR": "\\Bold{R}",
  "\\CC": "\\Bold{C}",
  "\\FF": "\\Bold{F}",
  "\\QQ": "\\Bold{Q}",
  "\\QQbar": "\\overline{\\QQ}",
  "\\CDF": "\\Bold{C}",
  "\\CIF": "\\Bold{C}",
  "\\CLF": "\\Bold{C}",
  "\\RDF": "\\Bold{R}",
  "\\RIF": "\\Bold{I} \\Bold{R}",
  "\\RLF": "\\Bold{R}",
  "\\CFF": "\\Bold{CFF}",
  "\\GF": "\\Bold{F}_{#1}",
  "\\Zp": "\\ZZ_{#1}",
  "\\Qp": "\\QQ_{#1}",
  "\\Zmod": "\\ZZ/#1\\ZZ",
} as const;<commit_msg>fix #6019 -- support \mbox in katex<commit_after>/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */

// get these from sage/misc/latex.py
// This same info is **also** embedded in packages/util/mathjax-config.js
export const macros = {
  "\\Bold": "\\mathbb{#1}",
  "\\ZZ": "\\Bold{Z}",
  "\\NN": "\\Bold{N}",
  "\\RR": "\\Bold{R}",
  "\\CC": "\\Bold{C}",
  "\\FF": "\\Bold{F}",
  "\\QQ": "\\Bold{Q}",
  "\\QQbar": "\\overline{\\QQ}",
  "\\CDF": "\\Bold{C}",
  "\\CIF": "\\Bold{C}",
  "\\CLF": "\\Bold{C}",
  "\\RDF": "\\Bold{R}",
  "\\RIF": "\\Bold{I} \\Bold{R}",
  "\\RLF": "\\Bold{R}",
  "\\CFF": "\\Bold{CFF}",
  "\\GF": "\\Bold{F}_{#1}",
  "\\Zp": "\\ZZ_{#1}",
  "\\Qp": "\\QQ_{#1}",
  "\\Zmod": "\\ZZ/#1\\ZZ",
  "\\mbox": "\\text", // see https://github.com/sagemathinc/cocalc/issues/6019
} as const;
{'fraction_non_alphanumeric': 0.3457227138643068, 'fraction_numerical': 0.016519174041297935, 'mean_word_length': 2.4754098360655736, 'pattern_counts': {'":': 39, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2268849', 'n_tokens_mistral': 815, 'n_tokens_neox': 748, 'n_words': 164}