<commit_before><section class="appSection">
  <h1>Settings</h1>
  <%= link_to "Go back to dashboard".html_safe, dashboard_path %>

  <div class="settingsWrapper">
    <div class="settingsSection">
      <% unless @user.google_id || self_hosted? %>
        <p>If you'd like to sign in to Volition with your Google account, click below.</p>
        <%= render partial: "sessions/google_sign_in" %>
        <%= hidden_field_tag :google_id, id: 'google_id_token' %>
      <% end %>

      <div class="settingsCard">
        <h2 class="settingsHeading">Subscription</h2>

        <% if !self_hosted? %>
          <% if @subscription.active? %>
            <div class="subscriptionCard">
              <%= image_tag "paid" %>
              <div class="headerText">
                <h4>Volition <%= @subscription.name %> Subscription</h4>
                <p>Renews on <%= @subscription.current_period_end.strftime("%B %e, %Y") %></p>
              </div>
              <hr>
              <p>Thank you for your support. Your subscription allows us to to keep making Volition better.</p>
              <%= link_to "Cancel subscription", subscription_path(@subscription), class: "cancelLink",  method: :delete, data: { confirm: "Are you sure?" } %>
            </div>
            <% unless @subscription.coupon&.include?("gift") %>
              <h3>Credit Card Details</h3>
              <p>Name: <%= current_user.name %></p>
              <p>Card Number:  •••• •••• •••• <%= @subscription.card_last4 %></p>
              <p>Expiry: <%= @subscription.card_expiration.strftime("%m/%Y") %></p>
              <%= link_to "Update billing info",
                edit_payment_path(current_user.id),<commit_msg>Add conditional to account to friends and family discount.<commit_after><section class="appSection">
  <h1>Settings</h1>
  <%= link_to "Go back to dashboard".html_safe, dashboard_path %>

  <div class="settingsWrapper">
    <div class="settingsSection">
      <% unless @user.google_id || self_hosted? %>
        <p>If you'd like to sign in to Volition with your Google account, click below.</p>
        <%= render partial: "sessions/google_sign_in" %>
        <%= hidden_field_tag :google_id, id: 'google_id_token' %>
      <% end %>

      <div class="settingsCard">
        <h2 class="settingsHeading">Subscription</h2>

        <% if !self_hosted? %>
          <% if @subscription.active? %>
            <div class="subscriptionCard">
              <%= image_tag "paid" %>
              <div class="headerText">
                <h4>Volition <%= @subscription.name %> Subscription</h4>
                <p>Renews on <%= @subscription.current_period_end.strftime("%B %e, %Y") %></p>
              </div>
              <hr>
              <p>Thank you for your support. Your subscription allows us to to keep making Volition better.</p>
              <%= link_to "Cancel subscription", subscription_path(@subscription), class: "cancelLink",  method: :delete, data: { confirm: "Are you sure?" } %>
            </div>
            <% unless @subscription.coupon&.include?("gift") || @subscription.stripe_token.nil? %>
              <h3>Credit Card Details</h3>
              <p>Name: <%= current_user.name %></p>
              <p>Card Number:  •••• •••• •••• <%= @subscription.card_last4 %></p>
              <p>Expiry: <%= @subscription.card_expiration.strftime("%m/%Y") %></p>
              <%= link_to "Update billing info",
                edit_payment_path(current_user.id),
{'fraction_non_alphanumeric': 0.16051873198847263, 'fraction_numerical': 0.005187319884726225, 'mean_word_length': 2.4571713147410357, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 91, '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': '2202941', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1036, 'n_words': 238}