<commit_before>function testCase(name, tests) {
    var testCase = TestCase(name);

    for (var test in tests) {
        if (test != "setUp" && test != "tearDown") {
            testCase.prototype["test " + test] = tests[test];
        } else {
            testCase.prototype[test] = tests[test];
        }
    }

    return testCase;
}

var assert = this;

(function () {
    var mappedAssertions = {
        ok: "True",
        doesNotThrow: "NoException",
        throws: "Exception",
        equal: "Equals"
    };

    for (var assertion in mappedAssertions) {
        assert[assertion] = assert["assert" + mappedAssertions[assertion]];
    }
}());<commit_msg>Add buster.assert hook when it's available<commit_after>function testCase(name, tests) {
    var testCase = TestCase(name);

    for (var test in tests) {
        if (test != "setUp" && test != "tearDown") {
            testCase.prototype["test " + test] = tests[test];
        } else {
            testCase.prototype[test] = tests[test];
        }
    }

    return testCase;
}

var assert = this;

(function () {
    var mappedAssertions = {
        ok: "True",
        doesNotThrow: "NoException",
        throws: "Exception",
        equal: "Equals"
    };

    for (var assertion in mappedAssertions) {
        assert[assertion] = assert["assert" + mappedAssertions[assertion]];
    }
}());

if (buster.assert && buster.format) {
    buster.assert.format = buster.format.ascii;
    buster.assert.fail = fail;
}
{'fraction_non_alphanumeric': 0.14179608372721134, 'fraction_numerical': 0.0, 'mean_word_length': 2.414746543778802, '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': '7540634', 'n_tokens_mistral': 466, 'n_tokens_neox': 453, 'n_words': 104}