<commit_before><?php
<<<<<<< HEAD
    require_once ("php/controller/create-db.php");
?>
<!DOCTYPE HTML>
<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">
=======
require_once(__DIR__ . "/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">
>>>>>>> 7ef944b9fa2a0a41802bfd961c211d14d0cea12d
        <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">
<<<<<<< HEAD
        <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.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
	</head>
	<body>
		<!-- Canvas placeholder -->
		<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>
                    
                    <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/MiniMap.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/EnemyCreep.js"></script>
                <script type="text/javascript" src="js/gamemanagers/GameManager.js"></script>
                <script type="text/javascript" src="js/gamemanagers/GameTimerManager.js"></script>
                <script type="text/javascript" src="js/gamemanagers/spendGold.js"></script>
                <script type="text/javascript" src="js/entities//MiniPlayerLocation.js"></script>
                <script type="text/javascript" src="js/gamemanagers/HeroDeathManager.js"></script>
                <script type="text/javascript" src="js/entities/SpearThrow.js"></script>



		<script type="text/javascript" src="js/entities/HUD.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>

                
		<!-- /build -->
		<!-- Bootstrap & Mobile optimization tricks -->
		<script type="text/javascript">
			window.onReady(function onReady() {
				game.onload();

				// Mobile browser hacks
				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);
						return false;
					}, false);

					// Scroll away mobile GUI
					(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);
                    });
                    //when you click on the button register, its going to take all your info and pass it to the create-user.php
                     $("#register").bind("click", function(){
                          $.ajax({
                              type: "POST",
                              url: "php/controller/create-user.php",
                              data: {
                                  username: $('#username').val(),
                                  password: <PASSWORD>()
                                  
                              },
                              //send back a msg saying weather it did or not go through the php code or not
                              dataType: "text"
                          })
                                  .success(function(response){
                                      //if true it will give us something
                                     if(response ==="True"){
                                         me.state.change(me.state.PLAY);
                                     }else{
                                         //if an error it will give a response
                                         alert(response);
                                     }   
                          })
                  //if it fails it will sy alert
                          .fail(function(response){
                              alert("Fail");
                          });
                    });
                     $("#load").bind("click", function(){
                          $.ajax({
                              type: "POST",
                              url: "php/controller/login-user.php",
                              data: {
                                  username: $('#username').val(),
                                  password: <PASSWORD>()
                                  
                              },
                              //send back a msg saying weather it did or not go through the php code or not
                              dataType: "text"
                          })
                                  .success(function(response){
                                      //if true it will give us something
                                     if(response ==="Invalid username and password"){
                                          alert(response);
                                     }else{
                                        var data = jQuery.parseJSON(response);
                                        game.data.exp = data["exp"];
                                        game.data.exp1 = data["exp1"];
                                        game.data.exp2 = data["exp2"];
                                        game.data.exp3 = data["exp3"];
                                        game.data.exp4 = data["exp4"];
                                        
                                        me.state.change(me.state.SPENDEXP);
                                     }   
                          })
                  //if it fails it will sy alert
                          .fail(function(response){
                              alert("Fail");
                          });
                    });
                    </script>
                    </script>
	</body>
