<commit_before>export function getCharacterWidth(string) {
  const span = document.createElement('span');
  span.style.font = '1rem Times, "Times New Roman", serif';
  span.appendChild(document.createTextNode(string));

  document.documentElement.appendChild(span);
  const { width } = span.getBoundingClientRect();
  document.documentElement.removeChild(span);

  return Math.round(width);
}<commit_msg>🔠 Fix font sizes at 16px<commit_after>export function getCharacterWidth(string) {
  const span = document.createElement('span');
  span.style.font = '16px Times, "Times New Roman", serif';
  span.appendChild(document.createTextNode(string));

  document.documentElement.appendChild(span);
  const { width } = span.getBoundingClientRect();
  document.documentElement.removeChild(span);

  return Math.round(width);
}
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.006105006105006105, 'mean_word_length': 6.192982456140351, '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': '7164117', 'n_tokens_mistral': 241, 'n_tokens_neox': 231, 'n_words': 47}