<commit_before><HTML>
	<head>
    <link rel="stylesheet" type="text/css" href="mystyle.css">
	<link rel="icon" href="novacado_pit.png">
    <title> Edits </title>
	<script src="themoviedb.js"></script>
	<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
	<script>
	
		function showreviews(str) {
			if (str == "") {
				document.getElementById("txtHint").innerHTML = "";
				return;
			} 
			else if (!document.getElementById("checkbox" + str).checked){
				document.getElementById("ins" + str ).innerHTML = "";
			}
			else { 
			if (window.XMLHttpRequest) {
				// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			} else {
				// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					document.getElementById("ins" + str ).innerHTML = this.responseText;
				}
			};
			xmlhttp.open("GET","getmovieinfo.php?q="+str,true);
			xmlhttp.send();
		}
	}
	</script>
	<script type="text/javascript">
		function showmovie(number, caller) {
			alert("called!");
			if (window.XMLHttpRequest) {
				// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			} else {
				// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function(num) {
				if (this.readyState == 4 && this.status == 200) {
					document.getElementById("demo").innerHTML = this.responseText;
					var obj = JSON.parse(this.responseText);

						document.getElementById("demo").innerHTML = '<b>' + obj.title + '</b><br />';

						var imageUrl = "http://image.tmdb.org/t/p/w185/" + obj.poster_path;
						
						document.getElementById("demo").innerHTML += '<img src="' + imageUrl + '" />';


				}
				else{
					document.getElementById("demo").innerHTML = "bad query";
				}

			};
			xmlhttp.open("GET","https://api.themoviedb.org/3/movie/" + num + "?api_key=2b8c6c988082f2afded86703adeccbc8&language=en-US",true);
			xmlhttp.send();
		}
    </script>
   </head>
   <body>
      <?php include 'headbar.php'; ?>
	  <div id="centerArea">
	     <div id="mainArea">
            <myp id="title" class="center"><h2>Uploads</h2></myp>
<p id="demo" onload="showmovie(155)">Click the button to change the text in this paragraph.</p>		
			<?php<commit_msg>final<commit_after><HTML>
	<head>
    <link rel="stylesheet" type="text/css" href="mystyle.css">
	<link rel="icon" href="novacado_pit.png">
    <title> Edits </title>
	<script src="themoviedb.js"></script>
	<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
	<script>
	
		function showreviews(str) {
			if (str == "") {
				document.getElementById("txtHint").innerHTML = "";
				return;
			} 
			else if (!document.getElementById("checkbox" + str).checked){
				document.getElementById("ins" + str ).innerHTML = "";
			}
			else { 
			if (window.XMLHttpRequest) {
				// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			} else {
				// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					document.getElementById("ins" + str ).innerHTML = this.responseText;
				}
			};
			xmlhttp.open("GET","getmovieinfo.php?q="+str,true);
			xmlhttp.send();
		}
	}
	</script>
	<script type="text/javascript">
		function showmovie(number, caller) {
			alert("called!");
			if (window.XMLHttpRequest) {
				// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			} else {
				// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function(num) {
				if (this.readyState == 4 && this.status == 200) {
					document.getElementById("demo").innerHTML = this.responseText;
					var obj = JSON.parse(this.responseText);

						document.getElementById("demo").innerHTML = '<b>' + obj.title + '</b><br />';

						var imageUrl = "http://image.tmdb.org/t/p/w185/" + obj.poster_path;
						
						document.getElementById("demo").innerHTML += '<img src="' + imageUrl + '" />';


				}
				else{
					document.getElementById("demo").innerHTML = "bad query";
				}

			};
			xmlhttp.open("GET","https://api.themoviedb.org/3/movie/" + num + "?api_key=2b8c6c988082f2afded86703adeccbc8&language=en-US",true);
			xmlhttp.send();
		}
    </script>
   </head>
   <body>
      <?php include 'headbar.php'; ?>
	  <div id="centerArea">
	     <div id="mainArea">
            <myp id="title" class="center"><h2>Uploads</h2></myp>
<p id="demo" onload="showmovie(155, this)">Click the button to change the text in this paragraph.</p>		
			<?php
{'fraction_non_alphanumeric': 0.1808421052631579, 'fraction_numerical': 0.018105263157894735, 'mean_word_length': 3.272482014388489, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 61, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, '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': '444157', 'n_tokens_mistral': 1935, 'n_tokens_neox': 1586, 'n_words': 298}