<commit_before>
//begin-------------------ARE.CanvasRenderer---------------------begin

ARE.CanvasRenderer = __class.extend({
    "ctor": function(canvas) {
        if (canvas) {
            this.canvas = canvas;
            this.ctx = this.canvas.getContext("2d");
            this.height = this.canvas.width;
            this.width = this.canvas.height;
        }
    },
    "hitAABB": function(ctx, o, mtx, x, y, type) {
        var list = o.children.slice(0),
            l = list.length;
        for (var i = l - 1; i >= 0; i--) {
            var child = list[i];
            if (!this.isbindingEvent(child)) continue;
            var target = this._hitAABB(ctx, child, mtx, x, y, type);
            if (target) return target;
        }
    },
    "_hitAABB": function(ctx, o, mtx, x, y, type) {
        if (!o.isVisible()) {
            return;
        }
        if (o instanceof ARE.Container) {
            var list = o.children.slice(0),
                l = list.length;
            for (var i = l - 1; i >= 0; i--) {
                var child = list[i];
                var target = this._hitAABB(ctx, child, mtx, x, y, type);
                if (target) return target;
            }
        } else {
            if (this.checkPointInAABB(x, y, o.AABB)) {
                this._bubbleEvent(o, type, x, y);
                return o;
            }
        }
    },
    "hitRender": function(ctx, o, mtx, x, y, type) {
        if (mtx) {
            o._hitMatrix.initialize(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx, mtx.ty);
        } else {
            o._hitMatrix.initialize(1, 0, 0, 1, 0, 0);
        }
        mtx = o._hitMatrix;
        mtx.appendTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY);
        var list = o.children.slice(0),
            l = list.length;
        for (var i = l - 1; i >= 0; i--) {
            var child = list[i];
            mtx.initialize(1, 0, 0, 1, 0, 0);
            mtx.appendTransform(o.x - x, o.y - y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY);<commit_msg>Update canvas-renderer.js<commit_after>
//begin-------------------ARE.CanvasRenderer---------------------begin

ARE.CanvasRenderer = __class.extend({
    "ctor": function(canvas) {
        if (canvas) {
            this.canvas = canvas;
            this.ctx = this.canvas.getContext("2d");
            this.height = this.canvas.width;
            this.width = this.canvas.height;
        }
    },
    "hitAABB": function(ctx, o, mtx, x, y, type) {
        var list = o.children.slice(0),
            l = list.length;
        for (var i = l - 1; i >= 0; i--) {
            var child = list[i];
            if (!this.isbindingEvent(child)) continue;
            var target = this._hitAABB(ctx, child, mtx, x, y, type);
            if (target) return target;
        }
    },
    "_hitAABB": function(ctx, o, mtx, x, y, type) {
        if (!o.isVisible()) {
            return;
        }
        if (o instanceof ARE.Container) {
            var list = o.children.slice(0),
                l = list.length;
            for (var i = l - 1; i >= 0; i--) {
                var child = list[i];
                var target = this._hitAABB(ctx, child, mtx, x, y, type);
                if (target) return target;
            }
        } else {
            if (o.AABB&&this.checkPointInAABB(x, y, o.AABB)) {
                this._bubbleEvent(o, type, x, y);
                return o;
            }
        }
    },
    "hitRender": function(ctx, o, mtx, x, y, type) {
        if (mtx) {
            o._hitMatrix.initialize(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx, mtx.ty);
        } else {
            o._hitMatrix.initialize(1, 0, 0, 1, 0, 0);
        }
        mtx = o._hitMatrix;
        mtx.appendTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY);
        var list = o.children.slice(0),
            l = list.length;
        for (var i = l - 1; i >= 0; i--) {
            var child = list[i];
            mtx.initialize(1, 0, 0, 1, 0, 0);
            mtx.appendTransform(o.x - x, o.y - y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY);
{'fraction_non_alphanumeric': 0.17077294685990338, 'fraction_numerical': 0.010628019323671498, 'mean_word_length': 1.4173963806187975, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 9, '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': '5432127', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1417, 'n_words': 346}