<commit_before><div class="row">
  <div class="col-lg-10 col-lg-offset-1">
    <div class="panel panel-default">
      <div class="panel-body">
        <div class="row">
          <div class="col-lg-12 text-center">
            <h3>Contas</h3>
          </div>
        </div>

        <div class="row">
          <div class="col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2">
            <ul class="list-group">
              <% @accounts.each do |account| %>
                <li class="list-group-item account__item">
                  <%= link_to account.name, main_account_path(account_id: account.id), method: :post, class: 'account__link' %>

                  <% if account.public && account.owner != current_user.id %>
                    <%= link_to leave_account_path(account_id: account.id), method: :post, class: 'account__link account__icon', title: 'Desvincular conta', data: {toggle: 'tooltip', placement: 'bottom', confirm: 'Você tem certeza que quer se desvincular desta conta?'} do %>
                      <i class="fa fa-sign-out"></i>
                    <% end %>
                  <% end %>

                  <small class="account__badge">
                    <% if account.public %>
                      <i class="fa fa-unlock-alt"></i>
                      Pública
                    <% else %>
                      <i class="fa fa-lock"></i>
                      Privada
                    <% end %>
                  </small>
                </li>
              <% end %>
            </ul>

            <%= link_to new_account_path, class: 'btn btn-default' do %>
              <i class="fa fa-plus"></i>
              Nova Conta
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div><commit_msg>Add check on selected account<commit_after><div class="row">
  <div class="col-lg-10 col-lg-offset-1">
    <div class="panel panel-default">
      <div class="panel-body">
        <div class="row">
          <div class="col-lg-12 text-center">
            <h3>Contas</h3>
          </div>
        </div>

        <div class="row">
          <div class="col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2">
            <ul class="list-group">
              <% @accounts.each do |account| %>
                <li class="list-group-item account__item">
                  <% if current_user.main_account == account.id %>
                    <i class="fa fa-check fa-lg"></i>
                  <% end %>
                  <%= link_to account.name, main_account_path(account_id: account.id), method: :post, class: 'account__link' %>

                  <% if account.public && account.owner != current_user.id %>
                    <%= link_to leave_account_path(account_id: account.id), method: :post, class: 'account__link account__icon', title: 'Desvincular conta', data: {toggle: 'tooltip', placement: 'bottom', confirm: 'Você tem certeza que quer se desvincular desta conta?'} do %>
                      <i class="fa fa-sign-out"></i>
                    <% end %>
                  <% end %>

                  <small class="account__badge">
                    <% if account.public %>
                      <i class="fa fa-unlock-alt"></i>
                      Pública
                    <% else %>
                      <i class="fa fa-lock"></i>
                      Privada
                    <% end %>
                  </small>
                </li>
              <% end %>
            </ul>

            <%= link_to new_account_path, class: 'btn btn-default' do %>
              <i class="fa fa-plus"></i>
              Nova Conta
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div>
{'fraction_non_alphanumeric': 0.1501761995120629, 'fraction_numerical': 0.005963675792897805, 'mean_word_length': 1.3729903536977492, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '2210265', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1036, 'n_words': 235}