<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">
    <title>ESP RFID</title>
    <!-- Bootstrap core CSS -->
    <link href="/required.css" rel="stylesheet">
    <script src="/required.js" type="text/javascript"></script>
    <script src="/auth/set.js" type="text/javascript"></script>
  </head>
  <body onload="start()">
    <div class="container">
      <div class="header clearfix">
        <nav>
          <ul class="nav nav-pills pull-right">
            <li role="presentation"><a href="/auth/log.htm">Logs</a> </li>
            <li role="presentation"><a href="/auth/users.htm">Users</a> </li>
            <li role="presentation" class="active"><a href="/auth/settings.htm">Settings</a> </li>
          </ul>
        </nav>
        <h3 class="text-muted">ESP RFID</h3>
      </div>
      <div class="jumbotron">
        <div class="alert alert-warning"><strong>Warning!</strong> Settings will take effect when the device is rebooted. 
        </div>
        <div id="loading-img" class="text-center">
                            <img src="/load.gif">
                  <h5>Please wait while fetching data... <span id="loadpages"></span></h5>
        </div>
                <div>
          <button data-toggle="collapse" data-target="#status" id="refstat" onclick="refreshStats()" class="btn btn-link btn-sm">Show Device Status</button>
        </div>
        <div id="status" class="row collapse">
            <div class="col-sm-6">
              <div class="panel panel-default table-responsive">
                <table class="table table-hover table-striped">
                  <caption>Device</caption>
                  <tr>
                    <th>Chip ID</th>
                    <td id="chip"></td>
                  </tr>
                  <tr>
                    <th>CPU Clock</th>
                    <td id="cpu"></td>
                  </tr>
                                    <tr>
                    <th>Uptime</th>
                    <td id="uptime"></td>
                  </tr>
                  <tr>
                    <th>Free Heap</th>
                    <td>
                      <div class="progress" style="margin-bottom: 0 !important;">
                        <div id="heap" class="progress-bar progress-bar-primary" role="progressbar">
                          Progress
                        </div>
                      </div>
                    </td>
                  </tr>
                  <tr>
                    <th>Free Flash</th>
                    <td>
                      <div class='progress' style="margin-bottom: 0 !important;">
                        <div id="flash" class="progress-bar progress-bar-primary" role="progressbar">
                          Progress
                        </div>
                      </div>
                    </td>
                  </tr>
                  				<tr>
 					<th>Free SPIFFS</th>
 					<td>			
 					<div class='progress' style="margin-bottom: 0 !important;">
 						<div id="spiffs" class="progress-bar progress-bar-primary" role="progressbar">
 							Progress
 						</div>
 					</div></td>
 			</tr>
                </table>
              </div>
            </div>
            <div class="col-sm-6">
              <div class="panel panel-default table-responsive">
                <table class="table table-hover table-striped">
                  <caption>Network</caption>
                  <tr>
                    <th>SSID</th>
                    <td id="ssidstat"></td>
                  </tr>
                  <tr>
                    <th>IP</th>
                    <td id="ip"></td>
                  </tr>
                  <tr>
                    <th>Gateway</th>
                    <td id="gate"></td>
                  </tr>
                  <tr>
                    <th>Mask</th>
                    <td id="mask"></td>
                  </tr>
                  <tr>
                    <th>DNS</th>
                    <td id="dns"></td>
                  </tr>
                  <tr>
                    <th>MAC</th>
                    <td id="mac"></td>
                  </tr>
                </table>
              </div>
            </div>
          </div>
            <br>
        <div class="row">
          <div class="col-sm-6">
            <legend>Wi-Fi Settings</legend>
            <h6 class="text-muted">Type your Wi-Fi Network's SSID or Scan for nerby Wireless Networks to join.</h6>
            <div class="row form-group">
              <label data-toggle="tooltip" title="You can run your ESP in AP Mode or Client Mode. In client mode you will need to connect to an existing Wi-Fi network, in AP Mode ESP creates a Wi-Fi network itself." class="col-xs-3">Wi-Fi Mode</label>
              <div class="col-xs-9">
                <form>
                  <label class="radio-inline"><input type="radio" value="1" name="wmode" id="wmodeap" onclick="handleAP();">Access Point </label>
                  <label class="radio-inline"><input type="radio" value="0" name="wmode" id="wmodesta" onclick="handleSTA();" checked>Client</label>
                </form>
              </div>
            </div>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Wi-Fi Network's Name" class="col-xs-3">SSID</label> 
              <span class="col-xs-6 col-md-5">
                <input class="form-control input-sm" id="inputtohide" type="text" name="ap_ssid">
                <select class="form-control input-sm" style="display:none;" id="ssid" onchange="listBSSID();"></select>
              </span>
              <span class="col-xs-3">
                <button id="scanb" type="button" class="btn btn-primary btn-xs" onclick="scanWifi()">Scan</button>
              </span>
            </div>
            <div class="row form-group" style="display:none" id="hideBSSID">
              <label data-toggle="tooltip" title="If you have two Wi-Fi networks with the same SSID you may want to choose the specific one by BSSID" class="col-xs-3">BSSID</label> 
              <span class="col-xs-9 col-md-5">
              <input id="wifibssid" class="form-control input-sm" type="text" name="ap_bssid">
              </span> 
            </div>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Wi-Fi Password" class="col-xs-3">Password</label> 
              <span class="col-xs-9 col-md-5">
              <input id="wifipass" class="form-control input-sm" type="text" name="ap_passwd">
              </span> 
            </div>
            <br>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Disable WiFi after a time interval, to conserve power in battery powered units. WiFi is re-enabled when an admin card is scanned, or device is rebooted. Remember that you need to have enough time to upload your configuration, so don't set it too low." class="col-xs-3">Auto Disable Wifi</label> 
              <span class="col-xs-9 col-md-5">
                <select class="form-control" id="disable_wifi_after_seconds" name="auto_restart_interval_seconds">
                  <option value='0'>Always on</option>
                  <option value='180'>3 min</option>
                  <option value='300'>5 min</option><commit_msg>add 4min auto wifi shutdown option<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">
    <title>ESP RFID</title>
    <!-- Bootstrap core CSS -->
    <link href="/required.css" rel="stylesheet">
    <script src="/required.js" type="text/javascript"></script>
    <script src="/auth/set.js" type="text/javascript"></script>
  </head>
  <body onload="start()">
    <div class="container">
      <div class="header clearfix">
        <nav>
          <ul class="nav nav-pills pull-right">
            <li role="presentation"><a href="/auth/log.htm">Logs</a> </li>
            <li role="presentation"><a href="/auth/users.htm">Users</a> </li>
            <li role="presentation" class="active"><a href="/auth/settings.htm">Settings</a> </li>
          </ul>
        </nav>
        <h3 class="text-muted">ESP RFID</h3>
      </div>
      <div class="jumbotron">
        <div class="alert alert-warning"><strong>Warning!</strong> Settings will take effect when the device is rebooted. 
        </div>
        <div id="loading-img" class="text-center">
                            <img src="/load.gif">
                  <h5>Please wait while fetching data... <span id="loadpages"></span></h5>
        </div>
                <div>
          <button data-toggle="collapse" data-target="#status" id="refstat" onclick="refreshStats()" class="btn btn-link btn-sm">Show Device Status</button>
        </div>
        <div id="status" class="row collapse">
            <div class="col-sm-6">
              <div class="panel panel-default table-responsive">
                <table class="table table-hover table-striped">
                  <caption>Device</caption>
                  <tr>
                    <th>Chip ID</th>
                    <td id="chip"></td>
                  </tr>
                  <tr>
                    <th>CPU Clock</th>
                    <td id="cpu"></td>
                  </tr>
                                    <tr>
                    <th>Uptime</th>
                    <td id="uptime"></td>
                  </tr>
                  <tr>
                    <th>Free Heap</th>
                    <td>
                      <div class="progress" style="margin-bottom: 0 !important;">
                        <div id="heap" class="progress-bar progress-bar-primary" role="progressbar">
                          Progress
                        </div>
                      </div>
                    </td>
                  </tr>
                  <tr>
                    <th>Free Flash</th>
                    <td>
                      <div class='progress' style="margin-bottom: 0 !important;">
                        <div id="flash" class="progress-bar progress-bar-primary" role="progressbar">
                          Progress
                        </div>
                      </div>
                    </td>
                  </tr>
                  				<tr>
 					<th>Free SPIFFS</th>
 					<td>			
 					<div class='progress' style="margin-bottom: 0 !important;">
 						<div id="spiffs" class="progress-bar progress-bar-primary" role="progressbar">
 							Progress
 						</div>
 					</div></td>
 			</tr>
                </table>
              </div>
            </div>
            <div class="col-sm-6">
              <div class="panel panel-default table-responsive">
                <table class="table table-hover table-striped">
                  <caption>Network</caption>
                  <tr>
                    <th>SSID</th>
                    <td id="ssidstat"></td>
                  </tr>
                  <tr>
                    <th>IP</th>
                    <td id="ip"></td>
                  </tr>
                  <tr>
                    <th>Gateway</th>
                    <td id="gate"></td>
                  </tr>
                  <tr>
                    <th>Mask</th>
                    <td id="mask"></td>
                  </tr>
                  <tr>
                    <th>DNS</th>
                    <td id="dns"></td>
                  </tr>
                  <tr>
                    <th>MAC</th>
                    <td id="mac"></td>
                  </tr>
                </table>
              </div>
            </div>
          </div>
            <br>
        <div class="row">
          <div class="col-sm-6">
            <legend>Wi-Fi Settings</legend>
            <h6 class="text-muted">Type your Wi-Fi Network's SSID or Scan for nerby Wireless Networks to join.</h6>
            <div class="row form-group">
              <label data-toggle="tooltip" title="You can run your ESP in AP Mode or Client Mode. In client mode you will need to connect to an existing Wi-Fi network, in AP Mode ESP creates a Wi-Fi network itself." class="col-xs-3">Wi-Fi Mode</label>
              <div class="col-xs-9">
                <form>
                  <label class="radio-inline"><input type="radio" value="1" name="wmode" id="wmodeap" onclick="handleAP();">Access Point </label>
                  <label class="radio-inline"><input type="radio" value="0" name="wmode" id="wmodesta" onclick="handleSTA();" checked>Client</label>
                </form>
              </div>
            </div>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Wi-Fi Network's Name" class="col-xs-3">SSID</label> 
              <span class="col-xs-6 col-md-5">
                <input class="form-control input-sm" id="inputtohide" type="text" name="ap_ssid">
                <select class="form-control input-sm" style="display:none;" id="ssid" onchange="listBSSID();"></select>
              </span>
              <span class="col-xs-3">
                <button id="scanb" type="button" class="btn btn-primary btn-xs" onclick="scanWifi()">Scan</button>
              </span>
            </div>
            <div class="row form-group" style="display:none" id="hideBSSID">
              <label data-toggle="tooltip" title="If you have two Wi-Fi networks with the same SSID you may want to choose the specific one by BSSID" class="col-xs-3">BSSID</label> 
              <span class="col-xs-9 col-md-5">
              <input id="wifibssid" class="form-control input-sm" type="text" name="ap_bssid">
              </span> 
            </div>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Wi-Fi Password" class="col-xs-3">Password</label> 
              <span class="col-xs-9 col-md-5">
              <input id="wifipass" class="form-control input-sm" type="text" name="ap_passwd">
              </span> 
            </div>
            <br>
            <div class="row form-group">
              <label data-toggle="tooltip" title="Disable WiFi after a time interval, to conserve power in battery powered units. WiFi is re-enabled when an admin card is scanned, or device is rebooted. Remember that you need to have enough time to upload your configuration, so don't set it too low." class="col-xs-3">Auto Disable Wifi</label> 
              <span class="col-xs-9 col-md-5">
                <select class="form-control" id="disable_wifi_after_seconds" name="auto_restart_interval_seconds">
                  <option value='0'>Always on</option>
                  <option value='180'>3 min</option>
                  <option value='240'>4 min</option>
                  <option value='300'>5 min</option>
{'fraction_non_alphanumeric': 0.15107250954072904, 'fraction_numerical': 0.005592841163310962, 'mean_word_length': 1.4883759004584152, 'pattern_counts': {'":': 0, '<': 441, '<?xml version=': 0, '>': 441, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '732673', 'n_tokens_mistral': 4483, 'n_tokens_neox': 4146, 'n_words': 991}