<commit_before><% provide(:title, "Profile | ") %>
      <div class="col-md-5  toppad  pull-right col-md-offset-3 ">
           <% if (user_signed_in? && @user.id == current_user.id) %>
             <a href="/users/edit.<%=@user.id%>" class="btn btn-success profile-button" role="button">Edit Profile</a>
           <% end %>
       <br>
      </div>

<div class="container">
  <h1>Profile</h1>
  <div class="panel-group">
    <div class="panel panel-success">
      <div class="panel-heading"> <%= @user.first_name %> <%= @user.last_name %> </div>
      <div class="panel-body">

<!-- ensures that either the user who's profile it is or an organization are the ones trying to view the profile -->
<% if (user_signed_in? && @user.id == current_user.id) || organization_signed_in? %>
  <p>
    <strong>Name:</strong>
    <%= @user.first_name %>
    <%= @user.last_name %>
  </p>

  <!-- hides the information that is private from organizations if the user has marked private -->
  <% if !@user.private || (user_signed_in? && @user.id == current_user.id)%>

    <p>
      <strong>Address:</strong>
      <%= @user.address %>
    </p>

    <p>
      <strong>City:</strong>
      <%= @user.city %>
    </p>

    <p>
      <strong>State:</strong>
      <%= @user.state %>
    </p>

    <p>
      <strong>Zip:</strong>
      <%= @user.zip_code %>
    </p>

    <p>
      <strong>Phone:</strong>
      (<%= @user.phone_number[0,3] %>) <%= @user.phone_number[3,3] %>-<%= @user.phone_number[6,4] %>
    </p>

    <p>
      <strong>Email:</strong>
      <%= mail_to @user.email %>
    </p>

    <p><br></p>


  <% end %>

  <!-- if this is the current user's profile displays a calendar with only event they've signed up for and a link to allow them to edit their profile -->
  <% if (user_signed_in? && @user.id == current_user.id) %>

  <h2>  <%= @user.first_name%>'s Upcoming Events</h3>

<table>
    <tr>
      <th>Title</th>
      <th>Description</th>
      <th>Start time</th>
      <th>End time</th>
      <th>Number of volunteers needed</th><commit_msg>users/profile/show: Fix header tag mismatch.<commit_after><% provide(:title, "Profile | ") %>
      <div class="col-md-5  toppad  pull-right col-md-offset-3 ">
           <% if (user_signed_in? && @user.id == current_user.id) %>
             <a href="/users/edit.<%=@user.id%>" class="btn btn-success profile-button" role="button">Edit Profile</a>
           <% end %>
       <br>
      </div>

<div class="container">
  <h1>Profile</h1>
  <div class="panel-group">
    <div class="panel panel-success">
      <div class="panel-heading"> <%= @user.first_name %> <%= @user.last_name %> </div>
      <div class="panel-body">

<!-- ensures that either the user who's profile it is or an organization are the ones trying to view the profile -->
<% if (user_signed_in? && @user.id == current_user.id) || organization_signed_in? %>
  <p>
    <strong>Name:</strong>
    <%= @user.first_name %>
    <%= @user.last_name %>
  </p>

  <!-- hides the information that is private from organizations if the user has marked private -->
  <% if !@user.private || (user_signed_in? && @user.id == current_user.id)%>

    <p>
      <strong>Address:</strong>
      <%= @user.address %>
    </p>

    <p>
      <strong>City:</strong>
      <%= @user.city %>
    </p>

    <p>
      <strong>State:</strong>
      <%= @user.state %>
    </p>

    <p>
      <strong>Zip:</strong>
      <%= @user.zip_code %>
    </p>

    <p>
      <strong>Phone:</strong>
      (<%= @user.phone_number[0,3] %>) <%= @user.phone_number[3,3] %>-<%= @user.phone_number[6,4] %>
    </p>

    <p>
      <strong>Email:</strong>
      <%= mail_to @user.email %>
    </p>

    <p><br></p>


  <% end %>

  <!-- if this is the current user's profile displays a calendar with only event they've signed up for and a link to allow them to edit their profile -->
  <% if (user_signed_in? && @user.id == current_user.id) %>

  <h3><%= @user.first_name %>'s Upcoming Events</h3>

<table>
    <tr>
      <th>Title</th>
      <th>Description</th>
      <th>Start time</th>
      <th>End time</th>
      <th>Number of volunteers needed</th>
{'fraction_non_alphanumeric': 0.1999031945788964, 'fraction_numerical': 0.005808325266214908, 'mean_word_length': 2.6033129904097647, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, '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': '4995456', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1424, 'n_words': 328}