<commit_before><div class="row">
  <div class="span12">
      <h5><%= link_to "Users", :controller => "users" %></h5>
      <h1>
        <%= @user.name %>
      </h1>
      <h4><%= @user.duties %></h4>
              <% if (@user == current_user || is_admin?) %>
          <strong><%= link_to( "Update/Verify Profile", edit_user_path(@user), :class => "btn btn-primary") %></strong>
        <% end %>
  </div>
</div>

<div class="row">
  <div class="span6">
      <h4>Profile</h4>
        <table class="table-striped table-bordered table-condensed">
          <tr>
            <td>Address</td>
            <td>
                <%= @user.address1 %><br />
                <% if @user.address2? %>
                  <%= @user.address2 %><br />
                <% end %>
                <%= @user.city %>,
                <%= @user.state %>
                <%= @user.zip %>
            </td>
          </tr>
          <tr>
            <td>Email</td>
            <td><%= @user.email %></td>
          </tr>
          <tr>
            <td>Phone</td>
            <td><span class="tel value"><%= @user.phone %></span></td>
          </tr>
          <% if @user.other_phone? %>
            <tr>
              <td>Other Phone</td>
              <td><span class="tel value"><%= @user.other_phone %></span></td>
            </tr>
          <% end %>
          <tr>
            <td>Can share with adopters:</td>
            <td><%= @user.share_info %></td>
          </tr>
          <tr>
            <td>Account Created</td>
            <td><%= @user.created_at.strftime("%m/%d/%Y") %></td>
          </tr>
          <tr>
            <td>Last Login</td>
            <% if @user.lastlogin? %>
              <td><%= time_ago_in_words(@user.lastlogin) %> ago</td>
            <% else %>
              <td>Unknown</td>
            <% end %>
          </tr>
          <tr>
            <td>Contact Info Last Verified:</td>
            <% if @user.lastverified? %>
              <td><%= time_ago_in_words(@user.lastverified)%> ago</td>
            <% else %>
              <td>Never</td>
            <% end %>
          </tr>
          <tr>
            <td>Coordinated Dogs</td>
            <td>
              <% @user.coordinated_dogs.each do |d| %>
                <%= link_to d.name, d %>
                  (<%= d.status %>)
                <br />
              <% end %>
            </td>
          </tr>
          <tr>
            <td>Assigned Adoption Applications</td>
            <td>
              <% @user.active_applications.each do |d| %>
                <%= link_to d.name, d %>
                  (<%= d.status %>)
                <br />
              <% end %>
            </td>
          </tr>
        </table>
      </div>

      <div class="span6">
        <h4>Fostering</h4>
          <% if @user.mentor_id %>
            <p>Mentor: <%= link_to @user.mentor.name, user_path(@user.mentor) %></p>
          <% else %>
            <p>No Mentor Assigned</p>
          <% end %>
          <% if @user.is_foster? %>
             <p><span class="label label-success">Listed as Foster</span></p>
          <% else %>
            <p><span class="label label-important">Not a Foster</span></p>
          <% end %>

          <% if @user.available_to_foster %>
            <p><span class="label label-success">Ready for Another Dog</span></p>
          <% else %>
            <p><span class="label label-important">Not Ready for Another Dog</span></p>
          <% end %>

          <% if @user.agreement %>
             <p>
              <span class="label label-success">Foster Agreement on File</span>
              <%= link_to @user.agreement.attachment_file_name, @user.agreement.download_url, id: "foster-agreement-dl" %>
             </p>
          <% else %>
            <p><span class="label label-important">No Foster Agreement on File</span></p>
          <% end %>

          <% if @user.confidentiality_agreement %>
             <p>
              <span class="label label-success">Confidentiality Agreement on File</span>
              <%= link_to @user.confidentiality_agreement.attachment_file_name, @user.confidentiality_agreement.download_url, id: "confidentiality-agreement-dl" %>
             </p>
          <% else %>
            <p><span class="label label-important">No Confidentiality Agreement on File</span></p>
          <% end %>

          <% if @user.house_type == "own" %>
            <p><span class="label label-success">Owns Home</span></p>
          <% elsif @user.house_type == "rent" %>
            <p><span class="label label-important">Rents Home</span></p>
          <% end %>

          <% unless @user.breed_restriction.nil? %>
            <% if @user.breed_restriction? %>
               <p><span class="label label-important">Breed Restricted</span></p>
            <% else %>
              <p><span class="label label-success">No Breed Restrictions</span></p>
            <% end %>
          <% end %>

          <% unless @user.weight_restriction.nil? %>
            <% if @user.weight_restriction? %>
               <p><span class="label label-important">Weight Restricted</span></p>
            <% else %>
              <p><span class="label label-success">No Weight Restrictions</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_own_dogs.nil? %>
            <% if @user.has_own_dogs? %>
               <p><span class="label label-important">Has own dogs</span></p>
            <% else %>
              <p><span class="label label-success">Doesn't have own dogs</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_own_cats.nil? %>
            <% if @user.has_own_cats? %>
               <p><span class="label label-important">Has own cats</span></p>
            <% else %>
              <p><span class="label label-success">Doesn't have own cats</span></p>
            <% end %>
          <% end %>

          <% unless @user.children_under_five.nil? %>
            <% if @user.children_under_five? %>
               <p><span class="label label-important">Has children under 5</span></p>
            <% else %>
              <p><span class="label label-success">No children under 5</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_fenced_yard.nil? %>
            <% if @user.has_fenced_yard? %>
               <p><span class="label label-success">Has fenced in yard</span></p>
            <% else %>
              <p><span class="label label-important">No fenced in yard</span></p>
            <% end %>
          <% end %>

          <% unless @user.can_foster_puppies.nil? %>
            <% if @user.can_foster_puppies? %>
               <p><span class="label label-success">Can foster puppies</span></p>
            <% else %>
              <p><span class="label label-important">No puppies</span></p>
            <% end %>
          <% end %>

          <% unless @user.parvo_house.nil? %>
            <% if @user.parvo_house? %>
               <p><span class="label label-important">Had parvo in home</span></p>
            <% else %>
              <p><span class="label label-success">No parvo in home</span></p>
            <% end %>
          <% end %>

          <% unless @user.is_transporter.nil? %>
            <% if @user.is_transporter? %>
               <p><span class="label label-success">Available for Transport</span></p>
            <% else %>
              <p><span class="label label-important">Not Available for Transport</span></p>
            <% end %>
          <% end %>

          <table class="table-striped table-bordered table-condensed">
            <tr>
              <td>Current Dogs</td>
              <td>
                <% @user.current_foster_dogs.each do |d| %>
                  <%= link_to d.name, d %>
                    (<%= d.status %>)
                  <br />
                <% end %>
              </td>
            </tr>
            <tr>
              <td>Foster Mentees</td>
              <td>
                <% @user.mentees.each do |m| %>
                  <%= link_to m.name, m %>
                  <br />
                <% end %>
              </td>
            </tr>
            <tr>
              <td>Foster Details</td>
              <td><%= @user.foster_dog_types unless !@user.foster_dog_types? %></td>
            </tr>
          </table>
      </div>
    </div>


    <div class="row">
      <div class="span6">
          <h4>Permissions</h4>
            <%= render 'permissions' %>
        </div>
        <% if is_admin? %>
            <div class="row6">
              <h4>Admin Notes</h4>
              <p><%= @user.admin_comment %></p>
            </div>
        <% end %>
      </div>
