<commit_before><html>
<head>
	<title>Quest App Landing</title>
	<script src="assets/js/Vendor/jquery-1.11.0.min.js"></script>
</head>
<body>
	<form action="quest.html" method="get" enctype="text/plain">
		<p>
			<strong>Quest Server Address</strong><br>
			<input type="text" id="server" name="srv" value="http://server.quest.jeffenmau.org" required />
		</p>
		<p>
			<strong>Quest ID</strong><br>
			<input type="text" id="questId" name="questId" required/>
		</p>
		<button type="submit" value="Load Quest">Load Quest</button>
	</form>
</body>
</html><commit_msg>Also update the index to allow Authentication<commit_after><html>
<head>
	<title>Quest App Landing</title>
	<script src="assets/js/Vendor/jquery-1.11.0.min.js"></script>
</head>
<body>
	<form action="quest.html" method="get" enctype="text/plain" id="form">
		<p>
			<strong>Quest Server Address</strong><br>
			<input type="text" id="server" name="srv" value="http://server.quest.jeffenmau.org" required />
		</p>
		<p>
			<strong>Quest ID</strong><br>
			<input type="text" id="questId" name="questId" required/>
		</p>
		<input type="hidden" id="authDigest" name="authDigest"/>
		<button type="submit" value="Load Quest">Load Quest</button>
	</form>
	<form>
		<p>
			<strong>User Name</strong><br>
			<input type="text" id="user" name="user"/>
		</p>
		<p>
			<strong>Password</strong><br>
			<input type="password" id="password" name="password"/>
		</p>		
	</form>
	<script type="text/javascript">
	function base_auth() {
	  var tok = $("#user").val() + ':' + $("#password").val();
	  var hash = btoa(tok);
	  return hash;
	}

	$("#form").submit(function(e){
	    e.preventDefault();
	    var form = this;
	    $("#authDigest").val(base_auth())
        form.submit(); // submit bypassing the jQuery bound event
	});	
	</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.217439293598234, 'fraction_numerical': 0.004415011037527594, 'mean_word_length': 4.33235294117647, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, 'https://': 0, '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': '1584529', 'n_tokens_mistral': 710, 'n_tokens_neox': 659, 'n_words': 136}