<commit_before><% content_for :head do %>
  <title><%= @user.login %><%= t(:user_show_profile, :scope => :users) %> - <%= Settings.application.name %></title>
  <%= auto_discovery_link_tag(:atom, feed_repositories_user_url(@user) + ".atom") %>
  <%= auto_discovery_link_tag(:atom, feed_commits_user_url(@user) + ".atom") %>
<% end %>

<div id="user_gravatar_and_links">
  <div class="grid_6">
    <h2 id="username_w_gravatar">
      <span id="user_name_gravatar">
        <%= image_tag(@user.gravatar_url(:size => 60), :title => nil, :alt => nil, :border => 0) %>
      </span>
      <span id="user_name_login">
        <span class="un_login"><%= @user.login %></span>
        <% if (@user.login != @user.name) and @user.name %>
          <span class="un_name">( <%= @user.name %> )</span>
          <% end %>
      </span>
    </h2>
  </div>
  <div class="grid_6">
    <%= render :partial => "user_links" %>
  </div>
  <div class="clear"></div>
</div>

<div id="user_profile_and_stats" id="user_profile">
  <div class="grid_6">
    <p>
      <% if @user.name != @user.login %>
        <strong><%= t(:name, :scope => :users) %></strong> <%= @user.name %>
        <br>
      <% end %>
      <strong><%= t(:email, :scope => :users) %></strong> <%= mail_to @user.email, nil, :encode => "hex", :replace_dot => " dot ", :replace_at => " at " %>
      <br>
      <%= link_to t(:repositories_feed, :scope => :repositories), feed_repositories_user_url(@user)+".atom", :class => "atom_feed" %>
      <%= link_to t(:commits_feed, :scope => :commits), feed_commits_user_url(@user)+".atom", :class => "atom_feed" %>
    </p>
  </div>

  <div class="grid_6" id="user_stats">
    <%= render :partial => "user_stats" %>
  </div>
  <div class="clear"></div>
</div>

<div id="user_commits_and_repositories">
  <div class="grid_6">
    <div id="repositories">
      <h2><%= t(:label, :scope => :repositories) %></h2>
      <% @user_repositories.each do |rep| %>
        <%= render "application/short_repository", :rep => rep %>
      <% end %>
    </div>
  </div>

  <div class="grid_6">
    <div id="commits">
      <h2>Latest commits</h2>
      <% for commit in @user.aq_commits.of_public_repositories.first(10) %>
        <%= render "application/short_commit", :commit => commit %>
      <% end %>
    </div>
  </div>

  <div class="clear"></div>
</div>
<commit_msg>Display name only if the method return is not blank<commit_after><% content_for :head do %>
  <title><%= @user.login %><%= t(:user_show_profile, :scope => :users) %> - <%= Settings.application.name %></title>
  <%= auto_discovery_link_tag(:atom, feed_repositories_user_url(@user) + ".atom") %>
  <%= auto_discovery_link_tag(:atom, feed_commits_user_url(@user) + ".atom") %>
<% end %>

<div id="user_gravatar_and_links">
  <div class="grid_6">
    <h2 id="username_w_gravatar">
      <span id="user_name_gravatar">
        <%= image_tag(@user.gravatar_url(:size => 60), :title => nil, :alt => nil, :border => 0) %>
      </span>
      <span id="user_name_login">
        <span class="un_login"><%= @user.login %></span>
        <% if (@user.login != @user.name) and !@user.name.blank? %>
          <span class="un_name">( <%= @user.name %> )</span>
        <% end %>
      </span>
    </h2>
  </div>
  <div class="grid_6">
    <%= render :partial => "user_links" %>
  </div>
  <div class="clear"></div>
</div>

<div id="user_profile_and_stats" id="user_profile">
  <div class="grid_6">
    <p>
      <% if (@user.name != @user.login) and !@user.name.blank? %>
        <strong><%= t(:name, :scope => :users) %></strong> <%= @user.name %>
        <br>
      <% end %>
      <strong><%= t(:email, :scope => :users) %></strong> <%= mail_to @user.email, nil, :encode => "hex", :replace_dot => " dot ", :replace_at => " at " %>
      <br>
      <%= link_to t(:repositories_feed, :scope => :repositories), feed_repositories_user_url(@user)+".atom", :class => "atom_feed" %>
      <%= link_to t(:commits_feed, :scope => :commits), feed_commits_user_url(@user)+".atom", :class => "atom_feed" %>
    </p>
  </div>

  <div class="grid_6" id="user_stats">
    <%= render :partial => "user_stats" %>
  </div>
  <div class="clear"></div>
</div>

<div id="user_commits_and_repositories">
  <div class="grid_6">
    <div id="repositories">
      <h2><%= t(:label, :scope => :repositories) %></h2>
      <% @user_repositories.each do |rep| %>
        <%= render "application/short_repository", :rep => rep %>
      <% end %>
    </div>
  </div>

  <div class="grid_6">
    <div id="commits">
      <h2>Latest commits</h2>
      <% for commit in @user.aq_commits.of_public_repositories.first(10) %>
        <%= render "application/short_commit", :commit => commit %>
      <% end %>
    </div>
  </div>

  <div class="clear"></div>
</div>

{'fraction_non_alphanumeric': 0.22594843848249843, 'fraction_numerical': 0.0071263885977782436, 'mean_word_length': 3.3739688359303392, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 203, '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': '6586306', 'n_tokens_mistral': 1870, 'n_tokens_neox': 1719, 'n_words': 335}