<commit_before><?php

    if (!function_exists('json_last_error_msg')){
        function json_last_error_msg()
        {
            switch (json_last_error()) {
                default:
                    return;
                case JSON_ERROR_DEPTH:
                    $error = 'Maximum stack depth exceeded';
                break;
                case JSON_ERROR_STATE_MISMATCH:
                    $error = 'Underflow or the modes mismatch';
                break;
                case JSON_ERROR_CTRL_CHAR:
                    $error = 'Unexpected control character found';
                break;
                case JSON_ERROR_SYNTAX:
                    $error = 'Syntax error, malformed JSON';
                break;
                case JSON_ERROR_UTF8:
                    $error = 'Malformed UTF-8 characters, possibly incorrectly encoded';
                break;
            }
            throw new Exception($error);
        }
    }




    echo "hello";

    $base = str_replace( basename($_SERVER['REQUEST_URI'], "") , "" , $_SERVER['REQUEST_URI']);

    if(!isset($_SESSION["userid"]) || !isset($_SESSION["hashword"])){
        session_start();
    }




//    echo(file_get_contents("/etc/conf/local.conf"));
?>

<html>
<head>
    <link href="bootstrap-3.0.0/dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <style type="text/css">
        #loginButton{
            margin-top: 10px;
            margin-right: 10px;
        }

        #loginContainer{
           display: none;
           height: 90%;
           margin-top: -20px;
           background: url('images/backgrounds/80_percent_black.png');
           padding: 10px;
        }

        #loginNest{
            font-size: 1.5em;
            width: 300px;
            padding: 20px;
            background: #eee;
            margin: auto;
            margin-top: 60px;
        }

        #submitButton{
            margin-top: 5px;
        }

        #loginCancelButton{
            margin-top: 5px;
        }

        #mainContainer{
            position relative;
            z-index: 1;
            height: 100%;
            width: 100%;
            background: url('images/backgrounds/norwegian_rose/norwegian_rose.png');
        }

        #headerNav{
            position: relative;
            z-index: 1000;
            margin-bottom: 0px;
            -webkit-box-shadow: 2px 2px 7px 2px #3B3B3B;
            box-shadow: 2px 2px 7px 2px #3B3B3B;

        }

        .col-md-4{
            border:solid 2px #fff;
          }
    </style>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="js/lib/jquery.cookie.js"></script>

    <script>
        <?
        if($_SERVER['HTTPS'] != null){
            echo("var base = 'https://" . $_SERVER['SERVER_NAME'] . $base . "';");
        }else{
            echo("var base = 'http://" . $_SERVER['SERVER_NAME'] . $base . "';");
        }

        echo "console.log(base);";

        ?>

        $(document).ready(function(){
//            $('#loginForm').attr("action", base+"home.php");

            $('#loginButton').click(function(){
                $('#loginContainer').show();
            });

            $('#loginCancelButton').click(function(){
                $('#username').val("");
                $('#password').val("");
                $('#loginContainer').hide();

            });
        });
    </script>
</head>
<body>
    <nav class="navbar navbar-default" role="navigation" id="headerNav">
    <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <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="#"><img src="images/greenup-logo-redux.png" height="50" id="navLogo" /></a>
        </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li><button type="button"  id="loginButton" class="btn btn-default btn-md">Admin Login</button></li>
        </ul>
    </div><!-- /.navbar-collapse -->
  </nav>
    <div id="mainContainer">
    dsfsdfsdf
        <div class="row">
            <div class="col-md-4">
            sdfsdf
            </div>

            <div class="col-md-4">
            sdfsdf
            </div>

            <div class="col-md-4">
            sdfsdfs
            </div>

        </div>

<commit_msg>putting work up<commit_after><?php

    if (!function_exists('json_last_error_msg')){
        function json_last_error_msg()
        {
            switch (json_last_error()) {
                default:
                    return;
                case JSON_ERROR_DEPTH:
                    $error = 'Maximum stack depth exceeded';
                break;
                case JSON_ERROR_STATE_MISMATCH:
                    $error = 'Underflow or the modes mismatch';
                break;
                case JSON_ERROR_CTRL_CHAR:
                    $error = 'Unexpected control character found';
                break;
                case JSON_ERROR_SYNTAX:
                    $error = 'Syntax error, malformed JSON';
                break;
                case JSON_ERROR_UTF8:
                    $error = 'Malformed UTF-8 characters, possibly incorrectly encoded';
                break;
            }
            throw new Exception($error);
        }
    }




    echo "hello";

    $base = str_replace( basename($_SERVER['REQUEST_URI'], "") , "" , $_SERVER['REQUEST_URI']);

    if(!isset($_SESSION["userid"]) || !isset($_SESSION["hashword"])){
        session_start();
    }




//    echo(file_get_contents("/etc/conf/local.conf"));
?>

<html>
<head>
    <link href="bootstrap-3.0.0/dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <style type="text/css">
        #loginButton{
            margin-top: 10px;
            margin-right: 10px;
        }

        #loginContainer{
           display: none;
           height: 90%;
           margin-top: -20px;
           background: url('images/backgrounds/80_percent_black.png');
           padding: 10px;
        }

        #loginNest{
            font-size: 1.5em;
            width: 300px;
            padding: 20px;
            background: #eee;
            margin: auto;
            margin-top: 60px;
        }

        #submitButton{
            margin-top: 5px;
        }

        #loginCancelButton{
            margin-top: 5px;
        }

        #mainContainer{
            position relative;
            z-index: 1;
            height: 100%;
            width: 100%;
            background: url('images/backgrounds/norwegian_rose/norwegian_rose.png');
        }

        #headerNav{
            position: relative;
            z-index: 1000;
            margin-bottom: 0px;
            -webkit-box-shadow: 2px 2px 7px 2px #3B3B3B;
            box-shadow: 2px 2px 7px 2px #3B3B3B;

        }

        .col-md-4{
            border:solid 2px #fff;
          }
    </style>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="js/lib/jquery.cookie.js"></script>

    <script>
        <?
        if($_SERVER['HTTPS'] != null){
            echo("var base = 'https://" . $_SERVER['SERVER_NAME'] . $base . "';");
        }else{
            echo("var base = 'http://" . $_SERVER['SERVER_NAME'] . $base . "';");
        }

        echo "console.log(base);";

        ?>

        $(document).ready(function(){
//            $('#loginForm').attr("action", base+"home.php");

            $('#loginButton').click(function(){
                $('#loginContainer').show();
            });

            $('#loginCancelButton').click(function(){
                $('#username').val("");
                $('#password').val("");
                $('#loginContainer').hide();

            });
        });
    </script>
</head>
<body>
    <nav class="navbar navbar-default" role="navigation" id="headerNav">
    <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <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="#"><img src="images/greenup-logo-redux.png" height="50" id="navLogo" /></a>
        </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li><button type="button"  id="loginButton" class="btn btn-default btn-md">Admin Login</button></li>
        </ul>
    </div><!-- /.navbar-collapse -->
  </nav>
    <div id="mainContainer">
    dsfsdfsdf
        <div class="row">
            <div class="col-md-4">
            zzzzzzzz
            </div>

            <div class="col-md-4">
            ffffff
            </div>

            <div class="col-md-4">
            hhhhh
            </div>

        </div>


{'fraction_non_alphanumeric': 0.15118208212360015, 'fraction_numerical': 0.013894649523019494, 'mean_word_length': 1.5576770087509944, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '1492979', 'n_tokens_mistral': 2923, 'n_tokens_neox': 2699, 'n_words': 532}