<commit_before>module Spree
  class VotesController < Spree::StoreController
    def vote
      @vote = PollVote.new
      @vote.poll_answer_id = params[:poll_answer_id]
      @vote.user_id = current_user.try(:id)
      @vote.ip_address = request.remote_ip

      if @vote.save
        session[:vote_id] = @vote.id
        flash[:notice] = I18n.t(:thanks_for_voting)
      else
binding.pry
        flash[:error] = I18n.t(:problem_voting)
      end
      redirect_to(:back) 
    end
  end
end<commit_msg>removes binding.pry<commit_after>module Spree
  class VotesController < Spree::StoreController
    def vote
      @vote = PollVote.new
      @vote.poll_answer_id = params[:poll_answer_id]
      @vote.user_id = current_user.try(:id)
      @vote.ip_address = request.remote_ip

      if @vote.save
        session[:vote_id] = @vote.id
        flash[:notice] = I18n.t(:thanks_for_voting)
      else
        flash[:error] = I18n.t(:problem_voting)
      end
      redirect_to(:back) 
    end
  end
end
{'fraction_non_alphanumeric': 0.108, 'fraction_numerical': 0.008, 'mean_word_length': 2.721189591078067, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1071068', 'n_tokens_mistral': 355, 'n_tokens_neox': 344, 'n_words': 59}