<commit_before><div class="story">
  <h6><%= story.title.capitalize %></h6>
  <%= story.content %> </br></br></br>
  By: <%= story.author.name %> </br></br>
  Published on: <%= story.date_published %> </br>

  <% if author?(story) %>
    <a href="/story/<%= story.id %>/edit" class="edit_button">Edit</a>
    <div class="delete_button">
      <form action="/story/<%= story.id %>" method="POST">
        <input type="hidden" name="_method" value="DELETE">
        <!-- check if this is needed -->
        <input type="hidden" name="story_id" value="<%= story.id %>">
        <button type="submit" class="button_style">Delete</button>
      </form>
    </div>
  <% end %>

  <hr>

  <div class="new_comment_box">
    <%= erb :'comments/new', locals: {story: story} %>
  </div>

  <ul class="comment_list">
    <% story.comments.each do |comment| %>
      <li><%= erb :'comments/show', locals: {story: story, comment: comment} %></li>
    <% end %>
  </ul>
</div>
<commit_msg>fix new comment box and comment list show<commit_after><div class="story">
  <h6><%= story.title.capitalize %></h6>
  <%= story.content %> </br></br></br>
  By: <%= story.author.name %> </br></br>
  Published on: <%= story.date_published %> </br>

  <% if author?(story) %>
    <a href="/story/<%= story.id %>/edit" class="edit_button">Edit</a>
    <div class="delete_button">
      <form action="/story/<%= story.id %>" method="POST">
        <input type="hidden" name="_method" value="DELETE">
        <!-- check if this is needed -->
        <input type="hidden" name="story_id" value="<%= story.id %>">
        <button type="submit" class="button_style">Delete</button>
      </form>
    </div>
  <% end %>

  <hr>

  <div class="comments">
    <div class="new_comment_box">
      <%= erb :'comments/new', locals: {story_id: story.id} %>
    </div>

    <ul class="comment_list">
      <% story.comments.each do |comment| %>
        <li><%= erb :'comments/show', locals: {story: story, comment: comment}, layout: false %></li>
      <% end %>
    </ul>
  </div>
</div>

{'fraction_non_alphanumeric': 0.23106985832926233, 'fraction_numerical': 0.0019540791402051783, 'mean_word_length': 3.1373737373737374, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '485955', 'n_tokens_mistral': 750, 'n_tokens_neox': 693, 'n_words': 158}