<commit_before>"use strict";
(function(app) {
    app.LiveRedisService = (function() {
        var LiveRedisService = function() {
            //
            // Live Events socket variables and configuration
            //
            this.gDS = ['text-muted',
                        'text-primary',
                        'text-muted',
                        'text-danger'];
            this.oleMx = this.cLE();
            this.o_SIO = io(window.location.protocol + '//' + window.location.hostname + ':33331', {autoConnect: false});
            this.e_SIO = undefined;
            this.rVEV();
        };
        //// Create Live Events matrix
        LiveRedisService.prototype.cLE = function() {
            var lva = [], a0 = [], a01 = [], a1 = [], a12 = [], a2 = [];
            for (var i = 0; i < 32; i++) {
                a0[i] = 0;
                a01[i] = i < 11 ? 0 : 1;
                a1[i] = 1;
                a12[i] = i < 22 ? 1 : 2;
                a2[i] = 2;
            }
            for (i = 0; i < 5; i++) {
                lva.push(a0.slice(0));
            }
            lva.push(a01);
            for (i = 0; i < 4; i++) {
                lva.push(a1.slice(0));
            }
            lva.push(a12);
            for (i = 0; i < 5; i++) {
                lva.push(a2.slice(0));
            }
            return lva;
        };
        //// deactivateLiveEvents
        LiveRedisService.prototype.dLE = function() {
            if (this.e_SIO) {
                this.e_SIO.destroy();
                if (this.o_SIO.connected) {
                    this.o_SIO.close();
                }
            }
        };
        //// activateLiveEvents
        LiveRedisService.prototype.aLE = function() {
            this.o_SIO.connect();
            this.e_SIO = this.o_SIO.on('redis', function(d) {
                if (this.leMx[d.x][d.y] < 3) {
                    var x = d.x,
                        y = d.y;
                    this.leMx[x][y] = 3;
                    setTimeout(function() {
                        this.leMx[x][y] = ((((x << 5) + y) << 4) / 2731) | 0;
                    }, 750);
                }
            });
        };
        //// resetViewExecVariables
        LiveRedisService.prototype.rVEV = function() {
            this.lE = false;
            this.leMx = this.oleMx.slice(0);
        };
        //// toggleLE
        LiveRedisService.prototype.toggleLE = function() {
            this.lE = !this.lE;
            return this.lE;
        };
        //// setLE
        LiveRedisService.prototype.setLE = function(b) {
            this.lE = b;
        };
        return LiveRedisService;
    })();
})(window.app || (window.app = {}));
<commit_msg>AngularJS 2.0.0-rc5 - restructured code to conform with Modules,Components,Services<commit_after>"use strict";
(function(app) {
    app.LiveRedisService = (function() {
        var LiveRedisService = function() {
            //
            // Live Events socket variables and configuration
            //
            this.gDS = ['text-muted',
                        'text-primary',
                        'text-muted',
                        'text-danger'];
            this.oleMx = this.cLE();
            //this.o_SIO = io(window.location.protocol + '//' + window.location.hostname + ':33331', {autoConnect: false});
            this.o_SIO = io('https://raspberrypi8:33331', {autoConnect: false});
            this.e_SIO = undefined;
            this.rVEV();
        };
        //// Create Live Events matrix
        LiveRedisService.prototype.cLE = function() {
            var lva = [], a0 = [], a01 = [], a1 = [], a12 = [], a2 = [];
            for (var i = 0; i < 32; i++) {
                a0[i] = 0;
                a01[i] = i < 11 ? 0 : 1;
                a1[i] = 1;
                a12[i] = i < 22 ? 1 : 2;
                a2[i] = 2;
            }
            for (i = 0; i < 5; i++) {
                lva.push(a0.slice(0));
            }
            lva.push(a01);
            for (i = 0; i < 4; i++) {
                lva.push(a1.slice(0));
            }
            lva.push(a12);
            for (i = 0; i < 5; i++) {
                lva.push(a2.slice(0));
            }
            return lva;
        };
        //// deactivateLiveEvents
        LiveRedisService.prototype.dLE = function() {
            if (this.e_SIO) {
                this.e_SIO.destroy();
                if (this.o_SIO.connected) {
                    this.o_SIO.close();
                }
            }
        };
        //// activateLiveEvents
        LiveRedisService.prototype.aLE = function() {
            this.o_SIO.connect();
            this.e_SIO = this.o_SIO.on('redis', function(d) {
                if (this.leMx[d.x][d.y] < 3) {
                    var x = d.x,
                        y = d.y;
                    this.leMx[x][y] = 3;
                    setTimeout(function() {
                        this.leMx[x][y] = ((((x << 5) + y) << 4) / 2731) | 0;
                    }, 750);
                }
            });
        };
        //// resetViewExecVariables
        LiveRedisService.prototype.rVEV = function() {
            this.lE = false;
            this.leMx = this.oleMx.slice(0);
        };
        //// toggleLE
        LiveRedisService.prototype.toggleLE = function() {
            this.lE = !this.lE;
            return this.lE;
        };
        //// setLE
        LiveRedisService.prototype.setLE = function(b) {
            this.lE = b;
        };
        return LiveRedisService;
    })();
})(window.app || (window.app = {}));

{'fraction_non_alphanumeric': 0.15189645874528132, 'fraction_numerical': 0.024087722451914435, 'mean_word_length': 1.081556303778526, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3793680', 'n_tokens_mistral': 1842, 'n_tokens_neox': 1697, 'n_words': 309}