<commit_before><div class="container">

  <div id="friends">
    <h2>Friends</h2>
    <button id='friendslistButton' action='/friends' type="submit">All Friends</button>  <button id='friendrequestButton' action='/friendrequests' type="submit">Friend Request</button>

    <form id='search' action='/searchfriends' method='GET'>
      <input type='text' name='email' placeholder='saech by email'>
      <button type="submit" >Search</button>
    </form>
    <ul id='friendlist'><ul>
  </div>

<div id='profile'>
  <div id="bio">
    <h2>Your Bio</h2>
    <p> <%= current_user.bio %> </p>
    <form class='bioEditCall' action='/profile' method='POST'>
      <input type="hidden" name="_method" value="PUT">
      <button type="submit" >Edit Profile</button>
    </form>
  </div>
  <div id="values">
    <h2>Your values</h2>
  </div>
</div>


</div><commit_msg>Check current_user to show user's info.<commit_after><div class="container">
  <% if current_user %>
    <div id="friends">
      <h2>Friends</h2>
      <button id='friendslistButton' action='/friends' type="submit">All Friends</button>  <button id='friendrequestButton' action='/friendrequests' type="submit">Friend Request</button>

      <form id='search' action='/searchfriends' method='GET'>
        <input type='text' name='email' placeholder='saech by email'>
        <button type="submit" >Search</button>
      </form>
      <ul id='friendlist'><ul>
    </div>

    <div id='profile'>
      <div id="bio">
        <h2>Your Bio</h2>
        <p contentEditable=true> <%= current_user.bio %> </p>
        <form id='bioEdit' action='/profile' method='POST'>
          <input type="hidden" name="_method" value="PUT">
          <button type="submit" >Save Change</button>
        </form>
      </div>
      <div id="values">
        <h2>Your values</h2>
        <p>
          <% valueIDs = Uservalue.where(user_id: current_user.id).map{ |us|us.value_id } %>
          <%= valueIDs.map { |vID| Value.find(vID).word }.join(", ") %>
        </p>
      </div>
    </div>
  <% else %>

  <% end %>


</div>
{'fraction_non_alphanumeric': 0.1958313136209404, 'fraction_numerical': 0.0058167716917111, 'mean_word_length': 3.238193018480493, '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': '6468237', 'n_tokens_mistral': 711, 'n_tokens_neox': 683, 'n_words': 143}