<commit_before><?php
	if ( isset ($_POST["n"]) && !empty($_POST["n"])) {
		$toArray = explode(" ",$_POST["n"]);
		$andBack = implode("/",$toArray);
		header("Location: ".$andBack);
	}
	if ( isset($_GET["m"]) && !empty($_GET["m"]) ) {
		$select = 0;
		$streams = explode("/",$_GET["m"]);
		$streams = array_filter($streams);
		if(preg_match('/[^A-Za-z0-9\-_]/', implode("",$streams))>0) {
			die ("Try this on another server <img src=\"https://static-cdn.jtvnw.net/emoticons/v1/93064/1.0\" alt=\"forsenE\">");
		}
		$howmany = count($streams);
		if ($howmany >= 5) {
			die ("You can only watch 4 streams at the same time <img src=\"https://static-cdn.jtvnw.net/emoticons/v1/93064/1.0\" alt=\"forsenE\">");
		}
	}
	if (isset($howmany) && $howmany >= 1){
		$select = 0;
	} else {
		$select = 1;
	}
?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script type="text/javascript" src="/jquery-3.0.0.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
		}
		#form1 {
			height: 25px;
			width: 327px;
			display: inline-block;
			position: absolute;
			top:0;
			bottom: 0;
			left: 0;
			right: 0;
			margin: auto;
		}
		</style>
	</head>
	<body>
		<?php 
			$leftORright = "left";
			foreach($streams as $var){
				echo "<iframe src=\"https://player.twitch.tv/?channel=".$var."\" class=\"stream\" style=\"width: "."50%".";height: "."123px".";float: ".$leftORright."\" frameborder=\"0\" scrolling=\"no\"></iframe>";
				if ($leftORright != "left") {
					$leftORright = "left";
				} else {
					$leftORright = "right";
				}
			}
		?>
		<?php 
		if ($howmany == 3){
			foreach ($streams as $var) {
				echo "<iframe src=\"https://www.twitch.tv/".$var."/chat\" class=\"chat\" frameborder=\"0\" scrolling=\"no\" height=\"123px\" width=\"16.6666667%\"></iframe>";
			}
		} elseif ($howmany == 2) {
			foreach ($streams as $var) {
				echo "<iframe src=\"https://www.twitch.tv/".$var."/chat\" class=\"chat\" frameborder=\"0\" scrolling=\"no\" height=\"123px\" width=\"50%\"></iframe>";
			}
		} elseif ($howmany == 1) {
			echo "<iframe src=\"https://www.twitch.tv/".$var."/chat\" class=\"chat\" frameborder=\"0\" scrolling=\"no\" height=\"123px\" width=\"345px\"></iframe>";
		}
		?>
		<?php if ($howmany == 2 || $howmany == 3) : ?>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				<?php if ($howmany == 2 || $howmany == 3) : ?>
				$(".chat").height($(window).height() / 2);
				<?php endif; ?>
				$(".stream").height($(window).height() / 2);
				$( window ).resize(function() {
					<?php if ($howmany == 2 || $howmany == 3) : ?>
					$(".chat").height($(window).height() / 2);
					<?php endif; ?>
					$(".stream").height($(window).height() / 2);
				});
			});
			-->
		</script>
		<?php endif; ?>
		<?php if ($howmany == 1) : ?>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".chat").height($(window).height());
				$(".stream").height($(window).height());
				$(".stream").width($(window).width() - 345);
				$( window ).resize(function() {
					$(".chat").height($(window).height());
					$(".stream").height($(window).height());
					$(".stream").width($(window).width() - 345);
				});
			});
			-->
		</script>
		<?php endif; ?>
		<?php if ($howmany == 4) : ?>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".stream").height($(window).height() / 2);
				$( window ).resize(function() {
					$(".stream").height($(window).height() / 2);
				});
			});
			-->
		</script>
		<?php endif; ?>
		<?php if ($select == 1) : ?>
		<div id="form1">
			<form id="DatForm" method="post">
				<input type="text" name="n" placeholder="Use 'space' in between each streamer." style="width: 232px;float: left;">
				<input type="submit" style="width: 88px;float: right;" value="Submit">
			</form>
		</div>
		<script type="text/javascript" defer>
			<!--
			$(document).ready(function () {
				$(function(){$("#DatForm").submit(function(){$("input[type='submit']",this).val("Please Wait").attr("disabled","disabled");return true})});
			});
			-->
		</script>
		<?php endif; ?>
	</body>
