<commit_before>require 'vulndbhq/identity_map'

module VulnDBHQ
  class Base
    attr_reader :attrs
    alias to_hash attrs

    @@identity_map = IdentityMap.new

    # Define methods that retrieve the value from an initialized instance variable Hash, using the attribute as a key
    #
    # @overload self. attr_reader(attr)<commit_msg>Add documentaiton to ::Base class<commit_after>require 'vulndbhq/identity_map'

module VulnDBHQ

  # Provides some common facilities for all VulnDBHQ objects including the
  # ability to store attributes and to use an identity map to prevent
  # re-loading the same object multiple times.
  class Base
    attr_reader :attrs
    alias to_hash attrs

    @@identity_map = IdentityMap.new

    # Define methods that retrieve the value from an initialized instance variable Hash, using the attribute as a key
    #
    # @overload self. attr_reader(attr)
{'fraction_non_alphanumeric': 0.05061867266591676, 'fraction_numerical': 0.0, 'mean_word_length': 3.8633879781420766, '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': '4471385', 'n_tokens_mistral': 255, 'n_tokens_neox': 242, 'n_words': 99}