<commit_before>{% extends "base.html" %}

{% block title  %}
    {{ track.album.artist.name }} - {{ track.album.name }} - {{ track.name }}
{% endblock %}

{% block content %}
<div id="library">
    <h1>
        <a
            class="silent"
            href="/album/{{ track.album.slug }}">
            {{ track.album.artist.name }} - {{ track.album.name }}</a>
        {{ track.name }}
    </h1>

    <dl>
        <dt>Number</dt>
        <dd>{{ track.number }}</dd>
        <dt>Duration</dt>
        <dd>{{ track.duration|format_seconds }}</dd>
        <dt>Format</dt>
        <dd>{{ track.format }}</dd>
        <dt>Files</dt>
        <dd>
        <ul>
            {% for path in track.paths %}
            <li>{{ path.path.decode('utf8') }}</li>
            {% endfor %}
        </ul>
        </dd>
    </dl>

    <a
        class="playlist add"
        href="/playlist/add/{{ track.slug|urlencode }}"><commit_msg>don't choke on non-utf8 filenames<commit_after>{% extends "base.html" %}

{% block title  %}
    {{ track.album.artist.name }} - {{ track.album.name }} - {{ track.name }}
{% endblock %}

{% block content %}
<div id="library">
    <h1>
        <a
            class="silent"
            href="/album/{{ track.album.slug }}">
            {{ track.album.artist.name }} - {{ track.album.name }}</a>
        {{ track.name }}
    </h1>

    <dl>
        <dt>Number</dt>
        <dd>{{ track.number }}</dd>
        <dt>Duration</dt>
        <dd>{{ track.duration|format_seconds }}</dd>
        <dt>Format</dt>
        <dd>{{ track.format }}</dd>
        <dt>Files</dt>
        <dd>
        <ul>
            {% for path in track.paths %}
            {# when displaying non-utf8 filenames the names will be incorrect,
            don't think we can solve this, maybe aid the user in renaming the
            files with our metadata... #}
            <li>{{ path.path.decode('utf8', 'replace') }}</li>
            {% endfor %}
        </ul>
        </dd>
    </dl>

    <a
        class="playlist add"
        href="/playlist/add/{{ track.slug|urlencode }}">
{'fraction_non_alphanumeric': 0.19864341085271317, 'fraction_numerical': 0.003875968992248062, 'mean_word_length': 1.6993464052287581, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '5484082', 'n_tokens_mistral': 705, 'n_tokens_neox': 672, 'n_words': 141}