<commit_before>class CalendarioController < ApplicationController
  before_filter :require_login
  before_filter :is_admin_or_fisiatra_fisiatria

	include DashboardHospitalHelper

	def index
  	# calendario
  	@numero_dias = numero_dias(Time.now)
  	@espacios = number_space(Time.now)
  	@fecha = Time.now
  	@turnos = DisponiblidadHorario.where(:dia => Time.now.beginning_of_month..Time.now.end_of_month)
  end

  def next_month
  	@numero_dias = numero_dias(Time.now + 1.month)
  	@espacios = number_space(Time.now + 1.month)
    @fecha = params[:fecha].to_time + 1.month
  	@turnos = DisponiblidadHorario.where(:dia => @fecha.beginning_of_month..@fecha.end_of_month)
  	respond_to do |format|
  		format.js
  	end
  end

  def prev_month
  	@numero_dias = numero_dias(Time.now - 1.month)
  	@espacios = number_space(Time.now - 1.month)
  	@fecha = params[:fecha].to_time - 1.month
  	@turnos = DisponiblidadHorario.where(:dia => @fecha.beginning_of_month..@fecha.end_of_month)
  	respond_to do |format|
			format.js
		end
  end

  def current_month
  	index
  	respond_to do |format|
  		format.js
  	end
  end
end<commit_msg>fix incorrect numbers calendar<commit_after>class CalendarioController < ApplicationController
  before_filter :require_login
  before_filter :is_admin_or_fisiatra_fisiatria

	include DashboardHospitalHelper

	def index
  	# calendario
  	@numero_dias = numero_dias(Time.now)
  	@espacios = number_space(Time.now)
  	@fecha = Time.now
  	@turnos = DisponiblidadHorario.where(:dia => Time.now.beginning_of_month..Time.now.end_of_month)
  end

  def next_month
    current_date = params[:fecha].to_time
  	@numero_dias = numero_dias(current_date + 1.month)
  	@espacios = number_space(current_date + 1.month)
    @fecha = current_date + 1.month
  	@turnos = DisponiblidadHorario.where(:dia => @fecha.beginning_of_month..@fecha.end_of_month)
  	respond_to do |format|
  		format.js
  	end
  end

  def prev_month
    current_date = params[:fecha].to_time
  	@numero_dias = numero_dias(current_date - 1.month)
  	@espacios = number_space(current_date - 1.month)
  	@fecha = current_date- 1.month
  	@turnos = DisponiblidadHorario.where(:dia => @fecha.beginning_of_month..@fecha.end_of_month)
  	respond_to do |format|
			format.js
		end
  end

  def current_month
  	index
  	respond_to do |format|
  		format.js
  	end
  end
end
{'fraction_non_alphanumeric': 0.09685641461342395, 'fraction_numerical': 0.005097706032285472, 'mean_word_length': 4.021321961620469, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3734356', 'n_tokens_mistral': 954, 'n_tokens_neox': 931, 'n_words': 150}