<commit_before><script id="droplettemplate" type="text/html">
  {{#droplets}}
  <div class="well">
    <div class="clearfix row">
      <div class="col-md-8">
        <h4>
          {{name}}
        </h4>
        <div>
          Using image <strong>{{image.name}}</strong> built from distribution <strong>{{image.distribution}}</strong> running kernel {{kernel.name}}
        </div>
        <div>
          Hosted in <strong>{{region.name}}</strong> using a <strong>{{disk}}GB</strong> SSD & <strong>{{memory}}MB</strong> of RAM
        </div>
        <div>
          Networks:<br>
          ipv4<br>
          {{#networks.v4}}
            <ol>
              <li><strong>{{ip_address}}</strong> which is <strong>{{type}}</strong></li>
            </ol>
          {{/networks.v4}}
          ipv6<br>
          {{#networks.v6}}
            <ol>
              <li><strong>{{ip_address}}</strong> which is <strong>{{type}}</strong></li>
            </ol>
          {{/networks.v6}}
        </div>
      </div>
      <div class="col-md-4">
        <dl class="dl-horizontal clearfix">
          <dt style="width: 120px;"><small>Locked</small></dt>
          <dd style="margin-left: 130px;"><small>{{locked}}</small></dd>
          <dt style="width: 120px;"><small>Status</small></dt>
          <dd style="margin-left: 130px;"><small>{{status}}</small></dd>
          <dt style="width: 120px;"><small>Snapshots</small></dt>
          <dd style="margin-left: 130px;"><small>{{snapshot_ids.length}}</small></dd>
          <dt style="width: 120px;"><small>Backups Enabled</small></dt>
          <dd style="margin-left: 130px;"><small>{{backupsEnabled}}</small></dd>
          {{#backupsEnabled}}
          <dt style="width: 120px;"><small>Backups</small></dt>
          <dd style="margin-left: 130px;"><small>{{backup_ids.length}}</small></dd>
          {{/backupsEnabled}}
        </dl>
      </div>
    </div>

    <p>
      <a href="https://api.digitalocean.com/v2/droplets/{{id}}" class="btn btn-danger dlt-droplet pull-left" data-remote="true" data-type="json" data-with-credentials="true" data-method="delete" data-confirm="Are you sure?">Delete Droplet</a>
      {{^locked}}
      <form action="https://api.digitalocean.com/v2/droplets/{{id}}/actions" method="post" data-remote="true" data-type="json" data-with-credentials="true" class="form-inline pull-right droplet-action" role="form">
          <select name="type" class="form-control" required>
            {{#isPoweredOn}}
            <option value="reboot">Reboot</option>
            <option value="shutdown">Shutdown</option>
            <option value="power_cycle">Force Power Off and On</option>
            <option value="power_off">Force Power Off</option>
            {{/isPoweredOn}}
            {{^isPoweredOn}}
            <option value="resize">Resize</option>
            <option value="power_on">Power On</option>
            {{/isPoweredOn}}
            <option value="password_reset">Reset Root Password</option>
            <option value="disable_backups">Disable Backups</option>

          </select>
          <br>
          {{^isPoweredOn}}
            <label for="size">If resizing droplet, pick the size you wish to resize to</label>
            <br>
            <select name="size" class="form-control"><commit_msg>added snapshot option<commit_after><script id="droplettemplate" type="text/html">
  {{#droplets}}
  <div class="well">
    <div class="clearfix row">
      <div class="col-md-8">
        <h4>
          {{name}}
        </h4>
        <div>
          Using image <strong>{{image.name}}</strong> built from distribution <strong>{{image.distribution}}</strong> running kernel {{kernel.name}}
        </div>
        <div>
          Hosted in <strong>{{region.name}}</strong> using a <strong>{{disk}}GB</strong> SSD & <strong>{{memory}}MB</strong> of RAM
        </div>
        <div>
          Networks:<br>
          ipv4<br>
          {{#networks.v4}}
            <ol>
              <li><strong>{{ip_address}}</strong> which is <strong>{{type}}</strong></li>
            </ol>
          {{/networks.v4}}
          ipv6<br>
          {{#networks.v6}}
            <ol>
              <li><strong>{{ip_address}}</strong> which is <strong>{{type}}</strong></li>
            </ol>
          {{/networks.v6}}
        </div>
      </div>
      <div class="col-md-4">
        <dl class="dl-horizontal clearfix">
          <dt style="width: 120px;"><small>Locked</small></dt>
          <dd style="margin-left: 130px;"><small>{{locked}}</small></dd>
          <dt style="width: 120px;"><small>Status</small></dt>
          <dd style="margin-left: 130px;"><small>{{status}}</small></dd>
          <dt style="width: 120px;"><small>Snapshots</small></dt>
          <dd style="margin-left: 130px;"><small>{{snapshot_ids.length}}</small></dd>
          <dt style="width: 120px;"><small>Backups Enabled</small></dt>
          <dd style="margin-left: 130px;"><small>{{backupsEnabled}}</small></dd>
          {{#backupsEnabled}}
          <dt style="width: 120px;"><small>Backups</small></dt>
          <dd style="margin-left: 130px;"><small>{{backup_ids.length}}</small></dd>
          {{/backupsEnabled}}
        </dl>
      </div>
    </div>

    <p>
      <a href="https://api.digitalocean.com/v2/droplets/{{id}}" class="btn btn-danger dlt-droplet pull-left" data-remote="true" data-type="json" data-with-credentials="true" data-method="delete" data-confirm="Are you sure?">Delete Droplet</a>
      {{^locked}}
      <form action="https://api.digitalocean.com/v2/droplets/{{id}}/actions" method="post" data-remote="true" data-type="json" data-with-credentials="true" class="form-inline pull-right droplet-action" role="form">
          <select name="type" class="form-control" required>
            {{#isPoweredOn}}
            <option value="reboot">Reboot</option>
            <option value="shutdown">Shutdown</option>
            <option value="power_cycle">Force Power Off and On</option>
            <option value="power_off">Force Power Off</option>
            {{/isPoweredOn}}
            {{^isPoweredOn}}
            <option value="power_on">Power On</option>
            <option value="resize">Resize</option>
            <option value="snapshot">Create Snapshot</option>
            {{/isPoweredOn}}
            <option value="password_reset">Reset Root Password</option>
            <option value="disable_backups">Disable Backups</option>

          </select>
          <br>
          {{^isPoweredOn}}
            <label for="size">If resizing droplet, pick the size you wish to resize to</label>
            <br>
            <select name="size" class="form-control">
{'fraction_non_alphanumeric': 0.19116321009918846, 'fraction_numerical': 0.012623985572587917, 'mean_word_length': 2.478829064296916, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 233, 'https://': 4, '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': '5769986', 'n_tokens_mistral': 2144, 'n_tokens_neox': 1988, 'n_words': 364}