<commit_before><% content_for :title do %><%= @user.name %> - <%= t 'application.name' %><% end %>
<div class="page-header">
  <h1><%= gravatar_image_tag @user.email, 64 %> <%= @user.name %></h1>
</div>

<div class="row">
  <div class="span7">
    <%= div_for @games, :class => 'media' do |game| %>
      <%= link_to game_path(game), :class => 'pull-left' do %>
        <%= gravatar_image_tag game.game_ranks[0].user.email, 64 %>
      <% end %>
      <div class="media-body">
        <h4 class="media-heading"><%= link_to game.versus, game_path(game) %></h4>
        <% if game.confirmed? %>Confirmed<% else %>Unconfirmed<% end %> game for <%= link_to game.tournament.name, tournament_path(game.tournament_id) %> on <%= time_tag game.updated_at %>.
      </div>
    <% end %>
    <%= paginate @games %>
  </div>

  <div class="span5">
    <%= div_for @tournaments do |tournament| %>
      <%= link_to tournament.name, tournament_path(tournament) %>
      <%= div_for tournament, :class => "plot", :style => "height:100px;", :'data-ratings' => tournament.glicko2_ratings.where(:user_id => [current_user.id, @user.id]).map {|rating| {:rating => rating.rating, :rating_deviation => rating.rating_deviation, :user_name => rating.user.name}}.to_json do %><% end %>
    <% end %>
  </div>
</div>
<commit_msg>Challenge/log buttons in profile<commit_after><% content_for :title do %><%= @user.name %> - <%= t 'application.name' %><% end %>
<div class="page-header">
  <h1><%= gravatar_image_tag @user.email, 64 %> <%= @user.name %></h1>
</div>

<div class="row">
  <div class="span7">
    <%= div_for @games, :class => 'media' do |game| %>
      <%= link_to game_path(game), :class => 'pull-left' do %>
        <%= gravatar_image_tag game.game_ranks[0].user.email, 64 %>
      <% end %>
      <div class="media-body">
        <h4 class="media-heading"><%= link_to game.versus, game_path(game) %></h4>
        <% if game.confirmed? %>Confirmed<% else %>Unconfirmed<% end %> game for <%= link_to game.tournament.name, tournament_path(game.tournament_id) %> on <%= time_tag game.updated_at %>.
      </div>
    <% end %>
    <%= paginate @games %>
  </div>

  <div class="span5">
    <%= div_for @tournaments do |tournament| %>
      <div class="clearfix">
        <%= link_to tournament.name, tournament_path(tournament) %>
        <div class="btn-group pull-right">
          <%= link_to t(Challenge.model_name.human), new_challenge_path(:defender_id => @user, :tournament_id => tournament), :class => 'btn' %>
          <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to t('tournaments.show.log_a_game'), new_game_path(:tournament_id => tournament, :user_id => @user) %></li>
          </ul>
        </div>
      </div>
      <%= div_for tournament, :class => "plot", :style => "height:100px;", :'data-ratings' => tournament.glicko2_ratings.where(:user_id => [current_user.id, @user.id]).map {|rating| {:rating => rating.rating, :rating_deviation => rating.rating_deviation, :user_name => rating.user.name}}.to_json do %><% end %>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.20897395669909005, 'fraction_numerical': 0.009413241292751805, 'mean_word_length': 3.5477888730385163, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 114, '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': '1056847', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1092, 'n_words': 225}