<commit_before><div class="col-sm-3 col-md-2 sidebar">
  <div class="row placeholders-sidebar">
    <div class="col-xs-6 col-sm-3 placeholder-sidebar">
      <img src="<%= @user.profile_image %>" width="200" height="200" class="img-responsive" alt="Boot profile image">
      <h4><%=  @user.name %></h4>
      <span class="text-muted">
        <% if @user.is_graduate %>
          Graduate
        <% else %>
          Student
        <% end %>
      </span>

    </div>
  </div>
  <!-- Social Links -->
  <div class='social-links'>
    <% if @user.linkedin != "" %>
      <a href="<%= @user.linkedin %>" target="_blank" class="btn btn-social-icon btn-linkedin">
        <span class="fa fa-linkedin"></span>
      </a>
    <% end %>
    <% if @user.github != "" %>
      <a href="<%= @user.github %>" target="_blank" class="btn btn-social-icon btn-github">
        <span class="fa fa-github"></span>
      </a>
    <% end %>
    <% if @user.facebook != "" %>
      <a href="<%= @user.facebook %>" target="_blank" class="btn btn-social-icon btn-facebook">
        <span class="fa fa-facebook"></span>
      </a>
    <% end %>
    <% if @user.twitter != "" %>
      <a href="<%= @user.twitter %>" target="_blank" class="btn btn-social-icon btn-twitter">
        <span class="fa fa-twitter"></span>
      </a>
    <% end %>
    <% if @user.employ != "" %>
      <a href="<%= @user.employ %>" target="_blank"> Employ Profile</a>
    <% end %>
  </div>
  <!-- DBC Info -->
  <div class='dbc-info'>
    <p>Quirk: <%= @user.quirk %></p>
    <p>Love: <%= @user.love %></p>
    <p><% @user.cohorts.reverse.each do |cohort| %>
      <%= cohort.name %><br>
    <% end %>
    <%= @user.cohorts.last.campus %> '<%= @user.cohorts.last.graduation_date.to_s.slice(2,2) %>
    </p>
  </div>
  <!-- Location Info -->
  <div class='location-info'>
    <% if @user.country == 'US' %>
      <p><%= @user.city %>, <%= @user.state %></p>
    <% else %>
      <p><%= @user.city %>, <%= @user.country %></p>
    <% end %>
  </div>
  <!-- Employment Info -->
  <% if @user.employment_status != 'unemployed' %>
    <div class='employment-info'>
      <p>Employer: <%= @user.employer %></p>
      <p>Role: <%= @user.role %></p>
    </div>
  <% end %>
  <!-- Interests -->
  <div class='interests-info'>
    <p>Interests:<br>
    <% @user.interests.each do |interest| %>
      <%= interest.interest %><br>
    <% end %></p>
  </div>
  <% if @user == current_user %>
    <a href="/users/<%= @user.id %>/edit"><button type="button" class="btn btn-primary btn-small">Edit</button></a>
  <% end %>



</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<% if flash[:danger] %>
  <div class="alert alert-danger">
    <% flash[:danger].each do |error|%>
      <%= error %><br>
    <% end %>
  </div>
  <% elsif flash[:success] %>
  <div class="alert alert-success">
    <%= flash[:success] %>
  </div>
<% end %>


</div>
<commit_msg>Fixed social links & logic in users/show<commit_after><div class="col-sm-3 col-md-2 sidebar">
  <div class="row placeholders-sidebar">
    <div class="col-xs-6 col-sm-3 placeholder-sidebar">
      <img src="<%= @user.profile_image %>" width="200" height="200" class="img-responsive" alt="Boot profile image">
      <h4><%=  @user.name %></h4>
      <span class="text-muted">
        <% if @user.is_graduate %>
          Graduate
        <% else %>
          Student
        <% end %>
      </span>

    </div>
  </div>
  <!-- Social Links -->
  <div class='social-links'>
    <% if @user.linkedin %>
      <a href="<%= @user.linkedin %>" target="_blank" class="btn btn-social-icon btn-linkedin">
        <span class="fa fa-linkedin"></span>
      </a>
    <% end %>

    <% if @user.github %>
      <a href="<%= @user.github %>" target="_blank" class="btn btn-social-icon btn-github">
        <span class="fa fa-github"></span>
      </a>
    <% end %>

    <% if @user.facebook %>
      <a href="<%= @user.facebook %>" target="_blank" class="btn btn-social-icon btn-facebook">
        <span class="fa fa-facebook"></span>
      </a>
    <% end %>

    <% if @user.twitter %>
      <a href="<%= @user.twitter %>" target="_blank" class="btn btn-social-icon btn-twitter">
        <span class="fa fa-twitter"></span>
      </a>
    <% end %>
    <br>

    <% if @user.employ %>
      <a href="<%= @user.employ %>" target="_blank"> Employ Profile</a>
    <% end %>
    <br>

    <% if @user.personal_website %>
      <a href="<%= @user.personal_website %>" target="_blank">Personal Website</a>
    <% end %>
  </div>
  <!-- DBC Info -->
  <div class='dbc-info'>
    <p>Quirk: <%= @user.quirk %></p>
    <p>Love: <%= @user.love %></p>
    <p><% @user.cohorts.reverse.each do |cohort| %>
      <%= cohort.name %><br>
    <% end %>
    <%= @user.cohorts.last.campus %> '<%= @user.cohorts.last.graduation_date.to_s.slice(2,2) %>
    </p>
  </div>
  <!-- Location Info -->
  <div class='location-info'>
    <% if @user.country == 'US' %>
      <p><%= @user.city %>, <%= @user.state %></p>
    <% else %>
      <p><%= @user.city %>, <%= @user.country %></p>
    <% end %>
  </div>
  <!-- Employment Info -->
  <% if @user.employment_status != 'unemployed' %>
    <div class='employment-info'>
      <p>Employer: <%= @user.employer %></p>
      <p>Role: <%= @user.role %></p>
    </div>
  <% end %>
  <!-- Interests -->
  <div class='interests-info'>
    <p>Interests:<br>
    <% @user.interests.each do |interest| %>
      <%= interest.interest %><br>
    <% end %></p>
  </div>
  <% if @user == current_user %>
    <a href="/users/<%= @user.id %>/edit"><button type="button" class="btn btn-primary btn-small">Edit</button></a>
  <% end %>



</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<% if flash[:danger] %>
  <div class="alert alert-danger">
    <% flash[:danger].each do |error|%>
      <%= error %><br>
    <% end %>
  </div>
  <% elsif flash[:success] %>
  <div class="alert alert-success">
    <%= flash[:success] %>
  </div>
<% end %>


</div>

{'fraction_non_alphanumeric': 0.24437406234372394, 'fraction_numerical': 0.006334389064844141, 'mean_word_length': 2.548196333530455, 'pattern_counts': {'":': 0, '<': 260, '<?xml version=': 0, '>': 260, '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': '4712614', 'n_tokens_mistral': 2371, 'n_tokens_neox': 2125, 'n_words': 435}