<commit_before>extend /layout
include /mixins/progress_bar

block content
  .row.match-top
    .col-md-4
      div
        h4
          if player.profile.avatar
            span
              a(href=player.profile.profileurl || "#", target="_blank")
                img(style="display:inline-block; margin-right:5px;" src='#{player.profile.avatar}').img-thumbnail
          span(style="word-wrap:break-word;") #{player.profile.name || player.profile.personaname || player.profile.account_id}
          if player.profile.loccountrycode && constants.countries[player.profile.loccountrycode]
            span: abbr(title=constants.countries[player.profile.loccountrycode].name.common): span.flag-icon(style="margin:5px;" class="flag-icon-"+player.profile.loccountrycode.toLowerCase())
          if player.profile.last_login
            span: img.user(src=constants.ICON_PATH, title="This user is registered!")
          div(style="margin-top:1%;")
            i.flaticon-1.small-cheese(style="display:inline-block")
            small(style="margin-left:.5em") x #{' '} #{player.profile.cheese || 0}
    .col-md-4
      h4
            span.text-info.rating
              span: abbr(title="Solo MMR")
                i.fa.fa-fw.fa-user
              small(style="margin-left:.5em") #{player.solo_competitive_rank || "N/A"}
            //-
              span.text-info.rating
                span: abbr(title="Highest Solo MMR")
                  i.fa.fa-fw.fa-star
                small(style="margin-left:.5em") #{Math.max(Math.max.apply(null, player.ratings.map(function(r){return r.solo_competitive_rank;})),0) || "N/A"}

            span.text-warning.rating
              span: abbr(title="Party MMR")
                i.fa.fa-fw.fa-users
              small(style="margin-left:.5em") #{player.competitive_rank || "N/A"}
            //-
              span.text-warning.rating
                span: abbr(title="Highest Party MMR")
                  i.fa.fa-fw.fa-star
                small(style="margin-left:.5em") #{Math.max(Math.max.apply(null, player.ratings.map(function(r){return r.competitive_rank;})),0) || "N/A"}

            span.rating
              span: abbr(title="MMR estimate based on available data from peer players. This is an average of the visible MMR of the recent matches played by this user.")
                i.fa.fa-fw.fa-question-circle
              small#estimate(style="margin-left:.5em;display:inline-block;")
                if player.mmr_estimate && player.mmr_estimate.estimate && player.mmr_estimate.stdDev
                  span: abbr(title="Standard deviation: " + player.mmr_estimate.stdDev.toFixed(2) + "<br>Matches: " + player.mmr_estimate.n) #{player.mmr_estimate.estimate}
                else
                  ="N/A"
    .col-md-2
      h4
        span.text-primary
          //i.fa.fa-trophy
          small(style="margin-left:.5em")
            span.text-success(style="margin:0 4px;") #{(player.win)}
            span -
            span.text-danger(style="margin:0 4px;") #{player.lose}
            if (player.win+player.lose)
              span (#{(player.win/(player.win+player.lose)*100).toFixed(2)}%)
            abbr(title="Refresh Match History: If this player has recently changed their match privacy setting, this will queue a scan to find the missing matches.")
              button.btn.btn-sm.btn-default(id="refreshButton" onClick="refreshMatchHistory()")
                i.fa.fa-refresh
    .col-md-2
      h4<commit_msg>fix button alignment<commit_after>extend /layout
include /mixins/progress_bar

block content
  .row.match-top
    .col-md-4
      div
        h4
          if player.profile.avatar
            span
              a(href=player.profile.profileurl || "#", target="_blank")
                img(style="display:inline-block; margin-right:5px;" src='#{player.profile.avatar}').img-thumbnail
          span(style="word-wrap:break-word;") #{player.profile.name || player.profile.personaname || player.profile.account_id}
          if player.profile.loccountrycode && constants.countries[player.profile.loccountrycode]
            span: abbr(title=constants.countries[player.profile.loccountrycode].name.common): span.flag-icon(style="margin:5px;" class="flag-icon-"+player.profile.loccountrycode.toLowerCase())
          if player.profile.last_login
            span: img.user(src=constants.ICON_PATH, title="This user is registered!")
          div(style="margin-top:1%;")
            i.flaticon-1.small-cheese(style="display:inline-block")
            small(style="margin-left:.5em") x #{' '} #{player.profile.cheese || 0}
    .col-md-3
      h4
            span.text-info.rating
              span: abbr(title="Solo MMR")
                i.fa.fa-fw.fa-user
              small(style="margin-left:.5em") #{player.solo_competitive_rank || "N/A"}
            //-
              span.text-info.rating
                span: abbr(title="Highest Solo MMR")
                  i.fa.fa-fw.fa-star
                small(style="margin-left:.5em") #{Math.max(Math.max.apply(null, player.ratings.map(function(r){return r.solo_competitive_rank;})),0) || "N/A"}

            span.text-warning.rating
              span: abbr(title="Party MMR")
                i.fa.fa-fw.fa-users
              small(style="margin-left:.5em") #{player.competitive_rank || "N/A"}
            //-
              span.text-warning.rating
                span: abbr(title="Highest Party MMR")
                  i.fa.fa-fw.fa-star
                small(style="margin-left:.5em") #{Math.max(Math.max.apply(null, player.ratings.map(function(r){return r.competitive_rank;})),0) || "N/A"}

            span.rating
              span: abbr(title="MMR estimate based on available data from peer players. This is an average of the visible MMR of the recent matches played by this user.")
                i.fa.fa-fw.fa-question-circle
              small#estimate(style="margin-left:.5em;display:inline-block;")
                if player.mmr_estimate && player.mmr_estimate.estimate && player.mmr_estimate.stdDev
                  span: abbr(title="Standard deviation: " + player.mmr_estimate.stdDev.toFixed(2) + "<br>Matches: " + player.mmr_estimate.n) #{player.mmr_estimate.estimate}
                else
                  ="N/A"
    .col-md-3
      h4
        span.text-primary
          //i.fa.fa-trophy
          small(style="margin-left:.5em;margin-right:.5em;")
            span.text-success(style="margin:0 4px;") #{(player.win)}
            span -
            span.text-danger(style="margin:0 4px;") #{player.lose}
            if (player.win+player.lose)
              span (#{(player.win/(player.win+player.lose)*100).toFixed(2)}%)
          abbr(title="Refresh Match History: If this player has recently changed their match privacy setting, this will queue a scan to find the missing matches.")
            button.btn.btn-sm.btn-default(id="refreshButton" onClick="refreshMatchHistory()")
              i.fa.fa-refresh
    .col-md-2
      h4
{'fraction_non_alphanumeric': 0.14468024089475193, 'fraction_numerical': 0.009033553197591053, 'mean_word_length': 2.1980742778541953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '482972', 'n_tokens_mistral': 2203, 'n_tokens_neox': 2124, 'n_words': 339}