<commit_before><?php
require_once("lib/initialize.php");
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Leloo</title>
    <link rel="icon" href="img/icon.png" type="image/x-icon">

    <!-- Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/freelancer.css" rel="stylesheet">


    <!-- Custom Fonts -->
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet"
          type="text/css">
    <link rel="stylesheet" href="css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootbox.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"></script>
    <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet"/>

    <!-- rating styles   -->
    <link rel="stylesheet" href="css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="css/select2.min.css" rel="stylesheet"/>
    <script src="js/select2.min.js"></script>
    <script src="js/clear.js"></script>
    <link href="css/style.css" rel="stylesheet">
    <script type="text/javascript">
        $(document).ready(function () {
            $.getJSON("js/place_types.json", function (place_type) {
                $("#selecta option").remove(); // Remove all <option> child tags.
                $.each(place_type.place_types, function (index, item) { // Iterates through a collection
                    $("#selecta").append( // Append an object to the inside of the select box
                        $("<option></option>") // Yes you can do this.
                            .text(item.label)
                            .val(item.id)
                    );
                });
            });
        });

        window.fbAsyncInit = function () {
            FB.init({
                appId: '380576395482732',
                cookie: true,  // enable cookies to allow the server to access
                               // the session
                xfbml: true,  // parse social plugins on this page
                version: 'v2.2' // use version 2.2
            });
        };

        function facebook_login() {
            FB.login(function(response){

                if(response.status =='connected'){
                    FB.api('/me', function (response) {
                        $.post("public/userAction/savefbUser.php",{id:response.id,name:response.name,email:response.email},function(data){
                            if(data == 1){
                                $("#user_login").hide();
                                $("#status").hide();
                                $(".login_wrapper").html("");
                                $("#btn_register").hide();
                                $(".userinfo_container").html(response.name+' <div style="padding-top: 2px;padding-bottom: 10px;" id="btn-group-login" class="btn-group" role="group" aria-label="Default button group"><button type="button" class="btn btn-primary btn-sm logout">Logout</button></div>');
                                setTimeout(function(){
                                    $('#registerModal').fadeOut('slow');
                                },1000);

                            }
                        });
                    });
                }else{
                    console.log("log in canceled");
                }
            },{scope:'email'});
        }
        // Load the SDK asynchronously
        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement("script");
            js.id = "fb-root";
            js.src = "//connect.facebook.net/en_US/sdk.js";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));

    </script>
</head>

<body id="page-top" class="index">
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#page-top">Leloo</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li class="hidden">
                    <a href="#page-top"></a>
                </li>
                <li id="mnu_1" class="page-scroll">
                    <a href="#portfolio">You are Here!</a>
                </li>
                <li id="mnu_2" class="page-scroll">
                    <a href="#about">Places</a>
                </li>
                <li id="mnu_3" class="page-scroll">
                    <a href="#contact">Contact</a>
                </li>
                <li id="mnu_4" class="page-scroll">
                    <div class="userinfo_container">
                        <?php
                        if ($user->is_logged_in()) {
                            echo $user->user_fullname . " ";
                            ?>
                            <div style="padding-bottom: 10px;" id="btn-group-login" class="btn-group" role="group" aria-label="Default button group">
                                <button type="button" class="btn btn-primary btn-sm logout">Logout</button>
                            </div>
                        <?php
                        }
                        ?>
                    </div>
                    <?php
                    if (!$user->is_logged_in()) {
                        ?>
                        <div id="status">
                        </div>
                        <button type="button" id="btn_register" class="btn btn-primary btn-sm"
                                data-toggle="modal" data-target="#registerModal">Login
                        </button>
                    <?php
                    }
                    ?>

                </li>
            </ul>

        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
<header>
    <div class="container">
        <div class="row">
            <div id="select" class="col-lg-12 text-center">
                <!-- modal code -->
                <div data-backdrop="static" class="modal fade" id="registerModal" tabindex="-1" role="dialog"
                     aria-labelledby="exampleModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                        aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="exampleModalLabel" style="text-transform:none;color:#545454">Login or Register</h4>
                            </div>
                            <div class="modal-body">
                                <div class="login_wrapper">
                                    <button class="btn btn-primary btn-sm" style="background-color: #5776Cd;border-color: #5776Cd;" onclick="facebook_login();"><i class="fa fa-facebook"></i> Log In</button>
                                    <div id="fb-root"></div>
                                </div>


                                <div class="user_reg login_wrapper">

                                    <form id="user_login" accept-charset="UTF-8" method="post">
                                        &nbsp;or
                                        <input class="form-control" id="txt_email" type="email" required="email"
                                               placeholder="Email"><commit_msg>modify label fb button<commit_after><?php
