<commit_before><%= render :partial => 'shared/second_nav', :locals => { :nav_id => 'medias-logo',
  :url => medias_path,
  :right_search => 'medias/nav_search' } %>


  <div class="standard-form">
    <div id="media-error" style="display:none;" class="error"></div>
    <h3 id="generic_title"><%= @media.new_record? ? 'Add a new media' : "Edit \"#{@media.name}\"" %></h3>
    <% semantic_form_for(@media, :html => {:id => 'media-form'}) do |form| %>
      <% form.inputs do %>
        <%= form.input :name %>
        <%= form.input :description, :as => :text, :required => false  %>
        <%= form.input :media_type, :as => :radio %>
        <li id="media_detail">
          <label for="media_content">Content <abbr title="required">*</abbr></label>
          <p>You can add media items by inserting the HTML embed code of the item in the box below. You can learn more about HTML embed code <a href="http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html" target="_blank">here</a>.</p>
        </li>
        <%= form.input :content,
            :label => '' %>
        <%= form.input :tag_list,
          :as => :string,
          :hint => 'Please define the tags for this media in a comma-separated list.',
          :label => 'Tags',
          :input_html => {:class => 'tagging-autofill-tags'}
        %>
        <%= render :partial => 'shared/forms/visibility_selectors', :locals => { :form => form } %>
        <% if @media.new_record? %><%= render :partial => 'shared/forms/captcha' %><% end %>
      <% end %>

      <% unless request.xhr? %>
        <% form.buttons do %>
          <%= form.commit_button 'Save' %>
        <% end %>
      <% end %>
    <% end %>
  </div><commit_msg>Updated required fields on media form.<commit_after><%= render :partial => 'shared/second_nav', :locals => { :nav_id => 'medias-logo',
  :url => medias_path,
  :right_search => 'medias/nav_search' } %>


  <div class="standard-form">
    <div id="media-error" style="display:none;" class="error"></div>
    <h3 id="generic_title"><%= @media.new_record? ? 'Add a new media' : "Edit \"#{@media.name}\"" %></h3>
    <% semantic_form_for(@media, :html => {:id => 'media-form'}) do |form| %>
      <% form.inputs do %>
        <%= form.input :name %>
        <%= form.input :description, :as => :text, :required => false  %>
        <%= form.input :media_type, :as => :radio %>
        <li id="media_detail">
          <label for="media_content">Content <abbr title="required">*</abbr></label>
          <p>You can add media items by inserting the HTML embed code of the item in the box below. You can learn more about HTML embed code <a href="http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html" target="_blank">here</a>.</p>
        </li>
        <%= form.input :content,
            :label => '' %>
        <%= form.input :tag_list,
          :as => :string,
          :hint => 'Please define the tags for this media in a comma-separated list.',
          :label => 'Tags',
          :input_html => {:class => 'tagging-autofill-tags'},
          :required => false
        %>
        <%= render :partial => 'shared/forms/visibility_selectors', :locals => { :form => form } %>
        <% if @media.new_record? %><%= render :partial => 'shared/forms/captcha' %><% end %>
      <% end %>

      <% unless request.xhr? %>
        <% form.buttons do %>
          <%= form.commit_button 'Save' %>
        <% end %>
      <% end %>
    <% end %>
  </div>
{'fraction_non_alphanumeric': 0.19675456389452334, 'fraction_numerical': 0.0011590843233845263, 'mean_word_length': 2.6260504201680672, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 116, 'https://': 0, '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': '6423724', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1084, 'n_words': 266}