<commit_before><div class="comment comment_form_container"
data-shortid="<%= comment.short_id if comment.persisted? %>">
<%= form_for comment,
:html => { :id => "edit_comment_#{comment.short_id}" } do |f| %>
  <% if comment.errors.any? %>
    <%= errors_for comment %>
  <% end %>

  <%= hidden_field_tag "story_id", comment.story.short_id %>

  <% if comment.parent_comment %>
    <%= hidden_field_tag "parent_comment_short_id",
      comment.parent_comment.short_id %>
  <% end %>

  <div style="width: 100%;">
    <%= text_area_tag "comment", comment.comment, :rows => 5,
      :style => "width: 100%;", :autocomplete => "off", 
      :placeholder => ""
      %>

    <p></p>

    <div class="markdown_help_toggler byline">
        <div class="markdown_help_label">
          Markdown formatting available
        </div>
        <div class="markdown_help_label markdown_help_label_mobile"
        style="display: none;">
          [M&darr;]
        </div>

      <% if @user %>
      <%= button_tag "#{comment.new_record?? "Post Anonymously" : "Update"}",
        :class => "comment-post-as-anon", :type => "button"%>
      &nbsp;
      <% end %>

      <%= button_tag "#{comment.new_record?? "Post" : "Update"}",
        :class => "comment-post", :type => "button"%>
      &nbsp;
      <%= button_tag "Preview", :class => "comment-preview",
        :type => "button" %>
      <% if comment.persisted? || comment.parent_comment_id %>
        &nbsp;
        <%= button_tag "Cancel", :class => "comment-cancel",
          :type => "button" %>
      <% end %>


      <% if @user && @user.hats.any? %>
        <div style="display: inline-block; margin-left: 1em;">
        Put on hat:
        <%= select_tag "hat_id",
          options_from_collection_for_select(@user.hats, "id", "hat",<commit_msg>going to the gym brb<commit_after><div class="comment comment_form_container"
data-shortid="<%= comment.short_id if comment.persisted? %>">
<%= form_for comment,
:html => { :id => "edit_comment_#{comment.short_id}" } do |f| %>
  <% if comment.errors.any? %>
    <%= errors_for comment %>
  <% end %>

  <%= hidden_field_tag "story_id", comment.story.short_id %>

  <% if comment.parent_comment %>
    <%= hidden_field_tag "parent_comment_short_id",
      comment.parent_comment.short_id %>
  <% end %>

  <div style="width: 100%;">
    <%= text_area_tag "comment", comment.comment, :rows => 5,
      :style => "width: 100%;", :autocomplete => "off", 
      :placeholder => ""
      %>

    <p></p>

    <div class="markdown_help_toggler byline">
        <div class="markdown_help_label">
          Markdown formatting available
        </div>
        <div class="markdown_help_label markdown_help_label_mobile"
        style="display: none;">
          [M&darr;]
        </div>

      <% if @user %>
      <%= button_tag "#{comment.new_record?? "Post as Anonymous" : "Update"}",
        :class => "comment-post-as-anon", :type => "button"%>
      &nbsp;
      <% end %>

      <%= button_tag "#{comment.new_record?? "Post" : "Update"}",
        :class => "comment-post", :type => "button"%>
      &nbsp;
      <%= button_tag "Preview", :class => "comment-preview",
        :type => "button" %>
      <% if comment.persisted? || comment.parent_comment_id %>
        &nbsp;
        <%= button_tag "Cancel", :class => "comment-cancel",
          :type => "button" %>
      <% end %>


      <% if @user && @user.hats.any? %>
        <div style="display: inline-block; margin-left: 1em;">
        Put on hat:
        <%= select_tag "hat_id",
          options_from_collection_for_select(@user.hats, "id", "hat",
{'fraction_non_alphanumeric': 0.1858014420410427, 'fraction_numerical': 0.004437049362174155, 'mean_word_length': 2.8128964059196617, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 89, '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': '5614619', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1170, 'n_words': 232}