<commit_before><h2>Available Stories </h2>
<p>The following stories are available for you to subscribe to. To subscribe, click the green arrow and choose a name for yourself.</p>

<% @available_stories.each do  | story | %>
  <div class="subscription_form <%= "no-chapters" if story.chapters.empty? %>">

    <%= form_tag account_add_subscription_path do %>
    <%= hidden_field_tag :story_id, story.id %>

      <div class="row collapse">
        <div class="small-12 columns">
          <h3 class="story-title"><%= story %></h3>
        </div>
      </div>

      <div class="row bottom-seperator collapse">
        <div class="small-10 columns">
          <%=raw truncate_html(story.about, length: 200, ommission: '...') %>
          <p>Currently <%= story.chapters.count %> chapters available...</p>

          <div class="row ">
            <div class="small-2 columns">
              <span id="<%= story.id %>" class="show-subscribe button tiny success radius"><%= fa_icon('angle-double-down') %></span>
            </div>
            <div class="small-10 columns">
              <div id="<%= story.id %>" class="row hidden toggable collapse">
                <div class="small-7 columns ">
                  <%= text_field_tag :username, "", placeholder: 'Join story with username', class: 'postfix' %>
                </div>
                <div class="small-4 columns end">
                  <p><button class="button postfix"><%= fa_icon('check') %> Join</button></p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    <% end %>
  </div>
<% end %>

<p>Not enough stories? <span id="show-all-stories" class="link-like">Click here</span> to show stories that are yet to have any chapters</p><commit_msg>added user name to story list<commit_after><h2>Available Stories </h2>
<p>The following stories are available for you to subscribe to. To subscribe, click the green arrow and choose a name for yourself.</p>

<% @available_stories.each do  | story | %>
  <div class="subscription_form <%= "no-chapters" if story.chapters.empty? %>">

    <%= form_tag account_add_subscription_path do %>
    <%= hidden_field_tag :story_id, story.id %>

      <div class="row collapse">
        <div class="small-12 columns">
          <h3 class="story-title"><%= story %></h3>
          <p>Created by <%= story.user.present? ? story.user.full_name : "Unknown"  %></p>
        </div>
      </div>

      <div class="row bottom-seperator collapse">
        <div class="small-10 columns">
          <%=raw truncate_html(story.about, length: 200, ommission: '...') %>
          <p>Currently <%= story.chapters.count %> chapters available...</p>

          <div class="row ">
            <div class="small-2 columns">
              <span id="<%= story.id %>" class="show-subscribe button tiny success radius"><%= fa_icon('angle-double-down') %></span>
            </div>
            <div class="small-10 columns">
              <div id="<%= story.id %>" class="row hidden toggable collapse">
                <div class="small-7 columns ">
                  <%= text_field_tag :username, "", placeholder: 'Join story with username', class: 'postfix' %>
                </div>
                <div class="small-4 columns end">
                  <p><button class="button postfix"><%= fa_icon('check') %> Join</button></p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    <% end %>
  </div>
<% end %>

<p>Not enough stories? <span id="show-all-stories" class="link-like">Click here</span> to show stories that are yet to have any chapters</p>
{'fraction_non_alphanumeric': 0.1663469443683201, 'fraction_numerical': 0.008769525897506167, 'mean_word_length': 2.3031674208144794, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 0, '>': 114, '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': '4326557', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1055, 'n_words': 292}