<commit_before><html>
	<head>
		<title>Twitch Viewer Counter</title>
		<style>
		<! -- Get URL vars & default values -->
		<?php $color = $_GET["color"]; if (!isset($color)) { $color = "Black"; } ?>
		<?php $size = $_GET["size"]; if (!isset($size)) { $size = "90"; } ?>
		<?php $family = $_GET["family"]; if (!isset($family)) { $family = "Tahoma"; } ?>
			<!-- Set CSS -->
			body {
				font-size: <?php echo $size; ?>px;
				font-family: <?php echo $family; ?>;
				color: <?php echo $color; ?>;
				letter-spacing: -5px;
		  }
		</style>
	</head>
	<body>
	  <?php $channel = $_GET["channel"]; ?>
		<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
		// Get channel name from URL vars
		var username = "<?php echo $channel; ?>";
		// Viewer Counter
		$(document).ready(function() {
			loadViewers();
			function loadViewers() {
			// Grab JSON from Twitch API
				$.getJSON('https://api.twitch.tv/kraken/streams/'+encodeURIComponent(username)+"?callback=?", function(data) {
					// validate there is data
					if (data["stream"] != null) {
					if (data['streams']) {
						$('#viewer_counter').html("Channel offline.");
					} else {
					  // Get viewer count from JSON
						var viewer_count = data['stream']['viewers'];
						$('#viewer_counter').html(viewer_count);
					}
				} else {
					$('#viewer_counter').html("Channel offline.");
				}
			});
		}
		// Updates once every 10 seconds (1 sec = 1000)
			setInterval(function(){
				loadViewers();
			}, 10000);
		});
		</script>
		<div id="viewer_counter">Loading...</div>
	</body>
