<commit_before><div id="page-content-wrapper">

  <button type="submit" id="menu-toggle"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> Menu</button>

  <span class="dropdown sign-out">

    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="dot-style">&#8226;</span> &nbsp;Hello, <?php echo $this->session->userdata('firstname'); ?></a>
    <ul class="dropdown-menu pull-right">
      <li class="dropdown-header"><strong><a>Activities</a></strong></li>

      <li><a href="<?php echo base_url("admin_announcements/post_announcements"); ?>">+ &nbsp;Post an Announcement</a></li>
      <li><a href="<?php echo base_url("admin_ticketing/new_tickets"); ?>">New Tickets &nbsp;<span class="badge"> <?php echo $count; ?> </span> </a></li>
      <li><a href="<?php echo base_url("admin_reservation/court_one"); ?>">New Reservations &nbsp;<span class="badge"> <?php echo $reserve; ?> </span> </a></li>
      <li><a href="<?php echo base_url("admin_forms/car_sticker"); ?>">New Online Application &nbsp;<span class="badge"> <?php echo $forms; ?> </span> </a></li>

      <li role="separator" class="divider"></li>
      <li class="dropdown-header"><strong><a>Account</a></strong></li>
      <li><a href="<?php echo base_url("admin_profile/"); ?>"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span>&nbsp; Edit Account</a></li>
      <li><a href="<?php echo base_url("login/signout/"); ?>">Sign Out</a></li>
    </ul>
  </span>

  <hr class="colored-hr">
  <br><br>

  <div class="row">

    <div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-3 nopadding">

      <div class="header-style">
        <h1> Add a User </h1>
      </div><br>

      <div class="admin-message">

          <p> Note: Be sure to input the correct user credentials so that the user won't have any problems signing in.
          </p>

      </div>

      <br>

      <div class="information">
          <div class="form-group">
          <form action="<?php echo base_url(); ?>admin_accounts/createuser" method="POST">

          <h4> User Credentials </h4>
          <br>
          <p> First Name </p>
          <input name="firstname" class="form-control" id="sel1" type="text" placeholder="" required>
             <p class="error"><?php echo form_error('firstname'); ?> </p>
          <br>

          <p> Last Name </p>
          <input name="lastname" class="form-control" id="sel1" type="text" placeholder="" required>
              <p class="error"><?php echo form_error('lastname'); ?></p>
          <br>

          <p> Username </p>
          <input name="username" class="form-control" id="sel1" type="text" placeholder="Must contain numbers only" required>
              <p class="error"><?php echo form_error('username'); ?></p>
          <br>

          <p> Password </p>
          <input name="password" class="form-control" id="sel1" type="password" placeholder="Must be at least 8 characters long" required>
             <p class="error"><?php echo form_error('password'); ?> </p>
          <br>

          <p> Confirm Password </p>
          <input name="confpassword" class="form-control" id="sel1" type="password" placeholder="Must be at least 8 characters long" required>
             <p class="error"><?php echo form_error('confpassword'); ?> </p>
          <br>

          <p> Address </p>
          <input name="address" class="form-control" id="sel1" type="text" placeholder="" required>
              <p class="error"><?php echo form_error('address'); ?></p>
          <br>

          <p> E-mail Address </p>
          <input name="email" class="form-control" id="sel1" type="email" placeholder="e.g. <EMAIL>" required>
            <p class="error"><?php echo form_error('email'); ?> </p>
          <br>

          <p> Contact Number </p>
          <input name="contactnum" class="form-control" id="sel1" type="text" placeholder="" required>
              <p class="error"><?php echo form_error('contactnum'); ?> </p>
          <br>

          <p> Role </p>
          <select name="role" class="form-control" id="sel1" required>
            <option value= "" selected hidden>Choose a role</option>
            <option value= "0">Homeowner</option>
            <option value= "1">Administrator</option>
          </select>
            <p class="error"> <?php echo form_error('role'); ?></p>
          <br>
          <br>
