<commit_before><% if @article.is_favorited?(current_user) %>
  <%= form_tag unfavorite_article_path, method: :delete, :html => {class: "unfavorite-form"} do |f| %>
    <%= hidden_field_tag :article_id, @article.id %>
  <button class="fave-button"><i class="fa fa-bookmark-o" class="bookmark" aria-hidden="true"></i></button>
    <% end %>

  <% else %>
  <%= form_tag favorite_article_path, method: :create, :html => {class: "favorite-form"} do |f| %>
    <%= hidden_field_tag :article_id, @article.id %>
  <button class="fave-button"><i class="fa fa-bookmark-o" class="bookmark" aria-hidden="true"></i></button>
    <%end%>
<% end %>
    <commit_msg>Add new bookmark button<commit_after><% if @article.is_favorited?(current_user) %>
  <%= form_tag unfavorite_article_path, method: :delete, :html => {class: "unfavorite-form"} do |f| %>
    <%= hidden_field_tag :article_id, @article.id %>
  <button class="fave-button"><i class="fa fa-bookmark-o" class="bookmark" aria-hidden="true"></i></button>
    <% end %>

  <% else %>
  <%= form_tag favorite_article_path, method: :create, :html => {class: "favorite-form"} do |f| %>
    <%= hidden_field_tag :article_id, @article.id %>
  <button class="fave-button"><i class="fa fa-bookmark" class="bookmark" aria-hidden="true"></i></button>
    <%end%>
<% end %>
    
{'fraction_non_alphanumeric': 0.2099236641221374, 'fraction_numerical': 0.0, 'mean_word_length': 4.986301369863014, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 41, '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': '6260526', 'n_tokens_mistral': 497, 'n_tokens_neox': 464, 'n_words': 89}