<commit_before>var canvas = document.getElementById('mainScene');
var ctx = canvas.getContext('2d');

var renderInterval = 1000;

var white = "rgb(255,255,255)";
var red = "rgb(200,0,0)";

function fillGridRect(color, x, y){
    if (x < 60 && y < 40)
        fillRect(color, x * 10, y * 10, 10, 10);
    else
        throw new Error('Invalid coordianates');
}

function fillRect(color, x, y, width, height) {
    // Sets the color to fill in the rectangle with
    ctx.fillStyle = color;
    // Creates fill
    ctx.fillRect(x , y, width, height);<commit_msg>Fixed out of range<commit_after>var canvas = document.getElementById('mainScene');
var ctx = canvas.getContext('2d');

var renderInterval = 1000;

var white = "rgb(255,255,255)";
var red = "rgb(200,0,0)";

function fillGridRect(color, x, y){
    fillRect(color, x * 10, y * 10, 10, 10);
}

function fillRect(color, x, y, width, height) {
    // Sets the color to fill in the rectangle with
    ctx.fillStyle = color;
    // Creates fill
    ctx.fillRect(x , y, width, height);
{'fraction_non_alphanumeric': 0.14782608695652175, 'fraction_numerical': 0.05603864734299517, 'mean_word_length': 3.6457399103139014, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1152722', 'n_tokens_mistral': 390, 'n_tokens_neox': 347, 'n_words': 110}