<commit_before><h2>Dumped Contents</h2>

{foreach $sDetail.dump.html as $dump}
<div class="sf-dump sf-reset">
    <h3>In
        {if $dump.file}
            {if $dump.fileLink}
                <a href="{$dump.fileLink}" title="{$dump.file}">{$dump.name}</a>
            {else}
                <abbr title="{$dump.file}">{$dump.name}</abbr>
            {/if}
        {else}
            {$dump.name}
        {/if}
        <small>line {$dump.line}</small>

        <a class="text-small sf-toggle" data-toggle-selector="#sf-trace-{$dump@index}" data-toggle-alt-content="Hide code">Show code</a>
    </h3>

    <div class="sf-dump-compact hidden" id="sf-trace-{$dump@index}">
        <div class="trace">
            {if $dump.fileExcerpt}
                {$dump.fileExcerpt}
            {/if}
             {* else:  $dump.file|file_excerpt(dump.line) }} *}
        </div>
    </div>

    {$dump.data}
</div>
{foreachelse}
<div class="empty">
    <p>No content was dumped.</p>
</div>
{/foreach}<commit_msg>Show "Show code" link only when fileExpert is available<commit_after><h2>Dumped Contents</h2>

{foreach $sDetail.dump.html as $dump}
    <div class="sf-dump sf-reset">
        <h3>In
            {if $dump.file}
                {if $dump.fileLink}
                    <a href="{$dump.fileLink}" title="{$dump.file}">{$dump.name}</a>
                {else}
                    <abbr title="{$dump.file}">{$dump.name}</abbr>
                {/if}
            {else}
                {$dump.name}
            {/if}

            <small>line {$dump.line}</small>

            {if $dump.fileExcerpt}
                <a class="text-small sf-toggle" data-toggle-selector="#sf-trace-{$dump@index}" data-toggle-alt-content="Hide code">Show code</a>
            {/if}
        </h3>

        {if $dump.fileExcerpt}
            <div class="sf-dump-compact hidden" id="sf-trace-{$dump@index}">
                <div class="trace">
                    {$dump.fileExcerpt}
                </div>
            </div>
        {/if}

        {$dump.data}
    </div>
{foreachelse}
    <div class="empty">
        <p>No content was dumped.</p>
    </div>
{/foreach}
{'fraction_non_alphanumeric': 0.18598130841121496, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 1.7519280205655527, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '4255911', 'n_tokens_mistral': 740, 'n_tokens_neox': 706, 'n_words': 126}