<commit_before>{% set commandtab = true %}
{% extends 'NetvliesPublishBundle::layout.html.twig' %}

{% block content %}

<div id="content-wrapper">

    <h3>
        {% if log.target is not null %}
            {{ log.target.label }}
        {% else %}
            {{ log.host }}
        {% endif %}</h3>

    <a href="{{ path('netvlies_publish_application_dashboard', {'id': application.id}) }}" class="btn btn-default pull-right">Back to dashboard</a>
    <br>

    <h4>Summary</h4>
    <dl class="dl-horizontal">
        <dt>Date time</dt>
        <dd>{{ log.datetimestart.format('d-m-Y H:i:s') }}</dd>
        <dt>Target label</dt>
        <dd>
            {% if log.target is not null %}
                {{ log.target.label }}
            {% else %}
                No target involved
            {% endif %}
        </dd>

        <dt>Host<dt>
        <dd>{{ log.host }}</dd>

        <dt>DTAP type</dt>
        <dd>{{ log.type }}</dd>

        <dt>Start</dt>
        <dd>{{ log.datetimestart.format('d-m-Y H:i:s') }}</dd>

        <dt>End</dt>
        <dd>
            {% if log.datetimeend %}
                {{ log.datetimeend.format('d-m-Y H:i:s') }}
            {% else %}
                error / not finished
            {% endif %}
        </dd>

        <dt>User</dt>
        <dd>{{ log.user }}</dd>

        {% if log.exitcode is null %}
            <dt>Exitcode</dt>
            <dd><img src="{{ asset('bundles/netvliespublish/img/ajax-loader.gif') }}"> still running ... </dd>
        {% else %}
            <dt>Exitcode</dt>
            <dd>{{ log.exitcode }}</dd>
        {% endif %}
    </dl>
    <br>

    <h4>Command</h4>
    <pre>{{ log.command | replace({'&&': '<br>'}) | raw | trim }}</pre>
    <br>

    <h4>Output</h4>
    <pre>{{ log.log|trim }}</pre>

    <a href="{{ path('netvlies_publish_application_dashboard', {'id': application.id}) }}" class="btn btn-default pull-right">Back to dashboard</a>

{% endblock %}<commit_msg>viewlog command wasnt correctly divided into new lines<commit_after>{% set commandtab = true %}
{% extends 'NetvliesPublishBundle::layout.html.twig' %}

{% block content %}

<div id="content-wrapper">

    <h3>
        {% if log.target is not null %}
            {{ log.target.label }}
        {% else %}
            {{ log.host }}
        {% endif %}</h3>

    <a href="{{ path('netvlies_publish_application_dashboard', {'id': application.id}) }}" class="btn btn-default pull-right">Back to dashboard</a>
    <br>

    <h4>Summary</h4>
    <dl class="dl-horizontal">
        <dt>Date time</dt>
        <dd>{{ log.datetimestart.format('d-m-Y H:i:s') }}</dd>
        <dt>Target label</dt>
        <dd>
            {% if log.target is not null %}
                {{ log.target.label }}
            {% else %}
                No target involved
            {% endif %}
        </dd>

        <dt>Host<dt>
        <dd>{{ log.host }}</dd>

        <dt>DTAP type</dt>
        <dd>{{ log.type }}</dd>

        <dt>Start</dt>
        <dd>{{ log.datetimestart.format('d-m-Y H:i:s') }}</dd>

        <dt>End</dt>
        <dd>
            {% if log.datetimeend %}
                {{ log.datetimeend.format('d-m-Y H:i:s') }}
            {% else %}
                error / not finished
            {% endif %}
        </dd>

        <dt>User</dt>
        <dd>{{ log.user }}</dd>

        {% if log.exitcode is null %}
            <dt>Exitcode</dt>
            <dd><img src="{{ asset('bundles/netvliespublish/img/ajax-loader.gif') }}"> still running ... </dd>
        {% else %}
            <dt>Exitcode</dt>
            <dd>{{ log.exitcode }}</dd>
        {% endif %}
    </dl>
    <br>

    <h4>Command</h4>
    <pre>{{ log.command | replace({' && ': '<br>', ' &&': '<br>', '&& ': '<br>', '&&': '<br>'}) |  raw }}</pre>
    <br>

    <h4>Output</h4>
    <pre>{{ log.log|trim }}</pre>

    <a href="{{ path('netvlies_publish_application_dashboard', {'id': application.id}) }}" class="btn btn-default pull-right">Back to dashboard</a>

{% endblock %}
{'fraction_non_alphanumeric': 0.2087196191430719, 'fraction_numerical': 0.004009020295665247, 'mean_word_length': 1.8251946213729653, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 126, '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': '535790', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1323, 'n_words': 267}