<commit_before><% sections = [] if sections.nil? -%>
<% multipart = sections.grep 'file' -%>

<% @title_box = capture do -%>
  <div class='big_icon <%= @page_class.icon%>_48'>
    <h1><%= "Create a new {thing}"[:create_a_new_thing, content_tag(:i, page_class.downcase)] %></h1>
  </div>
<% end -%>

<div class="create_page">
<table class="create_page">
  <% form_tag({:action => 'create'}, :multipart => multipart) do %>
    <%= hidden_field_tag 'page_class', @page_class %>
    <%= hidden_field_tag('group', params[:group]) if params[:group] %>

    <%= render :partial => 'base_page/create/information', :locals => {:sections => sections} %>

    <%= render :partial => 'base_page/create/sharing' %>

    <% if sections.any_in? ['file','files','external_video','body', 'image', 'event'] -%>
      <tr><td colspan="2" class="heading">
        <h2><%= '{page_class} Data'[:create_page_data, "Page"[:page]].titlecase %></h2>
      </td></tr>
      <% sections.each do |section| %>
        <%= render :partial => "base_page/create/#{section}" %>
      <% end %>
    <% end %>

    <tr><td colspan="2" class="buttons">
      <%# the extra submit button is needed, so that 'create' remains the default (on enter) -%>
      <%= submit_tag "hidden", :name => 'create', :style => 'display:none' %>
      <%= submit_tag '&laquo; ' + "Back"[:back_button], :name => 'cancel' %>
      <%= submit_tag "Create {page_class}"[:create_page_button, "Page"[:page]] + ' &raquo;', :name => 'create' %>
    </td></tr>
  <% end %>
</table>
</div>
<commit_msg>page creating: fixed bug with form not including all the all the form elements.<commit_after><% sections = [] if sections.nil? -%>
<% multipart = sections.grep 'file' -%>

<% @title_box = capture do -%>
  <div class='big_icon <%= @page_class.icon%>_48'>
    <h1><%= "Create a new {thing}"[:create_a_new_thing, content_tag(:i, page_class.downcase)] %></h1>
  </div>
<% end -%>

<div class="create_page">
<% form_tag({:action => 'create'}, :multipart => multipart) do %>
  <table class="create_page">
    <%= hidden_field_tag 'page_class', @page_class %>
    <%= hidden_field_tag('group', params[:group]) if params[:group] %>

    <%= render :partial => 'base_page/create/information', :locals => {:sections => sections} %>

    <%= render :partial => 'base_page/create/sharing' %>

    <% if sections.any_in? ['file','files','external_video','body', 'image', 'event'] -%>
      <tr><td colspan="2" class="heading">
        <h2><%= '{page_class} Data'[:create_page_data, "Page"[:page]].titlecase %></h2>
      </td></tr>
      <% sections.each do |section| %>
        <%= render :partial => "base_page/create/#{section}" %>
      <% end %>
    <% end %>

    <tr><td colspan="2" class="buttons">
      <%# the extra submit button is needed, so that 'create' remains the default (on enter) -%>
      <%= submit_tag "hidden", :name => 'create', :style => 'display:none' %>
      <%= submit_tag '&laquo; ' + "Back"[:back_button], :name => 'cancel' %>
      <%= submit_tag "Create {page_class}"[:create_page_button, "Page"[:page]] + ' &raquo;', :name => 'create' %>
    </td></tr>
  </table>
<% end %>
</div>

{'fraction_non_alphanumeric': 0.22993630573248408, 'fraction_numerical': 0.005095541401273885, 'mean_word_length': 3.977812995245642, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 105, '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': '111606', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1074, 'n_words': 231}