<commit_before><?php

namespace Bookshelf\Utility;

use Bookshelf\DataIo\DatabaseConnection;

class User {

    // TODO: Implement proper OO User class, currently I am just using the old functions as statics
    public static function isAuthenticated($name, $password) {
        $db_con = new DatabaseConnection();
        return $db_con->validateUser($name, $password);
    }

    public static function showLoginForm() {
        print '<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Bookshelf</title>
        <link rel="stylesheet" href="assets/css/style.css">
    </head>
    <body>
        <div id="wrapper" name="wrapper">
            <header>
                <div class="container">
                    <span id="logo" name="logo">Bookshelf</span>
                </div>
            </header>
            <div id="main" name="main">
                <div class="container">
                    <form id="login-form" name="login-form" action="#" method="post">
                        <h1>Login</h1>
                        <p>This area can only be accessed by authorized users.</p>
                        <p><input type="text" name="name" placeholder="Name" required="" autofocus="" /><br>
                        <input type="password" name="password" placeholder="Password" required=""/></p>
                        <button type="submit">Login</button>
                    </form>
                </div>
            </div>
            <footer>
                <div class="container">
                    (c) ' . date('Y') . ' <a href="http://getbookshelf.org">the Bookshelf project</a>
                </div>
            </footer>
        </div>
    </body>
</html>';
    }

}
<commit_msg>Fixed login logo<commit_after><?php

namespace Bookshelf\Utility;

use Bookshelf\DataIo\DatabaseConnection;

class User {

    // TODO: Implement proper OO User class, currently I am just using the old functions as statics
    public static function isAuthenticated($name, $password) {
        $db_con = new DatabaseConnection();
        return $db_con->validateUser($name, $password);
    }

    public static function showLoginForm() {
        print '<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Bookshelf</title>
        <link rel="stylesheet" href="assets/css/style.css">
    </head>
    <body>
        <div id="wrapper" name="wrapper">
            <header>
                <div class="container">
                    <span id="logo" name="logo"><a href="index.php">Bookshelf</a></span>
                </div>
            </header>
            <div id="main" name="main">
                <div class="container">
                    <form id="login-form" name="login-form" action="#" method="post">
                        <h1>Login</h1>
                        <p>This area can only be accessed by authorized users.</p>
                        <p><input type="text" name="name" placeholder="Name" required="" autofocus="" /><br>
                        <input type="password" name="password" placeholder="Password" required=""/></p>
                        <button type="submit">Login</button>
                    </form>
                </div>
            </div>
            <footer>
                <div class="container">
                    (c) ' . date('Y') . ' <a href="http://getbookshelf.org">the Bookshelf project</a>
                </div>
            </footer>
        </div>
    </body>
</html>';
    }

}

{'fraction_non_alphanumeric': 0.14711786636076857, 'fraction_numerical': 0.0017206767995411529, 'mean_word_length': 1.725, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '4316539', 'n_tokens_mistral': 976, 'n_tokens_neox': 923, 'n_words': 229}