<commit_before><!DOCTYPE html>
      <head>
            <title>RPi Web Server</title>
            <!-- Latest compiled and minified CSS -->
            <link rel="stylesheet"
                  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
                  integrity="<KEY>"
                  crossorigin="anonymous">
            <!-- Optional theme -->
            <link rel="stylesheet"
                  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
                  integrity="<KEY>"
                  crossorigin="anonymous">
            <!-- Latest compiled and minified JavaScript -->
            <script
                  src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
                  integrity="<KEY>"
                  crossorigin="anonymous"></script>
      </head>

      <body>
            <nav class="navbar navbar-default">
                  <div class="container-fluid">
                        <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">Robot Art</a>
                        </div>

                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                              <li><a href="/">Painting Control</a></li>
                              <li><a href="/pincontrol">Pin Control</a></li>
                        </ul>
                        </div>
                  </div>
            </nav>
            {% for pin in pins %}
                  <h2>{{ pins[pin].name }}
                  {% if pins[pin].state == true %}
                  is currently <strong>on</strong></h2>
                  <div class="row">
                        <div class="col-md-2">
                        <a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a>
                        </div>
                  </div>
                  {% else %}
                  is currently <strong>off</strong></h2>
                  <div class="row">
                        <div class="col-md-2">
                        <a href="/{{pin}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a>
                        </div>
                  </div>
            {% endif %}
            {% endfor %}
      </body>
</html><commit_msg>converted pin control to a table<commit_after><!DOCTYPE html>
      <head>
            <title>RPi Web Server</title>
            <!-- Latest compiled and minified CSS -->
            <link rel="stylesheet"
                  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
                  integrity="<KEY>"
                  crossorigin="anonymous">
            <!-- Optional theme -->
            <link rel="stylesheet"
                  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
                  integrity="<KEY>"
                  crossorigin="anonymous">
            <!-- Latest compiled and minified JavaScript -->
            <script
                  src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
                  integrity="<KEY>"
                  crossorigin="anonymous"></script>
      </head>

      <body>
            <nav class="navbar navbar-default">
                  <div class="container-fluid">
                        <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">Robot Art</a>
                        </div>

                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                              <li><a href="/">Painting Control</a></li>
                              <li><a href="/pincontrol">Pin Control</a></li>
                        </ul>
                        </div>
                  </div>
            </nav>
            <table class="table">
                  <thead>
                        <tr>
                              <th>Pin Number</th>
                              <th>Status</th>
                              <th>Control</th>
                        </tr>
                  </thead>
                  <tbody>
                  {% for pin in pins %}
                  <tr>
                        <td>{{ pins[pin].name }}</td>
                        {% if pins[pin].state == true %}
                              <td><strong>on</strong></td>
                              <td><a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></td>
                        {% else %}
                              <td><strong>off</strong></td>
                              <td><a href="/{{pin}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a></td>
                        {% endif %}
                  </tr>
                  {% endfor %}
                  </tbody>
            </table>
      </body>
</html>
{'fraction_non_alphanumeric': 0.1468984321745058, 'fraction_numerical': 0.004601226993865031, 'mean_word_length': 1.0930813124108416, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 152, 'https://': 6, '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': '2806326', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1399, 'n_words': 258}