<commit_before>extends layout

block content
  section#mainpage
    .container
      if !loggedIn
        .col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
          .alert.alert-danger.messagebox.center
            strong Authorization Required
            p You must be <a href="/login">logged in</a> to view this page.
      else
        .col-lg-6.col-md-6
          h3 My Channels
          if deleteChannelError
            .alert.alert-danger.center.messagebox
              strong Channel Deletion Failed
              p= deleteChannelError
          if channels.length == 0
            .center
              strong You haven't registered any channels
          else
            table.table.table-bordered
              thead
                tr
                  th Channel
              tbody
                for c in channels
                  tr
                    th
                      form.form-inline.pull-right(action="/account/channels", method="post", onsubmit="return confirm('Are you sure you want to delete #{c.name}?  This cannot be undone');")
                        input(type="hidden", name="action", value="delete_channel")
                        input(type="hidden", name="name", value="#{c.name}")
                        button.btn.btn-xs.btn-danger(type="submit") Delete
                          span.glyphicon.glyphicon-trash
                      a(href="/r/#{c.name}", style="margin-left: 5px")= c.name
        .col-lg-6.col-md-6<commit_msg>Updated account channels page look<commit_after>extends layout

block content
  section#mainpage
    .container
      if !loggedIn
        .col-lg-6.col-lg-offset-3.col-md-6.col-md-offset-3
          .alert.alert-danger.messagebox.center
            strong Authorization Required
            p You must be <a href="/login">logged in</a> to view this page.
      else
        .col-lg-6.col-md-6
          h3 My Channels
          if deleteChannelError
            .alert.alert-danger.center.messagebox
              strong Channel Deletion Failed
              p= deleteChannelError
          if channels.length == 0
            .center
              strong You haven't registered any channels
          else
            table.table.table-striped
              thead
                tr
                  th Channel
              tbody
                for c in channels
                  tr
                    th
                      form.form-inline.pull-right(action="/account/channels", method="post", onsubmit="return confirm('Are you sure you want to delete #{c.name}?  This cannot be undone');")
                        input(type="hidden", name="action", value="delete_channel")
                        input(type="hidden", name="name", value="#{c.name}")
                        button.btn.btn-xs.btn-danger(type="submit") Delete&nbsp;
                          span.glyphicon.glyphicon-trash
                      a(href="/r/#{c.name}", style="margin-left: 5px")= c.name
        .col-lg-6.col-md-6
{'fraction_non_alphanumeric': 0.10247823174815807, 'fraction_numerical': 0.007367716008037508, 'mean_word_length': 1.4383673469387754, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1662988', 'n_tokens_mistral': 808, 'n_tokens_neox': 763, 'n_words': 185}