<commit_before># coding: UTF-8

module Kpi
  class SemanalController < ApplicationController
    def index
      cuantas_semanas_quiero_ver = 5
      @semanas = (Date.yesterday.cweek - cuantas_semanas_quiero_ver + 1)..Date.yesterday.cweek
      @kpi_semanales = Kpi::Semanal.where(anyo: Date.yesterday.year, semana: @semanas)
    end
  end
end
<commit_msg>extracting to explaining vars and apply our naming conventions<commit_after># coding: UTF-8

module Kpi
  class SemanalController < ApplicationController
    def index
      n_semanas_que_quiero_ver = 5
      semana_mas_antigua_que_quiero_ver = Date.yesterday.cweek - n_semanas_que_quiero_ver + 1
      semana_mas_reciente_que_quiero_ver = Date.yesterday.cweek
      @semanas = semana_mas_antigua_que_quiero_ver..semana_mas_reciente_que_quiero_ver
      @kpi_semanales = Kpi::Semanal.where(anyo: Date.yesterday.year, semana: @semanas)
    end
  end
end

{'fraction_non_alphanumeric': 0.07260726072607261, 'fraction_numerical': 0.006600660066006601, 'mean_word_length': 4.321637426900585, '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': '5988828', 'n_tokens_mistral': 349, 'n_tokens_neox': 348, 'n_words': 60}