<commit_before>//GUARD
var p = {};
if(!canvas) {
   p = new p5();
}

let canvasWidth = 400;
let canvasHeight = 400;
let angle = 0;
let w = 24;
let ma;
let maxD;
let minHeight = 100;
let maxHeight = 300;
var leftBuffer;
var rightBuffer;
var pg;
var speed = 0.06;
var heightsColors;
var rowColors;
function setup() {
    p.createCanvas(canvasWidth, canvasHeight, p.WEBGL);
    ma = p.atan(p.cos(p.QUARTER_PI));
    maxD = p.dist(0, 0, 200, 200);
    var button = p.createButton('Toggle RAINBOW');
    button.position(0, 0);
    button.mousePressed(toggleRainbow);
    let cols = (canvasHeight / w);
    let rows = (canvasHeight / w);
    heightsColors = ColorHelper.getColorsArray(maxHeight - minHeight);
    rowColors = ColorHelper.getColorsArray(rows);
}<commit_msg>Update sketch.js<commit_after>var p = new p5();

let canvasWidth = 400;
let canvasHeight = 400;
let angle = 0;
let w = 24;
let ma;
let maxD;
let minHeight = 100;
let maxHeight = 300;
var leftBuffer;
var rightBuffer;
var pg;
var speed = 0.06;
var heightsColors;
var rowColors;
function setup() {
    p.createCanvas(canvasWidth, canvasHeight, p.WEBGL);
    ma = p.atan(p.cos(p.QUARTER_PI));
    maxD = p.dist(0, 0, 200, 200);
    var button = p.createButton('Toggle RAINBOW');
    button.position(0, 0);
    button.mousePressed(toggleRainbow);
    let cols = (canvasHeight / w);
    let rows = (canvasHeight / w);
    heightsColors = ColorHelper.getColorsArray(maxHeight - minHeight);
    rowColors = ColorHelper.getColorsArray(rows);
}
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.03866666666666667, 'mean_word_length': 3.8892508143322475, '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': '5038662', 'n_tokens_mistral': 583, 'n_tokens_neox': 539, 'n_words': 146}