<commit_before>/*
 * Backbone.WSR
 * @version 0.0.1
*/
(function (root, factory) {
    if ( typeof define === 'function' && define.amd ) {
        // AMD
        define(['backbone', 'underscore'], function (Backbone, underscore) {
            return factory(root, Backbone, underscore);
        });
    }
    else if ( typeof exports === 'object' ) {
        // CommonJS
        return factory(root, require('backbone'), require('underscore'));
    }
    else {
        // Browser globals
        factory(root, root.Backbone, root._);
    }
}(this, function (root, Backbone, _) {

    function ab2str(buf) {

        var buffer = new Uint8Array(buf),
            length = buffer.byteLength,
            chunkLength = 8;

        var string = '';

        if (length < chunkLength) {
            return JSON.parse(String.fromCharCode.apply(null, buffer));
        }

        for (var i = 0; i < length; i = i + chunkLength) {

            var begin = i,
                end;

            if (begin > length) {
                break;
            }

            if ((length - 1 - begin) > chunkLength) {
                end = begin + chunkLength;
            } else {
                end = length;
            }

            var chunk = buffer.slice(begin, end);<commit_msg>fix in decode for array to string<commit_after>/*
 * Backbone.WSR
 * @version 0.0.1
*/
(function (root, factory) {
    if ( typeof define === 'function' && define.amd ) {
        // AMD
        define(['backbone', 'underscore'], function (Backbone, underscore) {
            return factory(root, Backbone, underscore);
        });
    }
    else if ( typeof exports === 'object' ) {
        // CommonJS
        return factory(root, require('backbone'), require('underscore'));
    }
    else {
        // Browser globals
        factory(root, root.Backbone, root._);
    }
}(this, function (root, Backbone, _) {

    function ab2str(buf) {

        var buffer = new Uint8Array(buf),
            length = buffer.byteLength,
            chunkLength = 8;

        var string = '';

        if (length < chunkLength) {
            return JSON.parse(decodeURIComponent(escape(String.fromCharCode.apply(null, buffer))));
        }

        for (var i = 0; i < length; i = i + chunkLength) {

            var begin = i,
                end;

            if (begin > length) {
                break;
            }

            if ((length - 1 - begin) > chunkLength) {
                end = begin + chunkLength;
            } else {
                end = length;
            }

            var chunk = buffer.slice(begin, end);
{'fraction_non_alphanumeric': 0.12972972972972974, 'fraction_numerical': 0.006177606177606178, 'mean_word_length': 1.5935935935935936, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3046958', 'n_tokens_mistral': 754, 'n_tokens_neox': 715, 'n_words': 189}