<commit_before><% company = people_list; company_card = company %>
<div class="peopleList">
<h2><%= h company.name %></h2>

<div class="card">
  <div class="cardIcon"><img src="<%= company_card.logo_url %>" alt="<%= h company_card.name %> logo" /></div>
  <div class="cardData">
    <h3><%= link_to (h company_card.name), company %></h3>
    <% if company_card.email? %>
    <div class="cardBlock">
      <a href="mailto:<%= h company_card.email %>"><%= h company_card.email %></a>
    </div>
    <% end %>
    <div class="cardBlock">
    <% if company_card.homepage? %><div><%= link_to h(company_card.homepage), company_card.homepage %></div><% end %>
    <% if company_card.fax_number? %><div><span><%= :fax.l %>:</span><%= h(company_card.fax_number) %></div><% end %>
    <% if company_card.phone_number? %><div><span><%= :home.l %>:</span><%= h(company_card.phone_number) %></div><% end %>
    </div>
    <div class="cardBlock">
<% if company_card.address? %><%= h company_card.address %><% end %>
<% if company_card.address2? %><br /><%= h company_card.address2 %><% end %>
<% if company_card.city? and company_card.state? %>
<br /><%= h company_card.city %>, <%= h company_card.state %> <% if company_card.zipcode? %><%= h company_card.zipcode %><% end %>
<% if company_card.country? %><br /><%= h company_card.country %><% end %>
<% end %>
    </div>
    
    <% if company_card.can_be_edited_by(@logged_user) %>
    <div class="cardBlock">
      <%= action_list actions_for_company(company) %>
    </div>
    <% end %>
  </div>
</div>

<% num_users = 1 %>
<% users = @active_project.nil? ? company.users : company.users_on_project(@active_project)  %>
<% (users.sort{ |x,y| x.display_name <=> y.display_name }).each do |user|
   user_card = user %>
<div class="card">
  <div class="cardIcon"><img src="<%= user_card.avatar_url %>" alt="<%= h user_card.display_name %> avatar" /></div>
  <div class="cardData">
    <h3><%= link_to (h user_card.display_name), user %></h3>
      <% if user_card.title? %><div class="detailsTitle"> <%= h user_card.title %></div><% end %>
    <div class="cardBlock">
      <a href="mailto:<%= h user_card.email %>"><%= h user_card.email %></a>
    </div>
    <div class="cardBlock">
    <% user_card.im_values.each do |im_value| -%>
    <% next if im_value.value.blank? %>
    <div class="cardIM">
        <img src="<%= im_value.im_type.icon_url %>" alt="<%= im_value.im_type.name %>" /><span> <%= h im_value.value %></span>
    </div>
    <% end %>
    </div>
    <div class="cardBlock">
    <% if user_card.office_number? %><div class="cardOffice"><span><%= :office.l %>:</span><%= h(user_card.office_number) %></div><% end %>
    <% if user_card.fax_number? %><div class="cardFax"><span><%= :fax.l %>:</span><%= h(user_card.fax_number) %></div><% end %>
    <% if user_card.mobile_number? %><div class="cardMobile"><span><%= :mobile.l %>:</span><%= h(user_card.mobile_number) %></div><% end %>
    <% if user_card.home_number? %><div class="cardHome"><span><%= :home.l %>:</span><%= h(user_card.home_number) %></div><% end %>
    </div>
    <div class="cardBlock">
    <% if user_card.owner_of_owner? %><div class="cardOwner"><%= :owner.l %></div><% end %>
    </div><commit_msg>made logo/photo also link to the profile page<commit_after><% company = people_list; company_card = company %>
<div class="peopleList">
<h2><%= h company.name %></h2>

<div class="card">
  <div class="cardIcon">
	<% link_to company do %>
		<img src="<%= company_card.logo_url %>" alt="<%= h company_card.name %> logo" /></div>
	<% end %>
  <div class="cardData">
    <h3><%= link_to (h company_card.name), company %></h3>
    <% if company_card.email? %>
    <div class="cardBlock">
      <a href="mailto:<%= h company_card.email %>"><%= h company_card.email %></a>
    </div>
    <% end %>
    <div class="cardBlock">
    <% if company_card.homepage? %><div><%= link_to h(company_card.homepage), company_card.homepage %></div><% end %>
    <% if company_card.fax_number? %><div><span><%= :fax.l %>:</span><%= h(company_card.fax_number) %></div><% end %>
    <% if company_card.phone_number? %><div><span><%= :home.l %>:</span><%= h(company_card.phone_number) %></div><% end %>
    </div>
    <div class="cardBlock">
<% if company_card.address? %><%= h company_card.address %><% end %>
<% if company_card.address2? %><br /><%= h company_card.address2 %><% end %>
<% if company_card.city? and company_card.state? %>
<br /><%= h company_card.city %>, <%= h company_card.state %> <% if company_card.zipcode? %><%= h company_card.zipcode %><% end %>
<% if company_card.country? %><br /><%= h company_card.country %><% end %>
<% end %>
    </div>
    
    <% if company_card.can_be_edited_by(@logged_user) %>
    <div class="cardBlock">
      <%= action_list actions_for_company(company) %>
    </div>
    <% end %>
  </div>
</div>

<% num_users = 1 %>
<% users = @active_project.nil? ? company.users : company.users_on_project(@active_project)  %>
<% (users.sort{ |x,y| x.display_name <=> y.display_name }).each do |user|
   user_card = user %>
<div class="card">
  <div class="cardIcon">
	<% link_to user do %>
	  <img src="<%= user_card.avatar_url %>" alt="<%= h user_card.display_name %> avatar" />
	<% end %>
  </div>
  <div class="cardData">
    <h3><%= link_to (h user_card.display_name), user %></h3>
      <% if user_card.title? %><div class="detailsTitle"> <%= h user_card.title %></div><% end %>
    <div class="cardBlock">
      <a href="mailto:<%= h user_card.email %>"><%= h user_card.email %></a>
    </div>
    <div class="cardBlock">
    <% user_card.im_values.each do |im_value| -%>
    <% next if im_value.value.blank? %>
    <div class="cardIM">
        <img src="<%= im_value.im_type.icon_url %>" alt="<%= im_value.im_type.name %>" /><span> <%= h im_value.value %></span>
    </div>
    <% end %>
    </div>
    <div class="cardBlock">
    <% if user_card.office_number? %><div class="cardOffice"><span><%= :office.l %>:</span><%= h(user_card.office_number) %></div><% end %>
    <% if user_card.fax_number? %><div class="cardFax"><span><%= :fax.l %>:</span><%= h(user_card.fax_number) %></div><% end %>
    <% if user_card.mobile_number? %><div class="cardMobile"><span><%= :mobile.l %>:</span><%= h(user_card.mobile_number) %></div><% end %>
    <% if user_card.home_number? %><div class="cardHome"><span><%= :home.l %>:</span><%= h(user_card.home_number) %></div><% end %>
    </div>
    <div class="cardBlock">
    <% if user_card.owner_of_owner? %><div class="cardOwner"><%= :owner.l %></div><% end %>
    </div>
{'fraction_non_alphanumeric': 0.2394323210743171, 'fraction_numerical': 0.0027468335113688385, 'mean_word_length': 4.124315871774824, 'pattern_counts': {'":': 0, '<': 313, '<?xml version=': 0, '>': 313, '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': '6189455', 'n_tokens_mistral': 2627, 'n_tokens_neox': 2381, 'n_words': 492}