<commit_before>{% extends 'VictoireCoreBundle:Layout:base.html.twig' %}

{% trans_default_domain "victoire" %}

{% block html_attr %}ng-app="ngApp" lang="{{ app.request.locale|split('_')[0] }}"{% endblock html_attr %}
{% block title %}Victoire DCMS{% endblock %}
{% block meta %}{% include 'VictoireSeoBundle::_meta.html.twig' %}{% endblock %}

{% block head_script %}
    <!-- HEAD_SCRIPT -->
    <script type="text/javascript">
        var locale = '{{ app.request.locale }}';
        var debug = {{ app.debug ? "true" : "false" }};
    </script>

    {% if is_granted('ROLE_VICTOIRE') %}
        <script type="text/javascript">
            var adminLocale = '{{ app.user.locale }}';
        </script>
        {% javascripts injector="victoire-head, modernizr" %}
            <script type="text/javascript" src="{{ asset_url }}"></script>
        {% endjavascripts %}
    {% endif %}

    {% javascripts injector="head" %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}

    <!-- END HEAD_SCRIPT -->
    {% if app.debug %}
        <script src="{{ asset('/bundles/victoireui/bower_components/jquery/dist/jquery.js') }}"></script>
        <script src="{{ asset('/bundles/victoireui/bower_components/angular/angular.min.js') }}"></script>
    {% else %}<commit_msg>add a warning for missing user's locale value<commit_after>{% extends 'VictoireCoreBundle:Layout:base.html.twig' %}

{% trans_default_domain "victoire" %}

{% block html_attr %}ng-app="ngApp" lang="{{ app.request.locale|split('_')[0] }}"{% endblock html_attr %}
{% block title %}Victoire DCMS{% endblock %}
{% block meta %}{% include 'VictoireSeoBundle::_meta.html.twig' %}{% endblock %}

{% block head_script %}
    <!-- HEAD_SCRIPT -->
    <script type="text/javascript">
        var locale = '{{ app.request.locale }}';
        var debug = {{ app.debug ? "true" : "false" }};
    </script>

    {% if is_granted('ROLE_VICTOIRE') %}
        <script type="text/javascript">
            var adminLocale = '{{ app.user.locale }}';
            if (adminLocale == '') console.warn('Please define a value (fr, en, es) for your user\'s locale property in db');
        </script>
        {% javascripts injector="victoire-head, modernizr" %}
            <script type="text/javascript" src="{{ asset_url }}"></script>
        {% endjavascripts %}
    {% endif %}

    {% javascripts injector="head" %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}

    <!-- END HEAD_SCRIPT -->
    {% if app.debug %}
        <script src="{{ asset('/bundles/victoireui/bower_components/jquery/dist/jquery.js') }}"></script>
        <script src="{{ asset('/bundles/victoireui/bower_components/angular/angular.min.js') }}"></script>
    {% else %}
{'fraction_non_alphanumeric': 0.19719827586206898, 'fraction_numerical': 0.0007183908045977011, 'mean_word_length': 3.258409785932722, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '6015778', 'n_tokens_mistral': 951, 'n_tokens_neox': 855, 'n_words': 173}