<commit_before><template>
  <datatable id="dues-admin-table"
    data-url="/api/v1/dues/transactions/pending?include=user"
    data-path="dues_transactions"
    data-link="/admin/dues/"
    :columns="tableConfig">
  </datatable>
</template>

<script>
export default {
  data() {
    return {
      tableConfig: [
        { title: 'ID', data: 'id' },
        { title: 'Timestamp', data: 'updated_at.date' },
        { title: 'Name', data: 'user.name' },
        { title: 'Dues Package', data: 'package.name' },
      ],<commit_msg>feat: add teams column to PendingDuesTable<commit_after><template>
  <datatable id="dues-admin-table"
    data-url="/api/v1/dues/transactions/pending?include=user,user.teams"
    data-path="dues_transactions"
    data-link="/admin/dues/"
    :columns="tableConfig">
  </datatable>
</template>

<script>
export default {
  data() {
    return {
      tableConfig: [
        { title: 'ID', data: 'id' },
        { title: 'Timestamp', data: 'updated_at.date' },
        { title: 'Name', data: 'user.name' },
        { title: 'Teams', data: function(row) {
            const teams = row.user.teams.map(function(team) {
              return team.name;
            });
            if (teams.length === 0) {
              return "N/A";
            }
            return teams.join(", ");
          }},
        { title: 'Dues Package', data: 'package.name' },
      ],
{'fraction_non_alphanumeric': 0.17494600431965443, 'fraction_numerical': 0.0021598272138228943, 'mean_word_length': 2.3737864077669903, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4152009', 'n_tokens_mistral': 459, 'n_tokens_neox': 457, 'n_words': 85}