<commit_before>!function (a, b) {
    b.angular = a;
    var c = {};
    c.toArgsArray = function (a) {
        return Array.prototype.slice.call(a, 0) || []
    };
    var d = {};
    d.forEach = function (a, b, c, f) {
        var g, h;
        if (a)if (e.isFunction(a)) {
            for (g in a)if ("prototype" !== g && "length" !== g && "name" !== g && (!a.hasOwnProperty || a.hasOwnProperty(g)) && b.call(c, a[g], g) === !1)break
        } else if (e.isArray(a) || e.isArrayLike(a))if (f)for (g = a.length - 1, h = 0; g >= h && b.call(c, a[g], g) !== !1; g--); else for (g = 0, h = a.length; h > g && b.call(c, a[g], g) !== !1; g++); else {
            if (a.forEach && a.forEach !== d.forEach)return a.forEach(b, c);
            for (g in a)if (a.hasOwnProperty(g) && b.call(c, a[g], g) === !1)break
        }
        return a
    };
    var e = {};
    e.isArray = function (a) {
        return a ? !!a.isArray : !1
    }, e.isArrayLike = function (a) {
        if (null === a || e.isWindow(a))return!1;
        var b = a.length;
        return 1 === a.nodeType && b ? !0 : e.isString(a) || e.isArray(a) || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
    }, e.isFunction = function (a) {
        return"function" == typeof a
    }, e.isString = function (a) {
        return"string" == typeof a
    }, e.isWindow = function (a) {
        return a && a.document && a.location && a.alert && a.setInterval
    };
    var f = function () {
        function a(a, b) {
            for (var c = !0, d = 0, e = a.length; e > d;)b(a[d]) || (c = !1), d += 1;
            return c
        }

        function b() {
        }

        function e() {
            var a = this;
            a.$w = [], a.$lw = null, a.$aQ = [], a.$pQ = [], a.$r = a, a.$c = [], a.$l = {}, a.$p = null
        }

        var f = d.forEach, g = e.prototype;
        return g.$watch = function (a, c, d) {
            var e = this, f = {watchFn: a, listenerFn: c || function () {
            }, deep: !!d, last: b};
            return e.$w.unshift(f), e.$r.$lw = null, e.$lw = null, function () {
                var a = e.$w.indexOf(f);
                a >= 0 && (e.$w.splice(a, 1), e.$r.$lw = null)
            }
        }, g.$$digestOnce = function () {
            var a, c = !0, d = this, e = !0;
            return d.$$scopes(function (d) {
                var g, h;
                return f(d.$w, function (e) {
                    try {
                        if (e)if (g = e.watchFn(d), h = e.last, d.$$areEqual(g, h, e.deep)) {
                            if (d.$r.$lw === e)return c = !1, !1
                        } else d.$r.$lw = e, e.last = e.deep ? JSON.stringify(g) : g, e.listenerFn(g, h === b ? g : h, d), a = !0
                    } catch (f) {
                        console.error(f)
                    }
                }, null, e), c
            }), a
        }, g.$digest = function () {
            var a, b = 10, c = this;
            c.$r.$lw = null, c.$beginPhase("$digest");
            do {
                for (; c.$aQ.length;)try {
                    var d = c.$aQ.shift();
                    d.scope.$eval(d.exp)
                } catch (e) {
                    console.error(e)
                }
                if (a = c.$$digestOnce(), (a || c.$aQ.length) && !b--)throw c.$clearPhase(), "10its"
            } while (a || c.$aQ.length);
            for (; c.$pQ.length;)try {
                c.$pQ.shift()()
            } catch (e) {
                console.error(e)
            }
            c.$clearPhase()
        }, g.$$areEqual = function (a, b, c) {
            return c ? JSON.stringify(a) === b : a === b || "number" == typeof a && "number" == typeof b && isNaN(a) && isNaN(b)
        }, g.$eval = function (a, b) {
            return a(this, b)
        }, g.$apply = function (a) {
            var b = this;
            try {
                return b.$beginPhase("$apply"), b.$eval(a)
            } finally {
                b.$clearPhase(), b.$r.$digest()
            }
        }, g.$evalAsync = function (a) {
            var b = this;
            b.$p || b.$aQ.length || setTimeout(function () {
                b.$aQ.length && b.$r.$digest()
            }, 0), b.$aQ.push({scope: b, exp: a})
        }, g.$beginPhase = function (a) {
            var b = this;
            b.$p || (b.$p = a)
        }, g.$clearPhase = function () {
            this.$p = null
        }, g.$$postDigest = function (a) {
            this.$pQ.push(a)
        }, g.$new = function (a) {
            var b, c = this;
            if (a)b = new e, b.$r = c.$r, b.$aQ = c.$aQ, b.$pQ = c.$pQ; else {
                var d = function () {
                };
                d.prototype = c, b = new d
            }
            return c.$c.push(b), b.$w = [], b.$l = {}, b.$c = [], b.$parent = c, b
        }, g.$$scopes = function (b) {
            var c = this;
            return b(c) ? a(c.$c, function (a) {
                return a.$$scopes(b)
            }) : !1
        }, g.$destroy = function () {
            var a = this;
            if (a !== a.$r) {
                var b = a.$parent.$c, c = b.indexOf(a);
                c >= 0 && (a.$broadcast("$destroy"), b.splice(c, 1))
            }
        }, g.$on = function (a, b) {
            var c = this, d = c.$l[a];
            return d || (c.$l[a] = d = []), d.push(b), function () {
                var a = d.indexOf(b);
                a >= 0 && (d[a] = null)
            }
        }, g.$emit = function (a) {
            var b = this, d = !1, e = {name: a, targetScope: b, stopPropagation: function () {
                d = !0
            }, preventDefault: function () {
                e.defaultPrevented = !0
            }}, f = c.toArgsArray(arguments);
            f.shift();
            var g = [e].concat(f), h = b;
            do e.currentScope = h, h.$$fire(a, g), h = h.$parent; while (h && !d);
            return e
        }, g.$broadcast = function (a) {
            var b = this, d = {name: a, targetScope: b, preventDefault: function () {
                d.defaultPrevented = !0
            }}, e = c.toArgsArray(arguments);
            e.shift();
            var f = [d].concat(e);
            return b.$$scopes(function (b) {
                return d.currentScope = b, b.$$fire(a, f), !0
            }), d
        }, g.$$fire = function (a, b) {
            for (var c = this.$l[a] || [], d = 0; d < c.length;)if (null === c[d])c.splice(d, 1); else {
                try {
                    c[d].apply(null, b)
                } catch (e) {
                    console.error(e)
                }
                d++
            }
            return event
        }, e
    }();
    a.formatters = c, a.helpers = d, a.validators = e, a.Scope = f
}({}, function () {
    return this
}());<commit_msg>optimization2 on scope.js<commit_after>!function(a,b){b.angular=a;var c={};c.toArgsArray=function(a){return Array.prototype.slice.call(a,0)||[]};var d={};d.forEach=function(a,b,c,f){var g,h;if(a)if(e.isFunction(a)){for(g in a)if("prototype"!==g&&"length"!==g&&"name"!==g&&(!a.hasOwnProperty||a.hasOwnProperty(g))&&b.call(c,a[g],g)===!1)break}else if(e.isArray(a)||e.isArrayLike(a))if(f)for(g=a.length-1,h=0;g>=h&&b.call(c,a[g],g)!==!1;g--);else for(g=0,h=a.length;h>g&&b.call(c,a[g],g)!==!1;g++);else{if(a.forEach&&a.forEach!==d.forEach)return a.forEach(b,c);for(g in a)if(a.hasOwnProperty(g)&&b.call(c,a[g],g)===!1)break}return a};var e={};e.isArray=function(a){return a?!!a.isArray:!1},e.isArrayLike=function(a){if(null===a||e.isWindow(a))return!1;var b=a.length;return 1===a.nodeType&&b?!0:e.isString(a)||e.isArray(a)||0===b||"number"==typeof b&&b>0&&b-1 in a},e.isFunction=function(a){return"function"==typeof a},e.isString=function(a){return"string"==typeof a},e.isWindow=function(a){return a&&a.document&&a.location&&a.alert&&a.setInterval};var f=function(){function a(a,b){for(var c=!0,d=0,e=a.length;e>d;)b(a[d])||(c=!1),d+=1;return c}function b(){}function e(){var a=this;a.$w=[],a.$lw=null,a.$aQ=[],a.$pQ=[],a.$r=a,a.$c=[],a.$l={},a.$p=null}var f=d.forEach,g=e.prototype;return g.$watch=function(a,c,d){var e=this,f={watchFn:a,listenerFn:c||function(){},deep:!!d,last:b};return e.$w.unshift(f),e.$r.$lw=null,e.$lw=null,function(){var a=e.$w.indexOf(f);a>=0&&(e.$w.splice(a,1),e.$r.$lw=null)}},g.$$digestOnce=function(){var a,c=!0,d=this,e=!0;return d.$$scopes(function(d){var g,h;return f(d.$w,function(e){try{if(e)if(g=e.watchFn(d),h=e.last,d.$$areEqual(g,h,e.deep)){if(d.$r.$lw===e)return c=!1,!1}else d.$r.$lw=e,e.last=e.deep?JSON.stringify(g):g,e.listenerFn(g,h===b?g:h,d),a=!0}catch(f){console.error(f)}},null,e),c}),a},g.$digest=function(){var a,b=10,c=this;c.$r.$lw=null,c.$beginPhase("$digest");do{for(;c.$aQ.length;)try{var d=c.$aQ.shift();d.scope.$eval(d.exp)}catch(e){console.error(e)}if(a=c.$$digestOnce(),(a||c.$aQ.length)&&!b--)throw c.$clearPhase(),"10its"}while(a||c.$aQ.length);for(;c.$pQ.length;)try{c.$pQ.shift()()}catch(e){console.error(e)}c.$clearPhase()},g.$$areEqual=function(a,b,c){return c?JSON.stringify(a)===b:a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)},g.$eval=function(a,b){return a(this,b)},g.$apply=function(a){var b=this;try{return b.$beginPhase("$apply"),b.$eval(a)}finally{b.$clearPhase(),b.$r.$digest()}},g.$evalAsync=function(a){var b=this;b.$p||b.$aQ.length||setTimeout(function(){b.$aQ.length&&b.$r.$digest()},0),b.$aQ.push({scope:b,exp:a})},g.$beginPhase=function(a){var b=this;b.$p||(b.$p=a)},g.$clearPhase=function(){this.$p=null},g.$$postDigest=function(a){this.$pQ.push(a)},g.$new=function(a){var b,c=this;if(a)b=new e,b.$r=c.$r,b.$aQ=c.$aQ,b.$pQ=c.$pQ;else{var d=function(){};d.prototype=c,b=new d}return c.$c.push(b),b.$w=[],b.$l={},b.$c=[],b.$parent=c,b},g.$$scopes=function(b){var c=this;return b(c)?a(c.$c,function(a){return a.$$scopes(b)}):!1},g.$destroy=function(){var a=this;if(a!==a.$r){var b=a.$parent.$c,c=b.indexOf(a);c>=0&&(a.$broadcast("$destroy"),b.splice(c,1))}},g.$on=function(a,b){var c=this,d=c.$l[a];return d||(c.$l[a]=d=[]),d.push(b),function(){var a=d.indexOf(b);a>=0&&(d[a]=null)}},g.$emit=function(a){var b=this,d=!1,e={name:a,targetScope:b,stopPropagation:function(){d=!0},preventDefault:function(){e.defaultPrevented=!0}},f=c.toArgsArray(arguments);f.shift();var g=[e].concat(f),h=b;do e.currentScope=h,h.$$fire(a,g),h=h.$parent;while(h&&!d);return e},g.$broadcast=function(a){var b=this,d={name:a,targetScope:b,preventDefault:function(){d.defaultPrevented=!0}},e=c.toArgsArray(arguments);e.shift();var f=[d].concat(e);return b.$$scopes(function(b){return d.currentScope=b,b.$$fire(a,f),!0}),d},g.$$fire=function(a,b){for(var c=this.$l[a]||[],d=0;d<c.length;)if(null===c[d])c.splice(d,1);else{try{c[d].apply(null,b)}catch(e){console.error(e)}d++}return event},e}();a.formatters=c,a.helpers=d,a.validators=e,a.Scope=f}({},function(){return this}());
{'fraction_non_alphanumeric': 0.24571270514475382, 'fraction_numerical': 0.007836990595611285, 'mean_word_length': 2.2989659367396595, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6710111', 'n_tokens_mistral': 4244, 'n_tokens_neox': 4162, 'n_words': 673}