<commit_before><%= f.inputs do %>
  <%= render :partial => 'shared/common_edition_attributes', :locals => {:f => f} %>

  <div class="row">
    <div class="col-md-7">
  <%= f.input :video_url,
              :label => "Video URL",
              :hint => 'Put the YouTube URL in here if it exists',
              :input_html => { :disabled => @resource.locked_for_edits? } %>

  <%= f.input :video_summary,
              :as => :text,
              :label => "Video Summary",
              :input_html => { :rows => 2, :disabled => @resource.locked_for_edits? } %>
    </div>
  </div>

  <%= f.inputs "Caption file" do %>
    <% if @edition.caption_file %>
      <div class="uploaded-caption-file">
        <h4>Current caption file</h4>
        <p><%= link_to @edition.caption_file.name, @edition.caption_file.file_url %></p>
        <p><%= label_tag do %>Remove caption file? <%= check_box_tag "edition[remove_caption_file]", "1" %><% end %></p>
      </div>

      <h4>Replace caption file</h4>
    <% end %>

    <p><%= f.input :caption_file, :as => :file, :label => "Upload a new caption file" %></p>
  <% end %>
  <hr />

  <div class="row">
    <div class="col-md-10">
      <%= f.input :body, :as => :text, :input_html => { :disabled => @resource.locked_for_edits? } %>
    </div>
  </div>
<% end %>

<%= render partial: 'shared/workflow_buttons', locals: { f: f } %>
<commit_msg>Use input helper classes for video fields<commit_after><%= f.inputs do %>
  <%= render :partial => 'shared/common_edition_attributes', :locals => {:f => f} %>

  <%= f.input :video_url,
              :label => "Video URL",
              :hint => 'Put the YouTube URL in here if it exists',
              :input_html => { :disabled => @resource.locked_for_edits?, class: 'input-md-7' } %>

  <%= f.input :video_summary,
              :as => :text,
              :label => "Video Summary",
              :input_html => { :rows => 2, :disabled => @resource.locked_for_edits?, class: 'input-md-7' } %>

  <%= f.inputs "Caption file" do %>
    <% if @edition.caption_file %>
      <div class="uploaded-caption-file">
        <h4>Current caption file</h4>
        <p><%= link_to @edition.caption_file.name, @edition.caption_file.file_url %></p>
        <p><%= label_tag do %>Remove caption file? <%= check_box_tag "edition[remove_caption_file]", "1" %><% end %></p>
      </div>

      <h4>Replace caption file</h4>
    <% end %>

    <p><%= f.input :caption_file, :as => :file, :label => "Upload a new caption file" %></p>
  <% end %>
  <hr />

  <div class="row">
    <div class="col-md-10">
      <%= f.input :body, :as => :text, :input_html => { :disabled => @resource.locked_for_edits? } %>
    </div>
  </div>
<% end %>

<%= render partial: 'shared/workflow_buttons', locals: { f: f } %>

{'fraction_non_alphanumeric': 0.2026685899747566, 'fraction_numerical': 0.006851785070320952, 'mean_word_length': 2.683930942895086, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 107, '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': '5608111', 'n_tokens_mistral': 1035, 'n_tokens_neox': 952, 'n_words': 226}