<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no" />
		<title>What Is My IP Adress</title>
		
		<!-- FxOS Building blocks -->
		<link rel="stylesheet" href="style/buttons.css">
		<link rel="stylesheet" href="style/headers.css">
		<link rel="stylesheet" href="style/input_areas.css">

		<!-- Util CSS: some extra tricks -->
		<link rel="stylesheet" href="util.css">
		<link rel="stylesheet" href="fonts.css">

		<style>
			#content {
				margin: 1rem;
			}
			#helpdoc p {
				font-size: 1em;
			}
			.ipaddr {
				font-size: 1.5em;
			}
			fieldset legend {
				width: 11.5rem;
				padding-left: 0.5rem;
			}
			fieldset section {
				margin-left: 11.5rem;
				margin-right: 0.5rem;
			}
			fieldset p {
				line-height: 1.4em;
				text-align: right;
			}
			button {
				margin-top: 1.5rem;
			}
		</style>
	</head>

	<body>
		<section id="drawer" role="region">
		<header>
		<h1>What Is My IP Address?</h1>
		</header>
		<div role="main" id="content">
			<form>
			<fieldset>
				<legend>Internet IP</legend>
				<section>
				<p id="InternetIpVal" class="ipaddr">
				192.168.127.12
				</p>
				</section>
			</fieldset>
			<fieldset>
				<legend>Local IP</legend>
				<section>
				<p id="LocalIpVal" class="ipaddr">
					172.16.31.10
				</p>
				</section>
			</fieldset>
		</form>
			<button onClick="checkIp">Recheck IP Addresses</button>

			<div id="helpdoc">
				<h2>What is an Internet IP?</h2>
				<p>Your Internet IP is the address websites see when you browse
				them. This is called the WAN (Wide Area Network) address. You will only
				have a WAN address if you are connected to the internet.</p>
				<h2>What is a Local IP?</h2>
				<p>Your Local IP is the address your router has assigned you. This
				is called the LAN (Local Area Network) address. You will only have a
				LAN address if you are connected either over WiFi or ethernet. You
				do not need to connected to the internet to have a LAN address.</p>
			</div>
		</div>
		</section>

		<script>
			function getInternetIp() {
				var field = document.getElementById("InternetIpVal");
				field.textContent = "Checking...";

				xmlhttp = new XMLHttpRequest();
				xmlhttp.open("GET", "http://danieru.com/ip_reflector/reflectIp.php", false);
				xmlhttp.send();

				var raw = xmlhttp.responseText;
				console.log(raw);
				field.textContent = raw;
			}

			function getLocalIp() {
				var ip = "10.1.12.101";
				console.log("Local ip: " + ip);
				var field = document.getElementById("LocalIpVal");
				field.textContent = ip;
			}

			function checkIp() {
				getLocalIp();
				getInternetIp();
			}
			checkIp();
		</script>
	</body>
</html>
<commit_msg>Remove support for local ip addresses<commit_after><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no" />
		<title>What Is My IP Adress</title>
		
		<!-- FxOS Building blocks -->
		<link rel="stylesheet" href="style/buttons.css">
		<link rel="stylesheet" href="style/headers.css">
		<link rel="stylesheet" href="style/input_areas.css">

		<!-- Util CSS: some extra tricks -->
		<link rel="stylesheet" href="util.css">
		<link rel="stylesheet" href="fonts.css">

		<style>
			#content {
				margin: 1rem;
			}
			#helpdoc p {
				font-size: 1em;
			}
			.ipaddr {
				font-size: 1.5em;
			}
			fieldset legend {
				width: 11.5rem;
				padding-left: 0.5rem;
			}
			fieldset section {
				margin-left: 11.5rem;
				margin-right: 0.5rem;
			}
			fieldset p {
				line-height: 1.4em;
				text-align: right;
			}
			button {
				margin-top: 1.5rem;
			}
		</style>
	</head>

	<body>
		<section id="drawer" role="region">
		<header>
		<h1>What Is My IP Address?</h1>
		</header>
		<div role="main" id="content">
			<form>
			<fieldset>
				<legend>Internet IP</legend>
				<section>
				<p id="InternetIpVal" class="ipaddr"></p>
				</section>
			</fieldset>
		</form>
			<button onClick="checkIp()">Recheck IP Address</button>

			<div id="helpdoc">
				<h2>What is an Internet IP?</h2>
				<p>Your Internet IP is the address websites see when you browse
				them. This is called the WAN (Wide Area Network) address. You will only
				have a WAN address if you are connected to the internet.</p>
			</div>
		</div>
		</section>

		<script>
			function getInternetIp() {
				var field = document.getElementById("InternetIpVal");
				field.textContent = "Checking...";

				xmlhttp = new XMLHttpRequest();
				xmlhttp.open("GET", "http://danieru.com/ip_reflector/reflectIp.php", false);
				xmlhttp.send();

				var raw = xmlhttp.responseText;
				console.log(raw);
				field.textContent = raw;
			}

			function checkIp() {
				getInternetIp();
			}
			checkIp();
		</script>
	</body>
</html>

{'fraction_non_alphanumeric': 0.15527303042934557, 'fraction_numerical': 0.015839933305543976, 'mean_word_length': 2.873284907183212, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 3, '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': '839810', 'n_tokens_mistral': 2135, 'n_tokens_neox': 1674, 'n_words': 435}