<commit_before>module Brir
  class  BrirApi
    attr_accessor :exercise_year, :calendar_year, :ranges

    def initialize(exercise_year = nil)
      @exercise_year = (exercise_year.nil?) ? Time.new.year : exercise_year
      @calendar_year = @exercise_year.to_i - 1
      @ranges = table(@exercise_year)
    end
<commit_msg>Added exception when progressive table was not loaded<commit_after>module Brir
  class  BrirApi
    attr_accessor :exercise_year, :calendar_year, :ranges

    def initialize(exercise_year = nil)
      @exercise_year = (exercise_year.nil?) ? Time.new.year : exercise_year
      @calendar_year = @exercise_year.to_i - 1
      @ranges = table(@exercise_year)
      raise "Fail to initialize the progressive table" if @ranges.nil?
    end

{'fraction_non_alphanumeric': 0.08827404479578392, 'fraction_numerical': 0.002635046113306983, 'mean_word_length': 3.810126582278481, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3265383', 'n_tokens_mistral': 252, 'n_tokens_neox': 235, 'n_words': 58}