<commit_before>{% load app_filters %}
{% comment %}
Mail sent to a user who hasn't logged in for 24 hours.
{% endcomment %}

Hello {{ name }},

A lot has happened on Zulip while you've been away! Visit
https://{{ external_host }} to catch up.

{% if unread_pms %}
** Missed private messages **

You have some missed private messages. Here are some of them:

{% for recipient_block in unread_pms %}{{ recipient_block.header.plain }}
{% for sender_block in recipient_block.senders %}{% if sender_block.sender %}{{ sender_block.sender }}{% endif %}
{% for message_block in sender_block.content %}{{ message_block.plain }}
{% endfor %}
{% endfor %}{% endfor %}
{% if remaining_unread_pm_count > 0 %}+ {{ remaining_unread_pm_count }} more new private message{{ remaining_unread_pm_count|pluralize }}{% endif %}
Catch up on the rest of your PMs: https://{{ external_host }}/#narrow/is/private"{% endif %}

{% if hot_conversations %}
** Hot conversations **

Here are some of the hot conversations that have happened while you've
been gone:

{% for convo in hot_conversations %}{% for recipient_block in convo.first_few_messages %}{{ recipient_block.header.plain }}
{% for sender_block in recipient_block.senders %}{% if sender_block.sender %}{{ sender_block.sender }}
{% endif %}
{% for message_block in sender_block.content %}{{ message_block.plain }}
{% endfor %}{% endfor %}
{% if convo.count > 0 %}+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list:4 }}.{% endif %}
{% endfor %}{% endfor %}
Catch up on the rest of these conversations: https://{{ external_host }}.{% endif %}


{% if new_users and new_streams.plain %}** Group updates **{% elif new_users %}** New users **{% elif new_streams.plain %}** New streams **{% endif %}

{% if new_streams.plain %}{% if new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created:

    {{ new_streams.plain|display_list:4 }}.

Visit your Streams page to subscribe: https://{{ external_host }}/#subscriptions.{% endif %}

{% if new_users %}{% if new_streams.plain or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list:4 }} to Zulip!{% endif %}

Click here to log in to Zulip and catch up: https://{{ external_host }}.

Cheers,
The Zulip Team

--
Manage email preferences:

https://{{ external_host }}/#settings

Unsubscribe from digest emails:

{{ unsubscribe_link }}
<commit_msg>Remove stray typo in plaintext digest email template.<commit_after>{% load app_filters %}
{% comment %}
Mail sent to a user who hasn't logged in for 24 hours.
{% endcomment %}

Hello {{ name }},

A lot has happened on Zulip while you've been away! Visit
https://{{ external_host }} to catch up.

{% if unread_pms %}
** Missed private messages **

You have some missed private messages. Here are some of them:

{% for recipient_block in unread_pms %}{{ recipient_block.header.plain }}
{% for sender_block in recipient_block.senders %}{% if sender_block.sender %}{{ sender_block.sender }}{% endif %}
{% for message_block in sender_block.content %}{{ message_block.plain }}
{% endfor %}
{% endfor %}{% endfor %}
{% if remaining_unread_pm_count > 0 %}+ {{ remaining_unread_pm_count }} more new private message{{ remaining_unread_pm_count|pluralize }}{% endif %}
Catch up on the rest of your PMs: https://{{ external_host }}/#narrow/is/private{% endif %}

{% if hot_conversations %}
** Hot conversations **

Here are some of the hot conversations that have happened while you've
been gone:

{% for convo in hot_conversations %}{% for recipient_block in convo.first_few_messages %}{{ recipient_block.header.plain }}
{% for sender_block in recipient_block.senders %}{% if sender_block.sender %}{{ sender_block.sender }}
{% endif %}
{% for message_block in sender_block.content %}{{ message_block.plain }}
{% endfor %}{% endfor %}
{% if convo.count > 0 %}+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list:4 }}.{% endif %}
{% endfor %}{% endfor %}
Catch up on the rest of these conversations: https://{{ external_host }}.{% endif %}


{% if new_users and new_streams.plain %}** Group updates **{% elif new_users %}** New users **{% elif new_streams.plain %}** New streams **{% endif %}

{% if new_streams.plain %}{% if new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created:

    {{ new_streams.plain|display_list:4 }}.

Visit your Streams page to subscribe: https://{{ external_host }}/#subscriptions.{% endif %}

{% if new_users %}{% if new_streams.plain or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list:4 }} to Zulip!{% endif %}

Click here to log in to Zulip and catch up: https://{{ external_host }}.

Cheers,
The Zulip Team

--
Manage email preferences:

https://{{ external_host }}/#settings

Unsubscribe from digest emails:

{{ unsubscribe_link }}

{'fraction_non_alphanumeric': 0.14922363379713652, 'fraction_numerical': 0.003226456946965114, 'mean_word_length': 4.883748517200474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 12, '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': '2005158', 'n_tokens_mistral': 1690, 'n_tokens_neox': 1514, 'n_words': 501}