<commit_before>- var census = ( proposal.votes
-   && proposal.votes.map(function(v) { return v.author }) )
-   || proposal.vote.census

- var positives = ( proposal.upvotes
-   && proposal.upvotes.map(function(v) { return v.author }) )
-   || proposal.vote.positive

- var negatives = ( proposal.downvotes
-   && proposal.downvotes.map(function(v) { return v.author }) )
-   || proposal.vote.negative

- var neutrals = ( proposal.abstentions
-   && proposal.abstentions.map(function(v) { return v.author }) )
-   || []

- var voted = locals.citizen && ~census.indexOf(citizen.id)

.proposal-options
  .vote-box
    .meta-data
      - if(~positives.indexOf(citizen.id))
        p.alert.alert-success(style="margin:0;") #{t('You voted Yea')}.
      - else if (~negatives.indexOf(citizen.id))
        p.alert.alert-danger(style="margin:0;") #{t('You voted Nay')}.
      - else if (~neutrals.indexOf(citizen.id))
        p.alert.alert-info(style="margin:0;") #{t('You abstained from voting')}.
      a.meta-item.change-vote(href="#", class= voted ? '' : 'hide')
        small #{t('I want to change my vote')}.

    .vote-options(class= voted ? 'hide' : '')
      h5= t('Vote')
      .direct-vote
        a.vote-option.vote-yes(href="#", data-proposal=proposal.id)
          i.flaticon.solid.thumbs-up-1
          span= t('Yea')
        a.vote-option.vote-abstain(href="#", data-proposal=proposal.id)
          i.flaticon.solid.pause
          span= t('Abstain')
        a.vote-option.vote-no(href="#", data-proposal=proposal.id)
          i.flaticon.solid.thumbs-up-1<commit_msg>[proposal-options] - Hide for unlogged users. Close #56<commit_after>- var census = ( proposal.votes
-   && proposal.votes.map(function(v) { return v.author }) )
-   || proposal.vote.census

- var positives = ( proposal.upvotes
-   && proposal.upvotes.map(function(v) { return v.author }) )
-   || proposal.vote.positive

- var negatives = ( proposal.downvotes
-   && proposal.downvotes.map(function(v) { return v.author }) )
-   || proposal.vote.negative

- var neutrals = ( proposal.abstentions
-   && proposal.abstentions.map(function(v) { return v.author }) )
-   || []

- var voted = locals.citizen && ~census.indexOf(citizen.id)
- var showOptions = citizen.id && !voted

.proposal-options(class= showOptions ? '' : 'hide')
  .vote-box
    .meta-data
      - if(~positives.indexOf(citizen.id))
        p.alert.alert-success(style="margin:0;") #{t('You voted Yea')}.
      - else if (~negatives.indexOf(citizen.id))
        p.alert.alert-danger(style="margin:0;") #{t('You voted Nay')}.
      - else if (~neutrals.indexOf(citizen.id))
        p.alert.alert-info(style="margin:0;") #{t('You abstained from voting')}.
      a.meta-item.change-vote(href="#", class= voted ? '' : 'hide')
        small #{t('I want to change my vote')}.

    .vote-options(class= voted ? 'hide' : '')
      h5= t('Vote')
      .direct-vote
        a.vote-option.vote-yes(href="#", data-proposal=proposal.id)
          i.flaticon.solid.thumbs-up-1
          span= t('Yea')
        a.vote-option.vote-abstain(href="#", data-proposal=proposal.id)
          i.flaticon.solid.pause
          span= t('Abstain')
        a.vote-option.vote-no(href="#", data-proposal=proposal.id)
          i.flaticon.solid.thumbs-up-1
{'fraction_non_alphanumeric': 0.18629550321199143, 'fraction_numerical': 0.004282655246252677, 'mean_word_length': 2.824561403508772, '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': '648588', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1167, 'n_words': 181}