<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <title>True NTH USA Portal Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="robots" content="noindex" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/portal.css') }}">
    <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico') }}">
    <script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="{{ url_for('static', filename='js/validator.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
</head>

{% set splashView = false %}
{% if request.path=="/" or request.path=="/user/sign-in" or request.path=="/error" %}
    {% set splashView = true %}
{% endif %}

<body>
    {# portal_wrapper loads in mainNav here. Hide completely on splashView pages #}
    <div id="mainNav" {% if splashView %}class="hidden"{% endif %}>
    </div>

    <div id="mainHolder" {% if splashView %}class="vertical-center"{% endif %}>
      <div id="mainDiv">

        <div class="container{% if splashView %}-fluid{% endif %}">
            <div class="row">
                <div class="col-xs-12 col-lg-10 col-lg-offset-1">
                    {% block main %}
                    {% endblock %}
                </div>
            </div>
        </div>

        {% from "flask_user/_macros.html" import footer %}
        {% if splashView %}
            {{ footer(splash_style=true) }}
        {% else %}
            {{ footer() }}
        {% endif %}

      </div> {# <!-- <div id="mainDiv"> --> #}
    </div> {# <!-- <div id="mainHolder"> --> #}

    {# One-time system messages called Flash messages #}
    {% block flash_messages %}
        {%- with messages = get_flashed_messages(with_categories=true) -%}
            {% if messages %}
                {# Modal dialog for alerts #}
                <div class="modal fade" tabindex="-1" role="dialog" id="alertModal">
                  <div class="modal-dialog">
                    <div class="modal-content">
                      <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h2 class="modal-title">TrueNTH</h2>
                      </div>
                      <div class="modal-body">

                        {% for category, message in messages %}
                            {% if category=='error' %}
                                {% set category='danger' %}
                            {% endif %}
                            <p class="text-{{category}}">{{ message|safe }}</p>
                        {% endfor %}

                      </div>
                      <div class="modal-footer">
                        <button type="button" class="btn btn-default btn-tnth-primary btn-lg" data-dismiss="modal">Close</button>
                      </div>
                    </div>
                  </div>
                </div>
                {# Modal dialog opens on page load because we went to display alert(s) #}
                <script>
                  $('#alertModal').modal('show')
                </script>
            {% endif %}
        {%- endwith %}
    {% endblock %}

<script>
PORTAL_NAV_PAGE = window.location.protocol+"//"+window.location.host+"/api/portal-wrapper-html/";
PORTAL_HOSTNAME = new URL(PORTAL_NAV_PAGE).hostname;
{% block document_ready %}
$(document).ready(function(){
    $('[data-toggle="popover"]').popover();
});
{% endblock %}
</script>
{% if config.version %}<!--Shared services version: {{config.version}}-->{% endif %}
</body>
</html><commit_msg>Hack to prevent the flash_message that says login successful doesn't display.<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <title>True NTH USA Portal Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="robots" content="noindex" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/portal.css') }}">
    <link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico') }}">
    <script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="{{ url_for('static', filename='js/validator.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
</head>

{% set splashView = false %}
{% if request.path=="/" or request.path=="/user/sign-in" or request.path=="/error" %}
    {% set splashView = true %}
{% endif %}

<body>
    {# portal_wrapper loads in mainNav here. Hide completely on splashView pages #}
    <div id="mainNav" {% if splashView %}class="hidden"{% endif %}>
    </div>

    <div id="mainHolder" {% if splashView %}class="vertical-center"{% endif %}>
      <div id="mainDiv">

        <div class="container{% if splashView %}-fluid{% endif %}">
            <div class="row">
                <div class="col-xs-12 col-lg-10 col-lg-offset-1">
                    {% block main %}
                    {% endblock %}
                </div>
            </div>
        </div>

        {% from "flask_user/_macros.html" import footer %}
        {% if splashView %}
            {{ footer(splash_style=true) }}
        {% else %}
            {{ footer() }}
        {% endif %}

      </div> {# <!-- <div id="mainDiv"> --> #}
    </div> {# <!-- <div id="mainHolder"> --> #}

    {# One-time system messages called Flash messages #}
    {% block flash_messages %}
        {%- with messages = get_flashed_messages(with_categories=true) -%}
            {% if messages %}

                {# Hack to prevent modal if it's only successful login #}
                {% set showMessages = true %}
                {% if messages|first|last == "You have signed in successfully." %}
                    {% set showMessages = false %}
                {% endif %}

                {% if showMessages %}

                    {# Modal dialog for alerts #}
                    <div class="modal fade" tabindex="-1" role="dialog" id="alertModal">
                      <div class="modal-dialog">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h2 class="modal-title">TrueNTH</h2>
                          </div>
                          <div class="modal-body">

                            {% for category, message in messages %}
                                {% if category=='error' %}
                                    {% set category='danger' %}
                                {% endif %}
                                <p class="text-{{category}}">{{ message|safe }}</p>
                            {% endfor %}

                          </div>
                          <div class="modal-footer">
                            <button type="button" class="btn btn-default btn-tnth-primary btn-lg" data-dismiss="modal">Close</button>
                          </div>
                        </div>
                      </div>
                    </div>
                    {# Modal dialog opens on page load because we went to display alert(s) #}
                    <script>
                      $('#alertModal').modal('show')
                    </script>

                {% endif %}

            {% endif %}
        {%- endwith %}
    {% endblock %}

<script>
PORTAL_NAV_PAGE = window.location.protocol+"//"+window.location.host+"/api/portal-wrapper-html/";
PORTAL_HOSTNAME = new URL(PORTAL_NAV_PAGE).hostname;
{% block document_ready %}
$(document).ready(function(){
    $('[data-toggle="popover"]').popover();
});
{% endblock %}
</script>
{% if config.version %}<!--Shared services version: {{config.version}}-->{% endif %}
</body>
</html>
{'fraction_non_alphanumeric': 0.17935665547492688, 'fraction_numerical': 0.005198743636954403, 'mean_word_length': 1.9951346091469349, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1526870', 'n_tokens_mistral': 2875, 'n_tokens_neox': 2595, 'n_words': 527}