<commit_before>/*global Backbone */

hqDefine("cloudcare/js/formplayer/sessions/collections", function () {

    var session = Backbone.Collection.extend({
        model: hqImport("cloudcare/js/formplayer/sessions/models"),

        parse: function (response) {
            this.totalSessions = response.total_records;
            return response.sessions;
        },

        fetch: function (options) {
            hqImport("cloudcare/js/formplayer/utils/utils").setCrossDomainAjaxOptions(options);
            return Backbone.Collection.prototype.fetch.call(this, options);
        },
    });

    return function (options) {
        return new session(options);
    };
});<commit_msg>Updated sessions/collections.js<commit_after>/*global Backbone */

hqDefine("cloudcare/js/formplayer/sessions/collections", function () {
    var Models = hqImport("cloudcare/js/formplayer/sessions/models"),
        Utils = hqImport("cloudcare/js/formplayer/utils/utils");

    var session = Backbone.Collection.extend({
        model: Models,

        parse: function (response) {
            this.totalSessions = response.total_records;
            return response.sessions;
        },

        fetch: function (options) {
            Utils.setCrossDomainAjaxOptions(options);
            return Backbone.Collection.prototype.fetch.call(this, options);
        },
    });

    return function (options) {
        return new session(options);
    };
});
{'fraction_non_alphanumeric': 0.12205270457697642, 'fraction_numerical': 0.0, 'mean_word_length': 2.7286821705426356, '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': '3143063', 'n_tokens_mistral': 402, 'n_tokens_neox': 387, 'n_words': 64}