<commit_before><script src="https://library.prototypo.io/ptypo.js"></script>
<script>
  const ptypoFactory = new Ptypo.default();
  const fonts = {};

  window.addEventListener('message', async (event) => {
    const font = event.data;
    // Receiving message from the background script
    // we have to cache the font or reuse it otherwise

    if (!fonts[font.id]) {
      fonts[font.id] = await ptypoFactory.createFont(font.name, font.template);
    }

    // waiting for the font to be built
    await fonts[font.id].changeParams(font.values);

    event.source.postMessage({
      ...font,
      source: fonts[font.id].otfSource,
    }, event.origin);
  });
</script><commit_msg>added generic token for extension<commit_after><script src="https://library.prototypo.io/ptypo.js"></script>
<script>
  const ptypoFactory = new Ptypo.default('3357590c-2f0c-49fc-a054-a0c4b45ed8b0');
  const fonts = {};

  window.addEventListener('message', async (event) => {
    const font = event.data;
    // Receiving message from the background script
    // we have to cache the font or reuse it otherwise

    if (!fonts[font.id]) {
      fonts[font.id] = await ptypoFactory.createFont(font.name, font.template);
    }

    // waiting for the font to be built
    await fonts[font.id].changeParams(font.values);

    event.source.postMessage({
      ...font,
      source: fonts[font.id].otfSource,
    }, event.origin);
  });
</script>
{'fraction_non_alphanumeric': 0.14405594405594405, 'fraction_numerical': 0.013986013986013986, 'mean_word_length': 3.2462908011869436, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2589071', 'n_tokens_mistral': 479, 'n_tokens_neox': 448, 'n_words': 107}