<commit_before>extends layout

block content
  section.row.info
    aside
      h1 profile
      dl
        dt NAME
        dd #{user}
        dt SCORE
        dd
          table
            thead
              tr
                th WIN
                th DRAW
                th LOSE
            tbody
              tr
                td #{myScore.win}
                td #{myScore.draw}
                td #{myScore.lose}
      a.btn(href="/match/random") Random Matching
    article
      if (flash.msg)
        p.msg= flash.msg
      if (flash.alert)
        p.alert= flash.alert
      table
        thead
          tr
            th File Name
            th Primary
        tbody
          -for(var i = 0; i < myCodes.length; i++)
            tr
              td #{myCodes[i]}
              td
                a(href="/code/primary?codeName=" + myCodes[i])
                  button.btn Set Primary
                a(href="/code/delete?codeName=" + myCodes[i])
                  button.btn DELETE
                button.btn
                  span.icon.save
                  span &nbsp;Save
          tr
            td(colspan="3")
              form(action="/code", method="POST", enctype="multipart/form-data")
                input(name="code", type="file", required, accept="text/javascript")
                input.btn(type="submit", value="+UPLOAD") <commit_msg>File save implemented<commit_after>extends layout

block content
  section.row.info
    aside
      h1 profile
      dl
        dt NAME
        dd #{user}
        dt SCORE
        dd
          table
            thead
              tr
                th WIN
                th DRAW
                th LOSE
            tbody
              tr
                td #{myScore.win}
                td #{myScore.draw}
                td #{myScore.lose}
      a.btn(href="/match/random") Random Matching
    article
      if (flash.msg)
        p.msg= flash.msg
      if (flash.alert)
        p.alert= flash.alert
      table
        thead
          tr
            th File Name
            th Primary
        tbody
          -for(var i = 0; i < myCodes.length; i++)
            tr
              td #{myCodes[i]}
              td
                a(href="/code/primary?codeName=" + myCodes[i])
                  button.btn Set Primary
                a(href="/code/delete?codeName=" + myCodes[i])
                  button.btn DELETE
                a(href="/code/"+ user +"/" + myCodes[i])
                  button.btn
                    span.icon.save
                    span &nbsp;Save
          tr
            td(colspan="3")
              form(action="/code", method="POST", enctype="multipart/form-data")
                input(name="code", type="file", required, accept="text/javascript")
                input.btn(type="submit", value="+UPLOAD") 
{'fraction_non_alphanumeric': 0.0998933522929257, 'fraction_numerical': 0.002132954141485958, 'mean_word_length': 1.0706401766004414, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7439944', 'n_tokens_mistral': 784, 'n_tokens_neox': 747, 'n_words': 181}