<commit_before>require_relative 'session'
module TheHub
  class Day
    attr_reader :name
    def initialize name, sitemap
      @name, @sitemap = name, sitemap
    end

    def shortname
      name[0..2]
    end

    def code
      @name.downcase
    end

    def active? page
      if page.respond_to? :day
        page.day == @name
      else
        @name == 'Saturday'
      end
    end

    def query
      @sitemap.where(:day => @name)
    end

    def sessions
      if @sitemap.app.sessions[code.to_sym]<commit_msg>Because it's Sunday, Sunday...<commit_after>require_relative 'session'
module TheHub
  class Day
    attr_reader :name
    def initialize name, sitemap
      @name, @sitemap = name, sitemap
    end

    def shortname
      name[0..2]
    end

    def code
      @name.downcase
    end

    def active? page
      if page.respond_to? :day
        page.day == @name
      else
        @name == 'Sunday'
      end
    end

    def query
      @sitemap.where(:day => @name)
    end

    def sessions
      if @sitemap.app.sessions[code.to_sym]
{'fraction_non_alphanumeric': 0.08936970837253057, 'fraction_numerical': 0.0037629350893697085, 'mean_word_length': 1.9311294765840221, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6094058', 'n_tokens_mistral': 364, 'n_tokens_neox': 349, 'n_words': 96}