<commit_before><!doctype html>
<meta charset="utf-8">
<style>
h1 { font-family: monospace; font-size: 16px; white-space: pre-wrap; }
code { white-space: pre-wrap; }
.content { border: 1px solid #bbb; white-space: pre-wrap; }
</style>
<body>

{% if up != None %}
<p><a href="{{ up }}">up</a></p>
{% endif %}

<h1>{{ data.get('title') or '' }}</h1>

{% if data.type != 'folder' %}
<p><a href="./{{ id }}/raw/{{ data.filename }}">original: {{  data.filename }}</a></p>
{%  endif %}

<p><b>Type:</b> <code>{{ data.type }}</code></p>

{% if data.lang %}
<p><b>Language:</b> <code>{{ data.lang }}</code></p>
{% endif %}

{% if data.type == 'email' %}
  <p><b>From:</b> <code>{{ data.from }}</code></p><commit_msg>sha1 and md5 in doc preview<commit_after><!doctype html>
<meta charset="utf-8">
<style>
h1 { font-family: monospace; font-size: 16px; white-space: pre-wrap; }
code { white-space: pre-wrap; }
.content { border: 1px solid #bbb; white-space: pre-wrap; }
</style>
<body>

{% if up != None %}
<p><a href="{{ up }}">up</a></p>
{% endif %}

<h1>{{ data.get('title') or '' }}</h1>

{% if data.type != 'folder' %}
<p><a href="./{{ id }}/raw/{{ data.filename }}">original: {{  data.filename }}</a></p>
    {% if 'sha1' in data %}
        <p><b>MD5:</b> <code>{{ data.md5 }}</code></p>
        <p><b>SHA1:</b> <code>{{ data.sha1 }}</code></p>
    {% endif %}
{% endif %}

<p><b>Type:</b> <code>{{ data.type }}</code></p>

{% if data.lang %}
<p><b>Language:</b> <code>{{ data.lang }}</code></p>
{% endif %}

{% if data.type == 'email' %}
  <p><b>From:</b> <code>{{ data.from }}</code></p>
{'fraction_non_alphanumeric': 0.3057485786481364, 'fraction_numerical': 0.013265950726468731, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '904140', 'n_tokens_mistral': 701, 'n_tokens_neox': 639, 'n_words': 149}