<commit_before><!DOCTYPE HTML>

<?php
	//requiring create-db.php
	require_once("php/controller/create-db.php");
?>

<html>
	<head>
		<title>melonJS Template</title>
		<link rel="stylesheet" type="text/css" media="screen" href="index.css">
		<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon" href="icons/touch-icon-iphone-60x60.png">
        <link rel="apple-touch-icon" sizes="76x76" href="icons/touch-icon-ipad-76x76.png">
        <link rel="apple-touch-icon" sizes="120x120" href="icons/touch-icon-iphone-retina-120x120.png">
        <link rel="apple-touch-icon" sizes="152x152" href="icons/touch-icon-ipad-retina-152x152.png">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
	</head>
	<body>
		<div id="screen"></div>
		<form id="input" method="post"> 

			<div class="field">
				
				<label for="username">Username</label>
				
				<input type="text" name="username" id="username" autocomplete="off">
			</div>

			
			<div class="password">
				<label for="password">Password</label>
				<input type="password" name="password" id="password">
			</div>

			<!-- adding register, load, and mainmenu button -->
			<button type="button" id="register">Register</button>
			<button type="button" id="load">Load</button>
			<button type="button" id="mainmenu">Main Menu</button>

		</form>

		<!-- melonJS Library -->
		<!-- build:js js/app.min.js -->
		<script type="text/javascript" src="lib/melonJS-1.1.0-min.js"></script>

		<!-- Plugin(s) -->
		<script type="text/javascript" src="lib/plugins/debugPanel.js"></script>
		
		<!-- Game Scripts -->
		<script type="text/javascript" src="js/game.js"></script>
		<script type="text/javascript" src="js/resources.js"></script>

		<script type="text/javascript" src="js/entities/entities.js"></script>
		<script type="text/javascript" src="js/entities/EnemyBaseEntity.js"></script>
		<script type="text/javascript" src="js/entities/PlayerBaseEntity.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/GameManager.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/GameTimerManager.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/SpendGold.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/HeroDeathManager.js"></script>
		<script type="text/javascript" src="js/entities/EnemyCreep.js"></script>
		<script type="text/javascript" src="js/entities/HUD.js"></script>
		<script type="text/javascript" src="js/entities/SpearThrow.js"></script>
		<script type="text/javascript" src="js/entities/MiniMap.js"></script>
		<script type="text/javascript" src="js/entities/MiniPlayerLocation.js"></script>
		<script type="text/javascript" src="js/screens/title.js"></script>
		<script type="text/javascript" src="js/screens/play.js"></script>
		<script type="text/javascript" src="js/screens/spendExp.js"></script>
		<script type="text/javascript" src="js/screens/loadProfile.js"></script>
		<script type="text/javascript" src="js/screens/newProfile.js"></script>
		<script type="text/javascript">
			window.onReady(function onReady() {
				game.onload();

				if (me.device.isMobile && !navigator.isCocoonJS) {
					// Prevent the webview from moving on a swipe
					window.document.addEventListener("touchmove", function (e) {
						e.preventDefault();
						window.scroll(0, 0);
						//window scroll2
						return false;
					}, false);

					(function () {
						window.scrollTo(0, 1);
						me.video.onresize(null);
					}).defer();

					me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
						window.scrollTo(0, 1);
					});
				}
			});
		</script>

		<script>
		$("#mainmenu").bind("click", function(){
			me.state.change(me.state.MENU);
		});	
		$("#register").bind("click", function(){
			$.ajax({
				type: "POST",
				url: "php/controller/create-user.php",
				<commit_msg>fixing source tree<commit_after><!DOCTYPE HTML>

<?php
	//requiring create-db.php
	require_once("php/controller/create-db.php");
?>

<html>
	<head>
		<title>melonJS Template</title>
		<link rel="stylesheet" type="text/css" media="screen" href="index.css">
		<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon" href="icons/touch-icon-iphone-60x60.png">
        <link rel="apple-touch-icon" sizes="76x76" href="icons/touch-icon-ipad-76x76.png">
        <link rel="apple-touch-icon" sizes="120x120" href="icons/touch-icon-iphone-retina-120x120.png">
        <link rel="apple-touch-icon" sizes="152x152" href="icons/touch-icon-ipad-retina-152x152.png">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
	</head>
	<body>
		<div id="screen"></div>
		<form id="input" method="post"> 

			<div class="field">
			<!--field class-->
			<label for="username">Username</label>
			<!--label for username-->
			<input type='text' name='username' id='username' autocomplete'off'>  
			<!--type username and password and turn off auto complete-->
			</div>

			
			<div class="password">
				<label for="password">Password</label>
				<input type="password" name="password" id="password">
			</div>

			<!-- adding register, load, and mainmenu button -->
			<button type="button" id="register">Register</button>
			<button type="button" id="load">Load</button>
			<button type="button" id="mainmenu">Main Menu</button>

		</form>

		<!-- melonJS Library -->
		<!-- build:js js/app.min.js -->
		<script type="text/javascript" src="lib/melonJS-1.1.0-min.js"></script>

		<!-- Plugin(s) -->
		<script type="text/javascript" src="lib/plugins/debugPanel.js"></script>
		
		<!-- Game Scripts -->
		<script type="text/javascript" src="js/game.js"></script>
		<script type="text/javascript" src="js/resources.js"></script>

		<script type="text/javascript" src="js/entities/entities.js"></script>
		<script type="text/javascript" src="js/entities/EnemyBaseEntity.js"></script>
		<script type="text/javascript" src="js/entities/PlayerBaseEntity.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/GameManager.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/GameTimerManager.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/SpendGold.js"></script>
		<script type="text/javascript" src="js/entities/gamemanagers/HeroDeathManager.js"></script>
		<script type="text/javascript" src="js/entities/EnemyCreep.js"></script>
		<script type="text/javascript" src="js/entities/HUD.js"></script>
		<script type="text/javascript" src="js/entities/SpearThrow.js"></script>
		<script type="text/javascript" src="js/entities/MiniMap.js"></script>
		<script type="text/javascript" src="js/entities/MiniPlayerLocation.js"></script>
		<script type="text/javascript" src="js/screens/title.js"></script>
		<script type="text/javascript" src="js/screens/play.js"></script>
		<script type="text/javascript" src="js/screens/spendExp.js"></script>
		<script type="text/javascript" src="js/screens/loadProfile.js"></script>
		<script type="text/javascript" src="js/screens/newProfile.js"></script>
		<script type="text/javascript">
			window.onReady(function onReady() {
				game.onload();

				if (me.device.isMobile && !navigator.isCocoonJS) {
					// Prevent the webview from moving on a swipe
					window.document.addEventListener("touchmove", function (e) {
						e.preventDefault();
						window.scroll(0, 0);
						//window scroll2
						return false;
					}, false);

					(function () {
						window.scrollTo(0, 1);
						me.video.onresize(null);
					}).defer(); 

					me.event.subscribe(me.event.WINDOW_ONRESIZE, function (e) {
						window.scrollTo(0, 1);
					});
				}
			});
		</script>

		<script>
		$("#mainmenu").bind("click", function(){
			me.state.change(me.state.MENU);
		});	
		$("#register").bind("click", function(){
			$.ajax({
				type: "POST",
				url: "php/controller/create-user.php",
				
{'fraction_non_alphanumeric': 0.19901168014375561, 'fraction_numerical': 0.013252470799640611, 'mean_word_length': 4.204558737580363, 'pattern_counts': {'":': 0, '<': 190, '<?xml version=': 0, '>': 190, 'https://': 6, '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': '7672314', 'n_tokens_mistral': 3412, 'n_tokens_neox': 2994, 'n_words': 446}