<commit_before><h2 class="page-heading">My Profile</h2>

<% if notice %>
  <section class="row">
    <p id="notice" class="small-12 small-centered medium-8 columns"><%= notice %></p>
  </section>
<% end %>

<article class="row">
  <div class="small-12 medium-4 medium-centered columns">
    <ul id="user-details" class="no-bullet">
      <li>
        <span>Username</span> <%= @user.username %>
      </li>    
      <li>
        <span>Email address</span> <%= @user.email %>
      </li>
      <li>
        <span>User type</span> <%= @user.role %>
      </li>
      <li>
        You joined Portal <%= distance_of_time_in_words(@user.created_at, Time.now) %> ago!
      </li>
    </ul>
  </div>
  <div class="small-12 medium-8 medium-centered text-center columns">
    <% if current_user.id == @user.id %>
      <%= link_to 'Edit', edit_user_path(@user), class: "action-button" %>
      <%= link_to 'Delete', @user, method: :delete, data: { confirm: 'Deleting your profile is permanent. Are you sure you want to delete it?' }, class: "action-button" %>
    <% end %>
  </div>
</article>
<commit_msg>Removed delete button from this page<commit_after><h2 class="page-heading">My Profile</h2>

<% if notice %>
  <section class="row">
    <p id="notice" class="small-12 small-centered medium-8 columns"><%= notice %></p>
  </section>
<% end %>

<article class="row">
  <div class="small-12 medium-4 medium-centered columns">
    <ul id="user-details" class="no-bullet">
      <li>
        <span>Username</span> <%= @user.username %>
      </li>    
      <li>
        <span>Email address</span> <%= @user.email %>
      </li>
      <li>
        <span>User type</span> <%= @user.role %>
      </li>
      <li>
        You joined Portal <%= distance_of_time_in_words(@user.created_at, Time.now) %> ago!
      </li>
    </ul>
  </div>
  <div class="small-12 medium-8 medium-centered text-center columns">
    <% if current_user.id == @user.id %>
      <%= link_to 'Edit', edit_user_registration_path, class: "action-button" %>
    <% end %>
  </div>
</article>

{'fraction_non_alphanumeric': 0.1943497320993668, 'fraction_numerical': 0.01071602532878714, 'mean_word_length': 2.8609022556390977, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '5378676', 'n_tokens_mistral': 750, 'n_tokens_neox': 688, 'n_words': 163}