<commit_before><% if current_user && object.subscribable? -%>
    <% if object.subscribed? %>
        <%= button_link_to 'Unsubscribe' 'unsubscribe', object.current_users_subscription, :method => :delete-%>
    <% else %>
        <%=form_for Subscription.new(:subscribable => object, :person => current_user.person), :html => {:style => 'display:inline;', :id => 'new_subscription'} do |f| %>
            <%= f.hidden_field :subscribable_id -%>
            <%= f.hidden_field :subscribable_type -%>
            <%= f.hidden_field :person_id -%>
        <% end %>
        <%= image_tag_for_key "subscribe", "$('new_subscription').submit()", nil, {:class => 'btn btn-default'}, 'Subscribe', :function %>
    <% end %>
<% end %><commit_msg>Fixed image on unsubscribe button<commit_after><% if current_user && object.subscribable? -%>
    <% if object.subscribed? %>
        <%= button_link_to 'Unsubscribe', 'unsubscribe', object.current_users_subscription, :method => :delete-%>
    <% else %>
        <%=form_for Subscription.new(:subscribable => object, :person => current_user.person), :html => {:style => 'display:inline;', :id => 'new_subscription'} do |f| %>
            <%= f.hidden_field :subscribable_id -%>
            <%= f.hidden_field :subscribable_type -%>
            <%= f.hidden_field :person_id -%>
        <% end %>
        <%= image_tag_for_key "subscribe", "$('new_subscription').submit()", nil, {:class => 'btn btn-default'}, 'Subscribe', :function %>
    <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.19464882943143813, 'fraction_numerical': 0.0, 'mean_word_length': 3.4391691394658754, 'pattern_counts': {'":': 0, '<': 27, '<?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': '3943316', 'n_tokens_mistral': 503, 'n_tokens_neox': 469, 'n_words': 90}