<commit_before><p>
  <%= link_to "&raquo; Hide/Show Advanced Options", "#",
              :id => 'toggle_advanced_options',
              :rel => 'Click to access meta tag settings and menu options' %>
</p>
<div id='more_options' style="display:none;">
  <div class="hemisquare">
    <h2>Page Options</h2>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :parent_id, "Parent page" %>
        <span tooltip="You can put a page under another page but selected it in the list. If this is a top-level page, just leave it blank." class='help'>
          (help)
        </span>
      </span>
      <%= f.collection_select :parent_id, @pages_for_parents_list, :id, :indented_title, {:include_blank => true}, :class => 'widest' %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= label_tag :custom_title %>
        <span tooltip="If you want the page to have a different title than the one that shows in the menu then select 'Text' and enter it here." class='help'>
          (help)
        </span>
      </span>
      <% ["none", "text"].each do |type| %>
        <%= f.radio_button :custom_title_type, "#{type}" %>
        <%= label_tag "page_custom_title_type_#{type}", "#{type.titleize}", :class => "stripped" %>
      <% end %>
      <div id='custom_title_none'></div>
      <div id='custom_title_text' style='display: <%= @page.custom_title_type == 'text' ? 'block' : 'none' %>'>
        <%= f.text_field :custom_title, {:size => 103} %>
      </div>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= label_tag :skip_to_first_child?, "Skip top-level page" %>
        <span tooltip='This option makes this page link go to the first page underneath it instead so this page is then only useful for grouping pages together under your menu.' class='help'>
          (help)
        </span>
      </span>
      <%= f.check_box :skip_to_first_child %>
      <%= f.label :skip_to_first_child, "Redirect visitors to the first sub-level page.", :class => "stripped" %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :link_url, "Link to Another Website" %>
        <span tooltip='If you want this page to go to another website when you click this page in the menu, enter the URL of that website here. e.g. http://google.com' class='help'>
          (help)
        </span>
      </span>
      <%= f.text_field :link_url %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :show_in_menu, "Show in menu", :id => 'page_show_in_menu_heading' %>
        <span tooltip="Uncheck this box if you want to remove a page from your site menu. This can be handy if you have a page you want to link people to directly but don't want to put the page in the menu" class='help'>
          (help)
        </span>
      </span>
      <%= f.check_box :show_in_menu %>
      <%= f.label :show_in_menu, "Display this page in the site menu", :class => "stripped" %>
    </div>
  </div>

  <%= render :partial => "form_advanced_options_seo", :locals => {:f => f} if RefinerySetting.find_or_set(:pages_advanced_options_include_seo, true) %>
</div>
<div class='field'>
  <label>Draft</label>
  <%= f.check_box :draft %>
  <%= f.label :draft, "Save as Draft", :class => "stripped" %>
</div>
<commit_msg>let's try that again<commit_after><p>
  <%= link_to "&raquo; Hide/Show Advanced Options", "#",
              :id => 'toggle_advanced_options',
              :rel => 'Click to access meta tag settings and menu options' %>
</p>
<div id='more_options' style="display:none;">
  <div class="hemisquare">
    <h2>Page Options</h2>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :parent_id, "Parent page" %>
        <span tooltip="You can put a page under another page by selected it in the list. If you want this page to be a top-level page, just leave it blank." class='help'>
          (help)
        </span>
      </span>
      <%= f.collection_select :parent_id, @pages_for_parents_list, :id, :indented_title, {:include_blank => true}, :class => 'widest' %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= label_tag :custom_title %>
        <span tooltip="If you want the page to have a different title than the one that shows in the menu then select 'Text' and enter it here." class='help'>
          (help)
        </span>
      </span>
      <% ["none", "text"].each do |type| %>
        <%= f.radio_button :custom_title_type, "#{type}" %>
        <%= label_tag "page_custom_title_type_#{type}", "#{type.titleize}", :class => "stripped" %>
      <% end %>
      <div id='custom_title_none'></div>
      <div id='custom_title_text' style='display: <%= @page.custom_title_type == 'text' ? 'block' : 'none' %>'>
        <%= f.text_field :custom_title, {:size => 103} %>
      </div>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= label_tag :skip_to_first_child?, "Skip top-level page" %>
        <span tooltip='This option makes this page link to the first page underneath. This can be useful when grouping pages together.' class='help'>
          (help)
        </span>
      </span>
      <%= f.check_box :skip_to_first_child %>
      <%= f.label :skip_to_first_child, "Redirect visitors to the first sub-level page.", :class => "stripped" %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :link_url, "Link to Another Website" %>
        <span tooltip='If you want this page to go to another website when you click this page in the menu, enter the URL of that website here. e.g. http://google.com' class='help'>
          (help)
        </span>
      </span>
      <%= f.text_field :link_url %>
    </div>
    <div class='field'>
      <span class='label_with_help'>
        <%= f.label :show_in_menu, "Show in menu", :id => 'page_show_in_menu_heading' %>
        <span tooltip="Uncheck this box if you want to remove a page from your site menu. This can be handy if you have a page you want to link people to directly but don't want to show the page in the menu" class='help'>
          (help)
        </span>
      </span>
      <%= f.check_box :show_in_menu %>
      <%= f.label :show_in_menu, "Display this page in the site menu", :class => "stripped" %>
    </div>
  </div>

  <%= render :partial => "form_advanced_options_seo", :locals => {:f => f} if RefinerySetting.find_or_set(:pages_advanced_options_include_seo, true) %>
</div>
<div class='field'>
  <label>Draft</label>
  <%= f.check_box :draft %>
  <%= f.label :draft, "Save as Draft", :class => "stripped" %>
</div>

{'fraction_non_alphanumeric': 0.15594133492966178, 'fraction_numerical': 0.00149655791679138, 'mean_word_length': 2.9127634660421546, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 163, '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': '984587', 'n_tokens_mistral': 2242, 'n_tokens_neox': 2124, 'n_words': 662}