<commit_before>@extends('layout')

@section('title', $candidate->name)

@section('content')
<div class="candidate">
  <div class="candidate__info">
    <article class="tile -alternate">
      <a class="wrapper" href="{{{ route('candidates.show', [$candidate->slug]) }}}">
        <div class="tile__meta">
          <h1 class="__title">{{{ $candidate->name }}}</h1>
        </div>
        <img alt="{{{ $candidate->name }}}" src="{{{ $candidate->present()->thumbnail }}}" src="" />
      </a>
    </article>

    @if($candidate->description)
      <p>{{{ $candidate->description }}}</p>
    @endif
  </div>

  <div class="candidate__actions">
    @if(Auth::user())
      @if (Auth::user()->canVote($candidate))
        <p class="messages -inline">Welcome back, {{ Auth::user()->first_name }}! Ready to vote again?</p>
        {{ Form::open(['route' => 'votes.store']) }}
        {{ Form::hidden('candidate_id', $candidate->id) }}
        {{ Form::submit('Count My Vote', ['class' => 'button -primary']) }}
        {{ Form::close() }}
      @else
        <p class="messages -inline">You've already voted in this category today! Check back tomorrow!</p>
      @endif
    @else
      <p class="messages -inline">{{ link_to_route('login', 'Sign in') }} to vote!</p>
    @endif

    @if(Auth::user() && Auth::user()->hasRole('admin') && $votes)
    <h4>Hey, beautiful administrator. This candidate has {{{$vote_count }}} {{{ str_plural('vote', $vote_count)}}}.</h4>
    <ul>
    @forelse ($votes as $vote)
      <li>{{ link_to_route('users.show', $vote->user->email, $vote->user->id) }}</li>
    @empty
      <li>No votes! :(</li>
    @endforelse
    </ul>
    @endif<commit_msg>Remove list of users who voted for candidate.<commit_after>@extends('layout')

@section('title', $candidate->name)

@section('content')
<div class="candidate">
  <div class="candidate__info">
    <article class="tile -alternate">
      <a class="wrapper" href="{{{ route('candidates.show', [$candidate->slug]) }}}">
        <div class="tile__meta">
          <h1 class="__title">{{{ $candidate->name }}}</h1>
        </div>
        <img alt="{{{ $candidate->name }}}" src="{{{ $candidate->present()->thumbnail }}}" src="" />
      </a>
    </article>

    @if($candidate->description)
      <p>{{{ $candidate->description }}}</p>
    @endif
  </div>

  <div class="candidate__actions">
    @if(Auth::user())
      @if (Auth::user()->canVote($candidate))
        <p class="messages -inline">Welcome back, {{ Auth::user()->first_name }}! Ready to vote again?</p>
        {{ Form::open(['route' => 'votes.store']) }}
        {{ Form::hidden('candidate_id', $candidate->id) }}
        {{ Form::submit('Count My Vote', ['class' => 'button -primary']) }}
        {{ Form::close() }}
      @else
        <p class="messages -inline">You've already voted in this category today! Check back tomorrow!</p>
      @endif
    @else
      <p class="messages -inline">{{ link_to_route('login', 'Sign in') }} to vote!</p>
    @endif

    @if(Auth::user() && Auth::user()->hasRole('admin') && $vote_count)
    <h4>Hey, beautiful administrator. This candidate has {{{$vote_count }}} {{{ str_plural('vote', $vote_count)}}}.</h4>
    @endif
{'fraction_non_alphanumeric': 0.23026315789473684, 'fraction_numerical': 0.002506265664160401, 'mean_word_length': 3.4532775453277544, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 87, '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': '3933986', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1047, 'n_words': 220}