=======
        <script src="http://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.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
    </head>
    <body>
        <!-- Canvas placeholder -->
        <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="username">password</label>
                <input type='password' name='password' id='password'>
            </div>
            <button class='button' id='register'>Register</button>
            <button class='button' id='load'>Load</button>
            <button class='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/EnemyCreep.js"></script>
        <script type="text/javascript" src="js/gamemanagers/GameManager.js"></script>
        <script type="text/javascript" src="js/gamemanagers/GameTimerManager.js"></script>
        <script type="text/javascript" src="js/gamemanagers/SpendGold.js"></script>
        <script type="text/javascript" src="js/gamemanagers/HeroDeathManager.js"></script>
        <script type="text/javascript" src="js/entities/HUD.js"></script>

        <script type="text/javascript" src="js/screens/title.js"></script>
        <script type="text/javascript" src="js/screens/newProfile.js"></script>
        <script type="text/javascript" src="js/screens/loadProfile.js"></script>
        <script type="text/javascript" src="js/screens/play.js"></script>
        <script type="text/javascript" src="js/screens/spendExp.js"></script>
        <!-- /build -->
        <!-- Bootstrap & Mobile optimization tricks -->
        <script type="text/javascript">
            window.onReady(function onReady() {
                game.onload();
                // Mobile browser hacks
                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);
                        return false;
                    }, false);
                    // Scroll away mobile GUI
                    (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",
                    data: {
                        username: $('#username').val(),
                        password: <PASSWORD>()
                    },
                    dataType: "text"

                })
                        .success(function(response) {
                            if (response === "true") {
                                me.state.change(me.state.PLAY);
                            } else {
                                alert(response);
                            }
                        })
                        .fail(function(reponse) {
                            alert("Fail");
                        });
            });
            $("#load").bind("click", function() {
                $.ajax({
                    type: "POST",
                    url: "php/controller/login-user.php",
                    data: {
                        username: $('#username').val(),
                        password: <PASSWORD>').val()
                    },
                    dataType: "text"
                })
                        .success(function(response) {
                            if (response === "Invalid username and password") {
                                alert(response);
                            } else {
                                var data = jQuery.parseJSON(response);
                                game.data.exp = data["exp"];
                                game.data.exp1 = data["exp1"];
                                game.data.exp2 = data["exp2"];
                                game.data.exp3 = data["exp3"];
                                game.data.exp4 = data["exp4"];
                                me.state.change(me.state.SPENDEXP);
                            }
                        })
                        .fail(function(reponse) {
                            alert("Fail");
                        });
            });
        </script>

    </body>
>>>>>>> 7ef944b9fa2a0a41802bfd961c211d14d0cea12d
</html>
<commit_msg>fixed error<commit_after><?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.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
	</head>
	<body>
		<!-- Canvas placeholder -->
		<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>
                    
                    <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/MiniMap.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/EnemyCreep.js"></script>
                <script type="text/javascript" src="js/gamemanagers/GameManager.js"></script>
                <script type="text/javascript" src="js/gamemanagers/GameTimerManager.js"></script>
                <script type="text/javascript" src="js/gamemanagers/spendGold.js"></script>
                <script type="text/javascript" src="js/entities//MiniPlayerLocation.js"></script>
                <script type="text/javascript" src="js/gamemanagers/HeroDeathManager.js"></script>
                <script type="text/javascript" src="js/entities/SpearThrow.js"></script>



		<script type="text/javascript" src="js/entities/HUD.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>

                
		<!-- /build -->
		<!-- Bootstrap & Mobile optimization tricks -->
		<script type="text/javascript">
			window.onReady(function onReady() {
				game.onload();

				// Mobile browser hacks
				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);
						return false;
					}, false);

					// Scroll away mobile GUI
					(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);
                    });
                    //when you click on the button register, its going to take all your info and pass it to the create-user.php
                     $("#register").bind("click", function(){
                          $.ajax({
                              type: "POST",
                              url: "php/controller/create-user.php",
                              data: {
                                  username: $('#username').val(),
                                  password: <PASSWORD>()
                                  
                              },
                              //send back a msg saying weather it did or not go through the php code or not
                              dataType: "text"
                          })
                                  .success(function(response){
                                      //if true it will give us something
                                     if(response ==="True"){
                                         me.state.change(me.state.PLAY);
                                     }else{
                                         //if an error it will give a response
                                         alert(response);
                                     }   
                          })
                  //if it fails it will sy alert
                          .fail(function(response){
                              alert("Fail");
                          });
                    });
                     $("#load").bind("click", function(){
                          $.ajax({
                              type: "POST",
                              url: "php/controller/login-user.php",
                              data: {
                                  username: $('#username').val(),
                                  password: <PASSWORD>()
                                  
                              },
                              //send back a msg saying weather it did or not go through the php code or not
                              dataType: "text"
                          })
                                  .success(function(response){
                                      //if true it will give us something
                                     if(response ==="Invalid username and password"){
                                          alert(response);
                                     }else{
                                        var data = jQuery.parseJSON(response);
                                        game.data.exp = data["exp"];
                                        game.data.exp1 = data["exp1"];
                                        game.data.exp2 = data["exp2"];
                                        game.data.exp3 = data["exp3"];
                                        game.data.exp4 = data["exp4"];
                                        
                                        me.state.change(me.state.SPENDEXP);
                                     }   
                          })
                  //if it fails it will sy alert
                          .fail(function(response){
                              alert("Fail");
                          });
                    });
                    </script>
                    </script>
	</body>
