<commit_before><div class="story">
  <h2><%= @story.title %></h2>
  <%= @story.content.html_safe %>
  <p>
    <em><%= @story.user.author %></em>
    <% if has_right?(:section => :stories, :id => @story.id) %>
      | <%= link_to t(:edit), edit_story_path(@story) %>
      | <%= link_to t(:destroy), @story, confirm: t(:are_you_sure), method: :delete %>
    <% end %>
  </p>
  
  <h3><%=t :comments %></h3>
  <%= render @story.comments %>
  
  <h3><%=t :add_comment %></h3>
  <%= form_for([@story, @story.comments.build]) do |f| %>
    <div class="field">
      <% if current_user.nil? %>
        <%= f.label :author, t(:author) %><br />
        <%= f.text_field :author %>
      <% else %>
        <!--<%= f.label :author, current_user.author %>-->
        <%= f.hidden_field :author, :value => current_user.author %>    
        <%= f.hidden_field :user_id, :value => current_user.id %>    
      <% end %>
    </div>
    <div class="field">
      <!--<%= f.label :body, t(:comment) %><br />-->
      <%= f.text_area :body %>
    </div>
    <div class="actions">
      <%= f.submit %>
    </div>
  <% end %>
</div>
<commit_msg>Improve look of the comments<commit_after><div class="story">
  <h2><%= @story.title %></h2>
  <%= @story.content.html_safe %>
  <p>
    <em><%= @story.user.author %></em>
    <% if has_right?(:section => :stories, :id => @story.id) %>
      | <%= link_to t(:edit), edit_story_path(@story) %>
      | <%= link_to t(:destroy), @story, confirm: t(:are_you_sure), method: :delete %>
    <% end %>
  </p>
  
  <h3><%=t :comments %></h3>
  <%= render @story.comments %>
  
  <h3><%=t :add_comment %></h3>
  <%= form_for([@story, @story.comments.build]) do |f| %>
    <div class="field">
      <% if current_user.nil? %>
        <%= f.label :author, t(:author) %><br />
        <%= f.text_field :author %>
      <% else %>
        <%= f.hidden_field :author, :value => current_user.author %>    
        <%= f.hidden_field :user_id, :value => current_user.id %>    
      <% end %>
    </div>
    <div class="field">
      <%= f.label :body, t(:comment) %><br />
      <%= f.text_area :body %>
    </div>
    <div class="actions">
      <%= f.submit %>
    </div>
  <% end %>
</div>

{'fraction_non_alphanumeric': 0.2471655328798186, 'fraction_numerical': 0.005442176870748299, 'mean_word_length': 2.56957928802589, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 98, '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': '6414721', 'n_tokens_mistral': 907, 'n_tokens_neox': 823, 'n_words': 157}