<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');

$this->session->sess_destroy();
$this->load->library('form_validation');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Home Page</title>
    <?php $this->load->view('partials/custom_head.php'); ?>
</head>
<body>
<div class="container-fluid">
    <div class="jumbotron">
        <h1>Welcome to the Jose's App!</h1>
        <h2>Please log in or register</h2>
        <p>Check out what I built. A cool application using PHP MVC framework, CodeIgniter, MySQL with Twitter Bootstrap!.</p>
    </div>
    <div id='container'>
        <?= $this->session->flashdata("login_errors"); ?>
        <!-- login -->
        <form action='/login_user' method='post'>
            <h3>Log In</h3>
            <div class='required'>
                <label for='email'>Email:</label>
                <input type='text' name='email' class="form-control" placeholder="<EMAIL>" />
            </div>
            <div class='required'>
                <label for='password'>Password:</label>
                <input type="password" name="password" class="form-control" placeholder="password" />
            </div>
            <input class="btn btn-success" type="submit" name="signin" value="Sign in!">
        </form>

        <!-- register -->
        <?= $this->session->flashdata("success"); ?>
        <?= $this->session->flashdata("registration_errors"); ?>
        <form class = 'register' action='register' method = 'post'>
            <h3>Register</h3>
            <div class='required'>
                <label for='first_name'>First name:</label>
                <input type='text' class="form-control" name='first_name'/>
            </div>
            <div class='required'>
                <label for='last_name'>Last name:</label>
                <input type='text' class="form-control" name='last_name'/>
            </div>
            <div class='required'>
                <label for='email'>Email:</label>
                <input type='text' class="form-control" name='email'/>
            </div><commit_msg>updated error alerts<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

$this->session->sess_destroy();
$this->load->library('form_validation');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Home Page</title>
    <?php $this->load->view('partials/custom_head.php'); ?>
</head>
<body>
<div class="container-fluid">
    <div class="jumbotron">
        <h1>Welcome to the Jose's App!</h1>
        <h2>Please log in or register</h2>
        <p>Check out what I built. A cool application using PHP MVC framework, CodeIgniter, MySQL with Twitter Bootstrap!.</p>
    </div>
    <div id='container'>
        <?php
        if($this->session->flashdata('login_error'))
        { ?>
            <p><?= $this->session->flashdata('login_error') ?></p>
            <?php
        }
        ?>        <!-- login -->
        <form action='/login_user' method='post'>
            <h3>Log In</h3>
            <div class='required'>
                <label for='email'>Email:</label>
                <input type='text' name='email' class="form-control" placeholder="<EMAIL>" />
            </div>
            <div class='required'>
                <label for='password'>Password:</label>
                <input type="password" name="password" class="form-control" placeholder="password" />
            </div>
            <input class="btn btn-success" type="submit" name="signin" value="Sign in!">
        </form>

        <!-- register -->
        <?= $this->session->flashdata("success"); ?>
        <?= $this->session->flashdata("registration_errors"); ?>
        <form class = 'register' action='register' method = 'post'>
            <h3>Register</h3>
            <div class='required'>
                <label for='first_name'>First name:</label>
                <input type='text' class="form-control" name='first_name'/>
            </div>
            <div class='required'>
                <label for='last_name'>Last name:</label>
                <input type='text' class="form-control" name='last_name'/>
            </div>
            <div class='required'>
                <label for='email'>Email:</label>
                <input type='text' class="form-control" name='email'/>
            </div>
{'fraction_non_alphanumeric': 0.18024062933826931, 'fraction_numerical': 0.0037019898195279964, 'mean_word_length': 2.275, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 149, 'https://': 0, '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': '785827', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1215, 'n_words': 264}