<commit_before>require(['dojo/domReady!'], function () {
    describe('AMD Loader', function () {
        it('dependencies loaded successfully', function () {
            expect(require.waiting).toEqual({});
        });
    });
});<commit_msg>amd load test should wait for xstyle to finish<commit_after>require(['dojo/domReady!'], function () {
    describe('AMD Loader', function () {
        it('dependencies loaded successfully', function (done) {
            var pause = 100;

            var hasProps = function (obj) {
                for (var prop in obj) {
                    if (obj.hasOwnProperty(prop)) {
                        return true;
                    }
                }
                return false;
            };

            var check = function () {
                console.log('require.waiting', require.waiting);
                if (hasProps(require.waiting)) {
                    // Keep checking until jasmine default timeout. 
                    // xstyle/css seems to make this take an extra few milliseconds.
                    window.setTimeout(check, pause);
                } else {
                    expect(require.waiting).toEqual({});
                    done();
                }
            };

            check();
        });
    });
});
{'fraction_non_alphanumeric': 0.12043512043512043, 'fraction_numerical': 0.002331002331002331, 'mean_word_length': 1.385185185185185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5204113', 'n_tokens_mistral': 318, 'n_tokens_neox': 292, 'n_words': 75}