<commit_before>module Termistat
  class Config
    def initialize(options={})
      @options = {
        :position => :top_right,
        :align    => :left,
      }.merge(options)
    end

    def method_missing(meth_id, *args)
      if @options.has_key?(meth_id)
        return @options[meth_id] if args.empty?
        @options[meth_id] = args.first
        self
      else
        raise NoMethodError.new(meth_id)
      end
    end
  end
end<commit_msg>use explicit accessors for config options<commit_after>module Termistat
  class Config
    def initialize(options={})
      @options = {
        :position => :top_right,
        :align    => :left,
      }.merge(options)
    end

    def position(position=nil)
      @options[:position] = position unless position.nil?
      @options[:position]
    end

    def align(align=nil)
      @options[:align] = align unless align.nil?
      @options[:align]
    end
  end
end
{'fraction_non_alphanumeric': 0.10822510822510822, 'fraction_numerical': 0.0, 'mean_word_length': 2.3882783882783882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6402270', 'n_tokens_mistral': 292, 'n_tokens_neox': 282, 'n_words': 67}