<commit_before>class PagesController < ApplicationController

  layout :set_layout

  filter_access_to :all

  def index
    @campaigns_carousel = Campaign.last_campaigns_without_pagination(5)
  end

  def help
  end

  def tutorial
  end

  def privacy_policy
  end
  
  def contact
    if request.post?
      @contact = Contact.new(params[:contact])
      if @contact.save
        Mailman.send_contact_message(@contact.id).deliver
        redirect_to contact_received_url, :notice => 'Mensaje recibido, pronto nos pondremos en contacto'<commit_msg>menos campañas en la home<commit_after>class PagesController < ApplicationController

  layout :set_layout

  filter_access_to :all

  def index
    @campaigns_carousel = Campaign.last_campaigns_without_pagination(4)
  end

  def help
  end

  def tutorial
  end

  def privacy_policy
  end
  
  def contact
    if request.post?
      @contact = Contact.new(params[:contact])
      if @contact.save
        Mailman.send_contact_message(@contact.id).deliver
        redirect_to contact_received_url, :notice => 'Mensaje recibido, pronto nos pondremos en contacto'
{'fraction_non_alphanumeric': 0.06474820143884892, 'fraction_numerical': 0.0017985611510791368, 'mean_word_length': 3.6569037656903767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4022362', 'n_tokens_mistral': 358, 'n_tokens_neox': 337, 'n_words': 83}