<commit_before><div class="juvia-topic-vote">
  <div class="row-fluid">
  	<div class="span2">
	  <votetopic class="juvia-vote-to-topic" id="vote_for_like">
        <i class="icon-thumbs-up" ></i>
        <span> Like</span>
      </votetopic>
    </div>
    <div class="span2">
	  <votetopic class="juvia-vote-to-topic" id="vote_for_unlike" >
        <i class="icon-thumbs-down" ></i>
        <span> Unlike</span>
      </votetopic>
    </div>
    <div class="span6">
    	<p><span id="liked_pages"><%=@topic.vote_counts %></span></p>
    </div>
  </div>
</div>

<% if @topic.liked?(@username, @user_email) %>
<!-- // TO DO NEED TO WRITE A FUNCTION THAT WILL WORK IN BOTH PLACES, BELOW AND BASE.JS.ERB -->
  <script type="text/javascript">
    var $like = Juvia.$('#vote_for_like')
    $like.addClass('votes-up-active');
    var $like_text = $like.find("span");
    $like_text.html(" Liked");
  </script>
<% elsif @topic.unliked?(@username, @user_email)%>
  <script type="text/javascript">
    var $unlike = Juvia.$('#vote_for_unlike');
    $unlike.addClass('votes-down-active');
    var $unlike_text = $unlike.find("span");
    $unlike_text.html(" Unliked");
  </script>
<% end %><commit_msg>minor UI improvement<commit_after><div class="juvia-topic-vote">
  <div class="row-fluid">
  	<div class="span2">
	  <votetopic class="juvia-vote-to-topic" id="vote_for_like">
        <i class="icon-thumbs-up" ></i>
        <span> Like</span>
      </votetopic>
    </div>
    <div class="span2">
	  <votetopic class="juvia-vote-to-topic" id="vote_for_unlike" >
        <i class="icon-thumbs-down" ></i>
        <span> Unlike</span>
      </votetopic>
    </div>
    <div class="span8">
    	<span id="liked_pages"><%=@topic.vote_counts %></span>
    </div>
  </div>
</div>

<% if @topic.liked?(@username, @user_email) %>
<!-- // TO DO NEED TO WRITE A FUNCTION THAT WILL WORK IN BOTH PLACES, BELOW AND BASE.JS.ERB -->
  <script type="text/javascript">
    var $like = Juvia.$('#vote_for_like')
    $like.addClass('votes-up-active');
    var $like_text = $like.find("span");
    $like_text.html(" Liked");
  </script>
<% elsif @topic.unliked?(@username, @user_email)%>
  <script type="text/javascript">
    var $unlike = Juvia.$('#vote_for_unlike');
    $unlike.addClass('votes-down-active');
    var $unlike_text = $unlike.find("span");
    $unlike_text.html(" Unliked");
  </script>
<% end %>
{'fraction_non_alphanumeric': 0.2082984073763621, 'fraction_numerical': 0.002514668901927913, 'mean_word_length': 3.3878676470588234, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '2969337', 'n_tokens_mistral': 953, 'n_tokens_neox': 912, 'n_words': 168}