<commit_before>var Map;
require('tile');

Map = function () {
    var map;

    map = [];

    this.setMap = function (newMap) {
        map = newMap;
    };

    this.getMap = function () {
        return map;
    }

    this.getView = function (x, y, width, height) {
        var view, i;
        view = map.slice(y, y + height);
        width += x;
        for (i = height; i--;) {
            view[i] = view[i].slice(x, width);
        }
        return view;
    };

    this.randomMap = function (width, height) {
        var i, j, row, random;
        map = [];
        for (i = height; i--;) {
            row = [];
            for (j = width; j--;) {
                random = Math.round(Math.random() * 155) + 50;
                row.push(new Tile(Math.floor(Math.random() * 3)));
            }
            map.push(row);
        }
    };
};<commit_msg>removed an unused variable "random" from the method randomMap<commit_after>var Map;
require('tile');

Map = function () {
    var map;

    map = [];

    this.setMap = function (newMap) {
        map = newMap;
    };

    this.getMap = function () {
        return map;
    }

    this.getView = function (x, y, width, height) {
        var view, i;
        view = map.slice(y, y + height);
        width += x;
        for (i = height; i--;) {
            view[i] = view[i].slice(x, width);
        }
        return view;
    };

    this.randomMap = function (width, height) {
        var i, j, row;
        map = [];
        for (i = height; i--;) {
            row = [];
            for (j = width; j--;) {
                row.push(new Tile(Math.floor(Math.random() * 3)));
            }
            map.push(row);
        }
    };
};
{'fraction_non_alphanumeric': 0.16303708063566805, 'fraction_numerical': 0.004120070629782225, 'mean_word_length': 1.4182076813655762, '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': '2512868', 'n_tokens_mistral': 564, 'n_tokens_neox': 544, 'n_words': 139}