<commit_before>define([
    'inherits',
    'streamhub-hot-collections/streams/hot-collections',
    'streamhub-hot-collections-tests/mocks/clients/mock-hot-collections-client'],
function (inherits, HotCollections, MockHotCollectionsClient) {

    var MockHotCollections = function (opts) {
        opts = opts || {};
        opts.client = opts.client || new MockHotCollectionsClient();
        HotCollections.call(this, opts);
    };

    inherits(MockHotCollections, HotCollections);

    return MockHotCollections;
});<commit_msg>Add mockstream to mock hot collection<commit_after>define([
    'inherits',
    'streamhub-hot-collections/streams/hot-collections',
    'streamhub-hot-collections-tests/mocks/clients/mock-hot-collections-client',
    'streamhub-sdk-tests/mocks/mock-stream'],
function (inherits, HotCollections, MockHotCollectionsClient, MockStream) {

    var MockHotCollections = function (opts) {
        opts = opts || {};
        opts.client = opts.client || new MockHotCollectionsClient();
        HotCollections.call(this, opts);
    };

    inherits(MockHotCollections, HotCollections);

    MockHotCollections.prototype.push = function (a) {
        if (a !== null) {
            var collections = Array.prototype.slice.call(arguments);
            for (var i=0; i < collections.length; i++) {
                collections[i].createUpdater = function () {
                    return new MockStream.LivefyreContent();
                }
            }
        }

        HotCollections.prototype.push.apply(this, arguments)
    };

    return MockHotCollections;
});

{'fraction_non_alphanumeric': 0.12208936438011328, 'fraction_numerical': 0.0006293266205160479, 'mean_word_length': 3.005037783375315, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2129799', 'n_tokens_mistral': 444, 'n_tokens_neox': 439, 'n_words': 77}