<commit_before>{% load staticfiles%}
{% load cohort_filters %}

<header class="navbar navbar-fixed-top site-header" role="header">
    <nav class="container">
        <div class="row">
            <div class="col-lg-12">
            <div class="nav navbar-left">
                 <ul class="nav navbar-nav">
                    <a href="{% url 'dashboard' %}"><img class="navbar-brand" src="{% static 'img/isblogo.png' %}" alt="ISB Logo"/></a>
                    <li><a href="{% url 'dashboard' %}">ISB-CGC</a></li>
                    <li class="navbar-link"><a href="{% url 'about_page' %}">About</a></li>
                    <li class="navbar-link"><a href="{% url 'help_page' %}">Help</a></li>
                </ul>
            </div>

            <div class="nav navbar-right">
                {% if user.is_authenticated %}
                    <div id="user-login" class="navbar-form navbar-item">
                        <a class="avatar-link" href="{% url 'user_detail' user.id %}">
                            <img src="{{ user.socialaccount_set.all.0.get_avatar_url }}" width="32" height="32" alt="Avatar Link to User Details">
                        </a>

                        <div class="dropdown">
                            <a role="button" class="dropdown-toggle navbar-item__text" id="user-dropdown" data-toggle="dropdown" aria-label="User Dropdown" aria-expanded="true">
                                {{ user.first_name }} <i class="fa fa-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-label="user-dropdown">
                                <li role="menuitem"><a href="#logout-modal" data-toggle="modal" data-target="#logout-modal" title="Sign Out"><i class="fa fa-sign-out"></i>Sign Out</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="navbar-form navbar-item">
                        <a type="button" class="navbar-item__text" data-toggle="collapse" data-target="#subnav" aria-expanded="false" aria-controls="subnav"><i class="fa fa-bars"></i>Menu</a>
                    </div>
                {% else %}
                    <div id="user-login" class="navbar-form inline-block">
                        <!-- same thing as /accounts/login-->
                        <a class="login-link" href="{% url 'account_login' %}" title="Sign In"><i class="fa fa-sign-in"></i> Sign In</a>
                    </div>
                {% endif %}
            </div>
            </div>
        </div>
    </nav>
    {% if user.is_authenticated %}
    <nav class="nav subnav collapse" role="navigation" id="subnav">
        <ul class="container">
            <li class="menu-item has-drop-down">
                <a>WORKBOOKS <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    {% if user.workbook_last_view_set.all|length > 0 %}
                    <li class="menu-item">
                        <strong>Recent</strong>
                        <ul class="item-list">
                            {% for wlv in user.workbook_last_view_set.all|dictsortreversed:'last_view'|slice:':5' %}
                            <li class="menu-item"><a href="{% url 'workbook_detail' wlv.workbook.id %}">{{ wlv.workbook.name }}</a></li>
                            {% endfor %}
                            {% if user.workbook_last_view_set.all|length > 5 %}
                            <li class="menu-item has-drop-down__more"> More
                                <ul class="drop">
                                    {% for wlv in user.workbook_last_view_set.all|dictsortreversed:'last_view'|slice:'5:' %}
                                    <li class="menu-item"><a href="{% url 'workbook_detail' wlv.workbook.id %}">{{ wlv.workbook.name }}</a></li>
                                    {% endfor %}
                                </ul>
                            </li>
                            {% endif %}
                        </ul>
                    </li>
                    {% endif %}
                    <li class="menu-item"><a href="{% url 'workbooks' %}">Saved Workbooks (0)</a></li>
                    <li class="menu-item"><a href="/">Create a New Workbook</a></li>
                    <li class="menu-item"><a href="/">Sample Workbooks</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>PROJECTS <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            <li class="menu-item"> Projects A </li>
                            <li class="menu-item"> Projects B </li>
                            <li class="menu-item"> Projects C </li>
                        </ul>
                    </li>
                    <li class="menu-item"><a href="/">Saved Projectss (10)</a></li>
                    <li class="menu-item"><a href="/">Upload Project Data</a></li>
                    <li class="menu-item"><a href="/">Public Projects (2)</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>ANALYSES <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            <li class="menu-item"> Analysis A </li>
                            <li class="menu-item"> Analysis B </li>
                            <li class="menu-item"> Analysis C </li>
                        </ul>
                    </li>
                    <li class="menu-item"><a href="/">Browse All Analyses</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>GENES <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            <li class="menu-item"> Gene Favorite A </li>
                            <li class="menu-item"> Gene Favorite B </li>
                            <li class="menu-item"> Gene Favorite C </li>
                        </ul>
                    </li>
                    <li class="menu-item"><a href="/">Manage Gene Favorite (10)</a></li>
                    <li class="menu-item"><a href="/">Create Gene Favorite(s)</a></li>
                    <li class="menu-item"><a href="/">Select Genes for a New Workbook</a></li><commit_msg>Recent Project list in menu<commit_after>{% load staticfiles%}
{% load cohort_filters %}

