<commit_before>import {Viewer} from '@ampproject/email-viewer/dist/viewer.mjs';

const container = document.querySelector('#viewer');
const viewer = new Viewer(container);
viewer.render();<commit_msg>use new render in example<commit_after>import {FrameContainer} from '@ampproject/email-viewer/dist/viewer.mjs';

const container = document.querySelector('#viewer');
const viewer = new FrameContainer(container, '/modules/bootstrap-page');
viewer.render(`<!doctype html>
<html ⚡4email allow-xhr-interception allow-viewer-render-template report-errors-to-viewer>
<head>
  <meta charset="utf-8">
  <script async src="https://cdn.ampproject.org/v0.js"></script>
  <script async src="https://cdn.ampproject.org/v0/amp-viewer-integration-0.1.js"></script>
  <style amp4email-boilerplate>body{visibility:hidden}</style>
</head>
<body>
  Hello, AMP4EMAIL world.
</body>
</html>
`);
{'fraction_non_alphanumeric': 0.16838487972508592, 'fraction_numerical': 0.009163802978235968, 'mean_word_length': 6.283333333333333, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1428891', 'n_tokens_mistral': 305, 'n_tokens_neox': 296, 'n_words': 52}