<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>StringToHex</title>
		<script>
			function StringToHex( string )
			{
				var decl = "uint[]( ";
				for ( i=0; i < string.length; i++ )
				{
					decl += "0x" + string.charCodeAt(i).toString(16)+"U";
					if ( i < string.length-1 )
						decl += ", ";
				}
				decl += " ) // length "+string.length.toString()+" = 0x"+string.length.toString(16);
				document.forms['myForm']['hex'].value = decl;

				var decl = "uint[]( ";
				for ( i=0; i < string.length; i+=4 )
				{
					decl += "0x"
						+ (
							(string.charCodeAt(i+3)||0)*0x01000000
							+ (string.charCodeAt(i+2)||0)*0x00010000
							+ (string.charCodeAt(i+1)||0)*0x00000100
							+ string.charCodeAt(i+0)
						).toString(16)
						+ "U";
					if ( i < string.length-4 )
						decl += ", ";
				}
				decl += " ) // length "+string.length.toString()+" = 0x"+string.length.toString(16);
				document.forms['myForm']['hex32'].value = decl;
			}
		</script>
	</head>
	<body>
		<!-- form passing textbox contents to StringToHex -->
		<form name="myForm">
			<textarea name="textbox" rows="5" cols="30"></textarea>
			<button type="button" onclick="return StringToHex(document.forms['myForm']['textbox'].value)">Submit</button> 
			<textarea name="hex" rows="5" cols="30"></textarea>
			<textarea name="hex32" rows="5" cols="30"></textarea>
		</form>
	</body>
</html><commit_msg>add titles<commit_after><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>StringToHex</title>
		<script>
			function StringToHex( string )
			{
				var decl = "uint[]( ";
				for ( i=0; i < string.length; i++ )
				{
					decl += "0x" + string.charCodeAt(i).toString(16)+"U";
					if ( i < string.length-1 )
						decl += ", ";
				}
				decl += " ) // length "+string.length.toString()+" = 0x"+string.length.toString(16);
				document.forms['myForm']['hex'].value = decl;

				var decl = "uint[]( ";
				for ( i=0; i < string.length; i+=4 )
				{
					decl += "0x"
						+ (
							(string.charCodeAt(i+3)||0)*0x01000000
							+ (string.charCodeAt(i+2)||0)*0x00010000
							+ (string.charCodeAt(i+1)||0)*0x00000100
							+ string.charCodeAt(i+0)
						).toString(16)
						+ "U";
					if ( i < string.length-4 )
						decl += ", ";
				}
				decl += " ) // length "+string.length.toString()+" = 0x"+string.length.toString(16);
				document.forms['myForm']['hex32'].value = decl;
			}
		</script>
	</head>
	<body>
		<!-- form passing textbox contents to StringToHex -->
		<form name="myForm">
			Input:<br>
			<textarea name="textbox" rows="5" cols="30"></textarea><br>
			<button type="button" onclick="return StringToHex(document.forms['myForm']['textbox'].value)">Submit</button><br>
			Bytes:<br>
			<textarea name="hex" rows="5" cols="30"></textarea><br>
			Packed in uint32:<br>
			<textarea name="hex32" rows="5" cols="30"></textarea>
		</form>
	</body>
</html>
{'fraction_non_alphanumeric': 0.21852487135506005, 'fraction_numerical': 0.045283018867924525, 'mean_word_length': 3.033195020746888, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 55, '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': '6838662', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1068, 'n_words': 181}