<commit_before>class HoursController < ApplicationController


  def index
    @hours = Hour.all
  end

  def show

  end

  def new
    @hour = Hour.new
  end

  def edit
  end

  def create

  end

  def destroy

  end





    def hours_params
      params.require(:hour).permit(
            :start_schedule,
            :end_schedule,
            :sunday_start,
            :sunday_end,
            :monday_start,
            :monday_end,
            :tuesday_start,
            :tuesday_end,
            :wednesday_start,
            :wednesday_end,
            :thursday_start,
            :thursday_end,
            :friday_start,
            :friday_end,
            :saturday_start,
            :saturday_end
          )


    end
end<commit_msg>See if we can insert a schedule<commit_after>class HoursController < ApplicationController
  before_action :set_hour, only: [:show, :edit, :update, :destroy]

  def index
    @hours = Hour.all
  end

  def show

  end

  def new
    @hour = Hour.new
  end

  def edit
  end

  def create
    @hour = Hour.new(hours_params)

    if @hour.save
      redirect_to action: :index
    else
      render action: 'new'
  end

  def destroy

  end





    def hours_params
      params.require(:hour).permit(
            :start_schedule,
            :end_schedule,
            :sunday_start,
            :sunday_end,
            :monday_start,
            :monday_end,
            :tuesday_start,
            :tuesday_end,
            :wednesday_start,
            :wednesday_end,
            :thursday_start,
            :thursday_end,
            :friday_start,
            :friday_end,
            :saturday_start,
            :saturday_end
          )


    end

    private
      def set_hour
        @hour = Hour.find(params[:id])
      end
end
{'fraction_non_alphanumeric': 0.07122982749026155, 'fraction_numerical': 0.0, 'mean_word_length': 1.4903047091412742, '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': '5267792', 'n_tokens_mistral': 590, 'n_tokens_neox': 542, 'n_words': 121}