<commit_before>- if current_user != @recipe.user
  = link_to 'Fork', fork_recipe_path(@recipe), :method => :post, :class => "btn"

- if !current_user.try(:following?, @recipe.user) && current_user != @recipe.user
  = link_to "Follow #{@recipe.user.username}", user_follow_path(@recipe.user), :class => "btn", :method => :post
- elsif current_user != @recipe.user
  = link_to "Unfollow #{@recipe.user.username}", user_unfollow_path(@recipe.user), :class => "btn", :method => :post

- if @recipe.revision > 1
  = link_to "Revisions - #{@revision_count}", recipe_revisions_path(@recipe), :class => "btn", :id => "revisions_button"

- if current_user == @recipe.user
  = link_to 'Edit', edit_recipe_path(@recipe), :class => "btn"
  = link_to 'Delete', recipe_path(@recipe), :confirm => 'Are you sure you want to delete this recipe?', :method => :delete, :class => "btn btn-danger"

%div.btn
  = link_to "Forks - #{@forks}", forks_path(@recipe)

%div.btn
  = link_to "↑ - #{@upvotes}", recipe_upvote_path(@recipe)

%div.btn
  = link_to "↓ - #{@upvotes}", recipe_downvote_path(@recipe)

%hr
%p
  %h3= "#{link_to(@recipe.user.username, user_path(@recipe.user))} / #{@recipe.title}".html_safe
  - if @forked_from_recipe
    - recipe_url = "/#{@forked_from_recipe.user.username}/#{@forked_from_recipe.slug}"
    - link_text  = @forked_from_recipe.slug
    - user_url = "/#{@forked_from_recipe.user.username}"<commit_msg>show upvotes and downvotes<commit_after>- if current_user != @recipe.user
  = link_to 'Fork', fork_recipe_path(@recipe), :method => :post, :class => "btn"

- if !current_user.try(:following?, @recipe.user) && current_user != @recipe.user
  = link_to "Follow #{@recipe.user.username}", user_follow_path(@recipe.user), :class => "btn", :method => :post
- elsif current_user != @recipe.user
  = link_to "Unfollow #{@recipe.user.username}", user_unfollow_path(@recipe.user), :class => "btn", :method => :post

- if @recipe.revision > 1
  = link_to "Revisions - #{@revision_count}", recipe_revisions_path(@recipe), :class => "btn", :id => "revisions_button"

- if current_user == @recipe.user
  = link_to 'Edit', edit_recipe_path(@recipe), :class => "btn"
  = link_to 'Delete', recipe_path(@recipe), :confirm => 'Are you sure you want to delete this recipe?', :method => :delete, :class => "btn btn-danger"

= link_to "Forks - #{@forks}", forks_path(@recipe), :class => 'btn'
= link_to "↑ - #{@upvotes}", recipe_upvote_path(@recipe), :class => 'btn'
= link_to "↓ - #{@downvotes}", recipe_downvote_path(@recipe), :class => 'btn'

%hr
%p
  %h3= "#{link_to(@recipe.user.username, user_path(@recipe.user))} / #{@recipe.title}".html_safe
  - if @forked_from_recipe
    - recipe_url = "/#{@forked_from_recipe.user.username}/#{@forked_from_recipe.slug}"
    - link_text  = @forked_from_recipe.slug
    - user_url = "/#{@forked_from_recipe.user.username}"
{'fraction_non_alphanumeric': 0.19558359621451105, 'fraction_numerical': 0.0014020329477742728, 'mean_word_length': 5.2178649237472765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 32, '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': '2468229', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1091, 'n_words': 207}