<commit_before>

<% if user_signed_in? %>

  Enter keywords you'd like to recieve updates on here. <br>

  <div class="keyword_list">
  <%= render "keywords/list" %>
  </div>

  <br>
  <%= form_for @keyword, remote: true do |f| %>
  <%= f.text_field :name %>
  <%= f.submit "Add Keyword" %>
  <% end %>
  <br>
  <br>

  <h2>Feed</h2><h5> <%= button_to "Refresh", "/articles", remote: true %></h5>
  <p>(from the last 24 hours)</p>
  <br>
  <%= form_for @keyword, remote: true, url: "/filter" do |f| %>
    <%= f.collection_select :id, current_user.keywords.order(:name),:id,:name, include_blank: "Show All" %>
    <%= f.submit "Filter by keyword"%>
  <% end %>

  <div class="article_list">
  <%= render "articles/list", :locals => {:articles => @articles} %>
  </div>

<%else %>
  <div align="center" class="container">
  Pubfeed automates your daily Pubmed searches. Sign up today.
  </div><commit_msg>adds back loading text and dots when refresh is clicked<commit_after>

<% if user_signed_in? %>

  Enter keywords you'd like to recieve updates on here. <br>

  <div class="keyword_list">
  <%= render "keywords/list" %>
  </div>

  <br>
  <%= form_for @keyword, remote: true do |f| %>
  <%= f.text_field :name %>
  <%= f.submit "Add Keyword" %>
  <% end %>
  <br>
  <br>

  <h2>Feed</h2><h5> <%= button_to "Refresh", "/articles", remote: true %></h5><div id="loading">Loading<span id="dots"></span></div>
  <p>(from the last 24 hours)</p>
  <br>
  <%= form_for @keyword, remote: true, url: "/filter" do |f| %>
    <%= f.collection_select :id, current_user.keywords.order(:name),:id,:name, include_blank: "Show All" %>
    <%= f.submit "Filter by keyword"%>
  <% end %>

  <div class="article_list">
  <%= render "articles/list", :locals => {:articles => @articles} %>
  </div>

<%else %>
  <div align="center" class="container">
  Pubfeed automates your daily Pubmed searches. Sign up today.
  </div>
{'fraction_non_alphanumeric': 0.20378151260504201, 'fraction_numerical': 0.0063025210084033615, 'mean_word_length': 3.8596938775510203, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 71, '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': '4599376', 'n_tokens_mistral': 765, 'n_tokens_neox': 683, 'n_words': 184}