<commit_before>## -*- coding: utf-8 -*-


## OpenFisca -- A versatile microsimulation software
## By: OpenFisca Team <<EMAIL>>
##
## Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
## https://github.com/openfisca
##
## This file is part of OpenFisca.
##
## OpenFisca is free software; you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## OpenFisca is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.


<%doc>
    Site template inherited by each page
</%doc>


<%!
import collections
import datetime
import urlparse

from openfisca_web_site import conf, urls
%>


<%def name="body_attributes()" filter="trim">
</%def>


<%def name="body_content()" filter="trim">
    <div class="container" id="content">
        <%self:breadcrumb/>
        <%self:container_content/>
    </div>
</%def>


<%def name="brand()" filter="trim">
${conf['realm']}
</%def>


<%def name="brand_url()" filter="trim">
/
</%def>


<%def name="breadcrumb()" filter="trim">
        <ul class="breadcrumb">
            <%self:breadcrumb_content/>
        </ul>
</%def>


<%def name="breadcrumb_content()" filter="trim">
            <li><a href="${urls.get_url(ctx)}">${_('Home')}</a></li>
</%def>


<%def name="container_content()" filter="trim">
    <%self:page_header/>
    <%self:page_content/>
</%def>


<%def name="css()" filter="trim">
    <link href="${urls.get_static_url(ctx, u'/bower/bootstrap/dist/css/bootstrap.min.css')}" rel="stylesheet">
    <link href="${urls.get_static_url(ctx, u'/css/site.css')}" rel="stylesheet">
</%def>


<%def name="error_alert()" filter="trim">
    % if errors:
                <div class="alert alert-danger">
                    <h4 class="alert-heading">${_('Error!')}</h4>
        % if '' in errors:
<%
            error = unicode(errors[''])
%>\
            % if u'\n' in error:
                    <pre class="break-word">${error}</error>
            % else:
                    ${error}
            % endif
        % else:
                    ${_(u"Please, correct the informations below.")}
        % endif
                </div>
    % endif
</%def>


<%def name="feeds()" filter="trim">
    <link rel="alternate" type="application/atom+xml" title="${conf['realm']}" href="${urls.get_url(ctx, 'atom')}">
</%def>


<%def name="footer()" filter="trim">
    <footer class="footer navbar-inverse" style="margin-top: 15px">
        <div class="container">
    % if node is not None and template is not None:
            <ul class="nav navbar-nav">
                <li><a href="https://github.com/openfisca/openfisca-web-site/tree/master/openfisca_web_site/templates${
                        node.template_path}">Source de la page</a></li>
                <li><a href="http://stats.data.gouv.fr/index.php?idSite=4">Statistiques du site</a></li>
                <li><a href="${urls.get_url(ctx, 'mentions-legales')}">Mentions légales</a></li>
            </ul>
    % endif
        </div>
    </footer>
</%def>

<commit_msg>Correct link to GitHub source page in footer.<commit_after>## -*- coding: utf-8 -*-


## OpenFisca -- A versatile microsimulation software
## By: OpenFisca Team <<EMAIL>>
##
## Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
## https://github.com/openfisca
##
## This file is part of OpenFisca.
##
## OpenFisca is free software; you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## OpenFisca is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.


<%doc>
    Site template inherited by each page
</%doc>


<%!
import collections
import datetime
import urlparse

from openfisca_web_site import conf, urls
%>


<%def name="body_attributes()" filter="trim">
</%def>


<%def name="body_content()" filter="trim">
    <div class="container" id="content">
        <%self:breadcrumb/>
        <%self:container_content/>
    </div>
</%def>


<%def name="brand()" filter="trim">
${conf['realm']}
</%def>


<%def name="brand_url()" filter="trim">
/
</%def>


<%def name="breadcrumb()" filter="trim">
        <ul class="breadcrumb">
            <%self:breadcrumb_content/>
        </ul>
</%def>


<%def name="breadcrumb_content()" filter="trim">
            <li><a href="${urls.get_url(ctx)}">${_('Home')}</a></li>
</%def>


<%def name="container_content()" filter="trim">
    <%self:page_header/>
    <%self:page_content/>
</%def>


<%def name="css()" filter="trim">
    <link href="${urls.get_static_url(ctx, u'/bower/bootstrap/dist/css/bootstrap.min.css')}" rel="stylesheet">
    <link href="${urls.get_static_url(ctx, u'/css/site.css')}" rel="stylesheet">
</%def>


<%def name="error_alert()" filter="trim">
    % if errors:
                <div class="alert alert-danger">
                    <h4 class="alert-heading">${_('Error!')}</h4>
        % if '' in errors:
<%
            error = unicode(errors[''])
%>\
            % if u'\n' in error:
                    <pre class="break-word">${error}</error>
            % else:
                    ${error}
            % endif
        % else:
                    ${_(u"Please, correct the informations below.")}
        % endif
                </div>
    % endif
</%def>


<%def name="feeds()" filter="trim">
    <link rel="alternate" type="application/atom+xml" title="${conf['realm']}" href="${urls.get_url(ctx, 'atom')}">
</%def>


<%def name="footer()" filter="trim">
    <footer class="footer navbar-inverse" style="margin-top: 15px">
        <div class="container">
            <ul class="nav navbar-nav">
                <li><a href="https://github.com/openfisca/openfisca-web-site/tree/master/openfisca_web_site${
                        self.filename[len(conf['app_dir']):]}">Source de la page</a></li>
                <li><a href="http://stats.data.gouv.fr/index.php?idSite=4">Statistiques du site</a></li>
                <li><a href="${urls.get_url(ctx, 'mentions-legales')}">Mentions légales</a></li>
            </ul>
        </div>
    </footer>
</%def>


{'fraction_non_alphanumeric': 0.17959895379250218, 'fraction_numerical': 0.0066841034582970065, 'mean_word_length': 2.9855240301100174, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4325519', 'n_tokens_mistral': 2312, 'n_tokens_neox': 2156, 'n_words': 570}