<commit_before>{% load hc_extras humanize %}

<p>
    "{{ check.name_then_code }}" is {{ check.status|upper }}.
    <a href="{{ check.details_url }}">View on {% site_name %}&hellip;</a>
</p>


{% if check.desc %}
<p>
    <b>Description</b><br>
    {{ check.desc|linebreaksbr }}
</p>
{% endif %}

{% cycle '' '</tr><tr>' as trtr silent %}
<table>
    <tr>
        {% if check.project.name %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Project</b><br>
            {{ check.project.name }}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.tags_list %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Tags</b><br>
            {% for tag in check.tags_list %}
            <code style="background-color: #eeeeee; padding: 2px 4px; border-radius: 2px;">{{ tag }}</code>
            {% endfor %}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.kind == "simple" %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Period</b><br>
            {{ check.timeout|hc_duration }}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.kind == "cron" %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Schedule</b><br>
            <code>{{ check.schedule }}</code>
        </td>
        {% if trttr %}Yo!{% endif %}
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if ping %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Last Ping</b><br>
            {{ ping.created|naturaltime }}{% if ping.remote_addr %}, from {{ ping.remote_addr }}{% endif %}
        </td>
        {% if trttr %}Yo!{% endif %}
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Total Pings</b><br>
            {{ check.n_pings }}
            {% if check.created %}(since {{ check.created|date:'M j, Y' }}){% endif %}
        </td>
    </tr>
</table>

{% if ping.body %}
<p><b>Last Ping Body</b></p>
<pre style="background: #eeeeee">{{ ping.body|slice:":10000"|linebreaksbr }}{% if ping.body|length > 10000 %} [truncated]{% endif %}</pre>
{% endif %}

{% if projects %}
<p><b>Projects Overview</b></p>
<table>
    {% for project in projects %}
    <tr>
        <td style="padding-right: 32px; padding-bottom: 4px;">
            <a href="{{ project.checks_url }}">{{ project }}</a>
        </td>
        <td style="padding-right: 32px; padding-bottom: 4px;">
            {% with project.get_n_down as n_down %}
                {% if n_down %}
                <b>{{ n_down }} check{{ n_down|pluralize }} down</b>
                {% else %}
                OK, all checks up
                {% endif %}
            {% endwith %}
        </td>
    </tr>
    {% endfor %}
</table>
{% endif %}

<p style="color: #666666">
&mdash;<br>
{% site_name %}<br>
<a href="{{ unsub_link }}" target="_blank" style="color: #666666; text-decoration: underline;">
    {% if check.project.name %}
    Unsubscribe from "{{ check.project.name }}" notifications
    {% else %}
    Unsubscribe
    {% endif %}
</a>
</p>
<commit_msg>Fix styling<commit_after>{% load hc_extras humanize %}

<p>
    "{{ check.name_then_code }}" is {{ check.status|upper }}.
    <a href="{{ check.details_url }}">View on {% site_name %}&hellip;</a>
</p>


{% if check.desc %}
<p>
    <b>Description</b><br>
    {{ check.desc|linebreaksbr }}
</p>
{% endif %}

{% cycle '' '</tr><tr>' as trtr silent %}
<table>
    <tr>
        {% if check.project.name %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Project</b><br>
            {{ check.project.name }}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.tags_list %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Tags</b><br>
            {% for tag in check.tags_list %}
            <code style="background-color: #eeeeee; padding: 2px 4px; border-radius: 2px;">{{ tag }}</code>
            {% endfor %}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.kind == "simple" %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Period</b><br>
            {{ check.timeout|hc_duration }}
        </td>
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if check.kind == "cron" %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Schedule</b><br>
            <code>{{ check.schedule }}</code>
        </td>
        {% if trttr %}Yo!{% endif %}
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        {% if ping %}
        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Last Ping</b><br>
            {{ ping.created|naturaltime }}{% if ping.remote_addr %}, from {{ ping.remote_addr }}{% endif %}
        </td>
        {% if trttr %}Yo!{% endif %}
        {{ trtr|safe }} {% cycle trtr %}
        {% endif %}

        <td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;">
            <b>Total Pings</b><br>
            {{ check.n_pings }}
            {% if check.created %}(since {{ check.created|date:'M j, Y' }}){% endif %}
        </td>
    </tr>
</table>

{% if ping.body %}
<p><b>Last Ping Body</b></p>
<pre>{{ ping.body|slice:":10000"|linebreaksbr }}{% if ping.body|length > 10000 %} [truncated]{% endif %}</pre>
{% endif %}

{% if projects %}
<p><b>Projects Overview</b></p>
<table>
    {% for project in projects %}
    <tr>
        <td style="padding-right: 32px; padding-bottom: 4px;">
            <a href="{{ project.checks_url }}">{{ project }}</a>
        </td>
        <td style="padding-right: 32px; padding-bottom: 4px;">
            {% with project.get_n_down as n_down %}
                {% if n_down %}
                <b>{{ n_down }} check{{ n_down|pluralize }} down</b>
                {% else %}
                OK, all checks up
                {% endif %}
            {% endwith %}
        </td>
    </tr>
    {% endfor %}
</table>
{% endif %}

<p style="color: #666666">
&mdash;<br>
{% site_name %}<br>
<a href="{{ unsub_link }}" target="_blank" style="color: #666666; text-decoration: underline;">
    {% if check.project.name %}
    Unsubscribe from "{{ check.project.name }}" notifications
    {% else %}
    Unsubscribe
    {% endif %}
</a>
</p>

{'fraction_non_alphanumeric': 0.20358306188925082, 'fraction_numerical': 0.01450992004737933, 'mean_word_length': 2.090118938700823, 'pattern_counts': {'":': 2, '<': 157, '<?xml version=': 0, '>': 159, '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': '509657', 'n_tokens_mistral': 2569, 'n_tokens_neox': 2201, 'n_words': 503}