<commit_before><div class="navbar navbar-static-top navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-left">
      <ul class="nav navbar-nav">

        <% other_accounts = current_user.accounts.reject {|a| a == @account } %>
        <% if other_accounts.any? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <%= @account.name %> <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <% other_accounts.each do |account| %>
                <li>
                  <a href="<%= inbox_account_conversations_path(account) %>">
                    <%= account.name %>
                  </a>
                </li>
              <% end %>
            </ul>
          </li>
        <% else %>
          <li>
            <a href="<%= edit_account_path(@account) %>">
              <%= @account.name %>
            </a>
          </li>
        <% end %>

        <li>
          <a href="<%= inbox_account_conversations_path(@account) %>">
            Inbox
          </a>
        </li>

        <li>
          <a href="<%= archived_account_conversations_path(@account) %>">
            Archive
          </a>
        </li>
      </ul>

    </div>

    <div class="navbar-right">
      <ul class="nav navbar-nav">
        <li>
          <a href="mailto:<EMAIL>">Help</a>
        </li>

        <li class="dropdown">
          <a class="dropdown-toggle" href="#" data-toggle="dropdown">
            <span class="glyphicon glyphicon-cog"></span> <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li>
              <a href="<%= edit_user_path %>">Settings</a>
            </li>
            <li>
              <%= link_to 'Logout', destroy_user_session_path, method: :delete, class: 'nav-text' %>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</div>
<commit_msg>Properly show settings for account in navbar.<commit_after><div class="navbar navbar-static-top navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-left">
      <ul class="nav navbar-nav">

        <% other_accounts = current_user.accounts.reject {|a| a == @account } %>
        <% if other_accounts.any? %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <%= @account.name %> <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <% other_accounts.each do |account| %>
                <li>
                  <a href="<%= inbox_account_conversations_path(account) %>">
                    <%= account.name %>
                  </a>
                </li>
              <% end %>
            </ul>
          </li>
        <% else %>
          <li>
            <span class="navbar-text"><%= @account.name %></span>
          </li>
        <% end %>

        <li>
          <a href="<%= inbox_account_conversations_path(@account) %>">
            Inbox
          </a>
        </li>

        <li>
          <a href="<%= archived_account_conversations_path(@account) %>">
            Archive
          </a>
        </li>

        <li>
          <a href="<%= edit_account_path(@account) %>">
            Settings
          </a>
        </a>
      </ul>

    </div>

    <div class="navbar-right">
      <ul class="nav navbar-nav">
        <li>
          <a href="mailto:<EMAIL>">Help</a>
        </li>

        <li class="dropdown">
          <a class="dropdown-toggle" href="#" data-toggle="dropdown">
            <span class="glyphicon glyphicon-cog"></span> <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li>
              <a href="<%= edit_user_path %>">Settings</a>
            </li>
            <li>
              <%= link_to 'Logout', destroy_user_session_path, method: :delete, class: 'nav-text' %>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.17811641269048215, 'fraction_numerical': 0.0, 'mean_word_length': 1.4624846248462484, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '3082773', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1210, 'n_words': 236}