<commit_before>import Document, { Html, Head, Main, NextScript } from "next/document";

class MyDocument extends Document {
  render() {
    return (
      <Html>
        <Head>

        </Head>
        <body>
          <Main />
          <NextScript />
          <footer>
            <p>Dans tous les cas, nous sommes à votre disposition par <a href="mailto:<EMAIL>&subject=Contribuer">email</a>.</p>
            <p>L'<NAME></p>
          </footer>
        </body>
      </Html>
    );
  }
}

export default MyDocument<commit_msg>Ajoute Matomo sur le site de contribution<commit_after>import Document, { Html, Head, Main, NextScript } from "next/document";

class MyDocument extends Document {
  render() {
    return (
      <Html>
        <Head>
          { process.env.NODE_ENV === "production" && (
              <script
                    dangerouslySetInnerHTML={{
                      __html: `
                    var _paq = _paq || [];
                    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
                    _paq.push(['trackPageView']);
                    _paq.push(['enableLinkTracking']);
                    (function() {
                      var u="//stats.data.gouv.fr/";
                      _paq.push(['setTrackerUrl', u+'piwik.php']);
                      _paq.push(['setSiteId', '25']);
                      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
                      g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
                    })();
                  `}}
              />
            )
          }
        </Head>
        <body>
          <Main />
          <NextScript />
          <footer>
            <p>Dans tous les cas, nous sommes à votre disposition par <a href="mailto:<EMAIL>&subject=Contribuer">email</a>.</p>
            <p>L'<NAME></p>
          </footer>
        </body>
      </Html>
    );
  }
}

export default MyDocument
{'fraction_non_alphanumeric': 0.14355948869223206, 'fraction_numerical': 0.0014749262536873156, 'mean_word_length': 1.5469336670838547, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '2108382', 'n_tokens_mistral': 599, 'n_tokens_neox': 582, 'n_words': 120}