<commit_before>
<?php
$username = $_POST["username"];
$password = $_POST["password"];
$access_level = "standarduser";

if ($username =="Luke" && $password =="<PASSWORD>") {

    setcookie('access_level',$access_level);
    setcookie('username',$username);

    echo "Hi " . $username . ", login was successful.";
}
else if($username == "" && $password == ""){
    echo "Please login";
}
else{
    echo "Login Failed for user '".$username. "'";
}

displayAccessLevelInformation($_COOKIE['access_level']);


function displayAccessLevelInformation($accesslevel)
{
    if ($accesslevel == "standarduser") {
        echo "<p>You are currently logged in as a standard user</p>";
    } elseif ($accesslevel == "root") {
        echo "<p>You are currently logged in as a root user</p>";
        echo "<p>You now have access to additional administrative features</p>";
    }
}
?>
}<commit_msg>added in index.php<commit_after>
<?php
$username = $_POST["username"];
$password = $_POST["password"];
$access_level = "standarduser";

if ($username =="Luke" && $password =="<PASSWORD>") {

    setcookie('access_level',$access_level);
    setcookie('username',$username);

    echo "Hi " . $username . ", login was successful.";
}
else if($username == "" && $password == ""){
    echo "Please login";
}
else{
    echo "Login Failed for user '".$username. "'";
}

displayAccessLevelInformation($_COOKIE['access_level']);


function displayAccessLevelInformation($accesslevel)
{
    if ($accesslevel == "standarduser") {
        echo "<p>You are currently logged in as a standard user</p>";
    } elseif ($accesslevel == "root") {
        echo "<p>You are currently logged in as a root user</p>";
        echo "<p>You now have access to additional administrative features</p>";
    }
}
?>

{'fraction_non_alphanumeric': 0.17720090293453725, 'fraction_numerical': 0.0, 'mean_word_length': 4.184210526315789, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6664291', 'n_tokens_mistral': 524, 'n_tokens_neox': 516, 'n_words': 146}