<commit_msg>added translator fields to user show page<commit_after><div class="row">
  <div class="span12">
      <h5><%= link_to "Users", :controller => "users" %></h5>
      <h1>
        <%= @user.name %>
      </h1>
      <h4><%= @user.duties %></h4>
              <% if (@user == current_user || is_admin?) %>
          <strong><%= link_to( "Update/Verify Profile", edit_user_path(@user), :class => "btn btn-primary") %></strong>
        <% end %>
  </div>
</div>

<div class="row">
  <div class="span6">
      <h4>Profile</h4>
        <table class="table-striped table-bordered table-condensed">
          <tr>
            <td>Address</td>
            <td>
                <%= @user.address1 %><br />
                <% if @user.address2? %>
                  <%= @user.address2 %><br />
                <% end %>
                <%= @user.city %>,
                <%= @user.state %>
                <%= @user.zip %>
            </td>
          </tr>
          <tr>
            <td>Email</td>
            <td><%= @user.email %></td>
          </tr>
          <tr>
            <td>Phone</td>
            <td><span class="tel value"><%= @user.phone %></span></td>
          </tr>
          <% if @user.other_phone? %>
            <tr>
              <td>Other Phone</td>
              <td><span class="tel value"><%= @user.other_phone %></span></td>
            </tr>
          <% end %>
          <% if @user.translator %>
            <tr>
              <td>Translation Language(s)</td>
              <td><%= @user.known_languages %></td>
            </tr>
          <% end %>
          <tr>
            <td>Can share with adopters:</td>
            <td><%= @user.share_info %></td>
          </tr>
          <tr>
            <td>Account Created</td>
            <td><%= @user.created_at.strftime("%m/%d/%Y") %></td>
          </tr>
          <tr>
            <td>Last Login</td>
            <% if @user.lastlogin? %>
              <td><%= time_ago_in_words(@user.lastlogin) %> ago</td>
            <% else %>
              <td>Unknown</td>
            <% end %>
          </tr>
          <tr>
            <td>Contact Info Last Verified:</td>
            <% if @user.lastverified? %>
              <td><%= time_ago_in_words(@user.lastverified)%> ago</td>
            <% else %>
              <td>Never</td>
            <% end %>
          </tr>
          <tr>
            <td>Coordinated Dogs</td>
            <td>
              <% @user.coordinated_dogs.each do |d| %>
                <%= link_to d.name, d %>
                  (<%= d.status %>)
                <br />
              <% end %>
            </td>
          </tr>
          <tr>
            <td>Assigned Adoption Applications</td>
            <td>
              <% @user.active_applications.each do |d| %>
                <%= link_to d.name, d %>
                  (<%= d.status %>)
                <br />
              <% end %>
            </td>
          </tr>
        </table>
      </div>

      <div class="span6">
        <h4>Fostering</h4>
          <% if @user.mentor_id %>
            <p>Mentor: <%= link_to @user.mentor.name, user_path(@user.mentor) %></p>
          <% else %>
            <p>No Mentor Assigned</p>
          <% end %>
          <% if @user.is_foster? %>
             <p><span class="label label-success">Listed as Foster</span></p>
          <% else %>
            <p><span class="label label-important">Not a Foster</span></p>
          <% end %>

          <% if @user.available_to_foster %>
            <p><span class="label label-success">Ready for Another Dog</span></p>
          <% else %>
            <p><span class="label label-important">Not Ready for Another Dog</span></p>
          <% end %>

          <% if @user.agreement %>
             <p>
              <span class="label label-success">Foster Agreement on File</span>
              <%= link_to @user.agreement.attachment_file_name, @user.agreement.download_url, id: "foster-agreement-dl" %>
             </p>
          <% else %>
            <p><span class="label label-important">No Foster Agreement on File</span></p>
          <% end %>

          <% if @user.confidentiality_agreement %>
             <p>
              <span class="label label-success">Confidentiality Agreement on File</span>
              <%= link_to @user.confidentiality_agreement.attachment_file_name, @user.confidentiality_agreement.download_url, id: "confidentiality-agreement-dl" %>
             </p>
          <% else %>
            <p><span class="label label-important">No Confidentiality Agreement on File</span></p>
          <% end %>

          <% if @user.house_type == "own" %>
            <p><span class="label label-success">Owns Home</span></p>
          <% elsif @user.house_type == "rent" %>
            <p><span class="label label-important">Rents Home</span></p>
          <% end %>

          <% unless @user.breed_restriction.nil? %>
            <% if @user.breed_restriction? %>
               <p><span class="label label-important">Breed Restricted</span></p>
            <% else %>
              <p><span class="label label-success">No Breed Restrictions</span></p>
            <% end %>
          <% end %>

          <% unless @user.weight_restriction.nil? %>
            <% if @user.weight_restriction? %>
               <p><span class="label label-important">Weight Restricted</span></p>
            <% else %>
              <p><span class="label label-success">No Weight Restrictions</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_own_dogs.nil? %>
            <% if @user.has_own_dogs? %>
               <p><span class="label label-important">Has own dogs</span></p>
            <% else %>
              <p><span class="label label-success">Doesn't have own dogs</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_own_cats.nil? %>
            <% if @user.has_own_cats? %>
               <p><span class="label label-important">Has own cats</span></p>
            <% else %>
              <p><span class="label label-success">Doesn't have own cats</span></p>
            <% end %>
          <% end %>

          <% unless @user.children_under_five.nil? %>
            <% if @user.children_under_five? %>
               <p><span class="label label-important">Has children under 5</span></p>
            <% else %>
              <p><span class="label label-success">No children under 5</span></p>
            <% end %>
          <% end %>

          <% unless @user.has_fenced_yard.nil? %>
            <% if @user.has_fenced_yard? %>
               <p><span class="label label-success">Has fenced in yard</span></p>
            <% else %>
              <p><span class="label label-important">No fenced in yard</span></p>
            <% end %>
          <% end %>

          <% unless @user.can_foster_puppies.nil? %>
            <% if @user.can_foster_puppies? %>
               <p><span class="label label-success">Can foster puppies</span></p>
            <% else %>
              <p><span class="label label-important">No puppies</span></p>
            <% end %>
          <% end %>

          <% unless @user.parvo_house.nil? %>
            <% if @user.parvo_house? %>
               <p><span class="label label-important">Had parvo in home</span></p>
            <% else %>
              <p><span class="label label-success">No parvo in home</span></p>
            <% end %>
          <% end %>

          <% unless @user.is_transporter.nil? %>
            <% if @user.is_transporter? %>
               <p><span class="label label-success">Available for Transport</span></p>
            <% else %>
              <p><span class="label label-important">Not Available for Transport</span></p>
            <% end %>
          <% end %>

          <table class="table-striped table-bordered table-condensed">
            <tr>
              <td>Current Dogs</td>
              <td>
                <% @user.current_foster_dogs.each do |d| %>
                  <%= link_to d.name, d %>
                    (<%= d.status %>)
                  <br />
                <% end %>
              </td>
            </tr>
            <tr>
              <td>Foster Mentees</td>
              <td>
                <% @user.mentees.each do |m| %>
                  <%= link_to m.name, m %>
                  <br />
                <% end %>
              </td>
            </tr>
            <tr>
              <td>Foster Details</td>
              <td><%= @user.foster_dog_types unless !@user.foster_dog_types? %></td>
            </tr>
          </table>
      </div>
    </div>


    <div class="row">
      <div class="span6">
          <h4>Permissions</h4>
            <%= render 'permissions' %>
        </div>
        <% if is_admin? %>
            <div class="row6">
              <h4>Admin Notes</h4>
              <p><%= @user.admin_comment %></p>
            </div>
        <% end %>
      </div>

{'fraction_non_alphanumeric': 0.17448064479509592, 'fraction_numerical': 0.002838006584175275, 'mean_word_length': 1.4010629599345872, 'pattern_counts': {'":': 0, '<': 732, '<?xml version=': 0, '>': 736, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2948393', 'n_tokens_mistral': 5711, 'n_tokens_neox': 5138, 'n_words': 996}