<commit_before>    <section>
      <div class="container">{{
          for (let id in projects) {
            let project = projects[id];
        }}
        <div class="panel panel-default panel-project">
          <div class="panel-heading">
            <img class="project-icon" src={{= project.icon in json}} alt="{{= project.name in xmlattr}} Logo">
            <h4 class="project-title">{{= project.name in html}}</h4>
            <div class="project-actions">
              <button data-action="update" data-project={{= id in json}} class="btn btn-default">Update</button>
              <form action="/api/projects/{{= id in xmlattr}}/pull" class="ajax-form has-feedback is-submit" method="post">
                <button class="btn btn-primary" type="submit">Pull</button>
              </form>
            </div>
          </div>
          <div class="panel-body">
            <div class="row">
              <form id="{{= id in xmlattr}}-host" data-action="projectdb" class="col-sm-4 ajax-form has-feedback has-select">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Host</label>
                <select class="form-control" data-submit-on="blur" name="/docker/host">{{
                  for (let hostname in hosts) {
                }}
                  <option value={{= hostname in json}} {{if {{hostname === project.docker.host}} then selected}}>{{= hostname in html}}</option>{{
                  }
                }}
                </select>
              </form>
              <form id="{{= id in xmlattr}}-image" data-action="projectdb" class="col-sm-4 ajax-form has-feedback">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Image</label>
                <input class="form-control" data-submit-on="blur" name="/docker/image" value={{= project.docker.image in json}}>
              </form>
              <form id="{{= id in xmlattr}}-path" data-action="projectdb" class="col-sm-4 ajax-form has-feedback">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Path</label>
                <input class="form-control" data-submit-on="blur" name="/docker/path" value={{= project.docker.path in json}}>
              </form>
            </div>
            <form id="{{= id in xmlattr}}-update" data-action="projectdb" class="ajax-form has-feedback">
              <input type="hidden" name="id" value={{= id in json}}>
              <label class="control-label">Update</label>
              <textarea class="form-control" data-submit-on="blur" name="/docker/update" rows="5">{{= project.docker.update in html}}</textarea>
            </form>
            <label>Logs</label>
            <pre class="well well-sm project-logs">{{= project.docker.logs in html}}</pre>
          </div>
        </div>{{
          }
        }}
        <form id="newproject-form" class="ajax-form has-feedback panel panel-default panel-project">
          <div class="panel-heading">
            <h4 class="project-title">New Project</h4>
            <div class="project-actions">
              <input type="submit" class="btn btn-primary" value="Add">
            </div>
          </div>
          <div class="panel-body">
            <div class="row"><commit_msg>Allow changing project description from admin page (#285)<commit_after>    <section>
      <div class="container">{{
          for (let id in projects) {
            let project = projects[id];
        }}
        <div class="panel panel-default panel-project">
          <div class="panel-heading">
            <img class="project-icon" src={{= project.icon in json}} alt="{{= project.name in xmlattr}} Logo">
            <h4 class="project-title">{{= project.name in html}}</h4>
            <div class="project-actions">
              <button data-action="update" data-project={{= id in json}} class="btn btn-default">Update</button>
              <form action="/api/projects/{{= id in xmlattr}}/pull" class="ajax-form has-feedback is-submit" method="post">
                <button class="btn btn-primary" type="submit">Pull</button>
              </form>
            </div>
          </div>
          <div class="panel-body">
            <div class="row">
              <form id="{{= id in xmlattr}}-host" data-action="projectdb" class="col-sm-4 ajax-form has-feedback has-select">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Host</label>
                <select class="form-control" data-submit-on="blur" name="/docker/host">{{
                  for (let hostname in hosts) {
                }}
                  <option value={{= hostname in json}} {{if {{hostname === project.docker.host}} then selected}}>{{= hostname in html}}</option>{{
                  }
                }}
                </select>
              </form>
              <form id="{{= id in xmlattr}}-image" data-action="projectdb" class="col-sm-4 ajax-form has-feedback">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Image</label>
                <input class="form-control" data-submit-on="blur" name="/docker/image" value={{= project.docker.image in json}}>
              </form>
              <form id="{{= id in xmlattr}}-path" data-action="projectdb" class="col-sm-4 ajax-form has-feedback">
                <input type="hidden" name="id" value={{= id in json}}>
                <label class="control-label">Path</label>
                <input class="form-control" data-submit-on="blur" name="/docker/path" value={{= project.docker.path in json}}>
              </form>
            </div>
            <form id="{{= id in xmlattr}}-description" data-action="projectdb" class="ajax-form has-feedback">
              <input type="hidden" name="id" value={{= id in json}}>
              <label class="control-label">Description</label>
              <input class="form-control" data-submit-on="blur" name="/description" value={{= project.description in json}}>
            </form>
            <form id="{{= id in xmlattr}}-update" data-action="projectdb" class="ajax-form has-feedback">
              <input type="hidden" name="id" value={{= id in json}}>
              <label class="control-label">Update</label>
              <textarea class="form-control" data-submit-on="blur" name="/docker/update" rows="5">{{= project.docker.update in html}}</textarea>
            </form>
            <label>Logs</label>
            <pre class="well well-sm project-logs">{{= project.docker.logs in html}}</pre>
          </div>
        </div>{{
          }
        }}
        <form id="newproject-form" class="ajax-form has-feedback panel panel-default panel-project">
          <div class="panel-heading">
            <h4 class="project-title">New Project</h4>
            <div class="project-actions">
              <input type="submit" class="btn btn-primary" value="Add">
            </div>
          </div>
          <div class="panel-body">
            <div class="row">
{'fraction_non_alphanumeric': 0.17208064967796136, 'fraction_numerical': 0.002660319238308597, 'mean_word_length': 2.0630360205831906, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, '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': '1337409', 'n_tokens_mistral': 2036, 'n_tokens_neox': 1944, 'n_words': 478}