<commit_before>$(document).ready(function(){

	// Get canvas and its context
	var canvas = document.getElementById("cc");
	var ctx = canvas.getContext("2d");	

	var img = new Image();
	img.crossOrigin = "Anonymous";
	src = "http://ghost---shadow.github.io/HTML5-Photo-editor/cats/original.jpg"

	// Initialize the image on load
	img.onload = function(){
		canvas.width = img.width;
		canvas.height = img.height;
		ctx.drawImage(img, 0, 0);
		localStorage.setItem( "savedImageData", canvas.toDataURL("image/jpg") );
	}

	// Temporary source for the image
	img.src = src

	var W = img.width;
	var H = img.height;
	
	// make sure the load event fires for cached images too
	if ( img.complete || img.complete === undefined ) {
		img.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
		img.src = src;
	}
	
	// x,y is pixel
	// offset: 0 = red, 1 = green, 2 = blue, 3 = alpha
	function applyKernel(x,y,offset,data,kernel){
		var pix = 0;<commit_msg>4th attempt trying imgur<commit_after>$(document).ready(function(){

	// Get canvas and its context
	var canvas = document.getElementById("cc");
	var ctx = canvas.getContext("2d");	

	var img = new Image();
	img.crossOrigin = "Anonymous";

	// Temporary source for image
	img.src = "http://i.imgur.com/TsZWr4p.jpg"

	var W = img.width;
	var H = img.height;
	
	// make sure the load event fires for cached images too
	if ( img.complete || img.complete === undefined ) {
		img.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
		img.src = src;
	}
	
	// x,y is pixel
	// offset: 0 = red, 1 = green, 2 = blue, 3 = alpha
	function applyKernel(x,y,offset,data,kernel){
		var pix = 0;
{'fraction_non_alphanumeric': 0.1529761904761905, 'fraction_numerical': 0.01369047619047619, 'mean_word_length': 3.643646408839779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4471637', 'n_tokens_mistral': 644, 'n_tokens_neox': 594, 'n_words': 152}