<commit_before><% content_for :title, t(:share_file) -%>

<h1><%= content_for :title %></h1>
<%= form_for [@file, @share_link], :url => { :action => 'create' } do |f| %>
  <%= f.error_messages :header_message => t(:share_link_could_not_be_sent) %>
  <p>
    <%= t :you_are_about_to_share_the_following_file %>:<br>
    <span class="shared_file">
      <%= image_tag(file_icon(@file.extension)) %>
      <%= link_to @file.attachment_file_name, @folder %>
    </span>
  </p>
  <p>
    <%= f.label :emails, t(:emails_to_share_with) %>:
    <span class="comma_seperated">(<%= t :comma_seperated %>)</span><br>
    <%= f.text_area :emails, :class => 'emails_to_share_with' %><br>
    <span class="char_counter">
      <%= t :number_of_charachters %>:
      <span id="counter">
        <%= @share_link.emails.nil? ? 0 : @share_link.emails.length %>
      </span>
      / 256
    </span>
  </p>
  <p>
    <%= f.label :message, t(:shared_message) %>:<br />
    <%= f.text_area :message, :class => 'message_to_share_with' %><br />
  </p>
  <p>
    <%= f.label t(:link_expires) %>:<br>
    <%= f.select :link_expires_at, options_for_select([
        [t(:tomorrow), 1.day.from_now.end_of_day],
        [t(:three_days_from_now), 3.day.from_now.end_of_day],
        [t(:one_week_from_now), 1.week.from_now.end_of_day],
        [t(:ten_days_from_now), 10.days.from_now.end_of_day],
        [t(:two_weeks_from_now), 2.weeks.from_now.end_of_day],
        [t(:three_weeks_from_now), 3.weeks.from_now.end_of_day],
        [t(:one_month_from_now), 1.month.from_now.end_of_day],
        [t(:two_months_from_now), 2.months.from_now.end_of_day],
        [t(:three_months_from_now), 3.months.from_now.end_of_day],
        [t(:half_year_from_now), 6.months.from_now.end_of_day]
    ], 2.weeks.from_now.end_of_day) %>
  </p>
  <p>
    <%= f.submit t(:share) %> &nbsp; &mdash; &nbsp;
    <%= link_to t(:back), @folder %>
  </p>
<% end %><commit_msg>Better name for css class<commit_after><% content_for :title, t(:share_file) -%>

<h1><%= content_for :title %></h1>
<%= form_for [@file, @share_link], :url => { :action => 'create' } do |f| %>
  <%= f.error_messages :header_message => t(:share_link_could_not_be_sent) %>
  <p>
    <%= t :you_are_about_to_share_the_following_file %>:<br>
    <span class="shared_file">
      <%= image_tag(file_icon(@file.extension)) %>
      <%= link_to @file.attachment_file_name, @folder %>
    </span>
  </p>
  <p>
    <%= f.label :emails, t(:emails_to_share_with) %>:
    <span class="comma_seperated">(<%= t :comma_seperated %>)</span><br>
    <%= f.text_area :emails, :class => 'emails_to_share_with' %><br>
    <span class="char_counter">
      <%= t :number_of_charachters %>:
      <span id="counter">
        <%= @share_link.emails.nil? ? 0 : @share_link.emails.length %>
      </span>
      / 256
    </span>
  </p>
  <p>
    <%= f.label :message, t(:shared_message) %>:<br />
    <%= f.text_area :message, :class => 'share_message' %><br />
  </p>
  <p>
    <%= f.label t(:link_expires) %>:<br>
    <%= f.select :link_expires_at, options_for_select([
        [t(:tomorrow), 1.day.from_now.end_of_day],
        [t(:three_days_from_now), 3.day.from_now.end_of_day],
        [t(:one_week_from_now), 1.week.from_now.end_of_day],
        [t(:ten_days_from_now), 10.days.from_now.end_of_day],
        [t(:two_weeks_from_now), 2.weeks.from_now.end_of_day],
        [t(:three_weeks_from_now), 3.weeks.from_now.end_of_day],
        [t(:one_month_from_now), 1.month.from_now.end_of_day],
        [t(:two_months_from_now), 2.months.from_now.end_of_day],
        [t(:three_months_from_now), 3.months.from_now.end_of_day],
        [t(:half_year_from_now), 6.months.from_now.end_of_day]
    ], 2.weeks.from_now.end_of_day) %>
  </p>
  <p>
    <%= f.submit t(:share) %> &nbsp; &mdash; &nbsp;
    <%= link_to t(:back), @folder %>
  </p>
<% end %>
{'fraction_non_alphanumeric': 0.2031168831168831, 'fraction_numerical': 0.00935064935064935, 'mean_word_length': 3.5899880810488676, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 103, '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': '3932632', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1592, 'n_words': 222}