<commit_before>extends ./layout.jade

mixin row(domain, items)
    tr
      td #{domain}
      each item, key in items
        td #{item.mean}

block content
    h2 Domains
    table
      tr
        th Domain
        th blocked
        th dns
        th connect
        th send
        th wait
        th receive
        th total
        th requests 
      each statsForDomain, domainUrl in domainStats  
        tr
          td #{domainUrl}
          td #{statsForDomain.blocked ? statsForDomain.blocked.median : 0}
          td #{statsForDomain.dns ? statsForDomain.dns.median : 0}
          td #{statsForDomain.connect ? statsForDomain.connect.median: 0}
          td #{statsForDomain.send ? statsForDomain.send.median : 0} 
          td #{statsForDomain.wait ? statsForDomain.wait.median : 0}
          td #{statsForDomain.receive ? statsForDomain.receive.median : 0}
          td #{statsForDomain.total.median}<commit_msg>sort domain table<commit_after>extends ./layout.jade

mixin row(domain, items)
    tr
      td #{domain}
      each item, key in items
        td #{item.mean}

block content
    h2 Domains
    table(data-sortable, id='domains')
      thead
        tr
          th Domain
          th blocked
          th dns
          th connect
          th send
          th wait
          th receive
          th total
          th requests 
      each statsForDomain, domainUrl in domainStats  
        tr
          td #{domainUrl}
          td #{statsForDomain.blocked ? statsForDomain.blocked.median : 0}
          td #{statsForDomain.dns ? statsForDomain.dns.median : 0}
          td #{statsForDomain.connect ? statsForDomain.connect.median: 0}
          td #{statsForDomain.send ? statsForDomain.send.median : 0} 
          td #{statsForDomain.wait ? statsForDomain.wait.median : 0}
          td #{statsForDomain.receive ? statsForDomain.receive.median : 0}
          td #{statsForDomain.total.median}
{'fraction_non_alphanumeric': 0.08068714211348256, 'fraction_numerical': 0.007287870900572618, 'mean_word_length': 1.8858858858858858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '353972', 'n_tokens_mistral': 578, 'n_tokens_neox': 538, 'n_words': 149}