<commit_before>class Admin::Publishers::ReferralsController < Admin::PublishersController
  def show
    @publisher = Publisher.find(params[:id] || params[:publisher_id])
    @navigation_view = Views::Admin::NavigationView.new(publisher).as_json.merge({ navbarSelection: "Referrals" }).to_json
  end

  def stats_by_date
    promo_registration = current_publisher.promo_registrations.find_by(referral_code: params[:referral_code])
    render :unauthorized and return if promo_registration.nil?
    render json: promo_registration.stats_by_date.to_json
  end
end<commit_msg>Remove unused route<commit_after>class Admin::Publishers::ReferralsController < Admin::PublishersController
  def show
    @publisher = Publisher.find(params[:id] || params[:publisher_id])
    @navigation_view = Views::Admin::NavigationView.new(publisher).as_json.merge({ navbarSelection: "Referrals" }).to_json
  end
end
{'fraction_non_alphanumeric': 0.11073825503355705, 'fraction_numerical': 0.0, 'mean_word_length': 7.063063063063063, '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': '3746511', 'n_tokens_mistral': 286, 'n_tokens_neox': 267, 'n_words': 46}