<commit_before>function catWall() {
	var cats = ['INscMGmhmX4', '0M7ibPk37_U', 'R7ssVT6T3mQ', '2CNd6OGdMO8', 'bzvUyu3zOmE', 'pwHy4gMO6sU', 'fzzjgBAaWZw', 'C_S5cXbXe-4', 'hPzNl6NKAG0', 'REQRHdMRimw', '0Bmhjf0rKe8', 'SaOqf2d-y30'];

	var tag = document.createElement('script');
	tag.src = "http://www.youtube.com/player_api";
	var firstScriptTag = document.getElementsByTagName('script')[0];
	firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

	var player;

	window.onYouTubePlayerAPIReady = function() {
		// onYouTubePlayerAPIReady needs to be global. If statement to specify Cat Wall specific code
		if (window.location.pathname == '/cat_wall/page') {

			_.each(cats, function (videoId, i) {
				$('<div />', {
					id: 'player' + i,
					class: 'video'
				}).appendTo('#video_container');

				player = new YT.Player('player' + i, {
					playerVars: { 
						// 'autoplay': 1, 
						'autohide': 1,
						'wmode': 'opaque', 
						'controls': 0,
				    	'playlist': videoId,
						'loop': 1
					},
				    videoId: videoId,
				    events: {
				    	'onReady': onPlayerReady
				    }
				});
			});
		}
	}

	// 4. The API will call this function when the video player is ready.
	function onPlayerReady(event) {
		console.log(event.target)
		event.target.mute();
		event.target.playVideo();
	}
}<commit_msg>Add Cat Wall<commit_after>function catWall() {
	var cats = ['INscMGmhmX4', '0M7ibPk37_U', 'R7ssVT6T3mQ', '2CNd6OGdMO8', 'bzvUyu3zOmE', 'pwHy4gMO6sU', 'fzzjgBAaWZw', 'C_S5cXbXe-4', 'hPzNl6NKAG0', 'REQRHdMRimw', '0Bmhjf0rKe8', 'SaOqf2d-y30'];

	var tag = document.createElement('script');
	tag.src = "http://www.youtube.com/player_api";
	var firstScriptTag = document.getElementsByTagName('script')[0];
	firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

	var player;

	window.onYouTubePlayerAPIReady = function() {
		// onYouTubePlayerAPIReady needs to be global. If statement to specify Cat Wall specific code
		if (window.location.pathname == '/cat_wall/page') {

			_.each(cats, function (videoId, i) {
				$('<div />', {
					id: 'player' + i,
					class: 'video'
				}).appendTo('#video_container');

				player = new YT.Player('player' + i, {
					playerVars: { 
						// 'autoplay': 1, 
						'autohide': 1,
						'wmode': 'opaque', 
						'controls': 0,
				    	'playlist': videoId,
						'loop': 1
					},
				    videoId: videoId,
				    events: {
				    	'onReady': onPlayerReady
				    }
				});
			});
		}
	}

	// 4. The API will call this function when the video player is ready.
	function onPlayerReady(event) {
		event.target.mute();
		event.target.playVideo();
	}
}
{'fraction_non_alphanumeric': 0.15948111407859594, 'fraction_numerical': 0.022892025944296072, 'mean_word_length': 3.270358306188925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5621377', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1005, 'n_words': 195}