require_once("lib/initialize.php");
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Leloo</title>
    <link rel="icon" href="img/icon.png" type="image/x-icon">

    <!-- Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/freelancer.css" rel="stylesheet">


    <!-- Custom Fonts -->
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet"
          type="text/css">
    <link rel="stylesheet" href="css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootbox.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js"></script>
    <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css" rel="stylesheet"/>

    <!-- rating styles   -->
    <link rel="stylesheet" href="css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="css/select2.min.css" rel="stylesheet"/>
    <script src="js/select2.min.js"></script>
    <script src="js/clear.js"></script>
    <link href="css/style.css" rel="stylesheet">
    <script type="text/javascript">
        $(document).ready(function () {
            $.getJSON("js/place_types.json", function (place_type) {
                $("#selecta option").remove(); // Remove all <option> child tags.
                $.each(place_type.place_types, function (index, item) { // Iterates through a collection
                    $("#selecta").append( // Append an object to the inside of the select box
                        $("<option></option>") // Yes you can do this.
                            .text(item.label)
                            .val(item.id)
                    );
                });
            });
        });

        window.fbAsyncInit = function () {
            FB.init({
                appId: '380576395482732',
                cookie: true,  // enable cookies to allow the server to access
                               // the session
                xfbml: true,  // parse social plugins on this page
                version: 'v2.2' // use version 2.2
            });
        };

        function facebook_login() {
            FB.login(function(response){

                if(response.status =='connected'){
                    FB.api('/me', function (response) {
                        $.post("public/userAction/savefbUser.php",{id:response.id,name:response.name,email:response.email},function(data){
                            if(data == 1){
                                $("#user_login").hide();
                                $("#status").hide();
                                $(".login_wrapper").html("");
                                $("#btn_register").hide();
                                $(".userinfo_container").html(response.name+' <div style="padding-top: 2px;padding-bottom: 10px;" id="btn-group-login" class="btn-group" role="group" aria-label="Default button group"><button type="button" class="btn btn-primary btn-sm logout">Logout</button></div>');
                                setTimeout(function(){
                                    $('#registerModal').fadeOut('slow');
                                },1000);

                            }
                        });
                    });
                }else{
                    console.log("log in canceled");
                }
            },{scope:'email'});
        }
        // Load the SDK asynchronously
        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement("script");
            js.id = "fb-root";
            js.src = "//connect.facebook.net/en_US/sdk.js";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));

    </script>
</head>

<body id="page-top" class="index">
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#page-top">Leloo</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li class="hidden">
                    <a href="#page-top"></a>
                </li>
                <li id="mnu_1" class="page-scroll">
                    <a href="#portfolio">You are Here!</a>
                </li>
                <li id="mnu_2" class="page-scroll">
                    <a href="#about">Places</a>
                </li>
                <li id="mnu_3" class="page-scroll">
                    <a href="#contact">Contact</a>
                </li>
                <li id="mnu_4" class="page-scroll">
                    <div class="userinfo_container">
                        <?php
                        if ($user->is_logged_in()) {
                            echo $user->user_fullname . " ";
                            ?>
                            <div style="padding-bottom: 10px;" id="btn-group-login" class="btn-group" role="group" aria-label="Default button group">
                                <button type="button" class="btn btn-primary btn-sm logout">Logout</button>
                            </div>
                        <?php
                        }
                        ?>
                    </div>
                    <?php
                    if (!$user->is_logged_in()) {
                        ?>
                        <div id="status">
                        </div>
                        <button type="button" id="btn_register" class="btn btn-primary btn-sm"
                                data-toggle="modal" data-target="#registerModal">Login
                        </button>
                    <?php
                    }
                    ?>

                </li>
            </ul>

        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
<header>
    <div class="container">
        <div class="row">
            <div id="select" class="col-lg-12 text-center">
                <!-- modal code -->
                <div data-backdrop="static" class="modal fade" id="registerModal" tabindex="-1" role="dialog"
                     aria-labelledby="exampleModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                        aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="exampleModalLabel" style="text-transform:none;color:#545454">Login or Register</h4>
                            </div>
                            <div class="modal-body">
                                <div class="login_wrapper">
                                    <button class="btn btn-primary btn-sm" style="background-color: #5776Cd;border-color: #5776Cd;" onclick="facebook_login();"><i class="fa fa-facebook"></i> connect</button>
                                    <div id="fb-root"></div>
                                </div>


                                <div class="user_reg login_wrapper">

                                    <form id="user_login" accept-charset="UTF-8" method="post">
                                        &nbsp;or
                                        <input class="form-control" id="txt_email" type="email" required="email"
                                               placeholder="Email">
{'fraction_non_alphanumeric': 0.15836375348937085, 'fraction_numerical': 0.011380717199914108, 'mean_word_length': 1.5177726719827003, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 291, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1727306', 'n_tokens_mistral': 5258, 'n_tokens_neox': 4902, 'n_words': 933}