<commit_before><%include file="_header.mako"/>

<p>
Dear <b>${user['firstName']} ${user['lastName']}</b>,
</p>

<p>
% if status == 'succeeded' and warnings:
Your application of metadata to ${dataset['name']} succeeded, with warnings.
% elif status == 'succeeded':
Your application of metadata to ${dataset['name']} succeeded.
% else:
Your application of metadata to ${dataset['name']} failed for the reasons below.
% endif

% if warnings:
    <h4>Warnings</h4>
    % for warning in warnings:
        ${warning}<br>
    % endfor
% endif
<br />
<br />
% if errors:
    <h4>Errors</h4>
    % for error in errors:
        ${error}<br>
    % endfor
% endif
</p>

<%include file="_footer.mako"/><commit_msg>Fix the metadata application email (#722)<commit_after><%include file="_header.mako"/>

<p>
Dear <b>${user['firstName']} ${user['lastName']}</b>,
</p>

<p>
% if not errors and warnings:
Your application of metadata to ${dataset['name']} succeeded, with warnings.
% elif not errors and not warnings:
Your application of metadata to ${dataset['name']} succeeded.
% else:
Your application of metadata to ${dataset['name']} failed for the reasons below.
% endif

% if warnings:
    <h4>Warnings</h4>
    % for warning in warnings:
        ${warning}<br>
    % endfor
% endif
<br />
<br />
% if errors:
    <h4>Errors</h4>
    % for error in errors:
        ${error}<br>
    % endfor
% endif
</p>

<%include file="_footer.mako"/>
{'fraction_non_alphanumeric': 0.17473684210526316, 'fraction_numerical': 0.0077192982456140355, 'mean_word_length': 3.8668941979522184, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4621974', 'n_tokens_mistral': 487, 'n_tokens_neox': 466, 'n_words': 147}