<commit_before>module Egauge
  attr_reader :registers

  class History
    def initialize(db, client:, register_names: nil)
      @client = client || Client.new
      @register_names = register_names
      @registers = nil
      @db = db
    end

    def epoch
      response = @client.request_history(units: REQ_UNIT_DAYS)<commit_msg>make History.initialize(client) optional<commit_after>module Egauge
  attr_reader :registers

  class History
    def initialize(db, client: nil, register_names: nil)
      @client = client || Client.new
      @register_names = register_names
      @registers = nil
      @db = db
    end

    def epoch
      response = @client.request_history(units: REQ_UNIT_DAYS)
{'fraction_non_alphanumeric': 0.08131241084165478, 'fraction_numerical': 0.0, 'mean_word_length': 3.2035928143712575, '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': '7447884', 'n_tokens_mistral': 213, 'n_tokens_neox': 207, 'n_words': 54}