<commit_before>{% load static compress %}

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>{% block meta_title %}{% endblock %} - Timestrap</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        {# Global stylesheets #}
        {# TODO: Clean up for full release, we don't even use half of these #}
        <link rel="stylesheet" type="text/css" crossorigin="anonymous"
            href="https://unpkg.com/bootstrap@4.0.0-alpha.6/dist/css/bootstrap.min.css"
            integrity="<KEY>">
        <link rel="stylesheet" type="text/css" crossorigin="anonymous"
            href="https://unpkg.com/font-awesome@4.7.0/css/font-awesome.min.css"
            integrity="<KEY>">
        <link rel="stylesheet" type="text/css" crossorigin="anonymous"
            href="https://unpkg.com/chosenjs@1.4.3/chosen.min.css"
            integrity="<KEY>">
        <link rel="stylesheet" type="text/css" crossorigin="anonymous"
            href="https://unpkg.com/pickadate@3.5.6/lib/compressed/themes/default.css"
            integrity="<KEY>8JK8Mnz+C2uiqMpk9DtYK">
        <link rel="stylesheet" type="text/css" crossorigin="anonymous"
            href="https://unpkg.com/pickadate@3.5.6/lib/compressed/themes/default.date.css"
            integrity="<KEY>">

        {% compress css %}
            <link rel="stylesheet" type="text/x-scss" href="{% static 'scss/base.scss' %}">
        {% endcompress %}

        {% block extra_css %}
            {# Override this in templates to add extra stylesheets #}
        {% endblock %}
    </head>
    <body>
        <div class="navbar sticky-top navbar-toggleable-sm navbar-inverse bg-primary mb-4">
            <div class="container">
                <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <h1 class="navbar-brand mb-0">{% block title %}{% endblock %}</h1>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav mr-auto">
                        {% if user.is_authenticated %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'dashboard' %}">Dashboard</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'reports' %}">Reports</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'timesheets' %}">Timesheets</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'tasks' %}">Tasks</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'entries' %}">Entries</a>
                            </li>
                            {% if user.is_staff %}
                                <li class="nav-item">
                                    <a class="nav-link" href="/api/">API</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="/admin/">Admin</a>
                                </li>
                            {% endif %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'logout' %}">Logout</a>
                            </li>
                        {% else %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'login' %}">Login</a>
                            </li>
                        {% endif %}
                    </ul>
                </div>
                <a class="navbar-brand" href="https://github.com/overshard/timestrap" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a>
            </div>
        </div>

        <div class="container">
            {% block content %}{% endblock %}
        </div>

        {# Global javascript #}
        {# TODO: Clean up for full release, we don't even use half of these #}
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/riot@3.4.2/riot+compiler.min.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/jquery@3.2.1/dist/jquery.min.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/tether@1.4.0/dist/js/tether.min.js"
            integrity="<KEY>b"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/bootstrap@4.0.0-alpha.6/dist/js/bootstrap.min.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/js-cookie@2.1.4/src/js.cookie.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/js-cookie@2.1.4/src/js.cookie.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/chosenjs@1.4.3/chosen.jquery.min.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/pickadate@3.5.6/lib/compressed/picker.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/pickadate@3.5.6/lib/compressed/picker.date.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://unpkg.com/moment@2.18.1/min/moment.min.js"
            integrity="<KEY>"></script>
        <script type="text/javascript" crossorigin="anonymous"
            src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"
            integrity="<KEY>"></script>

        {% compress js %}
            <script type="text/javascript" src="{% static 'js/base.js' %}"></script>
        {% endcompress %}

        {% block extra_js %}
            {# Override this in templates to add extra javascript #}
        {% endblock %}
    </body>
</html><commit_msg>Streamline css and js imports in base template<commit_after>{% load static compress %}

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>{% block meta_title %}{% endblock %} - Timestrap</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        {# Global stylesheets #}
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity="sha256-NuCn4IvuZXdBaFKJOAcsU2Q3ZpwbdFisd5dux4jkQ5w=" crossorigin="anonymous" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/css/tether.min.css" integrity="sha256-y4TDcAD4/j5o4keZvggf698Cr9Oc7JZ+gGMax23qmVA=" crossorigin="anonymous" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha256-rr9hHBQ43H7HSOmmNkxzQGazS/Khx+L8ZRHteEY1tQ4=" crossorigin="anonymous" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.7.0/chosen.min.css" integrity="sha256-mT46DtujUaKjYvj5sW6iVmmxhUmAslmmkuYdo6zVDP8=" crossorigin="anonymous" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.6/compressed/themes/default.css" integrity="sha256-HJnF0By+MMhHfGTHjMMD7LlFL0KAQEMyWB86VbeFn4k=" crossorigin="anonymous" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.6/compressed/themes/default.date.css" integrity="sha256-Ex8MCGbDP5+fEwTgLt8IbGaIDJu2uj88ZDJgZJrxA4Y=" crossorigin="anonymous" />

        {% compress css %}
            <link rel="stylesheet" type="text/x-scss" href="{% static 'scss/base.scss' %}">
        {% endcompress %}

        {% block extra_css %}
            {# Override this in templates to add extra stylesheets #}
        {% endblock %}
    </head>
    <body>
        <div class="navbar sticky-top navbar-toggleable-sm navbar-inverse bg-primary mb-4">
            <div class="container">
                <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <h1 class="navbar-brand mb-0">{% block title %}{% endblock %}</h1>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav mr-auto">
                        {% if user.is_authenticated %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'dashboard' %}">Dashboard</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'reports' %}">Reports</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'timesheets' %}">Timesheets</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'tasks' %}">Tasks</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'entries' %}">Entries</a>
                            </li>
                            {% if user.is_staff %}
                                <li class="nav-item">
                                    <a class="nav-link" href="/api/">API</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="/admin/">Admin</a>
                                </li>
                            {% endif %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'logout' %}">Logout</a>
                            </li>
                        {% else %}
                            <li class="nav-item">
                                <a class="nav-link" href="{% url 'login' %}">Login</a>
                            </li>
                        {% endif %}
                    </ul>
                </div>
                <a class="navbar-brand" href="https://github.com/overshard/timestrap" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a>
            </div>
        </div>

        <div class="container">
            {% block content %}{% endblock %}
        </div>

        {# Global javascript #}
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha256-gL1ibrbVcRIHKlCO5OXOPC/lZz/gpdApgQAzskqqXp8=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha256-+kIbbrvS+0dNOjhmQJzmwe/RILR/8lb/+4+PUNVW09k=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.7.0/chosen.jquery.min.js" integrity="sha256-4PBBxPFHK8/lSC8/ZtuyV6sN3V2QQ0uutyuBQ8RsYew=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.6/compressed/picker.js" integrity="sha256-A1y8n02GW5dvJFkEOX7UCbzJoko8kqgWUquWf9TWFS8=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/pickadate.js/3.5.6/compressed/picker.date.js" integrity="sha256-rTh8vmcE+ZrUK3k9M6QCNZIBmAd1vumeuJkagq0EU3g=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.4/js.cookie.min.js" integrity="sha256-NjbogQqosWgor0UBdCURR5dzcvAgHnfUZMcZ8RCwkk8=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js" integrity="sha256-GcknncGKzlKm69d+sp+k3A2NyQE+jnu43aBl6rrDN2I=" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/riot/3.4.3/riot+compiler.min.js" integrity="sha256-s0V6tSSO3lyWO++9wmvvmNvbkNNfUVR9h/oOS80TU/w=" crossorigin="anonymous"></script>

        {% compress js %}
            <script type="text/javascript" src="{% static 'js/base.js' %}"></script>
        {% endcompress %}

        {% block extra_js %}
            {# Override this in templates to add extra javascript #}
        {% endblock %}
    </body>
</html>
{'fraction_non_alphanumeric': 0.1626425714708932, 'fraction_numerical': 0.019034217153014368, 'mean_word_length': 1.8614113159567705, 'pattern_counts': {'":': 0, '<': 214, '<?xml version=': 0, '>': 214, 'https://': 33, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2860364', 'n_tokens_mistral': 4518, 'n_tokens_neox': 4178, 'n_words': 593}