<commit_before><div class="container">

  <hgroup>
    <h1 class="billing-header">@{{org.info.name}}</h1>
  </hgroup>

    <div class="tab-nav-container">
      <div class="nav-container nav-4-container">
        <ul class="nav nav-4 clear" role="navigation">
          <li><a href="/org/{{org.info.name}}">{{pluralize org.packages.count "package" true}}</a></li>
          {{#if perms.isAtLeastMember}}
          <li class="current"><a href="/org/{{org.info.name}}/teams">{{pluralize org.teams.count "team" true}}</a></li>
            <li><a href="/org/{{org.info.name}}/members">{{pluralize org.users.count "member" true}}</a></li>
          {{/if}}
          {{#if perms.isSuperAdmin}}
            <li><button type="button" id="billing" data-stripe-id="{{customer_id}}">payment info</button></li>
          {{/if}}
        </ul>
      </div>
    </div>


    {{#if perms.isAtLeastMember}}
    <div id="teams">
      <div class="org-info-header-container">
        <h2>{{pluralize org.teams.count "team" true}}</h2>
        {{#if perms.isAtLeastTeamAdmin}}
          <a class="button" href="/org/{{org.info.name}}/team/create">create a Team</a>
        {{/if}}
      </div>
      {{#if org.teams.items}}
      <table class="org-table org-teams">
        <thead>
          <tr>
            <th>team name</th>
            <th>members</th>
            <th>packages</th>
            <th>created</th>
            {{#if perms.isAtLeastTeamAdmin}}
              <th><span class="a11y-only">actions</span></th>
            {{/if}}
          </tr>
        </thead>
        <tbody>
        {{#each org.teams.items}}
          <tr>
            <td>
              <a href="/org/{{../org.info.name}}/team/{{name}}">{{name}}</a>
              {{#if description}}
              <span class="description">{{description}}</span>
              {{/if}}
            </td>
            <td>
              {{#if users.count}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}#members">{{users.count}}</a>
              {{else}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}/add-user">+ invite users</a>
              {{/if}}
            </td>
            <td>
              {{#if packages.count}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}#packages">{{packages.count}}</a>
              {{else}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}/add-package">+ add packages</a>
              {{/if}}
            </td>
            <td class="created" data-date="{{created}}" data-date-format="%d-%b-%y">{{created}}</td>
            {{#if perms.isAtLeastTeamAdmin}}
              <td>
                <form method="POST" id="org-team-delete-{{@index}}" action="/org/{{../org.info.name}}/team">
                  {{#with ../../this}}
                  {{> form_security }}
                  {{/with}}
                  <input type="hidden" name="team-name" value="{{name}}" />
                  <input type="hidden" name="org-scope" value="{{../org.info.name}}" />
                  <input type="hidden" name="update-type" value="delete-team" />
                  <button type="submit" class="delete-user icon-x"><span class="a11y-only">Delete Team {{name}}</span></button>
                </form>
              </td>
            {{/if}}
          </tr><commit_msg>Don't show link to add packages unless you can.<commit_after><div class="container">

  <hgroup>
    <h1 class="billing-header">@{{org.info.name}}</h1>
  </hgroup>

    <div class="tab-nav-container">
      <div class="nav-container nav-4-container">
        <ul class="nav nav-4 clear" role="navigation">
          <li><a href="/org/{{org.info.name}}">{{pluralize org.packages.count "package" true}}</a></li>
          {{#if perms.isAtLeastMember}}
          <li class="current"><a href="/org/{{org.info.name}}/teams">{{pluralize org.teams.count "team" true}}</a></li>
            <li><a href="/org/{{org.info.name}}/members">{{pluralize org.users.count "member" true}}</a></li>
          {{/if}}
          {{#if perms.isSuperAdmin}}
            <li><button type="button" id="billing" data-stripe-id="{{customer_id}}">payment info</button></li>
          {{/if}}
        </ul>
      </div>
    </div>


    {{#if perms.isAtLeastMember}}
    <div id="teams">
      <div class="org-info-header-container">
        <h2>{{pluralize org.teams.count "team" true}}</h2>
        {{#if perms.isAtLeastTeamAdmin}}
          <a class="button" href="/org/{{org.info.name}}/team/create">create a Team</a>
        {{/if}}
      </div>
      {{#if org.teams.items}}
      <table class="org-table org-teams">
        <thead>
          <tr>
            <th>team name</th>
            <th>members</th>
            <th>packages</th>
            <th>created</th>
            {{#if perms.isAtLeastTeamAdmin}}
              <th><span class="a11y-only">actions</span></th>
            {{/if}}
          </tr>
        </thead>
        <tbody>
        {{#each org.teams.items}}
          <tr>
            <td>
              <a href="/org/{{../org.info.name}}/team/{{name}}">{{name}}</a>
              {{#if description}}
              <span class="description">{{description}}</span>
              {{/if}}
            </td>
            <td>
              {{#if users.count}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}#members">{{users.count}}</a>
              {{else}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}/add-user">+ invite users</a>
              {{/if}}
            </td>
            <td>
              {{#if packages.count}}
              <a href="/org/{{../../org.info.name}}/team/{{name}}#packages">{{packages.count}}</a>
              {{else}}
                {{#if perms.isAtLeastTeamAdmin}}
                  <a href="/org/{{../../org.info.name}}/team/{{name}}/add-package">+ add packages</a>
                {{else}}
                  None
                {{/if}}
              {{/if}}
            </td>
            <td class="created" data-date="{{created}}" data-date-format="%d-%b-%y">{{created}}</td>
            {{#if perms.isAtLeastTeamAdmin}}
              <td>
                <form method="POST" id="org-team-delete-{{@index}}" action="/org/{{../org.info.name}}/team">
                  {{#with ../../this}}
                  {{> form_security }}
                  {{/with}}
                  <input type="hidden" name="team-name" value="{{name}}" />
                  <input type="hidden" name="org-scope" value="{{../org.info.name}}" />
                  <input type="hidden" name="update-type" value="delete-team" />
                  <button type="submit" class="delete-user icon-x"><span class="a11y-only">Delete Team {{name}}</span></button>
                </form>
              </td>
            {{/if}}
          </tr>
{'fraction_non_alphanumeric': 0.22544544249742307, 'fraction_numerical': 0.0029450743631276688, 'mean_word_length': 1.700596421471173, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 175, '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': '2230826', 'n_tokens_mistral': 2192, 'n_tokens_neox': 2103, 'n_words': 330}