<commit_before>var socket;
var grid;
var canvasSize = 700; // Same as on server

function setup() {
    createCanvas(canvasSize, canvasSize);
    
    socket = io.connect();
    
    // Getting the grid
    socket.on('theGrid', function(_grid){
        grid = _grid; 
        
        console.log('got maze / loop');
        loop();
    });
    
    console.log('setup / noLoop');
    noLoop();
}

function draw() {
    background(51);
    
    
    if(grid){
        drawGrid();
    }
}

function drawGrid(){
    grid.forEach(cell => {
        
        stroke('#FFFFFF');
        strokeWeight(2);
        // The top wall
        if(cell.walls[0]){
            line(cell.x, cell.y, cell.x + cell.size, cell.y);
        }
        
        // The right wall
        if(cell.walls[1]){
            
        }
        
        // The bottom wall
        if(cell.walls[2]){
            
        }
        
        // The left wall
        if(cell.walls[3]){
            
        }
        
        
    });
}<commit_msg>succesfully drawing the maze<commit_after>var socket;
var grid;
var canvasSize = 700; // Same as on server

function setup() {
    createCanvas(canvasSize, canvasSize);
    
    socket = io.connect();
    
    // Getting the grid
    socket.on('theGrid', function(_grid){
        grid = _grid; 
        
        console.log('got maze / loop');
        loop();
    });
    
    console.log('setup / noLoop');
    noLoop();
}

function draw() {
    background(51);
    
    
    if(grid){
        drawGrid();
    }
}

function drawGrid(){
    grid.forEach(cell => {
        
        stroke('#FFFFFF');
        strokeWeight(2);
        // The top wall
        if(cell.walls[0]){
            line(cell.x, cell.y, cell.x + cell.size, cell.y);
        }
        
        // The right wall
        if(cell.walls[1]){
            line(cell.x + cell.size, cell.y, cell.x + cell.size, cell.y + cell.size);
        }
        
        // The bottom wall
        if(cell.walls[2]){
            line(cell.x, cell.y + cell.size, cell.x + cell.size, cell.y + cell.size);
        }
        
        // The left wall
        if(cell.walls[3]){
            line(cell.x, cell.y, cell.x, cell.y + cell.size);
        }
        
        
    });
}
{'fraction_non_alphanumeric': 0.14464285714285716, 'fraction_numerical': 0.008928571428571428, 'mean_word_length': 1.3689217758985202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1601712', 'n_tokens_mistral': 730, 'n_tokens_neox': 706, 'n_words': 146}