<commit_before>
<div>
  <% if @user.uploaded_file_file_name.nil? %>
    <div><%= image_tag "default_pic.png", size: "200x200" %></div>
  <% else %>
    <div><%= image_tag @user.uploaded_file(:medium) %></div>
  <% end %>


  <div><%= @user.full_name %></div>
  <div><%= @user.course.full_description unless @user.course.blank? %></div>
  <% unless @user.current_city.blank? || @user.current_state.blank? %>
    <div>Location Icon: <%= @user.current_location %></div>
  <% end %>
  <div>Email Icon: <%= @user.email %></div>
  <% unless @user.github_profile.blank? %>
    <div>Github Icon: <%= @user.github_profile %></div>
  <% end %>
  <% unless @user.website.blank? %>
    <div>Website: <%= @user.website %></div>
  <% end %>
  <% unless @user.blog.blank? %>
    <div>Blog: <%= @user.blog %></div>
  <% end %>
  <% if @user.hiring %>
    <div>Hiring: Yes</div>
  <% end %>
  <% if @user.looking %>
    <div>Looking: Yes</div>
  <% end %>

  <h4><%= "#{current_user.full_name}'s" %> Work Experience</h1>

  <table>
    <thead>
      <tr>
        <th>Company</th>
        <th>Title</th>
        <th>Description</th>
        <th>Started on</th>
        <th>Ended on</th>
        <th>Current</th>
      </tr>
    </thead>

    <tbody>
      <% @user.positions.each do |position| %>
        <tr>

          <td><%= position.company.name_and_location %></td>
          <td><%= position.title %></td>
          <td><%= position.description %></td>
          <td><%= position.started_on %></td>
          <td><%= position.ended_on %></td>
          <td><%= position.current %></td>
        </tr>
      <% end %>
    </tbody>
  </table>


    <div>
      <%= link_to 'Edit Profile', edit_user_path(@user) if @user.id == current_user.id %>
      <%= link_to 'Change Password', edit_password_user_path(@user) if @user.id == current_user.id %>
      <%= link_to 'Alumni Directory', users_path %>
    </div>


  </div></br>
  </div>
<commit_msg>change current_user to @user in show page<commit_after>
<div>
  <% if @user.uploaded_file_file_name.nil? %>
    <div><%= image_tag "default_pic.png", size: "200x200" %></div>
  <% else %>
    <div><%= image_tag @user.uploaded_file(:medium) %></div>
  <% end %>


  <div><%= @user.full_name %></div>
  <div><%= @user.course.full_description unless @user.course.blank? %></div>
  <% unless @user.current_city.blank? || @user.current_state.blank? %>
    <div>Location Icon: <%= @user.current_location %></div>
  <% end %>
  <div>Email Icon: <%= @user.email %></div>
  <% unless @user.github_profile.blank? %>
    <div>Github Icon: <%= @user.github_profile %></div>
  <% end %>
  <% unless @user.website.blank? %>
    <div>Website: <%= @user.website %></div>
  <% end %>
  <% unless @user.blog.blank? %>
    <div>Blog: <%= @user.blog %></div>
  <% end %>
  <% if @user.hiring %>
    <div>Hiring: Yes</div>
  <% end %>
  <% if @user.looking %>
    <div>Looking: Yes</div>
  <% end %>

  <h4><%= "#{@user.full_name}'s" %> Work Experience</h1>

  <table>
    <thead>
      <tr>
        <th>Company</th>
        <th>Title</th>
        <th>Description</th>
        <th>Started on</th>
        <th>Ended on</th>
        <th>Current</th>
      </tr>
    </thead>

    <tbody>
      <% @user.positions.each do |position| %>
        <tr>

          <td><%= position.company.name_and_location %></td>
          <td><%= position.title %></td>
          <td><%= position.description %></td>
          <td><%= position.started_on %></td>
          <td><%= position.ended_on %></td>
          <td><%= position.current %></td>
        </tr>
      <% end %>
    </tbody>
  </table>


    <div>
      <%= link_to 'Edit Profile', edit_user_path(@user) if @user.id == current_user.id %>
      <%= link_to 'Change Password', edit_password_user_path(@user) if @user.id == current_user.id %>
      <%= link_to 'Alumni Directory', users_path %>
    </div>


  </div></br>
  </div>

{'fraction_non_alphanumeric': 0.22639567790069462, 'fraction_numerical': 0.004116285052739903, 'mean_word_length': 2.637043966323667, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, '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': '2462721', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1406, 'n_words': 268}