</html>
<commit_msg>Added animegif and seconds as possible variables.<commit_after><html>
	<head>
		<title>Twitch Viewer Counter</title>
		<style>
			<?php $color = $_GET["color"]; if (!isset($color)) { $color = "Black"; } ?>
			<?php $size = $_GET["size"]; if (!isset($size)) { $size = "90"; } ?>
			<?php $family = $_GET["family"]; if (!isset($family)) { $family = "Tahoma"; } ?>
			<?php
				$animegif = $_GET["animegif"]; if (!isset($animegif)) { $animegif = "false"; }
				$animegif = strtolower($animegif); 
			?>
			body {
				font-size: <?php echo $size; ?>px;
				font-family: <?php echo $family; ?>;
				color: <?php echo $color; ?>;
				letter-spacing: -5px;
		  	}
		</style>
	</head>
	<body>
		<?php $channel = $_GET["channel"]; ?>
		<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
		// Get channel name from URL vars
		var channelname = "<?php echo $channel; ?>";
		// Viewer Counter
		$(document).ready(function() {
			loadViewers();
			function loadViewers() {
				// Grab JSON from Twitch API
				$.getJSON('https://api.twitch.tv/kraken/streams/'+encodeURIComponent(channelname)+"?callback=?", function(data) {
					if (data["stream"] != null) {
					if (data['streams']) {

						<?php
							if ($animegif == "true" || $animegif == "t" || $animegif == "y" || $animegif == "yes") {
								echo "$('#viewer_counter').html('<img src="2.gif" />');";
							} else {
								echo "$('#viewer_counter').html("2");";
							}
						?>

					} else {
						var viewer_count = data['stream']['viewers'];
						var number = viewer_count;
						var number6 = (number - (number % 100000)) / 100000;
						var number5 = ((number % 100000) - ((number % 100000) % 10000)) / 10000;
						var number4 = ((number % 10000) - ((number % 10000) % 1000)) / 1000;
						var number3 = ((number % 1000) - ((number % 1000) % 100)) / 100;
						var number2 = ((number % 100) - ((number % 100) % 10)) / 10;
						var number1 = ((number % 10) - ((number % 10) % 1)) / 1;
						var number1img, number2img, number3img, number4img, number5img, number6img;

						imgArray = new Array();
						imgArray[0] = "0.gif";
						imgArray[1] = "1.gif";
						imgArray[2] = "2.gif";
						imgArray[3] = "3.gif";
						imgArray[4] = "4.gif";
						imgArray[5] = "5.gif";
						imgArray[6] = "6.gif";
						imgArray[7] = "7.gif";
						imgArray[8] = "8.gif";
						imgArray[9] = "9.gif";

						if (number1 == 0 && number2 > 1) {
							number1img = '<img src="'+imgArray[0]+'" />';
						} else if (number1 == 1) {
							number1img = '<img src="'+imgArray[1]+'" />';
						} else if (number1 == 2) {
							number1img = '<img src="'+imgArray[2]+'" />';
						} else if (number1 == 3) {
							number1img = '<img src="'+imgArray[3]+'" />';
						} else if (number1 == 4) {
							number1img = '<img src="'+imgArray[4]+'" />';
						} else if (number1 == 5) {
							number1img = '<img src="'+imgArray[5]+'" />';
						} else if (number1 == 6) {
							number1img = '<img src="'+imgArray[6]+'" />';
						} else if (number1 == 7) {
							number1img = '<img src="'+imgArray[7]+'" />';
						} else if (number1 == 8) {
							number1img = '<img src="'+imgArray[8]+'" />';
						} else if (number1 == 9) {
							number1img = '<img src="'+imgArray[9]+'" />';
						} else {
							number1img = '';
						};

						if (number2 == 0 && number3 > 1) {
							number2img = '<img src="'+imgArray[0]+'" />';
						} else if (number2 == 1) {
							number2img = '<img src="'+imgArray[1]+'" />';
						} else if (number2 == 2) {
							number2img = '<img src="'+imgArray[2]+'" />';
						} else if (number2 == 3) {
							number2img = '<img src="'+imgArray[3]+'" />';
						} else if (number2 == 4) {
							number2img = '<img src="'+imgArray[4]+'" />';
						} else if (number2 == 5) {
							number2img = '<img src="'+imgArray[5]+'" />';
						} else if (number2 == 6) {
							number2img = '<img src="'+imgArray[6]+'" />';
						} else if (number2 == 7) {
							number2img = '<img src="'+imgArray[7]+'" />';
						} else if (number2 == 8) {
							number2img = '<img src="'+imgArray[8]+'" />';
						} else if (number2 == 9) {
							number2img = '<img src="'+imgArray[9]+'" />';
						} else {
							number2img = '';
						};

						if (number3 == 0 && number4 > 1) {
							number3img = '<img src="'+imgArray[0]+'" />';
						} else if (number3 == 1) {
							number3img = '<img src="'+imgArray[1]+'" />';
						} else if (number3 == 2) {
							number3img = '<img src="'+imgArray[2]+'" />';
						} else if (number3 == 3) {
							number3img = '<img src="'+imgArray[3]+'" />';
						} else if (number3 == 4) {
							number3img = '<img src="'+imgArray[4]+'" />';
						} else if (number3 == 5) {
							number3img = '<img src="'+imgArray[5]+'" />';
						} else if (number3 == 6) {
							number3img = '<img src="'+imgArray[6]+'" />';
						} else if (number3 == 7) {
							number3img = '<img src="'+imgArray[7]+'" />';
						} else if (number3 == 8) {
							number3img = '<img src="'+imgArray[8]+'" />';
						} else if (number3 == 9) {
							number3img = '<img src="'+imgArray[9]+'" />';
						} else {
							number3img = '';
						};

						if (number4 == 0 && number5 > 1) {
							number4img = '<img src="'+imgArray[0]+'" />';
						} else if (number4 == 1) {
							number4img = '<img src="'+imgArray[1]+'" />';
						} else if (number4 == 2) {
							number4img = '<img src="'+imgArray[2]+'" />';
						} else if (number4 == 3) {
							number4img = '<img src="'+imgArray[3]+'" />';
						} else if (number4 == 4) {
							number4img = '<img src="'+imgArray[4]+'" />';
						} else if (number4 == 5) {
							number4img = '<img src="'+imgArray[5]+'" />';
						} else if (number4 == 6) {
							number4img = '<img src="'+imgArray[6]+'" />';
						} else if (number4 == 7) {
							number4img = '<img src="'+imgArray[7]+'" />';
						} else if (number4 == 8) {
							number4img = '<img src="'+imgArray[8]+'" />';
						} else if (number4 == 9) {
							number4img = '<img src="'+imgArray[9]+'" />';
						} else {
							number4img = '';
						};

						if (number5 == 0 && number6 > 1) {
							number5img = '<img src="'+imgArray[0]+'" />';
						} else if (number5 == 1) {
							number5img = '<img src="'+imgArray[1]+'" />';
						} else if (number5 == 2) {
							number5img = '<img src="'+imgArray[2]+'" />';
						} else if (number5 == 3) {
							number5img = '<img src="'+imgArray[3]+'" />';
						} else if (number5 == 4) {
							number5img = '<img src="'+imgArray[4]+'" />';
						} else if (number5 == 5) {
							number5img = '<img src="'+imgArray[5]+'" />';
						} else if (number5 == 6) {
							number5img = '<img src="'+imgArray[6]+'" />';
						} else if (number5 == 7) {
							number5img = '<img src="'+imgArray[7]+'" />';
						} else if (number5 == 8) {
							number5img = '<img src="'+imgArray[8]+'" />';
						} else if (number5 == 9) {
							number5img = '<img src="'+imgArray[9]+'" />';
						} else {
							number5img = '';
						};

						if (number6 == 0) {
							number6img = '';
						} else if (number6 == 1) {
							number6img = '<img src="'+imgArray[1]+'" />';
						} else if (number6 == 2) {
							number6img = '<img src="'+imgArray[2]+'" />';
						} else if (number6 == 3) {
							number6img = '<img src="'+imgArray[3]+'" />';
						} else if (number6 == 4) {
							number6img = '<img src="'+imgArray[4]+'" />';
						} else if (number6 == 5) {
							number6img = '<img src="'+imgArray[5]+'" />';
						} else if (number6 == 6) {
							number6img = '<img src="'+imgArray[6]+'" />';
						} else if (number6 == 7) {
							number6img = '<img src="'+imgArray[7]+'" />';
						} else if (number6 == 8) {
							number6img = '<img src="'+imgArray[8]+'" />';
						} else {
							number6img = '<img src="'+imgArray[9]+'" />';
						};

						<?php
							if ($animegif == "true" || $animegif == "t" || $animegif == "y" || $animegif == "yes") {
								echo "$('#viewer_counter').html(number6img + number5img + number4img + number3img + number2img + number1img);";
							} else {
								echo "$('#viewer_counter').html(viewer_count);";
							}
						?>

					}
				} else {
					<?php
						if ($animegif == "true" || $animegif == "t" || $animegif == "y" || $animegif == "yes") {
							echo "$('#viewer_counter').html('<img src="2.gif" />');";
						} else {
							echo "$('#viewer_counter').html("2");";
						}
					?>
				}
			});
		}
			<?php $seconds = $_GET["seconds"]; if (!isset($seconds)) { $seconds = "10"; } ?>
			setInterval( function() { loadViewers(); }, <?php echo $seconds*1000 ?>);
		});
		</script>
		<div id="viewer_counter">Loading...</div>
	</body>
</html>

{'fraction_non_alphanumeric': 0.23786786201520171, 'fraction_numerical': 0.03975833170921848, 'mean_word_length': 2.4602157788267025, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 125, 'https://': 2, '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': '756427', 'n_tokens_mistral': 4952, 'n_tokens_neox': 3627, 'n_words': 804}