<commit_before>module SpicedGracken
  module Config
    class Entry
      attr_accessor :alias_name, :address, :uid, :public_key

      def initialize(alias_name: '', address: '', uid: '', public_key: '')
        @alias_name = alias_name
        @address = address
        @uid = uid
        @public_key = public_key
      end

      def as_json
        {
          'alias' => @alias_name,
          'address' => @address,
          'uid' => @uid,
          'publicKey' => @public_key
        }
      end

      def attributes
        {
          alias_name: @alias_name,
          address: @address,
          uid: @uid,
          public_key: @public_key
        }
      end

      def [](key)
        attributes[key]
      end
    end
  end
end<commit_msg>remove a method in favor of delegate<commit_after>module SpicedGracken
  module Config
    class Entry
      attr_accessor :alias_name, :address, :uid, :public_key

      def initialize(alias_name: '', address: '', uid: '', public_key: '')
        @alias_name = alias_name
        @address = address
        @uid = uid
        @public_key = public_key
      end

      def as_json
        {
          'alias' => @alias_name,
          'address' => @address,
          'uid' => @uid,
          'publicKey' => @public_key
        }
      end

      def attributes
        {
          alias_name: @alias_name,
          address: @address,
          uid: @uid,
          public_key: @public_key
        }
      end

      delegate :[], to: :attributes

    end
  end
end
{'fraction_non_alphanumeric': 0.1036745406824147, 'fraction_numerical': 0.0, 'mean_word_length': 1.6475694444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5917617', 'n_tokens_mistral': 461, 'n_tokens_neox': 452, 'n_words': 112}