<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :configure_permitted_parameters, if: :devise_controller?
  before_action :authenticate_user!, :except => [:show]

  # GET /ads/1
  # GET /ads/1.json
  def show
    #binding.pry
    @ad = Ad.find(params[:id])
    Ad.visits(@ad)
    Campaign.visits(@ad)
    redirect_to Ad.website(@ad) # "https://www.facebook.com"
    binding.pry<commit_msg>removing binding.pry<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :configure_permitted_parameters, if: :devise_controller?
  before_action :authenticate_user!, :except => [:show]

  # GET /ads/1
  # GET /ads/1.json
  def show
    #binding.pry
    @ad = Ad.find(params[:id])
    Ad.visits(@ad)
    Campaign.visits(@ad)
    redirect_to Ad.website(@ad) # "https://www.facebook.com"
{'fraction_non_alphanumeric': 0.1305767138193689, 'fraction_numerical': 0.004352557127312296, 'mean_word_length': 4.443786982248521, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2753412', 'n_tokens_mistral': 316, 'n_tokens_neox': 309, 'n_words': 57}