<commit_before><% if (google_analytics_key = Setting.get('google_analytics_key', nil)) %>
  <script>
    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    ga('create', <%= raw(google_analytics_key.to_json) %>, 'auto');
    <% if @google_analytics_page_title %>
      ga('set', 'title', <%= raw(@google_analytics_page_title.to_json) %>);
    <% end %>
    ga('send', 'pageview');
  </script>
  <script async src='https://www.google-analytics.com/analytics.js'></script>
<% end %><commit_msg>Don’t execute Google Analytics until browser is idle<commit_after><% if (google_analytics_key = Setting.get('google_analytics_key', nil)) %>
  <script>
    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    ga('create', <%= raw(google_analytics_key.to_json) %>, 'auto');
    <% if @google_analytics_page_title %>
      ga('set', 'title', <%= raw(@google_analytics_page_title.to_json) %>);
    <% end %>
    ga('send', 'pageview');
    (window.requestIdleCallback || window.setTimeout)(function(){
      var s=document.createElement('script'), m=document.getElementsByTagName('script')[0]
      s.async=1; s.src='https://www.google-analytics.com/analytics.js'
      m.parentNode.insertBefore(s,m)
    });
  </script>
<% end %>
{'fraction_non_alphanumeric': 0.21105919003115264, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 4.949074074074074, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2269756', 'n_tokens_mistral': 473, 'n_tokens_neox': 449, 'n_words': 60}