</html><commit_msg>Update index.php<commit_after><?php
	if ( isset ($_POST["n"]) && !empty($_POST["n"])) {
		$toArray = explode(" ",$_POST["n"]);
		$andBack = implode("/",$toArray);
		header("Location: ".$andBack);
	}
	if ( isset($_GET["m"]) && !empty($_GET["m"]) ) {
		$select = 0;
		$streams = explode("/",$_GET["m"]);
		$streams = array_filter($streams);
		if(preg_match('/[^A-Za-z0-9\-_]/', implode("",$streams))>0) {
			die ("Try this on another server <img src=\"https://static-cdn.jtvnw.net/emoticons/v1/93064/1.0\" alt=\"forsenE\">");
		}
		$howmany = count($streams);
		if ($howmany >= 5) {
			die ("You can only watch 4 streams at the same time <img src=\"https://static-cdn.jtvnw.net/emoticons/v1/93064/1.0\" alt=\"forsenE\">");
		}
	}
	if (isset($howmany) && $howmany >= 1){
		$select = 0;
	} else {
		$select = 1;
	}
?>
<?php if ($select == 1) : ?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
		}
		#form1 {
			height: 25px;
			width: 330px;
			display: inline-block;
			position: absolute;
			top:0;
			bottom: 0;
			left: 0;
			right: 0;
			margin: auto;
		}
		</style>
	</head>
	<body>
		<div id="form1">
			<form id="DatForm" method="post">
				<input type="text" name="n" placeholder="Use 'space' in between each streamer." style="width: 232px;float: left;">
				<input type="submit" style="width: 88px;float: right;" value="Submit">
			</form>
		</div>
		<script type="text/javascript" defer>
			<!--
			$(document).ready(function () {
				$(function(){$("#DatForm").submit(function(){$("input[type='submit']",this).val("Please Wait").attr("disabled","disabled");return true})});
			});
			-->
		</script>
	</body>
</html>
<?php endif; ?>
<?php if ($select == 0 && $howmany == 1) : ?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
			background-color: black;
		}
		</style>
	</head>
	<body>
		<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[0]; ?>" class="stream" style="width: 50%; height: 123px; float: left" frameborder="0" scrolling="no"></iframe>
		<iframe src="https://www.twitch.tv/<?php echo $streams[0]; ?>/chat" class="chat" frameborder="0" scrolling="no" height="123px" width="340px"></iframe>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".chat").height($(window).height());
				$(".stream").height($(window).height());
				$(".stream").width($(window).width() - 340);
				$( window ).resize(function() {
					$(".chat").height($(window).height());
					$(".stream").height($(window).height());
					$(".stream").width($(window).width() - 340);
				});
			});
			-->
		</script>
	</body>
</html>
<?php endif; ?>
<?php if ($select == 0 && $howmany == 2) : ?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
			background-color: black;
		}
		</style>
	</head>
	<body>
		<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[0]; ?>" class="stream" style="width: 50%; height: 123px; float: left" frameborder="0" scrolling="no"></iframe>
		<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[1]; ?>" class="stream" style="width: 50%; height: 123px; float: right" frameborder="0" scrolling="no"></iframe>
		<iframe src="https://www.twitch.tv/<?php echo $streams[0]; ?>/chat" class="chat" style="height: 123px; width: 50%; float: left" frameborder="0" scrolling="no"></iframe>
		<iframe src="https://www.twitch.tv/<?php echo $streams[1]; ?>/chat" class="chat" style="height: 123px; width: 50%; float: right" frameborder="0" scrolling="no"></iframe>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".chat").height($(window).height() / 2);
				$(".stream").height($(window).height() / 2);
				$( window ).resize(function() {
					$(".chat").height($(window).height() / 2);
					$(".stream").height($(window).height() / 2);
				});
			});
			-->
		</script>
	</body>
