<commit_before>{% load i18n %}
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="alternate" type="application/atom+xml" title="RSS" href="/feeds/changes.xml">

    {% block extra_head %}
    {% endblock %}

    {% load staticfiles %}
    <link rel="shortcut icon" href="{% static 'img/favicon.ico' %}"/>
    <link rel="apple-touch-icon" href="{% static 'img/apple-touch-icon.png' %}"/>

    {% load pipeline %}
    {% stylesheet 'all' %}
    {% block extra_css %}
    {% endblock %}

    <!--[if lt IE 9]>
      <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
      <script src="//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js"></script>
      <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script>
    <![endif]-->

    {% load statici18n %}
    <script src="{% statici18n LANGUAGE_CODE %}"></script>

    {% javascript 'all' %}
    {% block extra_js %}
    {% endblock %}

    <title>{% block title %}{% trans "YourNextMP - 2015 UK general election candidates" %}{% endblock %}</title>

    {% block analytics %}
      {% if settings.GOOGLE_ANALYTICS_ACCOUNT %}
        <script>
          {% if settings.USE_UNIVERSAL_ANALYTICS %}
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

            ga('create', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}', 'auto');
          {% else %}
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}']);
            _gaq.push(['_trackPageview']);
            (function() {
              var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
              ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
              var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
          {% endif %}
        </script>
      {% endif %}
    {% endblock %}

</head>

<body class="{% block body_class %}{% endblock %}">
  <div class="header">
    <div class="container">
      <div class="header__nav">
        <a href="/" class="header__nav__logo">{% trans "YourNextMP" %}</a>
        <a href="{% url 'help-about' %}" class="header__nav__logo">{% trans "About" %}</a>
        <a href="{% url 'posts' %}" class="header__nav__logo">{% trans "Posts" %}</a>
        <a href="{% url 'reports_home' %}" class="header__nav__logo">{% trans "Numbers" %}</a>
        {% if user_can_review_photos and photos_for_review > 0 %}
          <a href="{% url 'photo-review-list' %}" class="header__nav__logo header__nav__notification">{{ photos_for_review }}</a>
        {% endif %}
        {% if user.is_authenticated %}
          <span class="header__nav__logout">
            {% blocktrans with username=user.username %}Signed in as <strong>{{ username }}</strong>{% endblocktrans %}
            <a href="{% url 'account_logout' %}{% if redirect_after_login %}?next={{ redirect_after_login }}{% endif %}">{% trans "Sign out" %}</a>
          </span>
        {% else %}
          <a href="{% url 'account_login' %}{% if redirect_after_login %}?next={{ redirect_after_login }}{% endif %}"
             class="header__nav__login">{% trans "Sign in to edit" %}</a>
        {% endif %}
      </div>
      <div class="header__hero">
        {% block hero %}
        {% endblock %}
      </div>
    </div>
  </div>
  <div class="content">
    <div class="container">

      {% if messages %}
        <div class="messages">
          {% for message in messages %}
            {% if 'photo-review' in message.tags or 'do-something-else' in message.tags %}
              <p class="message {% if message.tags %}{{ message.tags }}{% endif %}">
                {% if 'safe' in message.tags %}
                  {{ message|safe }}
                {% else %}
                  {{ message }}
                {% endif %}
              </p>
            {% endif %}
          {% endfor %}
        </div>
      {% endif %}

      {% block content %}
      {% endblock %}
    </div>
  </div>
  <div class="footer">
    <div class="container">
      <div class="footer__links">
        <p><a href="{% url 'help-api' %}">{% trans "Open data API" %}</a>
            &middot; <a href="{% url 'help-about' %}">{% trans "About" %}</a>
            &middot; <a href="https://github.com/mysociety/yournextrepresentative/issues">{% trans "Issue tracker" %}</a>
            &middot; <a href="{% url 'help-privacy' %}">{% trans "Privacy policy" %}</a></p>
      </div>
      <div class="footer__bylines"><commit_msg>Fix display of flash messages after person creation / update<commit_after>{% load i18n %}
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="alternate" type="application/atom+xml" title="RSS" href="/feeds/changes.xml">

    {% block extra_head %}
    {% endblock %}

    {% load staticfiles %}
    <link rel="shortcut icon" href="{% static 'img/favicon.ico' %}"/>
    <link rel="apple-touch-icon" href="{% static 'img/apple-touch-icon.png' %}"/>

    {% load pipeline %}
    {% stylesheet 'all' %}
    {% block extra_css %}
    {% endblock %}

    <!--[if lt IE 9]>
      <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
      <script src="//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js"></script>
      <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script>
    <![endif]-->

    {% load statici18n %}
    <script src="{% statici18n LANGUAGE_CODE %}"></script>

    {% javascript 'all' %}
    {% block extra_js %}
    {% endblock %}

    <title>{% block title %}{% trans "YourNextMP - 2015 UK general election candidates" %}{% endblock %}</title>

    {% block analytics %}
      {% if settings.GOOGLE_ANALYTICS_ACCOUNT %}
        <script>
          {% if settings.USE_UNIVERSAL_ANALYTICS %}
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

            ga('create', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}', 'auto');
          {% else %}
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_ACCOUNT }}']);
            _gaq.push(['_trackPageview']);
            (function() {
              var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
              ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
              var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
          {% endif %}
        </script>
      {% endif %}
    {% endblock %}

</head>

<body class="{% block body_class %}{% endblock %}">
  <div class="header">
    <div class="container">
      <div class="header__nav">
        <a href="/" class="header__nav__logo">{% trans "YourNextMP" %}</a>
        <a href="{% url 'help-about' %}" class="header__nav__logo">{% trans "About" %}</a>
        <a href="{% url 'posts' %}" class="header__nav__logo">{% trans "Posts" %}</a>
        <a href="{% url 'reports_home' %}" class="header__nav__logo">{% trans "Numbers" %}</a>
        {% if user_can_review_photos and photos_for_review > 0 %}
          <a href="{% url 'photo-review-list' %}" class="header__nav__logo header__nav__notification">{{ photos_for_review }}</a>
        {% endif %}
        {% if user.is_authenticated %}
          <span class="header__nav__logout">
            {% blocktrans with username=user.username %}Signed in as <strong>{{ username }}</strong>{% endblocktrans %}
            <a href="{% url 'account_logout' %}{% if redirect_after_login %}?next={{ redirect_after_login }}{% endif %}">{% trans "Sign out" %}</a>
          </span>
        {% else %}
          <a href="{% url 'account_login' %}{% if redirect_after_login %}?next={{ redirect_after_login }}{% endif %}"
             class="header__nav__login">{% trans "Sign in to edit" %}</a>
        {% endif %}
      </div>
      <div class="header__hero">
        {% block hero %}
        {% endblock %}
      </div>
    </div>
  </div>
  <div class="content">
    <div class="container">

      {% if messages %}
        <div class="messages">
          {% for message in messages %}
            {% if 'photo-review' in message.tags or 'do-something-else' in message.tags %}
              <div class="message {% if message.tags %}{{ message.tags }}{% endif %}">
                {% if 'safe' in message.tags %}
                  {{ message|safe }}
                {% else %}
                  {{ message }}
                {% endif %}
              </div>
            {% endif %}
          {% endfor %}
        </div>
      {% endif %}

      {% block content %}
      {% endblock %}
    </div>
  </div>
  <div class="footer">
    <div class="container">
      <div class="footer__links">
        <p><a href="{% url 'help-api' %}">{% trans "Open data API" %}</a>
            &middot; <a href="{% url 'help-about' %}">{% trans "About" %}</a>
            &middot; <a href="https://github.com/mysociety/yournextrepresentative/issues">{% trans "Issue tracker" %}</a>
            &middot; <a href="{% url 'help-privacy' %}">{% trans "Privacy policy" %}</a></p>
      </div>
      <div class="footer__bylines">
{'fraction_non_alphanumeric': 0.20207051469870105, 'fraction_numerical': 0.006445941986522121, 'mean_word_length': 2.5766678309465596, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 153, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '6520692', 'n_tokens_mistral': 3645, 'n_tokens_neox': 3294, 'n_words': 653}