<commit_before>{% load analysis_tags %}
<section id="file">
    <h4><span class="glyphicon glyphicon-file" aria-hidden="true"></span> File <i>{{analysis.target.file.name}}</i>
        {% if analysis.target.file_id %}
            <div class="pull-right">
            <a class="btn btn-success btn-xs" href="{% url "analysis.views.file" "sample" analysis.target.file_id %}">
                <span class="glyphicon glyphicon-save" aria-hidden="true"></span> Download
            </a>
            <a class="btn btn-warning btn-xs" href="{% url "submission.views.resubmit" analysis.info.id %}">
                <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Resubmit sample
            </a>
            </div>
        {% endif %}
    </h4>
    <div class="panel panel-default">
        <table class="table table-striped table-condensed">
            <tr>
                <th>File Size</th>
                <td>{{ analysis.target.file.size | sizeof_fmt }}</td>
            </tr>
            <tr>
                <th>File Type</th>
                <td>{{analysis.target.file.type}}</td>
            </tr>
            <tr>
                <th>MD5</th>
                <td><tt>{{analysis.target.file.md5}}</tt></td>
            </tr>
            <tr>
                <th>SHA1</th>
                <td><tt>{{analysis.target.file.sha1}}</tt></td>
            </tr>
            <tr>
                <th>SHA256</th>
                <td><tt>{{analysis.target.file.sha256}}</tt></td>
            </tr>
            <tr>
                <th>SHA512</th>
                <td>
                    <button class="btn btn-primary btn-xs" type="button" data-toggle="collapse" data-target="#collapse-sha512" aria-expanded="false" aria-controls="collapseExample">
                    Show SHA512
                    </button>
                    <div class="collapse" id="collapse-sha512"><tt>{{analysis.target.file.sha512}}</tt></div>
                </td>
            </tr>
            <tr>
                <th>CRC32</th>
                <td><tt>{{analysis.target.file.crc32}}</tt></td>
            </tr>
            <tr>
                <th>ssdeep</th>
                <td><tt>{{analysis.target.file.ssdeep}}</tt></td>
            </tr>
            {% if analysis.static.pdb_path %}
            <tr>
                <th>PDB Path</th>
                <td>{{analysis.static.pdb_path}}</td>
            </tr>
            {% endif %}
            <tr>
                <th>Yara</th>
                <td>
                {% if analysis.target.file.yara %}
                    <ul style="margin-bottom: 0;">
                    {% for sign in analysis.target.file.yara %}
                        <li>{{sign.name}} - {{sign.meta.description}}</li>
                    {% endfor %}
                    </ul>
                {% else %}
                    None matched
                {% endif %}
                </td><commit_msg>Break long hashes<commit_after>{% load analysis_tags %}
<section id="file">
    <h4><span class="glyphicon glyphicon-file" aria-hidden="true"></span> File <i>{{analysis.target.file.name}}</i>
        {% if analysis.target.file_id %}
            <div class="pull-right">
            <a class="btn btn-success btn-xs" href="{% url "analysis.views.file" "sample" analysis.target.file_id %}">
                <span class="glyphicon glyphicon-save" aria-hidden="true"></span> Download
            </a>
            <a class="btn btn-warning btn-xs" href="{% url "submission.views.resubmit" analysis.info.id %}">
                <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Resubmit sample
            </a>
            </div>
        {% endif %}
    </h4>
    <div class="panel panel-default">
        <table class="table table-striped table-condensed">
            <tr>
                <th>Size</th>
                <td>{{ analysis.target.file.size | sizeof_fmt }}</td>
            </tr>
            <tr>
                <th>Type</th>
                <td>{{analysis.target.file.type}}</td>
            </tr>
            <tr>
                <th>MD5</th>
                <td class="break-everywhere"><tt>{{analysis.target.file.md5}}</tt></td>
            </tr>
            <tr>
                <th>SHA1</th>
                <td class="break-everywhere"><tt>{{analysis.target.file.sha1}}</tt></td>
            </tr>
            <tr>
                <th>SHA256</th>
                <td class="break-everywhere"><tt>{{analysis.target.file.sha256}}</tt></td>
            </tr>
            <tr>
                <th>SHA512</th>
                <td class="break-everywhere">
                    <button class="btn btn-primary btn-xs" type="button" data-toggle="collapse" data-target="#collapse-sha512" aria-expanded="false" aria-controls="collapseExample">
                    Show SHA512
                    </button>
                    <div class="collapse" id="collapse-sha512"><tt>{{analysis.target.file.sha512}}</tt></div>
                </td>
            </tr>
            <tr>
                <th>CRC32</th>
                <td><tt>{{analysis.target.file.crc32}}</tt></td>
            </tr>
            <tr>
                <th>ssdeep</th>
                <td class="break-everywhere"><tt>{{analysis.target.file.ssdeep}}</tt></td>
            </tr>
            {% if analysis.static.pdb_path %}
            <tr>
                <th>PDB Path</th>
                <td>{{analysis.static.pdb_path}}</td>
            </tr>
            {% endif %}
            <tr>
                <th>Yara</th>
                <td>
                {% if analysis.target.file.yara %}
                    <ul style="margin-bottom: 0;">
                    {% for sign in analysis.target.file.yara %}
                        <li>{{sign.name}} - {{sign.meta.description}}</li>
                    {% endfor %}
                    </ul>
                {% else %}
                    None matched
                {% endif %}
                </td>
{'fraction_non_alphanumeric': 0.16954843041799564, 'fraction_numerical': 0.01074366291757596, 'mean_word_length': 1.3246195864221615, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2645939', 'n_tokens_mistral': 1869, 'n_tokens_neox': 1650, 'n_words': 278}