<commit_before><!DOCTYPE html>
<html>
	<head>
		<script>
		doc = document;
		Data = exports = {};
		Display = {};
		Display.genderSymbols = {m:'\u2642',f:'\u2640',n:'\u2205'};
		</script>
		<!-- Add pre-load code and libraries -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
		<script src="//play.pokemonshowdown.com/data/pokedex.js"></script>
		<script src="//play.pokemonshowdown.com/data/moves.js"></script>
		<script src="//play.pokemonshowdown.com/data/typechart.js"></script>
	</head>
	<body>
		<div id="container">
			<button onclick="loadDropdowns()">Attempt To Load Dropdowns</button>
			<div id="p1-pokemon" class="pokemon-pane" style="display: inline-block; width: 48%;">
				<h3>P1</h3><!--<input id="p1-species">-->
				<select id="p1-species" class="pkmSelect"><option value="--">--</option></select><input id="p1-level" value=100 type=number max=100 min=1><i id="p1-gender"></i><br />
				<select id="p1-type1" class="typeSelect"></select><select id="p1-type2" class="typeSelect"><option value="--">--</option></select><select id="p1-type3" class="typeSelect" disabled><option value="--">--</option></select>
				<table id="stats-table">
					<thead>
						<tr><th>Stats</th><td>Base</td><td>IVs</td><td>EVs</td><td>Value</td><td>Boosts</td><td>Eff. Stat</td></tr>
					</thead>
					<!-- Consider `readonly` attribute instead of `disabled` in some places -->
					<tbody>
						<tr id="hp">
							<th><span>HP</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 disabled value=0></td>
							<td><span id="p1-effStat-hp"></span></td>
						</tr>
						<tr id="atk">
							<th><span>Atk</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-atk"></span></td>
						</tr>
						<tr id="def">
							<th><span>Def</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-def"></span></td>
						</tr>
						<tr id="spa">
							<th><span>SpA</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spa"></span></td>
						</tr>
						<tr id="spd">
							<th><span>SpD</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spd"></span></td>
						</tr>
						<tr id="spe">
							<th><span>Spe</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spe"></span></td>
						</tr>
					</tbody>
				</table>
				<table id="moves-table">
					<thead>
						<tr><th>Moves</th><td>Name</td><td>Type</td><td>BP</td><td>Cat.</td><td>PP</td><td>Crit</td></tr>
					</thead>
					<tbody>
						<tr id="move-1">
							<th>Move 1</th>
							<td><select class="moveSelect"><option value="--">--</option></select></td>
							<td><select class="typeSelect"><option value="--">--</option></select></td>
							<td><input type="number" min=0 max=255 disabled></td>
							<td><select class="catSelect"></select></td>
							<td><input type="number" min=1 max=64></td>
							<td><input type="checkbox"></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</body>
	<script>
		// Initial Gender
		var genderIcon = doc.getElementById('p1-gender');
		genderIcon.innerText = Display.genderSymbols['m'];
		// Initialize Dropdowns
		function loadDropdowns(maxItCount) {
			$dropdowns = $( "select" );
			maxItCount = maxItCount || $dropdowns.length;
			// console.log($dropdowns);
			for (var index = 0; index < maxItCount; i++) {
				$dropdown = $dropdowns.eq(index);
				// if ($dropdown.children().length) continue;
				var options = []; // Option Elements to be Appended
				if ($dropdown.hasClass("typeSelect")) {
					for (var type in Data.BattleTypeChart) options.push('<option value="'+type+'">'+type+'</option>');
					$dropdown.get(0).innerHTML += options.join('');
					break;
					// continue;
				}
				if ($dropdown.hasClass("moveSelect")) {
					for (var id in Data.BattleMovedex) {
						var move = Data.BattleMovedex[id];
						if (id !== move.id) continue;
						options.push('<option value="'+move.id+'">'+(move.isNonstandard?'Custom: ':'')+move.name+'</option>');
					}
					$dropdown.get(0).innerHTML += options.join('');
					// continue;
				}
				if ($dropdown.hasClass("catSelect")) {
					options = [
						'<option value="Physical">Physical</option>',
						'<option value="Special">Special</option>',<commit_msg>Remove Infinite Loop<commit_after><!DOCTYPE html>
<html>
	<head>
		<script>
		doc = document;
		Data = exports = {};
		Display = {};
		Display.genderSymbols = {m:'\u2642',f:'\u2640',n:'\u2205'};
		</script>
		<!-- Add pre-load code and libraries -->
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
		<script src="//play.pokemonshowdown.com/data/pokedex.js"></script>
		<script src="//play.pokemonshowdown.com/data/moves.js"></script>
		<script src="//play.pokemonshowdown.com/data/typechart.js"></script>
	</head>
	<body>
		<div id="container">
			<button onclick="loadDropdowns()">Attempt To Load Dropdowns</button>
			<div id="p1-pokemon" class="pokemon-pane" style="display: inline-block; width: 48%;">
				<h3>P1</h3><!--<input id="p1-species">-->
				<select id="p1-species" class="pkmSelect"><option value="--">--</option></select><input id="p1-level" value=100 type=number max=100 min=1><i id="p1-gender"></i><br />
				<select id="p1-type1" class="typeSelect"></select><select id="p1-type2" class="typeSelect"><option value="--">--</option></select><select id="p1-type3" class="typeSelect" disabled><option value="--">--</option></select>
				<table id="stats-table">
					<thead>
						<tr><th>Stats</th><td>Base</td><td>IVs</td><td>EVs</td><td>Value</td><td>Boosts</td><td>Eff. Stat</td></tr>
					</thead>
					<!-- Consider `readonly` attribute instead of `disabled` in some places -->
					<tbody>
						<tr id="hp">
							<th><span>HP</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 disabled value=0></td>
							<td><span id="p1-effStat-hp"></span></td>
						</tr>
						<tr id="atk">
							<th><span>Atk</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-atk"></span></td>
						</tr>
						<tr id="def">
							<th><span>Def</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-def"></span></td>
						</tr>
						<tr id="spa">
							<th><span>SpA</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spa"></span></td>
						</tr>
						<tr id="spd">
							<th><span>SpD</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spd"></span></td>
						</tr>
						<tr id="spe">
							<th><span>Spe</span></th>
							<td><input type=number min=1 max=255 disabled></td>
							<td><input type=number min=0 max=31 value=31></td>
							<td><input type=number min=0 max=252 step=4 value=0></td>
							<td><input type=number min=0 max=999 disabled></td>
							<td><input type=number min=-6 max=6 value=0></td>
							<td><span id="p1-effStat-spe"></span></td>
						</tr>
					</tbody>
				</table>
				<table id="moves-table">
					<thead>
						<tr><th>Moves</th><td>Name</td><td>Type</td><td>BP</td><td>Cat.</td><td>PP</td><td>Crit</td></tr>
					</thead>
					<tbody>
						<tr id="move-1">
							<th>Move 1</th>
							<td><select class="moveSelect"><option value="--">--</option></select></td>
							<td><select class="typeSelect"><option value="--">--</option></select></td>
							<td><input type="number" min=0 max=255 disabled></td>
							<td><select class="catSelect"></select></td>
							<td><input type="number" min=1 max=64></td>
							<td><input type="checkbox"></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</body>
	<script>
		// Initial Gender
		var genderIcon = doc.getElementById('p1-gender');
		genderIcon.innerText = Display.genderSymbols['m'];
		// Initialize Dropdowns
		function loadDropdowns(maxItCount) {
			$dropdowns = $( "select" );
			maxItCount = maxItCount || $dropdowns.length;
			// console.log($dropdowns);
			for (var index = 0; index < maxItCount; index++) {
				$dropdown = $dropdowns.eq(index);
				// if ($dropdown.children().length) continue;
				var options = []; // Option Elements to be Appended
				if ($dropdown.hasClass("typeSelect")) {
					for (var type in Data.BattleTypeChart) options.push('<option value="'+type+'">'+type+'</option>');
					$dropdown.get(0).innerHTML += options.join('');
					// continue;
				}
				if ($dropdown.hasClass("moveSelect")) {
					for (var id in Data.BattleMovedex) {
						var move = Data.BattleMovedex[id];
						if (id !== move.id) continue;
						options.push('<option value="'+move.id+'">'+(move.isNonstandard?'Custom: ':'')+move.name+'</option>');
					}
					$dropdown.get(0).innerHTML += options.join('');
					// continue;
				}
				if ($dropdown.hasClass("catSelect")) {
					options = [
						'<option value="Physical">Physical</option>',
						'<option value="Special">Special</option>',
{'fraction_non_alphanumeric': 0.22194726512501067, 'fraction_numerical': 0.03225531188667975, 'mean_word_length': 3.2633684976355037, 'pattern_counts': {'":': 0, '<': 561, '<?xml version=': 0, '>': 559, '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': '2033399', 'n_tokens_mistral': 5411, 'n_tokens_neox': 4169, 'n_words': 772}