<commit_msg>Back-end v68.2<commit_after><div id="page-content-wrapper">

  <button type="submit" id="menu-toggle"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> Menu</button>

  <span class="dropdown sign-out">

    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="dot-style">&#8226;</span> &nbsp;Hello, <?php echo $this->session->userdata('firstname'); ?></a>
    <ul class="dropdown-menu pull-right">
      <li class="dropdown-header"><strong><a>Activities</a></strong></li>

      <li><a href="<?php echo base_url("admin_announcements/post_announcements"); ?>">+ &nbsp;Post an Announcement</a></li>
      <li><a href="<?php echo base_url("admin_ticketing/new_tickets"); ?>">New Tickets &nbsp;<span class="badge"> <?php echo $count; ?> </span> </a></li>
      <li><a href="<?php echo base_url("admin_reservation/court_one"); ?>">New Reservations &nbsp;<span class="badge"> <?php echo $reserve; ?> </span> </a></li>
      <li><a href="<?php echo base_url("admin_forms/car_sticker"); ?>">New Online Application &nbsp;<span class="badge"> <?php echo $forms; ?> </span> </a></li>

      <li role="separator" class="divider"></li>
      <li class="dropdown-header"><strong><a>Account</a></strong></li>
      <li><a href="<?php echo base_url("admin_profile/"); ?>"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span>&nbsp; Edit Account</a></li>
      <li><a href="<?php echo base_url("login/signout/"); ?>">Sign Out</a></li>
    </ul>
  </span>

  <hr class="colored-hr">
  <br><br>

  <div class="row">

    <div class="col-xs-12 col-sm-12 col-md-6 col-md-offset-3 nopadding">

      <div class="header-style">
        <h1> Add a User </h1>
      </div><br>

      <div class="admin-message">

          <p> Note: Be sure to input the correct user credentials so that the user won't have any problems signing in.
          </p>

      </div>

      <br>

      <div class="information">
          <div class="form-group">
          <form action="<?php echo base_url(); ?>admin_accounts/createuser" method="POST">

          <h4> User Credentials </h4>
          <br>
          <p> First Name </p>
          <input name="firstname" class="form-control" id="sel1" type="text" placeholder="" pattern="[a-z ]{2,30}" required>
             <p class="error"><?php echo form_error('firstname'); ?> </p>
          <br>

          <p> Last Name </p>
          <input name="lastname" class="form-control" id="sel1" type="text" placeholder="" pattern="[a-z ]{2,30}" required>
              <p class="error"><?php echo form_error('lastname'); ?></p>
          <br>

          <p> Username </p>
          <input name="username" class="form-control" id="sel1" type="text" placeholder="Must contain numbers only" pattern="[0-9]{8,12}" required>
              <p class="error"><?php echo form_error('username'); ?></p>
          <br>

          <p> Password </p>
          <input name="password" class="form-control" id="sel1" type="password" placeholder="Must be at least 8 characters long" pattern=".{8,}" required>
             <p class="error"><?php echo form_error('password'); ?> </p>
          <br>

          <p> Confirm Password </p>
          <input name="confpassword" class="form-control" id="sel1" type="password" placeholder="Must be at least 8 characters long" pattern=".{8,}" required>
             <p class="error"><?php echo form_error('confpassword'); ?> </p>
          <br>

          <p> Address </p>
          <input name="address" class="form-control" id="sel1" type="text" placeholder="" pattern="[a-z,. 0-9 \-]{10,}" required>
              <p class="error"><?php echo form_error('address'); ?></p>
          <br>

          <p> E-mail Address </p>
          <input name="email" class="form-control" id="sel1" type="email" placeholder="e.g. <EMAIL>" required>
            <p class="error"><?php echo form_error('email'); ?> </p>
          <br>

          <p> Contact Number </p>
          <input name="contactnum" class="form-control" id="sel1" type="text" placeholder="" pattern="[-0-9()]{7,}" required>
              <p class="error"><?php echo form_error('contactnum'); ?> </p>
          <br>

          <p> Role </p>
          <select name="role" class="form-control" id="sel1" required>
            <option value= "" selected hidden>Choose a role</option>
            <option value= "0">Homeowner</option>
            <option value= "1">Administrator</option>
          </select>
            <p class="error"> <?php echo form_error('role'); ?></p>
          <br>
          <br>

{'fraction_non_alphanumeric': 0.20011198208286674, 'fraction_numerical': 0.008622620380739082, 'mean_word_length': 2.9888343010272442, 'pattern_counts': {'":': 0, '<': 329, '<?xml version=': 0, '>': 333, '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': '2262427', 'n_tokens_mistral': 2839, 'n_tokens_neox': 2767, 'n_words': 680}