<commit_before><%- model_class = User -%>

<div class="panel panel-default">
  <div class="panel panel-heading">
    <h4><%=t('.public_data')%></h4>
  </div>
  <div class="panel panel-body">
    <% [:first_name, :last_name].each do |field| %>
      <p><strong><%= model_class.human_attribute_name(field)%>: </strong><%= @user[field] %></p>
    <% end %>

    <strong><%= model_class.human_attribute_name(:chair)%></strong>: <%= @user.chair ? @user.chair.name : '' %></p>

    <p>
      <strong><%= t('.projects')%>: </strong>
      <% @user.projects[0..-1].each do |project| %>
        <%= entity_link(project.title, project)%><%= ', ' unless project == @user.projects.last%>
      <% end %>
    </p>

  </div>
</div><commit_msg>Fix(User#show): Show placeholder for empty chair. Partial fix #598<commit_after><%- model_class = User -%>

<div class="panel panel-default">
  <div class="panel panel-heading">
    <h4><%=t('.public_data')%></h4>
  </div>
  <div class="panel panel-body">
    <% [:first_name, :last_name].each do |field| %>
      <p><strong><%= model_class.human_attribute_name(field)%>: </strong><%= @user[field] %></p>
    <% end %>

    <strong><%= model_class.human_attribute_name(:chair)%></strong>: <%= @user.chair ? linked_name(@user.chair) : '---' %></p>

    <p>
      <strong><%= t('.projects')%>: </strong>
      <% @user.projects[0..-1].each do |project| %>
        <%= entity_link(project.title, project)%><%= ', ' unless project == @user.projects.last%>
      <% end %>
    </p>

  </div>
</div>
{'fraction_non_alphanumeric': 0.2536136662286465, 'fraction_numerical': 0.007227332457293035, 'mean_word_length': 3.559880239520958, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '4250839', 'n_tokens_mistral': 585, 'n_tokens_neox': 540, 'n_words': 97}