<commit_before>div.row
  div.col-sm-12
    section.panel
      div.panel-body
        div.adv-table
          table.display.table.table-bordered.table-striped.dynamic-table id="dynamic-table"
            tbody
              tr
                td Contributions processed
                td = PayoutReport.total_amount
              tr
                td Piwik data (updated daily) last updated
                td = Rails.cache.fetch(Cache::PiwikDataJob::PIWIK_CACHE_LAST_UPDATED)
              tr
                td publishers.basicattentiontoken.org Global Alexa Rank
                td = Rails.cache.fetch(Cache::PiwikDataJob::SEO_INFO)&.select{|d| d["label"] == "Alexa Rank" }[0]["rank"]
              tr
                td Total # of verified publishers with channels
                td = sanitize Publisher.statistical_totals.map { |scope, amount| "#{scope}=#{amount}"}.join("<br/>").html_safe
              tr
                td Totals for verified channels
                td = sanitize Channel.statistical_totals.map { |channel_type, amount| "#{channel_type}=#{amount}"}.join("<br/>").html_safe

hr
- [Cache::PiwikDataJob::PIWIK_VISITS_SUMMARY, Cache::PiwikDataJob::PIWIK_EVENTS_CATEGORY, Cache::PiwikDataJob::PIWIK_DEVICES_DETECTION_TYPE, Cache::PiwikDataJob::PIWIK_DEVICES_DETECTION_BROWSER_VERSIONS].each do |statistic_key|
  = hidden_field_tag id=statistic_key, value=Rails.cache.fetch(statistic_key)

/ canvas id="piwikDevicesChart" width="400" height="100"<commit_msg>Fix loading of Visitor Stats page which was timing out due to long queries (#2325)<commit_after>div.row
  div.col-sm-12
    section.panel
      div.panel-body
        div.adv-table
          table.display.table.table-bordered.table-striped.dynamic-table id="dynamic-table"
            tbody
              tr
                td Contributions processed
                td Info removed. Please ask on #publishers for latest info
              tr
                td Piwik data (updated daily) last updated
                td = Rails.cache.fetch(Cache::PiwikDataJob::PIWIK_CACHE_LAST_UPDATED)
              tr
                td publishers.basicattentiontoken.org Global Alexa Rank
                td
                  - begin
                    = Rails.cache.fetch(Cache::PiwikDataJob::SEO_INFO)&.select{|d| d["label"] == "Alexa Rank" }[0]["rank"]
                  - rescue
                    = "N/A"
              tr
                td Total # of verified publishers with channels
                td = sanitize Publisher.statistical_totals.map { |scope, amount| "#{scope}=#{amount}"}.join("<br/>").html_safe
              tr
                td Totals for verified channels
                td = sanitize Channel.statistical_totals.map { |channel_type, amount| "#{channel_type}=#{amount}"}.join("<br/>").html_safe

hr
- [Cache::PiwikDataJob::PIWIK_VISITS_SUMMARY, Cache::PiwikDataJob::PIWIK_EVENTS_CATEGORY, Cache::PiwikDataJob::PIWIK_DEVICES_DETECTION_TYPE, Cache::PiwikDataJob::PIWIK_DEVICES_DETECTION_BROWSER_VERSIONS].each do |statistic_key|
  = hidden_field_tag id=statistic_key, value=Rails.cache.fetch(statistic_key)

/ canvas id="piwikDevicesChart" width="400" height="100"
{'fraction_non_alphanumeric': 0.10664556962025316, 'fraction_numerical': 0.006962025316455696, 'mean_word_length': 2.4546448087431694, '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': '4428293', 'n_tokens_mistral': 999, 'n_tokens_neox': 921, 'n_words': 176}