<commit_before>define(function(require, exports, module) {
    var Box = require('core/class').createClass('Box', {

        constructor: function(x, y, width, height) {
            var box = arguments[0];
            if (box && typeof(box) === 'object') {
                x = box.x;
                y = box.y;
                width = box.width;
                height = box.height;
            }
            if (width < 0) {
                x -= (width = -width);
            }
            if (height < 0) {
                y -= (height = -height);
            }
            this.x = x;
            this.y = y;
            this.width = width;
            this.height = height;
            this.left = x;
            this.right = this.x + this.width;
            this.top = this.y;
            this.bottom = this.y + this.height;
            this.cx = x + this.width / 2;
            this.cy = y + this.height / 2;
        },

        getRangeX: function() {
            return [this.left, this.right];
        },

        getRangeY: function() {
            return [this.left, this.right];<commit_msg>fix box bug<commit_after>define(function(require, exports, module) {
    var Box = require('core/class').createClass('Box', {

        constructor: function(x, y, width, height) {
            var box = arguments[0];
            if (box && typeof(box) === 'object') {
                x = box.x;
                y = box.y;
                width = box.width;
                height = box.height;
            }
            if (width < 0) {
                x -= (width = -width);
            }
            if (height < 0) {
                y -= (height = -height);
            }
            this.x = x || 0;
            this.y = y || 0;
            this.width = width || 0;
            this.height = height || 0;
            this.left = x;
            this.right = this.x + this.width;
            this.top = this.y;
            this.bottom = this.y + this.height;
            this.cx = x + this.width / 2;
            this.cy = y + this.height / 2;
        },

        getRangeX: function() {
            return [this.left, this.right];
        },

        getRangeY: function() {
            return [this.left, this.right];
{'fraction_non_alphanumeric': 0.13681368136813682, 'fraction_numerical': 0.0063006300630063005, 'mean_word_length': 1.1151284490960989, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4358046', 'n_tokens_mistral': 657, 'n_tokens_neox': 626, 'n_words': 153}