<commit_before>SILE.registerCommand("cabook:font:mono", function (options, content)
  options.family = options.family or "Hack"
  options.size = options.size or "0.8em"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:sans", function (options, content)
  options.family = options.family or "Libertinus Sans"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:serif", function (options, content)
  options.family = options.family or "Libertinus Serif"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:display", function (options, content)
  options.family = "Libertinus Serif Display"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:parttitle", function (options, content)
  options.weight = options.weight or 600
  SILE.call("cabook:font:sans", options, content)
end)

SILE.registerCommand("cabook:font:partno", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("cabook:font:alt", function (options, content)
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("cabook:font:subparagraph", function (options, content)
  options.size = options.size or "11pt"
  options.features = options.features or "+smcp"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:footnote", function (options, content)
  options.size = options.size or "8.5pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:chaptertitle", function (options, content)
  options.weight = options.weight or 600
  options.size = options.size or "16pt"
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("cabook:font:chapterno", function (options, content)
  options.family = options.family or "Libertinus Serif Display"
  options.size = options.size or "11pt"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:sectiontitle", function (options, content)
  options.size = options.size or "8.5pt"
  SILE.call("cabook:font:chaptertitle", options, content)
end)

SILE.registerCommand("cabook:font:dedication", function (options, content)
  options.style = options.style or "Italic"
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("verbatim:font", function (options, content)
  options.size = options.size or "10pt"
  SILE.call("cabook:font:mono", options, content)
end)

SILE.registerCommand("cabook:font:folio", function (options, content)
  options.style = options.style or "Roman"
  options.size = options.size or "13pt"
  options.weight = options.weight or 400
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:left-header", function (options, content)
  options.size = options.size or "12pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:right-header", function (options, content)
  options.style = options.style or "Italic"
  options.size = options.size or "12pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:title", function (options, content)
  SILE.call("cabook:font:partno", options, content)
end)

SILE.registerCommand("cabook:font:subtitle", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("cabook:font:author", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("tableofcontents:headerfont", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("strong", function (options, content)
  SILE.call("font", { weight = 600 }, content)
end)

SILE.registerCommand("em", function (options, content)
  SILE.call("font", { style = "Italic" }, content)
  SILE.call("kern", { width = "1pt" })
end)
<commit_msg>Provide (or override) \code{} function for simple monospace styling<commit_after>SILE.registerCommand("cabook:font:mono", function (options, content)
  options.family = options.family or "Hack"
  options.size = options.size or "0.8em"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:sans", function (options, content)
  options.family = options.family or "Libertinus Sans"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:serif", function (options, content)
  options.family = options.family or "Libertinus Serif"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:display", function (options, content)
  options.family = "Libertinus Serif Display"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:parttitle", function (options, content)
  options.weight = options.weight or 600
  SILE.call("cabook:font:sans", options, content)
end)

SILE.registerCommand("cabook:font:partno", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("cabook:font:alt", function (options, content)
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("cabook:font:subparagraph", function (options, content)
  options.size = options.size or "11pt"
  options.features = options.features or "+smcp"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:footnote", function (options, content)
  options.size = options.size or "8.5pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:chaptertitle", function (options, content)
  options.weight = options.weight or 600
  options.size = options.size or "16pt"
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("cabook:font:chapterno", function (options, content)
  options.family = options.family or "Libertinus Serif Display"
  options.size = options.size or "11pt"
  SILE.call("font", options, content)
end)

SILE.registerCommand("cabook:font:sectiontitle", function (options, content)
  options.size = options.size or "8.5pt"
  SILE.call("cabook:font:chaptertitle", options, content)
end)

SILE.registerCommand("cabook:font:dedication", function (options, content)
  options.style = options.style or "Italic"
  SILE.call("cabook:font:serif", options, content)
end)

SILE.registerCommand("verbatim:font", function (options, content)
  options.size = options.size or "10pt"
  SILE.call("cabook:font:mono", options, content)
end)

SILE.registerCommand("cabook:font:folio", function (options, content)
  options.style = options.style or "Roman"
  options.size = options.size or "13pt"
  options.weight = options.weight or 400
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:left-header", function (options, content)
  options.size = options.size or "12pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:right-header", function (options, content)
  options.style = options.style or "Italic"
  options.size = options.size or "12pt"
  SILE.call("cabook:font:alt", options, content)
end)

SILE.registerCommand("cabook:font:title", function (options, content)
  SILE.call("cabook:font:partno", options, content)
end)

SILE.registerCommand("cabook:font:subtitle", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("cabook:font:author", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("tableofcontents:headerfont", function (options, content)
  SILE.call("cabook:font:parttitle", options, content)
end)

SILE.registerCommand("strong", function (options, content)
  SILE.call("font", { weight = 600 }, content)
end)

SILE.registerCommand("em", function (options, content)
  SILE.call("font", { style = "Italic" }, content)
  SILE.call("kern", { width = "1pt" })
end)

SILE.registerCommand("code", function (options, content)
  SILE.call("cabook:font:mono", options, content)
end)

{'fraction_non_alphanumeric': 0.14506288133482753, 'fraction_numerical': 0.008218154650728428, 'mean_word_length': 6.541784037558686, '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': '4767628', 'n_tokens_mistral': 2772, 'n_tokens_neox': 2707, 'n_words': 578}