<commit_before><%= semantic_form_for(:activity, url: url, html: {class: 'button_to also_save_edition modal hide fade', id: id}) do |f| %>

  <div class="modal-header">
    <h3><%= title %></h3>
  </div>

  <div class="modal-body">

    <%= f.inputs do %>
      <input type="hidden" value="<%= activity %>" name="activity[request_type]">

      <%= f.input :comment, :as => :text, :input_html => { :class => 'col-md-12', :cols => 60, :rows => 6 } %>

      <% if activity == "send_fact_check" %>
        <%= f.input :email_addresses, :input_html => { :class => 'col-md-12' } %>

        <label id="activity_customised_message_input" for="activity_customised_message">Customised message<abbr title="required">*</abbr></label>
        <textarea rows="6" name="activity[customised_message]" id="activity_customised_message" cols="60" class="col-md-12">
          <%- @edition = @resource %>
<%= render :template => 'noisy_workflow/request_fact_check', formats: [:text] %>
        </textarea>
      <% end %>

      <% if activity == "schedule_for_publishing" %>
        <%= f.label :publish_at do %>
          Publish at <abbr title="required">*</abbr>
        <% end %>
        <%= f.time_select :publish_at, {}, { class: 'date' } %>
        &mdash;
        <%= f.date_select :publish_at, { order: [:day, :month, :year], default: Date.tomorrow, start_year: Date.today.year, end_year: Date.today.year.next }, { class: 'date' } %>
      <% end %>
    <% end %>
  </div>

  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">Close</a>
    <input class="btn btn-success" name="commit" type="submit" value="Send">
  </div>
<% end %>
<commit_msg>Buttons need a default class in Bootstrap 3<commit_after><%= semantic_form_for(:activity, url: url, html: {class: 'button_to also_save_edition modal hide fade', id: id}) do |f| %>

  <div class="modal-header">
    <h3><%= title %></h3>
  </div>

  <div class="modal-body">

    <%= f.inputs do %>
      <input type="hidden" value="<%= activity %>" name="activity[request_type]">

      <%= f.input :comment, :as => :text, :input_html => { :class => 'col-md-12', :cols => 60, :rows => 6 } %>

      <% if activity == "send_fact_check" %>
        <%= f.input :email_addresses, :input_html => { :class => 'col-md-12' } %>

        <label id="activity_customised_message_input" for="activity_customised_message">Customised message<abbr title="required">*</abbr></label>
        <textarea rows="6" name="activity[customised_message]" id="activity_customised_message" cols="60" class="col-md-12">
          <%- @edition = @resource %>
<%= render :template => 'noisy_workflow/request_fact_check', formats: [:text] %>
        </textarea>
      <% end %>

      <% if activity == "schedule_for_publishing" %>
        <%= f.label :publish_at do %>
          Publish at <abbr title="required">*</abbr>
        <% end %>
        <%= f.time_select :publish_at, {}, { class: 'date' } %>
        &mdash;
        <%= f.date_select :publish_at, { order: [:day, :month, :year], default: Date.tomorrow, start_year: Date.today.year, end_year: Date.today.year.next }, { class: 'date' } %>
      <% end %>
    <% end %>
  </div>

  <div class="modal-footer">
    <a href="#" class="btn btn-default" data-dismiss="modal">Close</a>
    <input class="btn btn-success" name="commit" type="submit" value="Send">
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.20409982174688057, 'fraction_numerical': 0.00861556743909685, 'mean_word_length': 3.4655172413793105, 'pattern_counts': {'":': 0, '<': 79, '<?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': '7378137', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1127, 'n_words': 240}