<commit_before>var JData;

(function() {
    "use strict";

    var srcPath = getSourcePath();

    function getSourcePath () {
        var scripts = document.getElementsByTagName('script'),
            srcFile = scripts[scripts.length - 1].src;

        return srcFile.replace(/(http:\/\/)?.*?(\/(.*\/)?).*/, function () { return arguments[2]; });
    }

    JData = function (dataset) {
        var self = this instanceof JData ? this : Object.create(JData.prototype);

        self._columns = {};
        self._dataset = [];
        self._hash    = {};

        self._partitioned_datasets = {};

        self._rows_per_page = 10;
        self._current_page  = 0;

        self._render_function = function () {};

        self._action_queue = [];
        self._is_in_action = false;

        self._initialize_web_worker(dataset.slice(0, 1)[0], dataset.slice(1));
        self._on_error = function () {};

        return self;
    };

    JData.prototype._initialize_web_worker = function (columns, rows) {
        var self = this;

        self._queue_next(function () {
            self._worker = new Worker(srcPath + 'jdata_worker.js');
            self._worker.onmessage = function (e) {<commit_msg>Code style changes<commit_after>var JData;

(function() {
    "use strict";

    var srcPath = getSourcePath();

    function getSourcePath () {
        var scripts = document.getElementsByTagName('script'),
            srcFile = scripts[scripts.length - 1].src;

        return srcFile.replace(
            /(http:\/\/)?.*?(\/(.*\/)?).*/,
            function () { return arguments[2]; }
        );
    }

    JData = function (dataset) {
        var self = this instanceof JData ? this : Object.create(JData.prototype);

        self._columns = {};
        self._dataset = [];
        self._hash    = {};

        self._partitioned_datasets = {};

        self._rows_per_page = 10;
        self._current_page  = 0;

        self._render_function = function () {};

        self._action_queue = [];
        self._is_in_action = false;

        self._initialize_web_worker(dataset.slice(0, 1)[0], dataset.slice(1));
        self._on_error = function () {};

        return self;
    };

    JData.prototype._initialize_web_worker = function (columns, rows) {
        var self = this;

        self._queue_next(function () {
            self._worker = new Worker(srcPath + 'jdata_worker.js');
            self._worker.onmessage = function (e) {
{'fraction_non_alphanumeric': 0.1446669391091132, 'fraction_numerical': 0.0073559460563955865, 'mean_word_length': 2.166882276843467, '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': '1125923', 'n_tokens_mistral': 737, 'n_tokens_neox': 699, 'n_words': 135}