<commit_before>{% if wpt %}
<html>
	<head>
		<link href="static/waypointviewer.css" rel="stylesheet" type="text/css"/>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
		<script type="text/javascript" src="static/richmarker-compiled.js"></script>
		<script type="text/javascript" src="waypointviewer.js?kml={{ kml|urlencode }}&wpt={{ wpt|urlencode }}"></script>
		<title>{% if title %}{{ title|escape }} - {% endif %}Waypoint Viewer</title>
	</head>
	<body>
		<div id="map" style="width: 100%; height: 100%">Loading...</div>
		<div id="richMarker" class="richMarker" style="display: none">
			<span id="label"></span>
		</div>
		<div id="infoWindow" class="infoWindow" style="display: none">
			<table>
				<tr>
					<th>ID:</th>
					<td><span id="id"></span></td>
				</tr>
				<tr>
					<th>Description:</th>
					<td><span id="description"></span></td>
				</tr>
				<tr>
					<th>Latitude:</th>
					<td><span id="lat"></span>&deg;</td>
				</tr>
				<tr>
					<th>Longitude:</th>
					<td><span id="lng"></span>&deg;</td>
				</tr>
				<tr>
					<th>Elevation:</th>
					<td><span id="elevation"></span>m</td>
				</tr>
				<tr>
					<th>Radius:</th>
					<td><span id="radius"></span>m</td>
				</tr>
			</table>
		</div>
	</body>
</html>
{% else %}
<html>
	<head>
		<title>Waypoint Viewer</title>
	</head>
	<body>
		<h1>Waypoint Viewer</h1>
		<p>Create your waypoint map now:</p>
		<form action="/" method="get">
			<table>
				<tr>
					<td>Link to waypoint file:</td>
					<td><input name="wpt" type="text"/><br/><font size="-1">CompeGPS, FormatGEO, OziExplorer and SeeYou supported<br/>Example: http://www.slovenia-pgopen.com/downloads/Kobarid_Lijak.wpt</font></td>
					<td>(required)</td>
				</tr>
				<tr>
					<td>Title:</td>
					<td><input name="title" type="text"/><br/><font size="-1">Example: British Open Slovenia 2010</font></td></td>
					<td>(optional)</td>
				</tr>
				<tr>
					<td>Link to KML overlay:</td>
					<td><input name="kml" type="text"/></td>
					<td>(optional)</td>
				</tr>
				<tr>
					<td colspan="3">
						<input type="submit"/>
					</td>
				</tr>
			</table>
		</form>
		<a href=http://github.com/twpayne/waypointviewer">http://github.com/twpayne/waypointviewer</a>
	</body>
</html>
{% endif %}<commit_msg>Fill form fields if possible<commit_after>{% if wpt %}
<html>
	<head>
		<link href="static/waypointviewer.css" rel="stylesheet" type="text/css"/>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
		<script type="text/javascript" src="static/richmarker-compiled.js"></script>
		<script type="text/javascript" src="waypointviewer.js?kml={{ kml|urlencode }}&wpt={{ wpt|urlencode }}"></script>
		<title>{% if title %}{{ title|escape }} - {% endif %}Waypoint Viewer</title>
	</head>
	<body>
		<div id="map" style="width: 100%; height: 100%">Loading...</div>
		<div id="richMarker" class="richMarker" style="display: none">
			<span id="label"></span>
		</div>
		<div id="infoWindow" class="infoWindow" style="display: none">
			<table>
				<tr>
					<th>ID:</th>
					<td><span id="id"></span></td>
				</tr>
				<tr>
					<th>Description:</th>
					<td><span id="description"></span></td>
				</tr>
				<tr>
					<th>Latitude:</th>
					<td><span id="lat"></span>&deg;</td>
				</tr>
				<tr>
					<th>Longitude:</th>
					<td><span id="lng"></span>&deg;</td>
				</tr>
				<tr>
					<th>Elevation:</th>
					<td><span id="elevation"></span>m</td>
				</tr>
				<tr>
					<th>Radius:</th>
					<td><span id="radius"></span>m</td>
				</tr>
			</table>
		</div>
	</body>
</html>
{% else %}
<html>
	<head>
		<title>Waypoint Viewer</title>
	</head>
	<body>
		<h1>Waypoint Viewer</h1>
		<p>Create your waypoint map now:</p>
		<form action="/" method="get">
			<table>
				<tr>
					<td>Link to waypoint file:</td>
					<td><input name="wpt" type="text" value="{{ wpt|escape }}"/><br/><font size="-1">CompeGPS, FormatGEO, OziExplorer and SeeYou supported<br/>Example: http://www.slovenia-pgopen.com/downloads/Kobarid_Lijak.wpt</font></td>
					<td>(required)</td>
				</tr>
				<tr>
					<td>Title:</td>
					<td><input name="title" type="text" value="{{ title|escape }}"/><br/><font size="-1">Example: British Open Slovenia 2010</font></td></td>
					<td>(optional)</td>
				</tr>
				<tr>
					<td>Link to KML overlay:</td>
					<td><input name="kml" type="text" value="{{ kml|escape }}"/></td>
					<td>(optional)</td>
				</tr>
				<tr>
					<td colspan="3">
						<input type="submit"/>
					</td>
				</tr>
			</table>
		</form>
		<a href=http://github.com/twpayne/waypointviewer">http://github.com/twpayne/waypointviewer</a>
	</body>
</html>
{% endif %}
{'fraction_non_alphanumeric': 0.24371451743714517, 'fraction_numerical': 0.0072992700729927005, 'mean_word_length': 3.4123434704830053, 'pattern_counts': {'":': 0, '<': 269, '<?xml version=': 0, '>': 269, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4400023', 'n_tokens_mistral': 2314, 'n_tokens_neox': 1887, 'n_words': 331}