<commit_before>{% extends 'SimplyTestableWebClientBundle::bs3/base.html.twig' %}

{% block title %}Testing {% include 'SimplyTestableWebClientBundle:Partials:/url/utf8-schemeless-possibly-truncated-64.html.twig' with {'url': website} %} (#{{test.testId}}) - {{ parent() }}{% endblock %}

{% block stylesheets %}
    {{ parent() }}

    {% stylesheets
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/modal.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/full-width.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/summary-stats.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/test-options.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/cookies-options-modal.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/btn-significant.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/pagination.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/task-list.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/test-progress.css'
    filter='cssrewrite' %}
    <link rel="stylesheet" href="{{ asset_url }}"/>
    {% endstylesheets %}
{% endblock %}

{% block javascripts %}
    {{ parent() }}

    {% javascripts
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/jQuery/stModal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/http-authentication-options-modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/cookie-options-modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/test-progress-tasks.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/test-progress-summary.js'
    %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endblock %}

{% block body_class %} {{ parent() }} full-width job-{{ remote_test.state }} {% endblock %}

{% block body %}
    {{ parent() }}

    <div class="alert-container">
        {% include 'SimplyTestableWebClientBundle:bs3/Partials/Generic/Notification/Conditional:url-limit.html.twig' with {'add_class':'alert-ammendment'} %}
    </div>

    <div class="header">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h1>
                        Testing
                        <span id="test-url" title="{{website.raw}}">
                            {{ website.utf8.schemeless.raw }}
                            {#{% include 'SimplyTestableWebClientBundle:Partials/url:utf8-schemeless-possibly-truncated-64.html.twig' with {'url': website} %}#}
                        </span>
                        <span id="test-id">(#{{ test.testId }})</span>
                    </h1>

                    <div class="row details">
                        <div class="col-lg-12 progress-summary">
                            <div class="progress">
                                <div id="completion-percent-bar"
                                     class="progress-bar {% if remote_test.state == 'crawling' %}progress-bar-warning{% endif %}"
                                     role="progressbar"
                                     aria-valuenow="{{ remote_test.completionpercent }}"
                                     aria-valuemin="0"
                                     aria-valuemax="100"
                                     style="width: {{ remote_test.completionpercent }}%;"></div>
                            </div>
                            <p class="subtle" id="completion-percent-state-label">{{ state_label }}</span><span id="completion-time-remaining">&nbsp;</p>
                        </div>

                        <div class="col-lg-9 col-md-9 col-sm-7 col-xs-12 test-summary">
                            <div class="row">
                                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 task-queues">
                                    <p>Test Summary:</p>
                                    {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Progress/Index:task-queues.html.twig' %}
                                </div>
                                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 task-types">
                                    <p class="">Testing:</p>
                                    {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Progress/Index:task-type-summary.html.twig' %}
                                </div>
                            </div>
                        </div>
                        <div class="clearfix visible-xs"></div>
                        <div class="col-lg-3 col-md-3 col-sm-5 side-actions">
                            <div class="row">
                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 buttons">
                                    <form id="cancel-form" role="form" method="post" action="{{ path('test_cancel', {website: website.raw, test_id: test.testId}) }}">
                                        <button id="cancel-button" type="submit" class="btn btn-danger btn-significant side-action">
                                            <i class="fa fa-fw fa-power-off"></i>
                                            Stop test
                                            <span>and go to the results</span>
                                        </button>
                                    </form>

                                    <form id="cancel-crawl-form" role="form" method="post" action="{{ path('test_cancel_crawl', {'test_id':test.testId, 'website':test.website}) }}">
                                        <button id="cancel-crawl-button" type="submit" class="btn btn-warning btn-significant side-action">
                                            <i class="fa fa-fw fa-power-off"></i>
                                            Stop finding pages, start testing
                                        </button>
                                    </form>
                                </div>

                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 test-options">
                                    {% if test_options['http-authentication'] is defined %}
                                        <div class="test-option">
                                            {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options/HttpAuthentication:http-authentication.html.twig' with {'read_only': true} %}
                                        </div>
                                    {% endif %}

                                    {% if test_options['cookies'] is defined %}
                                        <div class="test-option">
                                            {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options/Cookies:cookies.html.twig' with {'read_only': true} %}
                                        </div>
                                    {% endif %}

                                    <span class="collapse-control collapsed link" data-toggle="collapse" data-target="#test-options">
                                        Show selected test options
                                        <i class="fa fa-caret-down"></i>
                                    </span>
                                </div>
                            </div>

                        </div>
                    </div>

                    <div id="test-options" class="collapse">
                        {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options:results-test-options.html.twig' %}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="row">
            <div class="col-lg-12" id="tasks">
                    <h2>Live results</h2>

                    {#{% if (type is not null) %}#}
                        {#<a class="clear-type badge" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': filter }) }}">#}
                            {#clear &ldquo;{{ type|replace({'html': 'HTML', 'css': 'CSS', 'js': 'JS'}) }}&rdquo; filter#}
                            {#<i class="fa fa-times"></i>#}
                        {#</a>#}
                    {#{% endif %}#}

                    {#{% if tasks is defined %}#}
                        {#<ul class="nav nav-tabs {{ filter }} hidden-xs hidden-sm    ">#}
                            {#<li class="tasks-all {% if (filter == 'all') %} active {% endif %}">#}
                                {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'all', 'type': type }) }}#test-list">#}
                                    {#All <span class="badge">{{ filtered_task_counts.all }}</span>#}
                                {#</a>#}
                            {#</li>#}
                            {#{% if filtered_task_counts.with_errors > 0 %}#}
                            {#<li class="tasks-with-errors {% if (filter == 'with-errors') %} active {% endif %}">#}
                                {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'with-errors', 'type': type }) }}#test-list">#}
                                    {#With errors <span class="badge alert-danger">{{ filtered_task_counts.with_errors }}</span>#}
                                {#</a>#}
                            {#</li>#}
                            {#{% endif %}#}
                            {#{% if filtered_task_counts.with_warnings > 0 %}#}
                            {#<li class="tasks-with-warnings {% if (filter == 'with-warnings') %} active {% endif %}">#}
                                {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'with-warnings', 'type': type }) }}#test-list">#}
                                    {#With warnings <span class="badge alert-info">{{ filtered_task_counts.with_warnings }}</span>#}
                                {#</a>#}
                            {#</li>#}
                            {#{% endif %}#}
                            {#{% if filtered_task_counts.without_errors > 0 %}#}
                            {#<li class="tasks-without-errors {% if (filter == 'without-errors') %} active {% endif %}">#}
                                {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'without-errors', 'type': type }) }}#test-list">#}
                                    {#Without errors <span class="badge alert-success">{{ filtered_task_counts.without_errors }}</span>#}
                                {#</a>#}
                            {#</li>#}
                            {#{% endif %}#}
                            {#{% if filtered_task_counts.skipped > 0 %}#}
                                {#<li class="tasks-skipped {% if (filter == 'skipped') %} active {% endif %}">#}
                                    {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'skipped', 'type': type }) }}#test-list">#}
                                        {#Skipped <span class="badge">{{ filtered_task_counts.skipped }}</span>#}
                                    {#</a>#}
                                {#</li>#}
                            {#{% endif %}#}
                            {#{% if filtered_task_counts.cancelled > 0 %}#}
                                {#<li class="tasks-cancelled {% if (filter == 'cancelled') %} active {% endif %}">#}
                                    {#<a data-target="#test-list" href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'cancelled', 'type': type }) }}#test-list">#}
                                        {#Cancelled <span class="badge">{{ filtered_task_counts.cancelled }}</span>#}
                                    {#</a>#}
                                {#</li>#}
                            {#{% endif %}#}
                        {#</ul>#}

                        {#<div class="hidden-lg hidden-md tabs">#}
                            {#<a class="btn btn-default {{ filter == 'all' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'all', 'type': type }) }}#test-list">#}
                                {#All <span class="badge">{{ filtered_task_counts.all }}</span>#}
                            {#</a>#}

                            {#{% if test.hasErrors %}#}
                            {#<a class="btn btn-default alert-danger {{ filter == 'with-errors' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'with-errors', 'type': type }) }}#test-list">#}
                                {#With errors <span class="badge alert-danger">{{ filtered_task_counts.with_errors }}</span>#}
                            {#</a>#}
                            {#{% endif %}#}

                            {#{% if test.hasWarnings %}#}
                            {#<a class="btn btn-default alert-info {{ filter == 'with-warnings' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'with-warnings', 'type': type }) }}#test-list">#}
                                {#With warnings <span class="badge alert-info">{{ filtered_task_counts.with_warnings }}</span>#}
                            {#</a>#}
                            {#{% endif %}#}

                            {#<a class="btn btn-default alert-success {{ filter == 'without-errors' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'without-errors', 'type': type }) }}#test-list">#}
                                {#Without errors <span class="badge alert-success">{{ filtered_task_counts.without_errors }}</span>#}
                            {#</a>#}

                            {#{% if filtered_task_counts.skipped > 0 %}#}
                            {#<a class="btn btn-default {{ filter == 'skipped' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'skipped', 'type': type }) }}#test-list">#}
                                {#Skipped <span class="badge">{{ filtered_task_counts.skipped }}</span>#}
                            {#</a>#}
                            {#{% endif %}#}

                            {#{% if filtered_task_counts.cancelled > 0 %}#}
                            {#<a class="btn btn-default {{ filter == 'cancelled' ? 'selected' : '' }}"#}
                               {#data-target="#test-list"#}
                               {#href="{{ path('view_test_results_index_index', { 'website': test.website, 'test_id': test.testId, 'filter': 'cancelled', 'type': type }) }}#test-list">#}
                                {#Cancelled <span class="badge">{{ filtered_task_counts.cancelled }}</span>#}
                            {#</a>#}
                            {#{% endif %}#}
                        {#</div>#}
                    {#{% endif %}#}




                </div>
        </div>
    </div><commit_msg>Remove cruft<commit_after>{% extends 'SimplyTestableWebClientBundle::bs3/base.html.twig' %}

{% block title %}Testing {% include 'SimplyTestableWebClientBundle:Partials:/url/utf8-schemeless-possibly-truncated-64.html.twig' with {'url': website} %} (#{{test.testId}}) - {{ parent() }}{% endblock %}

{% block stylesheets %}
    {{ parent() }}

    {% stylesheets
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/modal.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/full-width.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/summary-stats.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/test-options.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/cookies-options-modal.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/btn-significant.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/pagination.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/task-list.css'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/css/test-progress.css'
    filter='cssrewrite' %}
    <link rel="stylesheet" href="{{ asset_url }}"/>
    {% endstylesheets %}
{% endblock %}

{% block javascripts %}
    {{ parent() }}

    {% javascripts
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/jQuery/stModal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/http-authentication-options-modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/cookie-options-modal.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/test-progress-tasks.js'
    '@SimplyTestableWebClientBundle/Resources/assets/bs3/js/test-progress-summary.js'
    %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endblock %}

{% block body_class %} {{ parent() }} full-width job-{{ remote_test.state }} {% endblock %}

{% block body %}
    {{ parent() }}

    <div class="alert-container">
        {% include 'SimplyTestableWebClientBundle:bs3/Partials/Generic/Notification/Conditional:url-limit.html.twig' with {'add_class':'alert-ammendment'} %}
    </div>

    <div class="header">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h1>
                        Testing
                        <span id="test-url" title="{{website.raw}}">
                            {{ website.utf8.schemeless.raw }}
                            {#{% include 'SimplyTestableWebClientBundle:Partials/url:utf8-schemeless-possibly-truncated-64.html.twig' with {'url': website} %}#}
                        </span>
                        <span id="test-id">(#{{ test.testId }})</span>
                    </h1>

                    <div class="row details">
                        <div class="col-lg-12 progress-summary">
                            <div class="progress">
                                <div id="completion-percent-bar"
                                     class="progress-bar {% if remote_test.state == 'crawling' %}progress-bar-warning{% endif %}"
                                     role="progressbar"
                                     aria-valuenow="{{ remote_test.completionpercent }}"
                                     aria-valuemin="0"
                                     aria-valuemax="100"
                                     style="width: {{ remote_test.completionpercent }}%;"></div>
                            </div>
                            <p class="subtle" id="completion-percent-state-label">{{ state_label }}</span><span id="completion-time-remaining">&nbsp;</p>
                        </div>

                        <div class="col-lg-9 col-md-9 col-sm-7 col-xs-12 test-summary">
                            <div class="row">
                                <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 task-queues">
                                    <p>Test Summary:</p>
                                    {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Progress/Index:task-queues.html.twig' %}
                                </div>
                                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 task-types">
                                    <p class="">Testing:</p>
                                    {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Progress/Index:task-type-summary.html.twig' %}
                                </div>
                            </div>
                        </div>
                        <div class="clearfix visible-xs"></div>
                        <div class="col-lg-3 col-md-3 col-sm-5 side-actions">
                            <div class="row">
                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 buttons">
                                    <form id="cancel-form" role="form" method="post" action="{{ path('test_cancel', {website: website.raw, test_id: test.testId}) }}">
                                        <button id="cancel-button" type="submit" class="btn btn-danger btn-significant side-action">
                                            <i class="fa fa-fw fa-power-off"></i>
                                            Stop test
                                            <span>and go to the results</span>
                                        </button>
                                    </form>

                                    <form id="cancel-crawl-form" role="form" method="post" action="{{ path('test_cancel_crawl', {'test_id':test.testId, 'website':test.website}) }}">
                                        <button id="cancel-crawl-button" type="submit" class="btn btn-warning btn-significant side-action">
                                            <i class="fa fa-fw fa-power-off"></i>
                                            Stop finding pages, start testing
                                        </button>
                                    </form>
                                </div>

                                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 test-options">
                                    {% if test_options['http-authentication'] is defined %}
                                        <div class="test-option">
                                            {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options/HttpAuthentication:http-authentication.html.twig' with {'read_only': true} %}
                                        </div>
                                    {% endif %}

                                    {% if test_options['cookies'] is defined %}
                                        <div class="test-option">
                                            {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options/Cookies:cookies.html.twig' with {'read_only': true} %}
                                        </div>
                                    {% endif %}

                                    <span class="collapse-control collapsed link" data-toggle="collapse" data-target="#test-options">
                                        Show selected test options
                                        <i class="fa fa-caret-down"></i>
                                    </span>
                                </div>
                            </div>

                        </div>
                    </div>

                    <div id="test-options" class="collapse">
                        {% include 'SimplyTestableWebClientBundle:bs3/Partials/Test/Options:results-test-options.html.twig' %}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="row">
            <div class="col-lg-12" id="tasks">
                    <h2>Live results</h2>
            </div>
        </div>
    </div>
{'fraction_non_alphanumeric': 0.15094808313322844, 'fraction_numerical': 0.006665562639728409, 'mean_word_length': 1.382854888033935, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 248, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 108, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '538597', 'n_tokens_mistral': 6762, 'n_tokens_neox': 6287, 'n_words': 1007}