<commit_before><html>

<head>
<title>HTC Typing Bug</title>
<script type='text/javascript'>

function test() {
	var input = document.getElementById('input');	
	var output = document.getElementById('output');
		
	output.value = input.value;
	return false;
}
</script>

</head>

<body>

<form action="#" onsubmit="return test()">
<strong>Follow the steps below:</strong>
<ol>
<li>Type Foo Here: <input id='input' type='text' name='input' /></li>
<li><input type='submit' value='Then click here' /></li>
<li>And then foo displays here: <input id='output' type='text' name='output' /></li>
</ol>
</form>

</body>

</html><commit_msg>Change to an event test on the input tag<commit_after><html>

<head>
<title>HTC Typing Bug</title>
<script type='text/javascript'>
function record(name, color) {
	if (color == null) {
		color = 'green';
	}
	document.getElementById(name).style.color = color;
}

function resetAll() {
	document.getElementById('testInput').value = '';
	record('ONKEYPRESS', 'red');
	record('ONPASTE', 'red');
	record('ONFOCUS', 'red');
	record('ONKEYUP', 'red');
}
</script>

<style type='text/css'>
p { color: red; }
</style>

</head>

<body>
<h1>JS &lt;input&gt; event test</h1>
<form action="#" onsubmit="return false;">
<ol>
<li>Type Here:
<INPUT CLASS="FB BK UB"
	   ONKEYPRESS="record('ONKEYPRESS')"
	   ONPASTE="record('ONPASTE')"
	   ONFOCUS="record('ONFOCUS')"
	   ONKEYUP="record('ONKEYUP')"
	   TYPE="TEXT"
	   NAME="F1_0_2"
	   VALUE=""
	   SIZE="20"
	   MAXLENGTH="20"
	   ID="testInput" />
</li>
<li>Are any of the following still red?
<p id='ONKEYPRESS'>ONKEYPRESS</p>
<p id='ONPASTE' style='color: gray;'>ONPASTE -- expected failure: known bug in android :(</p>
<p id='ONFOCUS'>ONFOCUS</p>
<p id='ONKEYUP'>ONKEYUP</p>
</li>
</ol>
<button onclick='resetAll()'>Reset Test</button>
</form>


</body>

</html>
{'fraction_non_alphanumeric': 0.21081376297105406, 'fraction_numerical': 0.004915346805024577, 'mean_word_length': 5.127090301003345, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '3917498', 'n_tokens_mistral': 714, 'n_tokens_neox': 681, 'n_words': 161}