<commit_before>.stat-display
  .stat-display__stat
    .stat-display__value= presenter.courses.count
    %small= t("#{presenter.course_string_prefix}.courses")
  .stat-display__stat.tooltip-trigger
    .stat-display__value= presenter.user_count
    %small= t("#{presenter.course_string_prefix}.students")
    .tooltip.dark
      %h4
        = number_to_human presenter.trained_percent
        \%
      %p= t("users.up_to_date_with_training")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.word_count
    %small= t("metrics.word_count")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:view_sum)
    %small= t("metrics.view_count_description")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:article_count)
    %small= t("metrics.articles_edited")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:new_article_count)
    %small= t("metrics.articles_created")
  .stat-display__stat.tooltip-trigger
    .stat-display__value= number_to_human presenter.courses.sum(:upload_count)
    %small= t("metrics.upload_count")
    .tooltip.dark
      %h4= number_to_human presenter.uploads_in_use_count
      %p= t("metrics.uploads_in_use_count", count: presenter.uploads_in_use_count)
      %h4= number_to_human presenter.upload_usage_count
      %p= t("metrics.upload_usages_count", count: presenter.upload_usage_count)
<commit_msg>Add same feature to the campaigns page<commit_after>.stat-display
  .stat-display__stat
    .stat-display__value= presenter.courses.count
    %small= t("#{presenter.course_string_prefix}.courses")
  .stat-display__stat.tooltip-trigger
    .stat-display__value
      = presenter.user_count
      %img{:src => "/assets/images/info.svg", :alt => "tooltip default logo"}
    %small= t("#{presenter.course_string_prefix}.students")
    .tooltip.dark
      %h4
        = number_to_human presenter.trained_percent
        \%
      %p= t("users.up_to_date_with_training")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.word_count
    %small= t("metrics.word_count")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:view_sum)
    %small= t("metrics.view_count_description")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:article_count)
    %small= t("metrics.articles_edited")
  .stat-display__stat
    .stat-display__value= number_to_human presenter.courses.sum(:new_article_count)
    %small= t("metrics.articles_created")
  .stat-display__stat.tooltip-trigger
    .stat-display__value
      = number_to_human presenter.courses.sum(:upload_count)
      %img{:src => "/assets/images/info.svg", :alt => "tooltip default logo"}
    %small= t("metrics.upload_count")
    .tooltip.dark
      %h4= number_to_human presenter.uploads_in_use_count
      %p= t("metrics.uploads_in_use_count", count: presenter.uploads_in_use_count)
      %h4= number_to_human presenter.upload_usage_count
      %p= t("metrics.upload_usages_count", count: presenter.upload_usage_count)

{'fraction_non_alphanumeric': 0.11870388193776067, 'fraction_numerical': 0.0019249278152069298, 'mean_word_length': 4.366609294320138, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1998681', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1040, 'n_words': 142}