<commit_before>(() => {

    'use strict';


    const BaseTest = require('../BaseTest.js');

    class CommonTests extends BaseTest {
        constructor() {
            super();

            this.name = "Dessert Common Module Tests";
        }

        setup(runner) {
            super.setup(runner);

            this.createTests();
        }

        createTests() {
            var that = this;

            that.assert('dessertJS Common Helpers isFunction Passes Valid Function', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    done(common.utils.isFunction(function () {}));
                });
            });

            that.assert('dessertJS Common Helpers isFunction Fails Invalid Function', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    done(common.utils.isFunction('Not a function!'));
                });
            });

            that.assert('dessertJS Common Helpers parseQueryString Returns Correct Value', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    var path = 'http://someurl.com?arg1=true&arg2=false';
                    var parsed = common.utils.parseQueryString(path);
                    done(common.utils.isObject(parsed) && parsed.arg1 === true && parsed.arg2 === false);
                });
            });

            that.assert('dessertJS Common Helpers addReadOnlyProperty Creates Immutable Property', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    var obj = {

                    };
                    var isReadOnly;

                    common.utils.addReadOnlyProperty(obj, 'val', true);
<commit_msg>Fixing bogus test failure<commit_after>(() => {

    'use strict';


    const BaseTest = require('../BaseTest.js');

    class CommonTests extends BaseTest {
        constructor() {
            super();

            this.name = "Dessert Common Module Tests";
        }

        setup(runner) {
            super.setup(runner);

            this.createTests();
        }

        createTests() {
            var that = this;

            that.assert('dessertJS Common Helpers isFunction Passes Valid Function', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    done(common.utils.isFunction(function () {}));
                });
            });

            that.assert('dessertJS Common Helpers isFunction Fails Invalid Function', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    done(!common.utils.isFunction('Not a function!'));
                });
            });

            that.assert('dessertJS Common Helpers parseQueryString Returns Correct Value', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    var path = 'http://someurl.com?arg1=true&arg2=false';
                    var parsed = common.utils.parseQueryString(path);
                    done(common.utils.isObject(parsed) && parsed.arg1 === true && parsed.arg2 === false);
                });
            });

            that.assert('dessertJS Common Helpers addReadOnlyProperty Creates Immutable Property', done => {
                that.r([
                    'dessert.common'
                ], common => {
                    var obj = {

                    };
                    var isReadOnly;

                    common.utils.addReadOnlyProperty(obj, 'val', true);

{'fraction_non_alphanumeric': 0.11769458658766496, 'fraction_numerical': 0.0021545919741448962, 'mean_word_length': 1.2646341463414634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '3600154', 'n_tokens_mistral': 926, 'n_tokens_neox': 857, 'n_words': 183}