<commit_before><!DOCTYPE html>
<%= content_tag(:html, lang: I18n.locale) do %>
  <head>
    <title><%= pretty_entry_title(@entry) %></title>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">


    <%= social_share_meta_tags_for(@entry) %>
    <%= meta_tags_for_entry(@entry) %>

    <%= scrolled_favicons_for_entry(@entry.theme) %>

    <%= javascript_include_tag 'pageflow_scrolled/legacy' %>
    <%= scrolled_frontend_stylesheet_packs_tag(@entry, widget_scope: @widget_scope) %>

    <%= scrolled_theme_properties_style_tag(@entry.theme) %>
    <%= scrolled_theme_stylesheet_pack_tags(@entry.theme) %>

    <%= render_widget_head_fragments(@entry, scope: @widget_scope) %>

    <% if Rails.env.development? %>
      <script>
        try {
          if (window.top !== window) {
            window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
          }
        } catch (e) {
          console.warn('unable to connect to top frame for connecting dev tools');
        }
      </script>
    <% end %>

    <% ssr_html = @skip_ssr ? '' : render_scrolled_entry(@entry) %>

    <% if !@skip_ssr && (params[:frontend] == 'v2' ||
                         @entry.feature_state('frontend_v2')) %>
      <script>
        window.pageflowScrolledSSRAspectRatioMediaQueries = true;
      </script>
      <style>
        <%= generated_media_queries_css_for(ssr_html) %>
      </style>
    <% end %>
  </head>
  <body>
    <%= structured_data_for_entry(@entry) unless @skip_structured_data %>

    <%= render 'pageflow_scrolled/entries/global_notices' %>

    <div id="fullscreenRoot"></div>
    <div id="root"><%= ssr_html %></div>

    <div id='template-widget-container'>
      <%= render_widgets(@entry, scope: @widget_scope, insert_point: :bottom_of_entry) %>
    </div>

    <%= scrolled_webpack_public_path_script_tag %>
    <%= scrolled_frontend_javascript_packs_tag(@entry, widget_scope: @widget_scope) %>

    <%= scrolled_entry_json_seed_script_tag(@entry, @seed_options || {}) %>
  </body>
<% end %><commit_msg>Benchmark server side media query rendering<commit_after><!DOCTYPE html>
<%= content_tag(:html, lang: I18n.locale) do %>
  <head>
    <title><%= pretty_entry_title(@entry) %></title>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">


    <%= social_share_meta_tags_for(@entry) %>
    <%= meta_tags_for_entry(@entry) %>

    <%= scrolled_favicons_for_entry(@entry.theme) %>

    <%= javascript_include_tag 'pageflow_scrolled/legacy' %>
    <%= scrolled_frontend_stylesheet_packs_tag(@entry, widget_scope: @widget_scope) %>

    <%= scrolled_theme_properties_style_tag(@entry.theme) %>
    <%= scrolled_theme_stylesheet_pack_tags(@entry.theme) %>

    <%= render_widget_head_fragments(@entry, scope: @widget_scope) %>

    <% if Rails.env.development? %>
      <script>
        try {
          if (window.top !== window) {
            window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
          }
        } catch (e) {
          console.warn('unable to connect to top frame for connecting dev tools');
        }
      </script>
    <% end %>

    <% ssr_html = @skip_ssr ? '' : render_scrolled_entry(@entry) %>

    <% if !@skip_ssr && (params[:frontend] == 'v2' ||
                         @entry.feature_state('frontend_v2')) %>
      <script>
        window.pageflowScrolledSSRAspectRatioMediaQueries = true;
      </script>
      <style>
        <% benchmark 'Generate aspect ratio media queries' do %>
          <%= generated_media_queries_css_for(ssr_html) %>
        <% end %>
      </style>
    <% end %>
  </head>
  <body>
    <%= structured_data_for_entry(@entry) unless @skip_structured_data %>

    <%= render 'pageflow_scrolled/entries/global_notices' %>

    <div id="fullscreenRoot"></div>
    <div id="root"><%= ssr_html %></div>

    <div id='template-widget-container'>
      <%= render_widgets(@entry, scope: @widget_scope, insert_point: :bottom_of_entry) %>
    </div>

    <%= scrolled_webpack_public_path_script_tag %>
    <%= scrolled_frontend_javascript_packs_tag(@entry, widget_scope: @widget_scope) %>

    <%= scrolled_entry_json_seed_script_tag(@entry, @seed_options || {}) %>
  </body>
<% end %>
{'fraction_non_alphanumeric': 0.15818955859287476, 'fraction_numerical': 0.004929419672865786, 'mean_word_length': 3.545824847250509, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '3141504', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1485, 'n_words': 215}