<commit_before>function Space() {
    this.canvas = document.getElementById("space");
    this.canvas.width = window.innerWidth;
    this.canvas.height = window.innerHeight;
    this.ctx = this.canvas.getContext("2d");
    
    this.starsPerGalaxy = 250;
    this.numberOfGalaxies = 15;
    this.maxGalaxySize = { xRad: 150, yRad: 100 };
    this.maxStarSize = 2;
    this.numberOfStars = 6000;
}

Space.prototype.make = function() {
    var Space = this;
    var numberOfStars = Space.numberOfStars;
    var numberOfGalaxies = Space.numberOfGalaxies;

    for(var i=0; i < numberOfStars; i++) {
        Space.star();
    }    

    for(var i=0; i < numberOfGalaxies; i++) {
        Space.galaxy();
    }
};

Space.prototype.star = function(x=null, y=null) {
    var Space = this;
    var ctx = Space.ctx;
    var canvas = Space.canvas;

    var r = Util.randomNumber(Space.maxStarSize);

    if (x === null) {
        var x = Util.randomNumber(canvas.width);    
    }

    if (y === null) {
        var y = Util.randomNumber(canvas.height);
        ctx.beginPath();
    }

    ctx.fillStyle = "rgba(255, 255, 255," + 1 / Util.randomNumber(10) + ")";
    ctx.beginPath();
    ctx.arc(x, y, r, 0, 2 * Math.PI, true);
    ctx.closePath();
    ctx.fill();
};

Space.prototype.galaxy = function() {
    var Space = this;<commit_msg>Changed x, y parameters. Wouldn't uglify as is.<commit_after>function Space() {
    this.canvas = document.getElementById("space");
    this.canvas.width = window.innerWidth;
    this.canvas.height = window.innerHeight;
    this.ctx = this.canvas.getContext("2d");
    
    this.starsPerGalaxy = 250;
    this.numberOfGalaxies = 15;
    this.maxGalaxySize = { xRad: 150, yRad: 100 };
    this.maxStarSize = 2;
    this.numberOfStars = 6000;
}

Space.prototype.make = function() {
    var Space = this;
    var numberOfStars = Space.numberOfStars;
    var numberOfGalaxies = Space.numberOfGalaxies;

    for(var i=0; i < numberOfStars; i++) {
        Space.star();
    }    

    for(var i=0; i < numberOfGalaxies; i++) {
        Space.galaxy();
    }
};

Space.prototype.star = function(x, y) {
    var Space = this;
    var ctx = Space.ctx;
    var canvas = Space.canvas;

    var r = Util.randomNumber(Space.maxStarSize);

    if (x) {
        var x = Util.randomNumber(canvas.width);    
    }

    if (y) {
        var y = Util.randomNumber(canvas.height);
        ctx.beginPath();
    }

    ctx.fillStyle = "rgba(255, 255, 255," + 1 / Util.randomNumber(10) + ")";
    ctx.beginPath();
    ctx.arc(x, y, r, 0, 2 * Math.PI, true);
    ctx.closePath();
    ctx.fill();
};

Space.prototype.galaxy = function() {
    var Space = this;
{'fraction_non_alphanumeric': 0.15015015015015015, 'fraction_numerical': 0.024774774774774775, 'mean_word_length': 2.591644204851752, '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': '4347175', 'n_tokens_mistral': 1003, 'n_tokens_neox': 922, 'n_words': 194}