<commit_before><ul class="list-group" data-bind="foreach:messages">
    <li class="list-group-item" data-bind="text:message_display, css:category_css"></li>
</ul>
<loading-bar params="visible: loading"></loading-bar>
<div class="form-horizontal bs-component" role="form" action="" id="projectForm" method="POST" data-bind="visible:!loading()">
  <input id="inputGithubRepoId" name="github_repo_id" value="{{ project.github_repo_id or '' }}" type="hidden">
  <div class="form-group">
    <label class="col-sm-2 control-label">Repo type</label>
    <div class="col-sm-10">
      <div class="btn-group form-group" data-toggle="buttons" data-bind="radio: currentTab">
          <label class="btn btn-default">
              <input type="radio" name="currentTab" value="github" />
              GitHub
          </label>
          <label class="btn btn-default">
              <input type="radio" name="currentTab" value="manual" />
              Manual
          </label>
      </div>
    </div>
  </div>
  <div data-bind="visible: currentTab() === 'github'">
    <div class="form-group">
      <label for="inputName" class="col-sm-2 control-label">Settings from</label>
      <p class="col-sm-10 form-control-static" data-bind="visible: !isNew()">{{ project.github_repo_id }}</p>
      <div class="col-sm-10" data-bind="visible: isNew">
        <github-repos-list params="
          trigReload: trigGithubReload,
          action: githubAction,
          columnSize: 5,
          reload: githubDefault
        "></github-repos-list>
      </div>
    </div>
  </div>
  <div data-bind="visible: currentTab() === 'manual'">
    <div class="form-group">
      <label for="inputRepo" class="col-sm-2 control-label">Git Repository</label>
      <div class="col-sm-10">
        <input required class="form-control" id="inputRepo" name="repo" placeholder="https://your.repo.url" data-bind="value:project().repo">
      </div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputSlug" class="col-sm-2 control-label">Slug</label>
    <div class="col-sm-10">
      <div data-bind="visible:isNew">
        <input required class="form-control" id="inputSlug" name="slug" placeholder="Slug" data-bind="value:project().slug">
        <span class="help-block">Must only contain lowercase letters, numbers, and characters <code>_</code>, <code>-</code>, or <code>.</code></span>
      </div>
      <div data-bind="visible:!isNew()">
        <p class="form-control-static" data-bind="text:project().slug"></p>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputName" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-10">
      <input required class="form-control" id="inputName" name="name" placeholder="Name" data-bind="value:project().name">
    </div>
  </div>
  <div class="form-group">
    <label for="inputGithubSecret" class="col-sm-2 control-label">GitHub Webhook Secret</label>
    <div class="col-sm-10">
      <input class="form-control" id="inputGithubSecret" name="github_secret" placeholder="*****">
    </div>
  </div>
  <div class="form-group">
    <label for="inputHipchatApiToken" class="col-sm-2 control-label">HipChat API Token</label>
    <div class="col-sm-10">
      <input class="form-control" type="password" id="inputHipchatApiToken" name="hipchat_api_token" placeholder="*****", data-bind="value:project().hipchat_api_token">
    </div>
  </div>
  <div class="form-group">
    <label for="inputHipchatRoom" class="col-sm-2 control-label">HipChat Room</label>
    <div class="col-sm-10">
      <input class="form-control" id="inputHipchatRoom" name="hipchat_room" data-bind="value:project().hipchat_room">
    </div>
  </div>
</div>
<commit_msg>Hide github tab when disabled<commit_after><ul class="list-group" data-bind="foreach:messages">
    <li class="list-group-item" data-bind="text:message_display, css:category_css"></li>
</ul>
<loading-bar params="visible: loading"></loading-bar>
<div class="form-horizontal bs-component" role="form" action="" id="projectForm" method="POST" data-bind="visible:!loading()">
  <input id="inputGithubRepoId" name="github_repo_id" value="{{ project.github_repo_id or '' }}" type="hidden">
  <div class="form-group">
    <label class="col-sm-2 control-label">Repo type</label>
    <div class="col-sm-10">
      <div class="btn-group form-group" data-toggle="buttons" data-bind="radio: currentTab">
          <!-- ko if: githubEnabled -->
          <label class="btn btn-default">
              <input type="radio" name="currentTab" value="github" />
              GitHub
          </label>
          <!-- /ko -->
          <label class="btn btn-default">
              <input type="radio" name="currentTab" value="manual" />
              Manual
          </label>
      </div>
    </div>
  </div>
  <div data-bind="visible: currentTab() === 'github'">
    <div class="form-group">
      <label for="inputName" class="col-sm-2 control-label">Settings from</label>
      <p class="col-sm-10 form-control-static" data-bind="visible: !isNew()">{{ project.github_repo_id }}</p>
      <div class="col-sm-10" data-bind="visible: isNew">
        <github-repos-list params="
          trigReload: trigGithubReload,
          action: githubAction,
          columnSize: 5,
          reload: githubDefault
        "></github-repos-list>
      </div>
    </div>
  </div>
  <div data-bind="visible: currentTab() === 'manual'">
    <div class="form-group">
      <label for="inputRepo" class="col-sm-2 control-label">Git Repository</label>
      <div class="col-sm-10">
        <input required class="form-control" id="inputRepo" name="repo" placeholder="https://your.repo.url" data-bind="value:project().repo">
      </div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputSlug" class="col-sm-2 control-label">Slug</label>
    <div class="col-sm-10">
      <div data-bind="visible:isNew">
        <input required class="form-control" id="inputSlug" name="slug" placeholder="Slug" data-bind="value:project().slug">
        <span class="help-block">Must only contain lowercase letters, numbers, and characters <code>_</code>, <code>-</code>, or <code>.</code></span>
      </div>
      <div data-bind="visible:!isNew()">
        <p class="form-control-static" data-bind="text:project().slug"></p>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputName" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-10">
      <input required class="form-control" id="inputName" name="name" placeholder="Name" data-bind="value:project().name">
    </div>
  </div>
  <div class="form-group">
    <label for="inputGithubSecret" class="col-sm-2 control-label">GitHub Webhook Secret</label>
    <div class="col-sm-10">
      <input class="form-control" id="inputGithubSecret" name="github_secret" placeholder="*****">
    </div>
  </div>
  <div class="form-group">
    <label for="inputHipchatApiToken" class="col-sm-2 control-label">HipChat API Token</label>
    <div class="col-sm-10">
      <input class="form-control" type="password" id="inputHipchatApiToken" name="hipchat_api_token" placeholder="*****", data-bind="value:project().hipchat_api_token">
    </div>
  </div>
  <div class="form-group">
    <label for="inputHipchatRoom" class="col-sm-2 control-label">HipChat Room</label>
    <div class="col-sm-10">
      <input class="form-control" id="inputHipchatRoom" name="hipchat_room" data-bind="value:project().hipchat_room">
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.19341947515652058, 'fraction_numerical': 0.007193286266151592, 'mean_word_length': 3.583638583638584, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, 'https://': 2, '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': '3945193', 'n_tokens_mistral': 2486, 'n_tokens_neox': 2435, 'n_words': 466}