<commit_before>- if (!user)
  p.sign-in: a.scary.button( href: '/login' ) Sign in to vote
- else
  form.vote(
    action: vote ? '/votes/' + vote.id : '/teams/' + team.id + '/votes',
    method: 'POST'
  )
    - if (vote)
      input( type: 'hidden', name: '_method', value: 'PUT' )
    input( type: 'hidden', name: 'audit[remoteAddress]', value: req.socket.remoteAddress )
    input( type: 'hidden', name: 'audit[remotePort]', value: req.socket.remotePort )
    input( type: 'hidden', name: 'audit[userAgent]', value: req.header('user-agent') )
    input( type: 'hidden', name: 'audit[referrer]', value: req.header('referrer') )
    input( type: 'hidden', name: 'audit[accept]', value: req.header('accept') )
    - each f in [ 'requestAt', 'renderAt', 'hoverAt', 'responseAt' ]
      input( type: 'hidden', name: f )
    .person
      img.avatar( src: avatar_url(user, 40) )
      = user.login
      .role= user.role
      .edit: a.disabled.edit( href: '#' ) Edit your vote
    - if (!user || user.voter)
      input.heart( type: 'submit', value: '♥' )
    - else if (user.contestant || user.judge)
      table
        tr
          - each d in Vote.dimensions
            th: label( for: d )= Vote.label(d)
        tr
          - each d in Vote.dimensions
            td: input( name: d, id: d, type: 'range', min: 0, max: 5,
                       value: vote ? vote[d] : 0 )
        tr: td( colspan: 4 )
          .comment.disabled!= markdown(vote.comment)
          textarea.enabled( name: 'comment',
                    placeholder: 'Be awesome. Give some feedback.'
                  )= vote && vote.comment
          - if (vote)
            input.enabled( type: 'submit', value: 'Save' )
            | 
            a.enabled.cancel( href: '#' ) Cancel
          - else<commit_msg>don't break if you're logged in, but w/o a vote<commit_after>- if (!user)
  p.sign-in: a.scary.button( href: '/login' ) Sign in to vote
- else
  form.vote(
    action: vote ? '/votes/' + vote.id : '/teams/' + team.id + '/votes',
    method: 'POST'
  )
    - if (vote)
      input( type: 'hidden', name: '_method', value: 'PUT' )
    input( type: 'hidden', name: 'audit[remoteAddress]', value: req.socket.remoteAddress )
    input( type: 'hidden', name: 'audit[remotePort]', value: req.socket.remotePort )
    input( type: 'hidden', name: 'audit[userAgent]', value: req.header('user-agent') )
    input( type: 'hidden', name: 'audit[referrer]', value: req.header('referrer') )
    input( type: 'hidden', name: 'audit[accept]', value: req.header('accept') )
    - each f in [ 'requestAt', 'renderAt', 'hoverAt', 'responseAt' ]
      input( type: 'hidden', name: f )
    .person
      img.avatar( src: avatar_url(user, 40) )
      = user.login
      .role= user.role
      - if (vote)
        .edit: a.disabled.edit( href: '#' ) Edit your vote
    - if (!user || user.voter)
      input.heart( type: 'submit', value: '♥' )
    - else if (user.contestant || user.judge)
      table
        tr
          - each d in Vote.dimensions
            th: label( for: d )= Vote.label(d)
        tr
          - each d in Vote.dimensions
            td: input( name: d, id: d, type: 'range', min: 0, max: 5,
                       value: vote ? vote[d] : 0 )
        tr: td( colspan: 4 )
          textarea.enabled( name: 'comment',
                    placeholder: 'Be awesome. Give some feedback.'
                  )= vote && vote.comment
          - if (vote)
            .comment.disabled!= markdown(vote.comment)
            input.enabled( type: 'submit', value: 'Save' )
            | 
            a.enabled.cancel( href: '#' ) Cancel
          - else
{'fraction_non_alphanumeric': 0.16556473829201102, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 2.1167381974248927, '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': '4515485', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1181, 'n_words': 338}