<commit_before><div class="container">
  <div class="row">
    <div class="col-md-offset-3 col-md-6 page-header">
      <h1>Configuration</h1>
      <a class='btn btn-default' href='{{urlfor "InstallController.Index" }}'>
        <span class="glyphicon glyphicon-refresh"></span>
        Refresh
      </a>
      <a class='btn btn-danger pull-right' href='{{urlfor "InstallController.DropDatabase" }}'>
        <span class="glyphicon glyphicon-remove"></span>
        Drop Database
      </a>
    </div>
  </div>
  <div class="row">
    <div class="col-md-offset-3 col-md-6">
      <h4>
        Root User
        <a href="{{urlfor "InstallController.CreateRootUser" }}" class="btn btn-xs btn-default pull-right">
          Recreate Root User
        </a>
      </h4>
      <div class="list-group">
        {{if .hasRootUser }}
        <div class="list-group-item list-group-item-success">
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{.rootUser.Name}}
        </div>
        {{else if .hasRootUserError}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.rootUserError.Message}}
        </div>
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          No Root User
        </div>
        {{end}}
      </div>
      <h4>
        Permissions
        <a href="{{urlfor "InstallController.CreatePermissions" }}" class="btn btn-xs btn-default pull-right">
          Recreate Permissions
        </a>
      </h4>
      <div class="list-group">
        {{if compare .groupsError nil}}
        {{range .permissionRequirements}}
        <div class="list-group-item {{if .Exists}}list-group-item-success{{else}}list-group-item-danger{{end}}">
          {{if .Exists}}
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{else}}
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{end}}
          {{.Name}}
        </div>
        {{end}}
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.groupsError.Message}}
        </div>
        {{end}}
      </div>
      <h4>
        Root User Permissions
        <a href="{{urlfor "InstallController.AssignPermissions" }}" class="btn btn-xs btn-default pull-right">
          Reassign Permissions
        </a>
      </h4>
      <div class="list-group">
        {{if compare .groupsError nil}}
        {{range .permissionRequirements}}
        <div class="list-group-item {{if .Assigned}}list-group-item-success{{else}}list-group-item-danger{{end}}">
          {{if .Assigned}}
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{else}}
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{end}}
          {{.Name}}
        </div>
        {{end}}
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.groupsError.Message}}
        </div>
        {{end}}
      </div>
    </div>
  </div>
</div>

<commit_msg>Confirm the drop database command.<commit_after><div class="container">
  <div class="row">
    <div class="col-md-offset-3 col-md-6 page-header">
      <h1>Configuration</h1>
      <a class='btn btn-default' href='{{urlfor "InstallController.Index" }}'>
        <span class="glyphicon glyphicon-refresh"></span>
        Refresh
      </a>
      <a href="#"
        class="btn btn-warning pull-right"
        tabindex="0"
        data-toggle="popover"
        data-trigger="focus"
        data-placement="left"
        data-html="true"
        data-content="<a class='btn btn-xs btn-danger' href='{{urlfor "InstallController.DropDatabase" }}'>Yes</a> <a class='btn btn-xs btn-default' href='#'>No</a>">
        <span class="glyphicon glyphicon-remove"></span>
        Drop Database
      </a>
    </div>
  </div>
  <div class="row">
    <div class="col-md-offset-3 col-md-6">
      <h4>
        Root User
        <a href="{{urlfor "InstallController.CreateRootUser" }}" class="btn btn-xs btn-default pull-right">
          Recreate Root User
        </a>
      </h4>
      <div class="list-group">
        {{if .hasRootUser }}
        <div class="list-group-item list-group-item-success">
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{.rootUser.Name}}
        </div>
        {{else if .hasRootUserError}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.rootUserError.Message}}
        </div>
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          No Root User
        </div>
        {{end}}
      </div>
      <h4>
        Permissions
        <a href="{{urlfor "InstallController.CreatePermissions" }}" class="btn btn-xs btn-default pull-right">
          Recreate Permissions
        </a>
      </h4>
      <div class="list-group">
        {{if compare .groupsError nil}}
        {{range .permissionRequirements}}
        <div class="list-group-item {{if .Exists}}list-group-item-success{{else}}list-group-item-danger{{end}}">
          {{if .Exists}}
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{else}}
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{end}}
          {{.Name}}
        </div>
        {{end}}
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.groupsError.Message}}
        </div>
        {{end}}
      </div>
      <h4>
        Root User Permissions
        <a href="{{urlfor "InstallController.AssignPermissions" }}" class="btn btn-xs btn-default pull-right">
          Reassign Permissions
        </a>
      </h4>
      <div class="list-group">
        {{if compare .groupsError nil}}
        {{range .permissionRequirements}}
        <div class="list-group-item {{if .Assigned}}list-group-item-success{{else}}list-group-item-danger{{end}}">
          {{if .Assigned}}
          <span class="glyphicon glyphicon-ok-sign"></span>
          {{else}}
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{end}}
          {{.Name}}
        </div>
        {{end}}
        {{else}}
        <div class="list-group-item list-group-item-danger">
          <span class="glyphicon glyphicon-exclamation-sign"></span>
          {{.groupsError.Message}}
        </div>
        {{end}}
      </div>
    </div>
  </div>
</div>


{'fraction_non_alphanumeric': 0.17072455265473746, 'fraction_numerical': 0.0036667644470519214, 'mean_word_length': 2.11654478976234, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '4483813', 'n_tokens_mistral': 2121, 'n_tokens_neox': 2047, 'n_words': 404}