=======
        <script src="http://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.4/themes/smoothness/jquery-ui.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
    </head>
    <body>
        <!-- Canvas placeholder -->
        <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="username">password</label>
                <input type='password' name='password' id='password'>
            </div>
            <button class='button' id='register'>Register</button>
            <button class='button' id='load'>Load</button>
            <button class='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/EnemyCreep.js"></script>
        <script type="text/javascript" src="js/gamemanagers/GameManager.js"></script>
        <script type="text/javascript" src="js/gamemanagers/GameTimerManager.js"></script>
        <script type="text/javascript" src="js/gamemanagers/SpendGold.js"></script>
        <script type="text/javascript" src="js/gamemanagers/HeroDeathManager.js"></script>
        <script type="text/javascript" src="js/entities/HUD.js"></script>

        <script type="text/javascript" src="js/screens/title.js"></script>
        <script type="text/javascript" src="js/screens/newProfile.js"></script>
        <script type="text/javascript" src="js/screens/loadProfile.js"></script>
        <script type="text/javascript" src="js/screens/play.js"></script>
        <script type="text/javascript" src="js/screens/spendExp.js"></script>
        <!-- /build -->
        <!-- Bootstrap & Mobile optimization tricks -->
        <script type="text/javascript">
            window.onReady(function onReady() {
                game.onload();
                // Mobile browser hacks
                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);
                        return false;
                    }, false);
                    // Scroll away mobile GUI
                    (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",
                    data: {
                        username: $('#username').val(),
                        password: <PASSWORD>').<PASSWORD>()
                    },
                    dataType: "text"

                })
                        .success(function(response) {
                            if (response === "true") {
                                me.state.change(me.state.PLAY);
                            } else {
                                alert(response);
                            }
                        })
                        .fail(function(reponse) {
                            alert("Fail");
                        });
            });
            $("#load").bind("click", function() {
                $.ajax({
                    type: "POST",
                    url: "php/controller/login-user.php",
                    data: {
                        username: $('#username').val(),
                        password: <PASSWORD>').<PASSWORD>()
                    },
                    dataType: "text"
                })
                        .success(function(response) {
                            if (response === "Invalid username and password") {
                                alert(response);
                            } else {
                                var data = jQuery.parseJSON(response);
                                game.data.exp = data["exp"];
                                game.data.exp1 = data["exp1"];
                                game.data.exp2 = data["exp2"];
                                game.data.exp3 = data["exp3"];
                                game.data.exp4 = data["exp4"];
                                me.state.change(me.state.SPENDEXP);
                            }
                        })
                        .fail(function(reponse) {
                            alert("Fail");
                        });
            });
        </script>

    </body>
>>>>>>> 7ef944b9fa2a0a41802bfd961c211d14d0cea12d
</html>

{'fraction_non_alphanumeric': 0.14389799635701275, 'fraction_numerical': 0.008901261298415643, 'mean_word_length': 1.3106487731279282, 'pattern_counts': {'":': 0, '<': 381, '<?xml version=': 0, '>': 387, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 70, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7162519', 'n_tokens_mistral': 7809, 'n_tokens_neox': 7189, 'n_words': 1209}