<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>SpazCore Example Shell</title>
	
	<!-- Load required vendor libs -->
	<script src="../vendors/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>

	<!-- Load SpazCore base lib -->
	<script src="spazcore-standard.js"></script>
	
	<script src="../incubator/libs/spaztmdb.js" type="text/javascript" charset="utf-8"></script>
	
	<script type="text/javascript" charset="utf-8">
		$().ready(function() {
			var tmdb = new SpazTMDB({
				'apikey':'REDACTED'
			});
			
			$("#search").click(function(){
				var search_for = $('#search_for').val();
				var search_for_type = $('#search_for_type').val();
				
				switch (search_for_type) {
					case 'movie':
						tmdb.movieSearch(
							search_for,
							function(data, textStatus) {
								$('#response').text(data);
							},
							function(xhr, errorStr, exc) {
								$('#response').text(errorStr);								
							}
						);
						break;
					case 'person':
						tmdb.personSearch(
							search_for,
							function(data, textStatus) {
								$('#response').text(data);
							},
							function(xhr, errorStr, exc) {
								$('#response').text(errorStr);								
							}
						);
						break;
				}
				
			});
			
			
		});
	</script>
	
</head>

<body>
	<form onsubmit="javascript:$('#search').trigger('click'); return false;">
		<label for="search_for">Search For</label>
		<input type="text" name="search_for" value="Road House" id="search_for">
		<select name="search_for_type" id="search_for_type" size="1">
			<option value="movie" selected>movie</option>
			<option value="person">person</option>
		</select>
		<input type="button" name="search" value="Search" id="search">
		
	</form>


	<div id="response">
		
	</div>

</body>
</html><commit_msg>- minor fix/tag change in tmdb example<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>SpazCore Example Shell</title>
	
	<!-- Load required vendor libs -->
	<script src="../vendors/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>

	<!-- Load SpazCore base lib -->
	<script src="spazcore-standard.js"></script>
	
	<script type="text/javascript" charset="utf-8">
		$().ready(function() {
			var tmdb = new SpazTMDB({
				'apikey':'REDACTED'
			});
			
			$("#search").click(function(){
				var search_for = $('#search_for').val();
				var search_for_type = $('#search_for_type').val();
				
				switch (search_for_type) {
					case 'movie':
						tmdb.movieSearch(
							search_for,
							function(data, textStatus) {
								$('#response').text(data);
							},
							function(xhr, errorStr, exc) {
								$('#response').text(errorStr);								
							}
						);
						break;
					case 'person':
						tmdb.personSearch(
							search_for,
							function(data, textStatus) {
								$('#response').text(data);
							},
							function(xhr, errorStr, exc) {
								$('#response').text(errorStr);								
							}
						);
						break;
				}
				
			});
			
			
		});
	</script>
	
</head>

<body>
	<form onsubmit="javascript:$('#search').trigger('click'); return false;">
		<label for="search_for">Search For</label>
		<input type="text" name="search_for" value="Road House" id="search_for">
		<select name="search_for_type" id="search_for_type" size="1">
			<option value="movie" selected>movie</option>
			<option value="person">person</option>
		</select>
		<input type="button" name="search" value="Search" id="search">
		
	</form>


	<pre id="response">
		
	</pre>

</body>
</html>
{'fraction_non_alphanumeric': 0.19843868043314028, 'fraction_numerical': 0.009317552253840343, 'mean_word_length': 3.03248730964467, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '783893', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1337, 'n_words': 235}