<commit_before>{% load i18n %}
{% load bb_ember %}
{% load compress %}
{% load static %}

<!DOCTYPE HTML>
<html lang="{{ LANGUAGE_CODE }}">

<head>
    <meta charset="utf-8" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">

    <title>{% block title %}Bluebottle Project{% endblock %}</title>

    {% block defaults_js %}
        <script type="text/javascript">
            var default_title = '{% blocktrans %}Site meta title{% endblocktrans %}';
            var default_description = '{% blocktrans %}Site meta description{% endblocktrans %}';
            var default_keywords = '{% blocktrans %}Site meta keywords{% endblocktrans %}';
        </script>
    {% endblock defaults_js %}

    {% block meta %}

        <meta name="description" content="{% blocktrans %}Site meta description{% endblocktrans %}" />
        <meta name="author" content="{% blocktrans %}Site meta author{% endblocktrans %}" />
        <meta name="keywords" content="{% blocktrans %}Site meta keywords{% endblocktrans %}" />

    <link rel="shortcut icon" href="{% static 'favicon.ico' %}">


    {% endblock %}


    {# Stylesheets #}
    {% compress css %}
        {% block screen_css %}
            <link rel="stylesheet" href="{% static 'css/screen.css' %}" media="screen" />
            <link rel="stylesheet" href="{% static 'css/vendor/redactor.css' %}" media="screen" />
            <!--[if IE]>
            <link rel="stylesheet" href="{% static 'css/ie.css" media="screen" />
            <![endif]-->
        {% endblock screen_css %}
    {% endcompress %}

    {# Scripts #}
    <!-- avoid hardcoding these urls -->
    <script type="text/javascript">
        var GIT_COMMIT = '{{ GIT_COMMIT }}';
        var RAVEN_DSN = '{{ RAVEN_DSN }}';
        var STATIC_URL = '{{ STATIC_URL }}';
        var MEDIA_URL = '{{ MEDIA_URL }}';
        var LANGUAGE_CODE = '{{ LANGUAGE_CODE }}';
        var DEBUG = {{ DEBUG|yesno:"true,false" }};
        var MAPS_API_KEY = '{{ MAPS_API_KEY }}';
        {# Setting CSRF_TOKEN here only so that django will set the csrf cookie. We don't use the variable below. #}
        var CSRF_TOKEN = '{{ csrf_token }}';
    </script>

    {% if RAVEN_DSN %}
        <script src="//cdn.ravenjs.com/1.1.15/ember,jquery,native/raven.min.js"></script>
    {% endif %}

    {# The Ember stack. jQuery, jQuery-ui, Ember, Ember-data, Ember-drf2-adapter, Ember meta #}
    {% if DEBUG %}
        <script type="text/javascript" src="{% static 'js/vendor/jquery-1.8.3.min.js' %}"></script>
    {% else %}
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    {% endif %}
<commit_msg>cleaner way to set the csrf token<commit_after>{% load i18n %}
{% load bb_ember %}
{% load compress %}
{% load static %}

<!DOCTYPE HTML>
<html lang="{{ LANGUAGE_CODE }}">

<head>
    <meta charset="utf-8" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    {# Setting meta csrf-token here only so that django will set the csrf cookie. We don't currently use this meta value. #}
    <meta name="csrf-token" content="{{ csrf_token }}">

    <title>{% block title %}Bluebottle Project{% endblock %}</title>

    {% block defaults_js %}
        <script type="text/javascript">
            var default_title = '{% blocktrans %}Site meta title{% endblocktrans %}';
            var default_description = '{% blocktrans %}Site meta description{% endblocktrans %}';
            var default_keywords = '{% blocktrans %}Site meta keywords{% endblocktrans %}';
        </script>
    {% endblock defaults_js %}

    {% block meta %}

        <meta name="description" content="{% blocktrans %}Site meta description{% endblocktrans %}" />
        <meta name="author" content="{% blocktrans %}Site meta author{% endblocktrans %}" />
        <meta name="keywords" content="{% blocktrans %}Site meta keywords{% endblocktrans %}" />

    <link rel="shortcut icon" href="{% static 'favicon.ico' %}">


    {% endblock %}


    {# Stylesheets #}
    {% compress css %}
        {% block screen_css %}
            <link rel="stylesheet" href="{% static 'css/screen.css' %}" media="screen" />
            <link rel="stylesheet" href="{% static 'css/vendor/redactor.css' %}" media="screen" />
            <!--[if IE]>
            <link rel="stylesheet" href="{% static 'css/ie.css" media="screen" />
            <![endif]-->
        {% endblock screen_css %}
    {% endcompress %}

    {# Scripts #}
    <!-- avoid hardcoding these urls -->
    <script type="text/javascript">
        var GIT_COMMIT = '{{ GIT_COMMIT }}';
        var RAVEN_DSN = '{{ RAVEN_DSN }}';
        var STATIC_URL = '{{ STATIC_URL }}';
        var MEDIA_URL = '{{ MEDIA_URL }}';
        var LANGUAGE_CODE = '{{ LANGUAGE_CODE }}';
        var DEBUG = {{ DEBUG|yesno:"true,false" }};
        var MAPS_API_KEY = '{{ MAPS_API_KEY }}';
    </script>

    {% if RAVEN_DSN %}
        <script src="//cdn.ravenjs.com/1.1.15/ember,jquery,native/raven.min.js"></script>
    {% endif %}

    {# The Ember stack. jQuery, jQuery-ui, Ember, Ember-data, Ember-drf2-adapter, Ember meta #}
    {% if DEBUG %}
        <script type="text/javascript" src="{% static 'js/vendor/jquery-1.8.3.min.js' %}"></script>
    {% else %}
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    {% endif %}

{'fraction_non_alphanumeric': 0.18157944100543988, 'fraction_numerical': 0.005627462014631401, 'mean_word_length': 2.781560283687943, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '127479', 'n_tokens_mistral': 1856, 'n_tokens_neox': 1673, 'n_words': 397}