<commit_before><div class='navbar navbar-fixed-top' style='position:absolute;'>
    <div class='navbar-inner'>
        <div class='container' style='width:auto; padding: 0 20 px; margin-left:10px;'>

            <%= link_to "LinguA", root_path, :class => "brand logo" %>

            <ul class='nav'>


                <li>
                    <%= link_to lists_path do %>
                        <i class='icon-list'></i> Lists
                    <% end %>
                </li>
                <li>
                    <%= link_to leaderboard_path do %>
                        <i class='icon-certificate'></i> Leaderboard
                    <% end %>
                </li>


            </ul>

            <% if user_signed_in? %>
            <ul class="nav pull-right">
                <li class="dropdown">


                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <%= current_user.first_name.capitalize %>
                        <b class="caret"></b>
                    </a>

                    <ul class="dropdown-menu">
                        <li><%= link_to "Edit Account", edit_user_registration_path %></li>
                        <li><%= link_to "Sign out",       destroy_user_session_path,
                                                                 :method => :delete %></li>
                    </ul>

                </li>

            </ul>
            <% end %>

        </div>
    </div>
</div><commit_msg>Fixed bug whereby attempting to view the leaderboard without logging in caused an uncaught exception to be thrown.<commit_after><div class='navbar navbar-fixed-top' style='position:absolute;'>
    <div class='navbar-inner'>
        <div class='container' style='width:auto; padding: 0 20 px; margin-left:10px;'>

            <%= link_to "LinguA", root_path, :class => "brand logo" %>

            <ul class='nav'>


                <li>
                    <%= link_to lists_path do %>
                        <i class='icon-list'></i> Lists
                    <% end %>
                </li>

                <% if user_signed_in? %>
                <li>
                    <%= link_to leaderboard_path do %>
                        <i class='icon-certificate'></i> Leaderboard
                    <% end %>
                </li>
                <% end %>

            </ul>

            <% if user_signed_in? %>
            <ul class="nav pull-right">
                <li class="dropdown">


                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <%= current_user.first_name.capitalize %>
                        <b class="caret"></b>
                    </a>

                    <ul class="dropdown-menu">
                        <li><%= link_to "Edit Account", edit_user_registration_path %></li>
                        <li><%= link_to "Sign out",       destroy_user_session_path,
                                                                 :method => :delete %></li>
                    </ul>

                </li>

            </ul>
            <% end %>

        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.13766730401529637, 'fraction_numerical': 0.0031867431485022306, 'mean_word_length': 1.1095430107526882, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2996718', 'n_tokens_mistral': 894, 'n_tokens_neox': 770, 'n_words': 177}