<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>ultralight testing</title>
        <link rel="stylesheet" href="qunit.css">
        <script src="qunit.js"></script>
        <script src='https://cdn.rawgit.com/janl/mustache.js/master/mustache.js' type="text/javascript"></script>
        <script src='../ultralight.js' type="text/javascript"></script>

    </head>
    <body>
        <div id="qunit"></div>
        <div id="qunit-fixture"></div>

        <script>
            QUnit.test( "integration", function( assert ) {

                //setup
                var ul = new ultralight(['some', 'partials'])
                assert.deepEqual(ul.partials, ['some', 'partials'], "ul.partials contains the first argument supplied, if it's an array")

                ul = new ultralight(1)
                assert.deepEqual(ul.partials, [], 'ul.partials should be an empty array if anything but an array is passed in.')

                //parseQuery
                assert.deepEqual(ul.parseQuery('pixel=cat&bella=dog'), {'pixel': 'cat', 'bella': 'dog'}, 'parseQuery splits query string into key-value pairs')

                
            });          
        </script>
      </body>
</html><commit_msg>more sensible test structure<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>ultralight testing</title>
        <link rel="stylesheet" href="qunit.css">
        <script src="qunit.js"></script>
        <script src='https://cdn.rawgit.com/janl/mustache.js/master/mustache.js' type="text/javascript"></script>
        <script src='../ultralight.js' type="text/javascript"></script>

    </head>
    <body>
        <div id="qunit"></div>
        <div id="qunit-fixture"></div>

        <script>
            QUnit.test( "setup", function( assert ) {

                var ul = new ultralight(['some', 'partials'])
                assert.deepEqual(ul.partials, ['some', 'partials'], "ul.partials contains the first argument supplied, if it's an array")

            });     

            QUnit.test( "parseQuery", function( assert ) {
                
                var ul = new ultralight(1)
                assert.deepEqual(ul.partials, [], 'ul.partials should be an empty array if anything but an array is passed in.')

                //parseQuery
                assert.deepEqual(ul.parseQuery('pixel=cat&bella=dog'), {'pixel': 'cat', 'bella': 'dog'}, 'parseQuery splits query string into key-value pairs')


            });          
        </script>
      </body>
</html>
{'fraction_non_alphanumeric': 0.15764889061891788, 'fraction_numerical': 0.001557026080186843, 'mean_word_length': 2.1151515151515152, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 2, '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': '1152860', 'n_tokens_mistral': 780, 'n_tokens_neox': 731, 'n_words': 172}