<commit_before>/*
    Collider
*/
se.BoxCollider = function (x, y, width, height){
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
}

se.BoxCollider.prototype.setParent = function(obj){
    this.parent = obj;
}

se.BoxCollider.prototype.getExtent = function(){
    var obj = this.parent;
    var x = obj.getX() + this.x;
    var y = obj.getY() + this.y;
    var width = this.width;
    var height = this.height;
    return new se.Extent(x, y, x + width, y + height);
}

se.BoxCollider.prototype.isIntersect = function(collider){
    if(collider instanceof Array){
        for(var i in collider){
            var c = collider[i];
            if(this._isIntersect(c))
                return true;
        }
    } else
        return this._isIntersect(collider);
    return false;
}

se.BoxCollider.prototype._isIntersect = function(collider){
    var extent1 = this.getExtent();
    var extent2 = collider.getExtent();
    return extent1.intersects(extent2);
}

se.BoxCollider.prototype.getIntersection = function(collider){
    if(collider instanceof Array){
        for(var i in collider){
            var c = collider[i];
            if(this._isIntersect(c))
                return this._getIntersection(c);
        }
    } else
        return this._getIntersection(collider);
    return null;
}

se.BoxCollider.prototype._getIntersection = function(collider){
    var extent1 = this.getExtent();
    var extent2 = collider.getExtent();
    return extent1.getIntersection(extent2);
}

se.BoxCollider.prototype.clone = function(){
    return new se.BoxCollider(this.x, this.y, this.width, this.height);
}
<commit_msg>renomeando de BoxCollider para RectCollider<commit_after>/*
    Collider
*/
se.RectCollider = function (x, y, width, height){
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
}

se.RectCollider.prototype.setParent = function(obj){
    this.parent = obj;
}

se.RectCollider.prototype.getExtent = function(){
    var obj = this.parent;
    var x = obj.getX() + this.x;
    var y = obj.getY() + this.y;
    var width = this.width;
    var height = this.height;
    return new se.Extent(x, y, x + width, y + height);
}

se.RectCollider.prototype.isIntersect = function(collider){
    if(collider instanceof Array){
        for(var i in collider){
            var c = collider[i];
            if(this._isIntersect(c))
                return true;
        }
    } else
        return this._isIntersect(collider);
    return false;
}

se.RectCollider.prototype._isIntersect = function(collider){
    var extent1 = this.getExtent();
    var extent2 = collider.getExtent();
    return extent1.intersects(extent2);
}

se.RectCollider.prototype.getIntersection = function(collider){
    if(collider instanceof Array){
        for(var i in collider){
            var c = collider[i];
            if(this._isIntersect(c))
                return this._getIntersection(c);
        }
    } else
        return this._getIntersection(collider);
    return null;
}

se.RectCollider.prototype._getIntersection = function(collider){
    var extent1 = this.getExtent();
    var extent2 = collider.getExtent();
    return extent1.getIntersection(extent2);
}

se.RectCollider.prototype.clone = function(){
    return new se.RectCollider(this.x, this.y, this.width, this.height);
}


{'fraction_non_alphanumeric': 0.12387791741472172, 'fraction_numerical': 0.0047875523638539795, 'mean_word_length': 2.7393736017897092, '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': '191795', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1088, 'n_words': 234}