<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>dejavu tests</title>
        <link rel="stylesheet" href="../vendor/mocha/mocha.css" />
        <script>
            // TODO: remove this once mocha fixes this(https://github.com/visionmedia/mocha/issues/501)
            if (!String.prototype.trim) {
                String.prototype.trim = function () {
                    return this.replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
                };
            }
        </script>
        <script src="../vendor/mocha/mocha.js"></script>
        <script src="../vendor/expect.js/expect.js"></script>
        <script src="../vendor/r.js/require.js"></script>
        <script src="util/browser.js"></script>
        <script src="util/adapter.js"></script>
        <script>
            var build = getBuild();
            mocha.setup('bdd');

            require(['domReady!', './' + build], function () {

                var elem = document.getElementById(build.replace(/\//g, '_'));
                if (elem) {
                    elem.className = 'active';
                }

                mocha
                .run();
            });
        </script>
        <style>
            #build {
                height: 50px;
                position: absolute;
                top: 0px;
                left: 15px;
                right: 350px;
            }
            #build li {
                list-style: none;
                float: left;
                margin-left: 20px;
            }
            #build li a, #build li a:active, #build li a:visited {
                color: #D00972;
                text-decoration: none;
            }
            #build li.active a {
                color: #FF17E8;
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <ul id="build">
            <li id="amd_strict"><a href="?build=amd/strict">amd/strict build</a></li>
            <li id="amd_loose"><a href="?build=amd/loose">amd/loose build</a></li>
        </ul>

        <div id="mocha"></div>
    </body>
</html><commit_msg>Fix tests in Opera due to mocha bug<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>dejavu tests</title>
        <link rel="stylesheet" href="../vendor/mocha/mocha.css" />
        <script>
            // TODO: remove this once mocha fixes this (https://github.com/visionmedia/mocha/issues/501)
            if (!String.prototype.trim) {
                String.prototype.trim = function () {
                    return this.replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
                };
            }
        </script>
        <script src="../vendor/mocha/mocha.js"></script>
        <script src="../vendor/expect.js/expect.js"></script>
        <script src="../vendor/r.js/require.js"></script>
        <script src="util/browser.js"></script>
        <script src="util/adapter.js"></script>
        <script>
            var build = getBuild();
            mocha.setup('bdd');

            // TODO: remove this once mocha fixes this (https://github.com/visionmedia/mocha/issues/243)
            var globals = ['console'];
            if (navigator.userAgent.indexOf('Opera') !== -1) {
                globals.push('stats', 'report');
            }

            require(['domReady!', './' + build], function () {

                var elem = document.getElementById(build.replace(/\//g, '_'));
                if (elem) {
                    elem.className = 'active';
                }

                mocha
                .run()
                .globals(globals);
            });
        </script>
        <style>
            #build {
                height: 50px;
                position: absolute;
                top: 0px;
                left: 15px;
                right: 350px;
            }
            #build li {
                list-style: none;
                float: left;
                margin-left: 20px;
            }
            #build li a, #build li a:active, #build li a:visited {
                color: #D00972;
                text-decoration: none;
            }
            #build li.active a {
                color: #FF17E8;
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <ul id="build">
            <li id="amd_strict"><a href="?build=amd/strict">amd/strict build</a></li>
            <li id="amd_loose"><a href="?build=amd/loose">amd/loose build</a></li>
        </ul>

        <div id="mocha"></div>
    </body>
</html>
{'fraction_non_alphanumeric': 0.1581834137779728, 'fraction_numerical': 0.010530934620447565, 'mean_word_length': 1.2886546184738956, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 3, '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': '1498939', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1279, 'n_words': 248}