<header class="navbar navbar-fixed-top site-header" role="header">
    <nav class="container">
        <div class="row">
            <div class="col-lg-12">
            <div class="nav navbar-left">
                 <ul class="nav navbar-nav">
                    <a href="{% url 'dashboard' %}"><img class="navbar-brand" src="{% static 'img/isblogo.png' %}" alt="ISB Logo"/></a>
                    <li><a href="{% url 'dashboard' %}">ISB-CGC</a></li>
                    <li class="navbar-link"><a href="{% url 'about_page' %}">About</a></li>
                    <li class="navbar-link"><a href="{% url 'help_page' %}">Help</a></li>
                </ul>
            </div>

            <div class="nav navbar-right">
                {% if user.is_authenticated %}
                    <div id="user-login" class="navbar-form navbar-item">
                        <a class="avatar-link" href="{% url 'user_detail' user.id %}">
                            <img src="{{ user.socialaccount_set.all.0.get_avatar_url }}" width="32" height="32" alt="Avatar Link to User Details">
                        </a>

                        <div class="dropdown">
                            <a role="button" class="dropdown-toggle navbar-item__text" id="user-dropdown" data-toggle="dropdown" aria-label="User Dropdown" aria-expanded="true">
                                {{ user.first_name }} <i class="fa fa-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-label="user-dropdown">
                                <li role="menuitem"><a href="#logout-modal" data-toggle="modal" data-target="#logout-modal" title="Sign Out"><i class="fa fa-sign-out"></i>Sign Out</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="navbar-form navbar-item">
                        <a type="button" class="navbar-item__text" data-toggle="collapse" data-target="#subnav" aria-expanded="false" aria-controls="subnav"><i class="fa fa-bars"></i>Menu</a>
                    </div>
                {% else %}
                    <div id="user-login" class="navbar-form inline-block">
                        <!-- same thing as /accounts/login-->
                        <a class="login-link" href="{% url 'account_login' %}" title="Sign In"><i class="fa fa-sign-in"></i> Sign In</a>
                    </div>
                {% endif %}
            </div>
            </div>
        </div>
    </nav>
    {% if user.is_authenticated %}
    <nav class="nav subnav collapse" role="navigation" id="subnav">
        <ul class="container">
            <li class="menu-item has-drop-down">
                <a>WORKBOOKS <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    {% if user.workbook_last_view_set.all|length > 0 %}
                    <li class="menu-item">
                        <strong>Recent</strong>
                        <ul class="item-list">
                            {% for wlv in user.workbook_last_view_set.all|dictsortreversed:'last_view'|slice:':5' %}
                            <li class="menu-item"><a href="{% url 'workbook_detail' wlv.workbook.id %}">{{ wlv.workbook.name }}</a></li>
                            {% endfor %}
                            {% if user.workbook_last_view_set.all|length > 5 %}
                            <li class="menu-item has-drop-down__more"> More
                                <ul class="drop">
                                    {% for wlv in user.workbook_last_view_set.all|dictsortreversed:'last_view'|slice:'5:' %}
                                    <li class="menu-item"><a href="{% url 'workbook_detail' wlv.workbook.id %}">{{ wlv.workbook.name }}</a></li>
                                    {% endfor %}
                                </ul>
                            </li>
                            {% endif %}
                        </ul>
                    </li>
                    {% endif %}
                    <li class="menu-item"><a href="{% url 'workbooks' %}">Saved Workbooks (0)</a></li>
                    <li class="menu-item"><a href="/">Create a New Workbook</a></li>
                    <li class="menu-item"><a href="/">Sample Workbooks</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>PROJECTS <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    {% if user.project_last_view_set.all|length > 0 %}
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            {% for plv in user.project_last_view_set.all|dictsortreversed:'last_view'|slice:':5' %}
                            <li class="menu-item">{{ plv.project.name }}</li>
                            {% endfor %}
                            {% if user.project_last_view_set.all|length > 5 %}
                            <li class="menu-item has-drop-down__more"> More
                                <ul class="drop">
                                    {% for plv in user.project_last_view_set.all|dictsortreversed:'last_view'|slice:'5:' %}
                                    <li class="menu-item">{{ plv.project.name }}</li>
                                    {% endfor %}
                                </ul>
                            </li>
                            {% endif %}
                        </ul>
                    </li>
                    {% endif %}
                    <li class="menu-item"><a href="/">Saved Projects (0)</a></li>
                    <li class="menu-item"><a href="/">Upload Project Data</a></li>
                    <li class="menu-item"><a href="/">Public Projects (0)</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>ANALYSES <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            <li class="menu-item"> Analysis A </li>
                            <li class="menu-item"> Analysis B </li>
                            <li class="menu-item"> Analysis C </li>
                        </ul>
                    </li>
                    <li class="menu-item"><a href="/">Browse All Analyses</a></li>
                </ul>
            </li>
            <li class="menu-item has-drop-down">
                <a>GENES <i class="fa fa-caret-down"></i></a>
                <ul class="sub-menu drop">
                    <li class="menu-item">
                        <strong>Start New Workbook With ...</strong>
                        <ul class="item-list">
                            <li class="menu-item"> Gene Favorite A </li>
                            <li class="menu-item"> Gene Favorite B </li>
                            <li class="menu-item"> Gene Favorite C </li>
                        </ul>
                    </li>
                    <li class="menu-item"><a href="/">Manage Gene Favorite (10)</a></li>
                    <li class="menu-item"><a href="/">Create Gene Favorite(s)</a></li>
                    <li class="menu-item"><a href="/">Select Genes for a New Workbook</a></li>
{'fraction_non_alphanumeric': 0.16247234513274336, 'fraction_numerical': 0.002558075221238938, 'mean_word_length': 1.259097298141496, 'pattern_counts': {'":': 0, '<': 377, '<?xml version=': 0, '>': 383, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3376418', 'n_tokens_mistral': 4163, 'n_tokens_neox': 3839, 'n_words': 810}