<commit_before><html>
    <head>
        <title>[% tbbfile %] test report</title>
        <style type="text/css">
            .test_ok {
                color: #006600;
            }
            .test_notok {
                color: #FF0000;
            }
        </style>
    </head>
    <body>
        <h1>Bundle infos</h1>
        <ul>
            <li><b>Filename:</b> [% tbbfiles.$tbbfile.filename %]</li>
            <li><b>Version:</b> [% tbbfiles.$tbbfile.version %]</li>
            <li><b>Language:</b> [% tbbfiles.$tbbfile.language %]</li>
            <li><b>OS:</b> [% tbbfiles.$tbbfile.os %]</li>
            <li><b>Architecture:</b> [% tbbfiles.$tbbfile.arch %]</li>
            <li><b>sha256sum:</b> [% tbbfiles.$tbbfile.sha256sum %]</li>
        </ul>
        <h1>Results</h1>
        [% FOREACH test IN tbbfiles.$tbbfile.tests %]
        <h3>[% test.name %]</h3>
        [% IF ! test.results %]
                NOT RUN
                [% NEXT %]
        [% END %]
        <ul>
            <li><b>Test type:</b> [% test.type %]</li>
            <li><b>Status:</b>
            [% IF test.results.success %]
                <span class="test_ok">OK</span>
            [% ELSE %]
                <span class="test_notok">NOT OK</span>
            [% END %]
            </li>
            [% IF test.type == 'mozmill' %]
                    <li><b>Passed tests:</b>
                    [% GET test.results.results.0.passed %]/[% GET test.results.results.0.passed + test.results.results.0.failed %]
                    </li>
                    <li><a href="results-[% tbbfile %]/[% test.name %].json">json results</a></li>
            [% ELSIF test.type == 'selenium' %]
                    [% SET stests = test.results.total_tests - test.results.failed.size %]
                    <li><b>Passed tests:</b> [% stests %]/[% test.results.total_tests %]</li>
                    <li><a href="results-[% tbbfile %]/[% test.name %].json">json results</a></li>
            [% ELSIF test.type == 'tor_bootstrap' %]
                    <li><a href="results-[% tbbfile %]/tor.log">tor daemon logs</a></li>
            [% END %]
        </ul>
        [% IF test.type == 'selenium' && test.results.failed %]
                [% FOREACH f IN test.results.failed %]
                        <b>Failed test:</b> [% f.id %]<br />
                        <pre>[% f.error %]</pre><br />
                [% END %]
        [% END %]
        [% END %]

        <hr>
        <h1>Screenshots</h1>
        [% FOREACH test IN tbbfiles.$tbbfile.tests %]
          [% IF test.screenshots %]
            <h3>[% test.name %]</h3>
            [% FOREACH screenshot IN test.screenshots %]
            <a href="results-[% tbbfile %]/[% screenshot %]"><img src="results-[% tbbfile %]/t-[% screenshot %]" /></a><br />
            [% END %]
          [% END %]
        [% END %]
    </body>
</html><commit_msg>report.html: Fix list of tests with screenshots<commit_after><html>
    <head>
        <title>[% tbbfile %] test report</title>
        <style type="text/css">
            .test_ok {
                color: #006600;
            }
            .test_notok {
                color: #FF0000;
            }
        </style>
    </head>
    <body>
        <h1>Bundle infos</h1>
        <ul>
            <li><b>Filename:</b> [% tbbfiles.$tbbfile.filename %]</li>
            <li><b>Version:</b> [% tbbfiles.$tbbfile.version %]</li>
            <li><b>Language:</b> [% tbbfiles.$tbbfile.language %]</li>
            <li><b>OS:</b> [% tbbfiles.$tbbfile.os %]</li>
            <li><b>Architecture:</b> [% tbbfiles.$tbbfile.arch %]</li>
            <li><b>sha256sum:</b> [% tbbfiles.$tbbfile.sha256sum %]</li>
        </ul>
        <h1>Results</h1>
        [% FOREACH test IN tbbfiles.$tbbfile.tests %]
        <h3>[% test.name %]</h3>
        [% IF ! test.results %]
                NOT RUN
                [% NEXT %]
        [% END %]
        <ul>
            <li><b>Test type:</b> [% test.type %]</li>
            <li><b>Status:</b>
            [% IF test.results.success %]
                <span class="test_ok">OK</span>
            [% ELSE %]
                <span class="test_notok">NOT OK</span>
            [% END %]
            </li>
            [% IF test.type == 'mozmill' %]
                    <li><b>Passed tests:</b>
                    [% GET test.results.results.0.passed %]/[% GET test.results.results.0.passed + test.results.results.0.failed %]
                    </li>
                    <li><a href="results-[% tbbfile %]/[% test.name %].json">json results</a></li>
            [% ELSIF test.type == 'selenium' %]
                    [% SET stests = test.results.total_tests - test.results.failed.size %]
                    <li><b>Passed tests:</b> [% stests %]/[% test.results.total_tests %]</li>
                    <li><a href="results-[% tbbfile %]/[% test.name %].json">json results</a></li>
            [% ELSIF test.type == 'tor_bootstrap' %]
                    <li><a href="results-[% tbbfile %]/tor.log">tor daemon logs</a></li>
            [% END %]
        </ul>
        [% IF test.type == 'selenium' && test.results.failed %]
                [% FOREACH f IN test.results.failed %]
                        <b>Failed test:</b> [% f.id %]<br />
                        <pre>[% f.error %]</pre><br />
                [% END %]
        [% END %]
        [% END %]

        <hr>
        <h1>Screenshots</h1>
        [% FOREACH test IN tbbfiles.$tbbfile.tests %]
          [% IF test.screenshots && test.screenshots.size %]
            <h3>[% test.name %]</h3>
            [% FOREACH screenshot IN test.screenshots %]
            <a href="results-[% tbbfile %]/[% screenshot %]"><img src="results-[% tbbfile %]/t-[% screenshot %]" /></a><br />
            [% END %]
          [% END %]
        [% END %]
    </body>
</html>
{'fraction_non_alphanumeric': 0.19776824034334764, 'fraction_numerical': 0.009957081545064377, 'mean_word_length': 1.4458438287153652, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 185, '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': '3778855', 'n_tokens_mistral': 2086, 'n_tokens_neox': 1973, 'n_words': 332}