</html>
<?php endif; ?>
<?php if ($select == 0 && $howmany == 3) : ?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
			background-color: black;
		}
		</style>
	</head>
	<body>
		<div class="line1" style="float: left;">
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[1]; ?>" class="stream1" style="width: 123px; height: 123px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[0]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[2]; ?>" class="stream1" style="width: 123px; height: 123px; float: left;" frameborder="0" scrolling="no"></iframe>
		</div>
		<div class="line2" style="float: right;">
			<iframe src="https://www.twitch.tv/<?php echo $streams[1]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[0]; ?>" class="stream2" style="width: 123px; height: 123px; float: left" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[2]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
		</div>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".chat").height($(window).height() / 2);
				$(".stream1").height($(window).height() / 2);
				$(".stream2").height($(window).height() / 2);
				$(".stream1").width(($(window).width() - 340) / 2);
				$(".stream2").width($(window).width() - 680);
				$( window ).resize(function() {
					$(".chat").height($(window).height() / 2);
					$(".stream1").height($(window).height() / 2);
					$(".stream2").height($(window).height() / 2);
					$(".stream1").width(($(window).width() - 340) / 2);
					$(".stream2").width($(window).width() - 680);
				});
			});
			-->
		</script>
	</body>
</html>
<?php endif; ?>
<?php if ($select == 0 && $howmany == 4) : ?>
<!DOCTYPE html>
<html>
	<head>
		<!--
		Made by <NAME> aka Ian678
		With the help of https://www.twitch.tv/fourtf/profile
		Have fun with it :)
		-->
		<meta charset="utf-8">
		<title>Multistream</title>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<style>
		body {    
			margin: 0 !important;
			padding: 0 !important;
			height: 100%;
			overflow: hidden;
			background-color: black;
		}
		</style>
	</head>
	<body>
		<div class="line1" style="float: left;">
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[0]; ?>" class="stream" style="width: 123px; height: 123px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[0]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[1]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[1]; ?>" class="stream" style="width: 123px; height: 123px; float: left;" frameborder="0" scrolling="no"></iframe>
		</div>
		<div class="line2" style="float: right;">
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[2]; ?>" class="stream" style="width: 123px; height: 123px; float: left" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[2]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://www.twitch.tv/<?php echo $streams[3]; ?>/chat" class="chat" style="height: 123px; width: 340px; float: left;" frameborder="0" scrolling="no"></iframe>
			<iframe src="https://player.twitch.tv/?channel=<?php echo $streams[3]; ?>" class="stream" style="width: 123px; height: 123px; float: left" frameborder="0" scrolling="no"></iframe>
		</div>
		<script defer type="text/javascript">
			<!--
			$(document).ready(function () {
				$(".chat").height($(window).height() / 2);
				$(".stream").height($(window).height() / 2);
				$(".stream").width(($(window).width() - 680) / 2);
				$( window ).resize(function() {
					$(".chat").height($(window).height() / 2);
					$(".stream").height($(window).height() / 2);
					$(".stream").width(($(window).width() - 680) / 2);
				});
			});
			-->
		</script>
	</body>
</html>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.25028169014084506, 'fraction_numerical': 0.030352112676056336, 'mean_word_length': 3.6945454545454544, 'pattern_counts': {'":': 0, '<': 244, '<?xml version=': 0, '>': 250, 'https://': 39, 'lorem ipsum': 0, 'www.': 19, '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': '5167669', 'n_tokens_mistral': 6083, 'n_tokens_neox': 5017, 'n_words': 1024}