<commit_before><fieldset>
<legend>
  <h3>Review Page</h3>
</legend>
<br/>
<ul>
  <li>Restaurant Name:&ensp;
    <span class="restName">
      <b><a href = "/restaurants/<%= @current_restaurant.id %>"><%= @current_restaurant.name %></a></b>
    </span>
  </li>
  <br/>
  <li>Comments:&ensp;
    "<span class="reviewBody"><%= @review.content %></span>"
  </li>
  <br/>
  <li>Cuisine(s):&ensp;
    <span class="reviewCuisines">
      <%= @review.cuisines.map{|cuisine| cuisine.name}.join(', ').to_s + "." %>
    </span>
  </li>
  <br/>
  <li>Rating:&ensp;
    <span class="reviewRating">
      <% if @review.rating == "Excellent" %>
        <b><%= link_to "#{@review.rating}", reviews_path(rating: "Excellent") %></b>
      <% elsif @review.rating == "Good" %>
        <b><%= @review.rating %></b>
      <% elsif @review.rating == "Average" %>
        <b><%= @review.rating %></b>
      <% else %>
        <b><%= @review.rating %></b>
      <% end %>
    </span>
  </li>
  <br/>
  <li>Date Visited:&ensp;
    <span class="reviewDateVisited">
      <%= @review.date_visited.strftime('%-m/%-d/%Y') %>
    </span>
  </li>
  <br/>
  <li>Date Reviewed:&ensp;
    <span class="reviewUpdatedAt">
      <%= @review.updated_at.strftime('%-m/%-d/%Y') %>
    </span>
  </li>
  <br/>
<% if current_user != @review.user %> <!--show only another's username-->
  <li>Reviewed by:&ensp;
    <span class="userEmail">
      <b><%= @review.user.email %></b>
    </span>
  </li>
  <br/>
<% end %>
<button class="js-next" data-id="<%= @review.id %>">
  Next Review...
</button>
</ul>
</fieldset>
<br/>
<fieldset>
<legend>
  <h3>More</h3>
</legend>
<br/>
<li>For more info about this restaurant, 'click' to web search for:
  <span class = "search">
    <a href = 'http://www.<%= "#{@review.restaurant_name}" %>.com' data-confirm="Are you sure you want to leave my website?">
    <%= @review.restaurant_name %></a>
  </span>
</li>
<br/>
<li>
  <%= link_to "Edit Review", edit_user_review_path(@review.user, @review) if @review.user %>
</li>
<br/>
<li>
  <%= link_to "Load More Reviews", restaurant_reviews_path(@review.restaurant), :class => "load_reviews" %>
  for <b><%= @current_restaurant.name %></b>.
</li>
<div class="reviews">
  <ul></ul>
</div>
</fieldset>
<br/>

<script type="text/javascript" charset="utf-8">
$(function () {
  $(".js-next").on("click", function() {
    var nextId = parseInt($(".js-next").attr("data-id")) + 1;
    $.get("/reviews/" + nextId + ".json", function(data) {<commit_msg>Correct link_to Load Reviews path @current_restaurant<commit_after><fieldset>
<legend>
  <h3>Review Page</h3>
</legend>
<br/>
<ul>
  <li>Restaurant Name:&ensp;
    <span class="restName">
      <b><a href = "/restaurants/<%= @current_restaurant.id %>"><%= @current_restaurant.name %></a></b>
    </span>
  </li>
  <br/>
  <li>Comments:&ensp;
    "<span class="reviewBody"><%= @review.content %></span>"
  </li>
  <br/>
  <li>Cuisine(s):&ensp;
    <span class="reviewCuisines">
      <%= @review.cuisines.map{|cuisine| cuisine.name}.join(', ').to_s + "." %>
    </span>
  </li>
  <br/>
  <li>Rating:&ensp;
    <span class="reviewRating">
      <% if @review.rating == "Excellent" %>
        <b><%= link_to "#{@review.rating}", reviews_path(rating: "Excellent") %></b>
      <% elsif @review.rating == "Good" %>
        <b><%= @review.rating %></b>
      <% elsif @review.rating == "Average" %>
        <b><%= @review.rating %></b>
      <% else %>
        <b><%= @review.rating %></b>
      <% end %>
    </span>
  </li>
  <br/>
  <li>Date Visited:&ensp;
    <span class="reviewDateVisited">
      <%= @review.date_visited.strftime('%-m/%-d/%Y') %>
    </span>
  </li>
  <br/>
  <li>Date Reviewed:&ensp;
    <span class="reviewUpdatedAt">
      <%= @review.updated_at.strftime('%-m/%-d/%Y') %>
    </span>
  </li>
  <br/>
<% if current_user != @review.user %> <!--show only another's username-->
  <li>Reviewed by:&ensp;
    <span class="userEmail">
      <b><%= @review.user.email %></b>
    </span>
  </li>
  <br/>
<% end %>
<button class="js-next" data-id="<%= @review.id %>">
  Next Review...
</button>
</ul>
</fieldset>
<br/>
<fieldset>
<legend>
  <h3>More</h3>
</legend>
<br/>
<li>For more info about this restaurant, 'click' to web search for:
  <span class = "search">
    <a href = 'http://www.<%= "#{@review.restaurant_name}" %>.com' data-confirm="Are you sure you want to leave my website?">
    <%= @review.restaurant_name %></a>
  </span>
</li>
<br/>
<li>
  <%= link_to "Edit Review", edit_user_review_path(@review.user, @review) if @review.user %>
</li>
<br/>
<li>
  <%= link_to "Load More Reviews", restaurant_reviews_path(@current_restaurant), :class => "load_reviews" %>
  for <b><%= @current_restaurant.name %></b>.
</li>
<div class="reviews">
  <ul></ul>
</div>
</fieldset>
<br/>

<script type="text/javascript" charset="utf-8">
$(function () {
  $(".js-next").on("click", function() {
    var nextId = parseInt($(".js-next").attr("data-id")) + 1;
    $.get("/reviews/" + nextId + ".json", function(data) {
{'fraction_non_alphanumeric': 0.2524465747952866, 'fraction_numerical': 0.002396644697423607, 'mean_word_length': 3.313522825150732, 'pattern_counts': {'":': 0, '<': 229, '<?xml version=': 0, '>': 231, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '497445', 'n_tokens_mistral': 2068, 'n_tokens_neox': 1925, 'n_words': 391}