<commit_before>var splash = (function () {
    //for fading effect
    var img;
    var canvas;
    var ctx;
    var currentPixels = null;
    var fadespeed = 10;
    var white = false;
    var fadetimer;

    return {
	init: function() {
	    console.log("Initializing splash screen");
	    $("body").prepend('<img id="splash" src="images/Helping_Hand.jpg" />');
	    img = document.getElementById("splash");
	    canvas = document.createElement("canvas");
	    ctx = canvas.getContext("2d");
	    setTimeout(function() { splash.fade(2700, "images/StanfordLogo.jpg"); }, 500);
	},

	fade: function(time, nextimg) {
	    if (nextimg === "") {
		clearInterval(fadetimer);
		$("splash").remove();
	    }

	    canvas.width = img.width;
	    canvas.height = img.height;
	    
	    ctx.drawImage(img, 0, 0, 
			  img.naturalWidth, 
			  img.naturalHeight, 0, 0, img.width, img.height);
	    currentPixels = ctx.getImageData(0, 0, img.width, img.height);
	    
	    img.onload = null;
	    
	    fadetimer = setInterval(splash.changeColor, 100);
	    setTimeout(function() { splash.nextImage(nextimg); }, time);

	},

	changeColor: function() {
            for(var i = 0 ; i < currentPixels.data.length ; i++) {
                currentPixels.data[i]  += fadespeed;
            }

            ctx.putImageData(currentPixels, 0, 0);
            img.src = canvas.toDataURL("image/png");
	},

	nextImage: function(path) {
	    clearInterval(fadetimer);
	    img.src = path;
	    if (path !== "") {
		setTimeout(function() { splash.fade(2700, ""); }, 500);
	    }
	    else {
		setTimeout(main.init, 0);
	    }
	}
    }
})();
<commit_msg>needed  a hash mark . I am the dumb<commit_after>var splash = (function () {
    //for fading effect
    var img;
    var canvas;
    var ctx;
    var currentPixels = null;
    var fadespeed = 10;
    var white = false;
    var fadetimer;

    return {
	init: function() {
	    console.log("Initializing splash screen");
	    $("body").prepend('<img id="splash" src="images/Helping_Hand.jpg" />');
	    img = document.getElementById("splash");
	    canvas = document.createElement("canvas");
	    ctx = canvas.getContext("2d");
	    setTimeout(function() { splash.fade(2700, "images/StanfordLogo.jpg"); }, 500);
	},

	fade: function(time, nextimg) {
	    if (nextimg === "") {
		clearInterval(fadetimer);

	    }

	    canvas.width = img.width;
	    canvas.height = img.height;
	    
	    ctx.drawImage(img, 0, 0, 
			  img.naturalWidth, 
			  img.naturalHeight, 0, 0, img.width, img.height);
	    currentPixels = ctx.getImageData(0, 0, img.width, img.height);
	    
	    img.onload = null;
	    
	    fadetimer = setInterval(splash.changeColor, 100);
	    setTimeout(function() { splash.nextImage(nextimg); }, time);

	},

	changeColor: function() {
            for(var i = 0 ; i < currentPixels.data.length ; i++) {
                currentPixels.data[i]  += fadespeed;
            }

            ctx.putImageData(currentPixels, 0, 0);
            img.src = canvas.toDataURL("image/png");
	},

	nextImage: function(path) {
	    clearInterval(fadetimer);
	    img.src = path;
	    if (path !== "") {
		setTimeout(function() { splash.fade(2700, ""); }, 500);
	    }
	    else {
		$("#splash").remove();
		setTimeout(main.init, 0);
	    }
	}
    }
})();

{'fraction_non_alphanumeric': 0.16097560975609757, 'fraction_numerical': 0.018292682926829267, 'mean_word_length': 2.5431965442764577, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4344692', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1087, 'n_words': 213}