<commit_before>module Fakturoid
  class Config
    attr_accessor :email, :api_key, :account
    attr_writer :user_agent
    
    ENDPOINT = 'https://app.fakturoid.cz/api/v2'
    
    def initialize(&block)
      yield self
    end
    
    def user_agent
      if @user_agent.nil? || @user_agent.empty?
        "#{account} (#{email})"
      else
        @user_agent
      end
    end
    
    def endpoint
      "#{ENDPOINT}/accounts/#{account}"
    end
    
    def endpoint_without_account
      ENDPOINT
    end
  end
end<commit_msg>Better default use_agent.<commit_after>module Fakturoid
  class Config
    attr_accessor :email, :api_key, :account
    attr_writer :user_agent
    
    ENDPOINT = 'https://app.fakturoid.cz/api/v2'
    
    def initialize(&block)
      yield self
    end
    
    def user_agent
      if @user_agent.nil? || @user_agent.empty?
        "Fakturoid ruby gem (#{email})"
      else
        @user_agent
      end
    end
    
    def endpoint
      "#{ENDPOINT}/accounts/#{account}"
    end
    
    def endpoint_without_account
      ENDPOINT
    end
  end
end
{'fraction_non_alphanumeric': 0.09157509157509157, 'fraction_numerical': 0.0018315018315018315, 'mean_word_length': 2.0875706214689265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1424392', 'n_tokens_mistral': 366, 'n_tokens_neox': 366, 'n_words': 79}