<commit_before><!DOCTYPE html>
<html><head>
<title>Remote ImGui</title>
<meta charset="UTF-8">
<script type="text/javascript" src="imgui/three.min.js"></script>
<script type="text/javascript" src="imgui/detector.js"></script>
<script type="text/javascript" src="imgui/lz4.js"></script>
<script type="text/javascript" src="imgui/dat.gui.min.js"></script>
<script type="text/javascript" src="imgui.js"></script>
<link  href="imgui/main.css" rel="stylesheet"/>

<style>
    #imgui_container
    {
        touch-action: none; /* Disable touch behaviors, like pan and zoom */
    }
    body 
    {
    	position: fixed; 
	    overflow-y: scroll;
    	width: 100%;
    }
</style>

</head>
<body>
	<div id="imgui_connect" class="form-style-6">
		<h1>Remote ImGui</h1>
		<input type="text" id="host" placeholder="PS Address"></input>
		<button class="button" value="Connect" onclick="onClickConnect()">Connect</button>
		<br/><br/>
		<a id="imgui" href="https://github.com/JordiRos/remoteimgui">Remote ImGui</a>
	</div>

	<div id="imgui_container"></div>

	<script>
		document.ontouchmove = function(event)
		{
    		event.preventDefault();
		}
		// parse index.html?host=address
		document.getElementById('host').value = getQueryVariable("host");
		if (document.getElementById('host').value != "") {
			// if found, connect!
			onClickConnect();
		}
		else {
			// if not found, use local storage for saved settings
			document.getElementById('host').value = localStorage.getItem("imgui_host");
		}

		function getQueryVariable( variable ) {
	  		var query = window.location.search.substring(1);
	  		var vars = query.split("&");
	  		for (var i=0;i<vars.length;i++) {
	    		var pair = vars[i].split("=");
	    		if (pair[0] == variable) {
	      			return pair[1];
	    		}
	  		}
	  		return "";
		}

		function onClickConnect() {
			var host = document.getElementById('host').value;
			var port = 7002;
			if (host != "") {
				localStorage.setItem("imgui_host", host);
				document.getElementById("imgui_connect").style.display = 'none';
				StartImgui( document.getElementById( 'imgui_container' ), "ws://" + host + ":" + port, 1920, 1080, true );
         	}
		}		
    </script>

</body>
</html>
<commit_msg>Checks if localhost is supported on the browser before using it<commit_after><!DOCTYPE html>
<html><head>
<title>Remote ImGui</title>
<meta charset="UTF-8">
<script type="text/javascript" src="imgui/three.min.js"></script>
<script type="text/javascript" src="imgui/detector.js"></script>
<script type="text/javascript" src="imgui/lz4.js"></script>
<script type="text/javascript" src="imgui/dat.gui.min.js"></script>
<script type="text/javascript" src="imgui.js"></script>
<link  href="imgui/main.css" rel="stylesheet"/>

<style>
    #imgui_container
    {
        touch-action: none; /* Disable touch behaviors, like pan and zoom */
    }
    body 
    {
    	position: fixed; 
	    overflow-y: scroll;
    	width: 100%;
    }
</style>

</head>
<body>
	<div id="imgui_connect" class="form-style-6">
		<h1>Remote ImGui</h1>
		<input type="text" id="host" placeholder="PS Address"></input>
		<button class="button" value="Connect" onclick="onClickConnect()">Connect</button>
		<br/><br/>
		<a id="imgui" href="https://github.com/JordiRos/remoteimgui">Remote ImGui</a>
	</div>

	<div id="imgui_container"></div>

	<script>
		document.ontouchmove = function(event)
		{
    		event.preventDefault();
		}
		// parse index.html?host=address
		document.getElementById('host').value = getQueryVariable("host");
		if (document.getElementById('host').value != "") {
			// if found, connect!
			onClickConnect();
		}
		else {
			// if not found, use local storage for saved settings
			if(localStorage)
				document.getElementById('host').value = localStorage.getItem("imgui_host");
		}

		function getQueryVariable( variable ) {
	  		var query = window.location.search.substring(1);
	  		var vars = query.split("&");
	  		for (var i=0;i<vars.length;i++) {
	    		var pair = vars[i].split("=");
	    		if (pair[0] == variable) {
	      			return pair[1];
	    		}
	  		}
	  		return "";
		}

		function onClickConnect() {
			var host = document.getElementById('host').value;
			var port = 7002;
			if (host != "") {
				if(localStorage)
					localStorage.setItem("imgui_host", host);
				document.getElementById("imgui_connect").style.display = 'none';
				StartImgui( document.getElementById( 'imgui_container' ), "ws://" + host + ":" + port, 1920, 1080, true );
         	}
		}		
    </script>

</body>
</html>

{'fraction_non_alphanumeric': 0.18185850521179864, 'fraction_numerical': 0.010645375914836993, 'mean_word_length': 3.6114519427402865, 'pattern_counts': {'":': 2, '<': 83, '<?xml version=': 0, '>': 81, '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': '7019775', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1521, 'n_words': 294}