<commit_before>- content_for :before_title, t('courses.campaign_articles', title: @campaign.title) + ' — '

= render 'nav'

.container
  %section.overview.container
    = render 'courses/header_stats', presenter: @presenter

.container
  %section#campaign-articles
    .section-header
      %h3
        = t('courses.articles_edited', title: @campaign.title)
      .sort-select
        %select.sorts{rel: 'campaign-articles'}
          %option{rel: 'asc', value: 'title'}
            = t("articles.title")
          %option{rel: 'desc', value: 'char_added'}
            = t("metrics.char_added")
          %option{rel: 'desc', value: 'views'}
            = t("metrics.view")
          %option{rel: 'asc', value: 'lang_project'}
            = t("articles.wiki")

    %table.table.table--hoverable.table--sortable
      %thead
        %tr
          %th.sort.sortable.asc{'data-default-order' => 'asc', 'data-sort' => 'title'}
            = t('articles.title')
            %span.sortable-indicator
          %th.sort.sortable{'data-default-order' => 'desc', 'data-sort' => 'char_added'}
            .tooltip-trigger
              = t('metrics.char_added')
              %span.sortable-indicator
              %span.tooltip-indicator
              .tooltip.dark
                %p= t('articles.character_doc')
          %th.sort.sortable{'data-default-order' => 'desc', 'data-sort' => 'views'}
            .tooltip-trigger
              = t('metrics.view')
              %span.sortable-indicator
              %span.tooltip-indicator
              .tooltip.dark
                %p= t('articles.view_doc')
          %th.sort.sortable{'data-sort' => 'lang_project'}
            = t('articles.wiki')
            %span.sortable-indicator

      - articles = @campaign.articles_courses.includes(article: :wiki).order('articles.title')

      %tbody.list
        - if articles.empty?<commit_msg>Order campaign articles by characters added, by default<commit_after>- content_for :before_title, t('courses.campaign_articles', title: @campaign.title) + ' — '

= render 'nav'

.container
  %section.overview.container
    = render 'courses/header_stats', presenter: @presenter

.container
  %section#campaign-articles
    .section-header
      %h3
        = t('courses.articles_edited', title: @campaign.title)
      .sort-select
        %select.sorts{rel: 'campaign-articles'}
          %option{rel: 'asc', value: 'title'}
            = t("articles.title")
          %option{rel: 'desc', value: 'char_added'}
            = t("metrics.char_added")
          %option{rel: 'desc', value: 'views'}
            = t("metrics.view")
          %option{rel: 'asc', value: 'lang_project'}
            = t("articles.wiki")

    %table.table.table--hoverable.table--sortable
      %thead
        %tr
          %th.sort.sortable.asc{'data-default-order' => 'asc', 'data-sort' => 'title'}
            = t('articles.title')
            %span.sortable-indicator
          %th.sort.sortable{'data-default-order' => 'desc', 'data-sort' => 'char_added'}
            .tooltip-trigger
              = t('metrics.char_added')
              %span.sortable-indicator
              %span.tooltip-indicator
              .tooltip.dark
                %p= t('articles.character_doc')
          %th.sort.sortable{'data-default-order' => 'desc', 'data-sort' => 'views'}
            .tooltip-trigger
              = t('metrics.view')
              %span.sortable-indicator
              %span.tooltip-indicator
              .tooltip.dark
                %p= t('articles.view_doc')
          %th.sort.sortable{'data-sort' => 'lang_project'}
            = t('articles.wiki')
            %span.sortable-indicator

      - articles = @campaign.articles_courses.includes(article: :wiki).order(character_sum: :desc)

      %tbody.list
        - if articles.empty?
{'fraction_non_alphanumeric': 0.15416885159937074, 'fraction_numerical': 0.0005243838489774515, 'mean_word_length': 2.0667202572347265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '1351884', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1129, 'n_words': 179}