<commit_before>class HolidaysController < ApplicationController
  before_action :set_garage
  before_action :set_holiday, only: [:show, :edit, :update, :destroy]
  after_action :verify_authorized

  # GET /holidays
  # GET /holidays.json
  def index
    holidays = policy_scope(@garage.holidays.page(params[:page]))
    authorize holidays
    @holidays = HolidayDecorator.decorate_collection(holidays)
  end

  # GET /holidays/1
  # GET /holidays/1.json
  def show
    authorize @holiday
  end

  # GET /holidays/new
  def new
    @holiday = @garage.holidays.build
    authorize @holiday
  end

  # GET /holidays/1/edit
  def edit<commit_msg>Fixed redirect in holidays.<commit_after>class HolidaysController < ApplicationController
  before_action :set_garage
  before_action :set_holiday, only: [:show, :edit, :update, :destroy]
  after_action :verify_authorized

  # GET /holidays
  # GET /holidays.json
  def index
    redirect_to user_path(current_user) unless policy(@garage).show?
    holidays = policy_scope(@garage.holidays.page(params[:page]))
    authorize holidays
    @holidays = HolidayDecorator.decorate_collection(holidays)
  end

  # GET /holidays/1
  # GET /holidays/1.json
  def show
    authorize @holiday
  end

  # GET /holidays/new
  def new
    @holiday = @garage.holidays.build
    authorize @holiday
  end

  # GET /holidays/1/edit
  def edit
{'fraction_non_alphanumeric': 0.0936356986100951, 'fraction_numerical': 0.0043891733723482075, 'mean_word_length': 3.7832167832167833, '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': '4539057', 'n_tokens_mistral': 461, 'n_tokens_neox': 474, 'n_words': 104}